Skip to content

Repository files navigation

⚖️ Turn2Law

Live Built with Tailwind CSS Status MIT License Made with love

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.


✨ Features

🖥️ Frontend Features

  • 🧭 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.

🔧 Backend Features

  • 🛡️ Supabase Integration: Handles authentication and backend-as-a-service operations.
  • ⚙️ Serverless API Routes: Easily manage backend logic using Next.js built-in APIs.

🧑‍💻 Development Features

  • Code Quality: Enforced with ESLint and Prettier for clean and consistent code.
  • 🔐 Environment Variables: Securely store API keys and credentials.

🧰 Libraries and Technologies Used

🛠️ 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

📸 Screenshots

HomePage

image

Consultant

image

ChatBot

image

LogIn

image

SignUp

image


⚙️ Installation and Setup

📋 Prerequisites

Make sure the following are installed:

  • Node.js (v16 or higher)
  • npm

🚀 Steps to Run Locally

  1. Clone the repo:

    git clone https://github.com/shashank-pd/turn2law.git
    cd turn2law
  2. Install dependencies:

    npm install
  3. Add environment variables in a .env.local file:

    NEXT_PUBLIC_SUPABASE_URL=<your-supabase-url>
    NEXT_PUBLIC_SUPABASE_ANON_KEY=<your-supabase-anon-key>
  4. Start development server:

    npm run dev
  5. Open in browser:
    http://localhost:3000


🗂️ Project Structure

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

🤝 Contributing

Contributions are welcome!

Here’s how you can help:

  1. 🍴 Fork the repo
  2. 🛠️ Create a new branch:
    git checkout -b feature/your-feature
  3. 💾 Commit your changes:
    git commit -m "Add your feature"
  4. 📤 Push to GitHub:
    git push origin feature/your-feature
  5. 📬 Open a Pull Request

🔮 Future Enhancements

  • 🌐 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.


📄 License

This project is licensed under the MIT License.

About

Turn2Law is a modern full-stack platform offering seamless legal consultation, AI-powered 24/7 support, secure data handling, and affordable plans, all with a responsive and user-friendly design.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages