Skip to content

ratna3/Law-Veritas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

87 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Law-gically Yours βš–οΈ

Law-gically Yours React Vite Tailwind CSS Supabase Vercel

🌐 A Modern Legal Insights Blog Platform

Built with React, Vite, and Supabase β€” Empowering legal knowledge sharing

Live Demo

πŸ“– Documentation Β· πŸ› Report Bug Β· ✨ Request Feature


✨ What is Law-gically Yours?

Law-gically Yours is a professional legal blog platform designed to share legal insights, case analyses, and constitutional law articles. Whether you're a law student, legal professional, or someone curious about the law, this platform makes legal knowledge accessible and engaging.

🎯 Key Highlights

Feature Description
🎨 Premium Design Clean, professional UI with elegant amber & warm color palette
✍️ Rich Content Full GitHub Flavored Markdown support with syntax highlighting
πŸ“œ Bare Acts Library Comprehensive collection of Indian legislation with structured chapters & sections
πŸ” Secure Admin Protected dashboard for content management
πŸ’¬ User Engagement Real-time comments, likes with Google OAuth authentication
πŸ“± Fully Responsive Seamless experience across all devices
🎭 Interactive 3D Beautiful Three.js animations on the homepage
⚑ Lightning Fast Optimized performance with Vite and lazy loading

πŸš€ Features

πŸ“ Blog Features

  • Markdown Rendering β€” Headings, bold, italic, links, lists, blockquotes, code blocks, and tables
  • Image Gallery β€” Upload and display multiple images per article
  • PDF Attachments β€” Embed and view PDF documents inline
  • Social Sharing β€” Share articles on Twitter, LinkedIn, and more
  • Like & Comment System β€” Real-time user engagement with Supabase Realtime

πŸ“œ Bare Acts Library

  • Comprehensive Legislation β€” Access to major Indian laws including the Constitution, IPC, CrPC, and more
  • Structured Content β€” Well-organized chapters, sections, and articles for easy navigation
  • Search & Filter β€” Quickly find specific acts with smart filtering options
  • Beautifully Formatted β€” Clean presentation with professional typography and layout
  • Regular Updates β€” Content maintained to reflect the latest amendments

πŸ”§ Admin Features

  • Blog Editor β€” Create and edit articles with live markdown preview
  • Media Upload β€” Drag & drop images and PDFs to Supabase storage
  • Draft/Publish β€” Control article visibility and featured status
  • Tag Management β€” Organize content with custom tags
  • Password Protection β€” Secure admin access with bcrypt hashing

πŸ› οΈ Tech Stack

Technology Purpose Version
UI Framework 18.3+
Build Tool 5.4+
Styling 4.1
Backend & DB Latest
3D Graphics Latest

Additional Technologies:

  • React Router β€” Client-side routing
  • Zustand β€” Lightweight state management
  • React Markdown β€” GFM rendering with remark/rehype plugins
  • React Three Fiber β€” Declarative Three.js bindings

πŸ“¦ Quick Start

Prerequisites

  • Node.js 18+
  • npm or yarn
  • Supabase account

Installation

# Clone the repository
git clone https://github.com/ratna3/Law-Veritas.git

# Navigate to project directory
cd Law-Veritas/my-right-window

# Install dependencies
npm install

# Set up environment variables
cp .env.example .env
# Edit .env with your Supabase credentials

# Start development server
npm run dev

Environment Variables

Create a .env file with the following:

VITE_SUPABASE_URL=https://your-project.supabase.co
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key

Build for Production

npm run build
npm run preview  # Preview production build locally

πŸ“ Project Structure

my-right-window/
β”œβ”€β”€ πŸ“ public/              # Static assets & favicon
β”œβ”€β”€ πŸ“ src/
β”‚   β”œβ”€β”€ πŸ“ components/      # Reusable UI components
β”‚   β”‚   β”œβ”€β”€ πŸ“ 3d/          # Three.js 3D components
β”‚   β”‚   β”œβ”€β”€ πŸ“ blog/        # Blog-specific components
β”‚   β”‚   β”œβ”€β”€ πŸ“ common/      # Shared UI elements
β”‚   β”‚   └── πŸ“ layout/      # Layout wrappers
β”‚   β”œβ”€β”€ πŸ“ pages/           # Route page components
β”‚   β”‚   └── πŸ“ Admin/       # Admin dashboard pages
β”‚   β”œβ”€β”€ πŸ“ services/        # Supabase API services
β”‚   β”œβ”€β”€ πŸ“ store/           # Zustand state management
β”‚   └── πŸ“ data/            # Demo/mock blog data
β”œβ”€β”€ πŸ“ supabase/            # Database migrations
β”œβ”€β”€ πŸ“„ package.json
└── πŸ“„ vite.config.js

πŸ—„οΈ Database Schema

The platform uses Supabase with the following tables:

Table Description
blogs Blog posts with title, content, slug, images, tags
user_profiles User information linked to Supabase Auth
likes Blog like tracking (user_id, blog_id)
comments Threaded comments with parent_id support

Storage Buckets: images, pdfs


πŸ“ Markdown Support

Full GitHub Flavored Markdown (GFM) support:

# Heading 1
## Heading 2

**Bold text** and *italic text*

[Links](https://example.com)

- Bullet lists
- [x] Task lists

> Blockquotes for legal citations

| Case Name | Year | Ruling |
|-----------|------|--------|
| Example v. State | 2024 | βœ“ |

`inline code` and fenced code blocks

πŸš€ Deployment

The project is deployed on Vercel with automatic deployments from the main branch.

Live URL: https://lawgicallyours.vercel.app

Deploy Your Own

Deploy with Vercel


🀝 Contributing

Contributions are welcome! Please read our Contributing Guide first.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“„ License

This project is open source and available under the MIT License.


πŸ‘¨β€πŸ’» Author

Ratna Kirti

Website

Email Discord GitHub Twitter


πŸ’– Support the Project

If you find Law-gically Yours helpful, please consider:

⭐ Starring this repository
πŸ› Reporting bugs and issues
πŸ’‘ Suggesting new features
πŸ”€ Contributing code improvements


Made with ❀️ and βš–οΈ by Ratna Kirti

"Justice is the constant and perpetual will to render to everyone that which is their due."

About

A modern legal insights blog platform built with React, Vite, and Supabase for my Lawyer Friends

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors