Built with React, Vite, and Supabase β Empowering legal knowledge sharing
π Documentation Β· π Report Bug Β· β¨ Request Feature
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.
| 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 |
- 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
- 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
- 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
| 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
- Node.js 18+
- npm or yarn
- Supabase account
# 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 devCreate a .env file with the following:
VITE_SUPABASE_URL=https://your-project.supabase.co
VITE_SUPABASE_ANON_KEY=your_supabase_anon_keynpm run build
npm run preview # Preview production build locallymy-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
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
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 blocksThe project is deployed on Vercel with automatic deployments from the main branch.
Live URL: https://lawgicallyours.vercel.app
Contributions are welcome! Please read our Contributing Guide first.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is open source and available under the MIT License.
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."