A community of coders, making the world a better place. Learn, build, and grow with the best developers in the industry.
Features β’ Tech Stack β’ Getting Started β’ Project Structure β’ Challenges β’ Deployment
Next.js React TypeScript TailwindCSS GSAP
This project is a premium, modern learning platform designed to revolutionize the way developers learn and grow. Built with cutting-edge technologies, it offers an immersive, interactive experience with award-worthy animations and a sleek dark-themed UI.
The platform serves as a comprehensive hub for:
- π Structured Learning β Access to curated courses and roadmaps
- π¬ Instant AI Assistance β Get help from an intelligent coding assistant
- π― Interactive Coding Environment β Practice in real-time with live coding exercises
- π₯ Community Support β Join a private Discord community of like-minded developers
- π Gamified Progress β Track your learning journey with leaderboards
| Component | Description |
|---|---|
| Navigation | Modern, responsive header with smooth animations and mobile-first design |
| Hero Section | Captivating intro with gradient typography, animated scroll indicators, and embedded video dialog |
| Stop Buying Section | Compelling value proposition with animated feature cards |
| Instant Help | AI-powered chat interface with real-time typing animations |
| Interactive Coding Environment | Live code editor showcase with syntax highlighting |
| Reviews/Testimonials | Social proof section with user testimonials |
| Learning Path | Visual curriculum roadmap with animated progress indicators |
| Pricing | Tiered subscription plans with monthly/yearly toggle |
| FAQ | Accordion-style frequently asked questions with Radix UI |
| Mentor Portfolio | Instructor profiles and credentials showcase |
| Contact | Professional contact form with validation |
| Footer | Comprehensive site navigation and social links |
- Login Page β Sleek, animated sign-in form with social auth options
- Signup Page β User registration with form validation
- Leaderboard β Gamified progress tracking and ranking system
- Roadmap β Personalized learning paths and course progression
- Next.js 16 β React framework with App Router, RSC, and Server Actions
- React 19 β Latest React with concurrent features and improved performance
- TypeScript 5 β Type-safe development with strict mode enabled
- Tailwind CSS 4 β Utility-first CSS with JIT compilation
- Radix UI β Accessible, unstyled UI primitives (Accordion, Label, Slot)
- Lucide React β Beautiful, consistent icon library
- tw-animate-css β Pre-built animation utilities
- GSAP 3.14 β Professional-grade animation library for complex sequences
- Motion (Framer Motion) β Declarative animations and gestures
- Lenis β Butter-smooth scrolling experience
- clsx β Utility for constructing className strings
- class-variance-authority β Type-safe component variants
- tailwind-merge β Smart Tailwind class merging
Ensure you have the following installed:
- Node.js 18.17 or higher
- npm, yarn, pnpm, or bun
-
Clone the repository
git clone https://github.com/yourusername/project-4.git cd project-4 -
Install dependencies
npm install # or yarn install # or pnpm install
-
Run the development server
npm run dev # or yarn dev # or pnpm dev # or bun dev
-
Open your browser
Navigate to http://localhost:3000 to see the application.
| Command | Description |
|---|---|
npm run dev |
Start development server with hot reload |
npm run build |
Create optimized production build |
npm run start |
Start production server |
npm run lint |
Run ESLint for code quality |
project-4/
βββ π app/
β βββ π component/ # Feature-based components
β β βββ π Hero/ # Hero section
β β βββ π Nav/ # Navigation/Header
β β βββ π pricing/ # Pricing cards
β β βββ π reviews/ # Testimonials
β β βββ π FAQ/ # FAQ accordion
β β βββ π Contact/ # Contact form
β β βββ π Footer/ # Site footer
β β βββ π instant-help/ # AI chat interface
β β βββ π interactive-coding-environment/
β β βββ π leader-board/ # Leaderboard component
β β βββ π mentor-portfolio/
β β βββ π other-section/ # Curriculum path
β β βββ π roadmap/ # Learning roadmap
β β βββ π stop-buying/ # Value proposition
β β βββ π log-in-page/ # Login form
β β βββ π sign-up-page/ # Signup form
β β
β βββ π hooks/ # Custom React hooks
β βββ π providers/ # Context providers (GSAP, Smooth Scroll)
β βββ π login/ # Login route
β βββ π signup/ # Signup route
β βββ π leaderboard/ # Leaderboard route
β βββ π roadmap/ # Roadmap route
β β
β βββ π layout.tsx # Root layout with providers
β βββ π page.tsx # Home page
β βββ π globals.css # Global styles & Tailwind config
β
βββ π components/
β βββ π ui/ # Reusable UI components (shadcn/ui style)
β
βββ π lib/ # Utility functions
βββ π public/ # Static assets
β
βββ π next.config.ts # Next.js configuration
βββ π tailwind.config.ts # Tailwind CSS configuration
βββ π tsconfig.json # TypeScript configuration
βββ π vercel.json # Vercel deployment config
βββ π package.json # Dependencies and scripts
Challenge: Coordinating multiple GSAP timeline animations across different components while maintaining smooth 60fps performance.
Solution: Implemented component-scoped GSAP contexts using gsap.context() with proper cleanup in useEffect return statements. This prevents memory leaks and ensures animations don't conflict between route changes.
useEffect(() => { const ctx = gsap.context(() => { // Animation code here }, sectionRef); return () => ctx.revert(); // Proper cleanup }, []);
Challenge: Integrating Lenis smooth scrolling with GSAP ScrollTrigger while avoiding jank and maintaining native scroll feel.
Solution: Created a dedicated SmoothScrollProvider that wraps the app and synchronizes with GSAP's ticker for seamless integration:
// Sync Lenis with GSAP gsap.ticker.add((time) => { lenis.raf(time * 1000); });
Challenge: Creating realistic, conversation-like animations for the AI chat interface example cards that feel natural and engaging.
Solution: Implemented staggered delays and typing indicators with precise timing to simulate authentic chat behavior, including visual "waiting" states.
Challenge: Ensuring animations look polished across all device sizes without performance degradation on mobile.
Solution: Utilized responsive GSAP matchMedia queries and reduced animation complexity on smaller viewports while maintaining visual appeal.
Challenge: Managing the "use client" directive effectively in Next.js 16 App Router while leveraging server components where possible.
Solution: Carefully structured components to maximize server-rendered content, using client components only for interactive/animated sections. Providers are isolated for clean separation.
The project is optimized for deployment on Vercel.
- Push your code to a Git repository (GitHub, GitLab, or Bitbucket)
- Import your project to Vercel
- Vercel will automatically detect Next.js and configure the build settings
- Deploy! π
No environment variables are required for the base deployment. Future integrations may require:
- Database credentials
- Authentication provider keys
- API endpoints
This project follows these design principles:
- π Dark Mode First β Modern, eye-friendly dark theme with
#0a0a0aas the base - β¨ Micro-interactions β Subtle animations that bring the UI to life
- π± Mobile Responsive β Fully adaptive layouts from 320px to 4K displays
- βΏ Accessibility β Semantic HTML, ARIA labels, and keyboard navigation
- β‘ Performance β Optimized bundle sizes, lazy loading, and efficient rendering
| Color | Hex | Usage |
|---|---|---|
| Background | #0a0a0a |
Main background |
| Surface | #0d0d0d |
Cards, containers |
| Primary | Amber gradient | CTAs, highlights |
| Text Primary | #ffffff |
Headlines |
| Text Secondary | #8a8a8a |
Body, descriptions |
| Text Muted | #6a6a6a |
Subtle text |
This project is private and proprietary.
Souvik Karfa
- Portfolio: Click Here
- GitHub: @souvikkarfa
- LinkedIn: Souvik Karfa
β If you found this project helpful, please consider giving it a star!
Made with β€οΈ and lots of β