Turn2Law is a modern full-stack legal services platform built with Next.js, offering seamless access to:
- Legal Consultation
- Intelligent Lawyer Matchmaking
- Secure and Confidential Handling of Data
- 24/7 AI-Powered Legal Support
- Affordable Subscription Plans
- Virtual Consultations
- Multilingual Assistance
With a clean UI/UX, fully responsive design, and smooth animations, Turn2Law delivers a seamless experience across all devices—bringing fast, reliable, and accessible legal support to everyone.
- 🧭 Dynamic Routing: Optimized with Next.js App Router for SSR and SSG.
- 📱 Responsive UI: Styled using Tailwind CSS for clean, mobile-friendly designs.
- 🌀 Interactive Animations: Powered by Framer Motion for smooth transitions.
- 🎢 Parallax-like Effect: Scroll-based animations on the hero section using Framer Motion’s
useScroll&useTransform. - 🔔 Toast Notifications: Built with React Hot Toast for instant user feedback.
- 🧩 Icon Pack: Uses Lucide Icons for a modern and consistent interface.
- 🛡️ Supabase Integration: Handles authentication and backend-as-a-service operations.
- ⚙️ Serverless API Routes: Easily manage backend logic using Next.js built-in APIs.
- ✅ Code Quality: Enforced with ESLint and Prettier for clean and consistent code.
- 🔐 Environment Variables: Securely store API keys and credentials.
| 🛠️ Technology | 💡 Purpose |
|---|---|
| Next.js | Full-stack React framework with SSR support |
| Supabase | Authentication and backend as a service |
| React Hot Toast | Toast notifications |
| Lucide Icons | Icon pack used in UI |
| Framer Motion | Smooth animations and transitions |
| Tailwind CSS | Utility-first CSS styling |
HomePage
Consultant
ChatBot
LogIn
SignUp
Make sure the following are installed:
- Node.js (v16 or higher)
- npm
-
Clone the repo:
git clone https://github.com/shashank-pd/turn2law.git cd turn2law -
Install dependencies:
npm install
-
Add environment variables in a
.env.localfile:NEXT_PUBLIC_SUPABASE_URL=<your-supabase-url> NEXT_PUBLIC_SUPABASE_ANON_KEY=<your-supabase-anon-key>
-
Start development server:
npm run dev
-
Open in browser:
http://localhost:3000
turn2law/
├── lib/ # Custom libraries and helpers
│ └── supabaseClient.js # Supabase configuration
├── public/ # Static assets like images and fonts
├── src/ # Application source code
│ ├── app/ # Next.js App Router
│ └── components/ # Reusable UI components
├── .gitignore # Ignored files in version control
├── eslint.config.mjs # ESLint configuration
├── next.config.mjs # Next.js configuration
├── package.json # Project dependencies and scripts
├── postcss.config.mjs # PostCSS configuration
├── tailwind.config.js # Tailwind CSS configuration
Contributions are welcome!
Here’s how you can help:
- 🍴 Fork the repo
- 🛠️ Create a new branch:
git checkout -b feature/your-feature
- 💾 Commit your changes:
git commit -m "Add your feature" - 📤 Push to GitHub:
git push origin feature/your-feature
- 📬 Open a Pull Request
-
🌐 Multilingual Support
Make legal services accessible in multiple Indian and global languages for broader reach. -
📅 Improving Lawyer Appointment
Allow users to reschedule, and cancel appointments with legal professionals seamlessly. -
📄 Smart Document Generation
Auto-generate legal documents like contracts, affidavits, and agreements based on user input. -
🧾 Pricing & Payment History Section
Enable users to track their legal service payments, view receipts, and manage subscriptions. -
🌓 Dark & Light Theme Support
Enhance user experience with theme toggling based on user preference or system settings. -
🔐 Google Login Integration
Simplify access with OAuth-based sign-in using Google accounts.
This project is licensed under the MIT License.




