A sophisticated, modern car selling and buying platform built with Next.js 15, featuring AI-powered car comparison, intelligent search, and a premium user experience.
- Browse Cars: Extensive car listings with advanced filtering and sorting
- Smart Search: AI-powered search with intelligent filters
- Car Comparison: Compare up to 3 cars with AI recommendations
- Sell Your Car: Multi-step car listing process with image uploads
- Wishlist & Cart: Save favorite cars and manage purchases
- User Dashboard: Comprehensive user management system
- Smart Recommendations: Personalized car suggestions based on user preferences
- Intelligent Comparison: AI analyzes user needs and recommends the best car
- Preference Learning: System learns from user behavior to improve suggestions
- Price Analysis: Smart pricing insights and market comparisons
- Glassmorphism UI: Modern frosted glass design elements
- Responsive Design: Perfect experience on all devices (mobile, tablet, desktop)
- Dark Mode: Complete dark theme support
- Accessibility: WCAG compliant with screen reader support
- Smooth Animations: 60fps animations with reduced motion support
- Next.js 15: Latest Next.js with App Router and Turbopack
- TypeScript: Full type safety throughout the application
- CSS Modules: Scoped styling with modern CSS features
- Context API: State management for cart, wishlist, and comparison
- Portal Modals: Proper modal rendering with React portals
- SEO Optimized: Meta tags, structured data, and sitemap
- Node.js 18+
- npm or yarn
- Git
-
Clone the repository
git clone https://github.com/EasyCodingTutorial/carVo.git cd carVo -
Install dependencies
npm install # or yarn install -
Run the development server
npm run dev # or yarn dev -
Open your browser Navigate to http://localhost:3000
npm run build
npm startsrc/
βββ app/ # Next.js App Router pages
β βββ cars/ # Car listings and details
β βββ compare/ # Car comparison page
β βββ sell/ # Sell car form
β βββ about/ # About page
β βββ contact/ # Contact page
β βββ dashboard/ # User dashboard
β βββ login/ # Authentication
β βββ globals.css # Global styles
βββ components/ # Reusable components
β βββ layout/ # Layout components
β β βββ Header.tsx # Navigation header
β β βββ Footer.tsx # Site footer
β βββ ui/ # UI components
β β βββ Button.tsx # Button component
β β βββ Card.tsx # Card component
β β βββ CarCard.tsx # Car listing card
β β βββ CompareCarCard.tsx # Comparison card
β β βββ QuickViewModal.tsx # Car quick view
β β βββ Pagination.tsx # Pagination component
β β βββ LoadingSpinner.tsx # Loading states
β βββ seo/ # SEO components
βββ contexts/ # React Context providers
β βββ CartWishlistContext.tsx
β βββ CompareContext.tsx
β βββ ThemeContext.tsx
βββ hooks/ # Custom React hooks
βββ types/ # TypeScript type definitions
βββ utils/ # Utility functions
/* Primary Colors */
--primary-color: #1e293b; /* Slate 800 */
--primary-hover: #0f172a; /* Slate 900 */
--secondary-color: #3b82f6; /* Blue 500 */
--accent-color: #06b6d4; /* Cyan 500 */
/* Text Colors */
--text-primary: #0f172a; /* Slate 900 */
--text-secondary: #475569; /* Slate 600 */
--text-muted: #64748b; /* Slate 500 */
/* Background Colors */
--background: #ffffff; /* White */
--background-secondary: #f8fafc; /* Slate 50 */
--background-tertiary: #f1f5f9; /* Slate 100 */- Font Family: Inter (Google Fonts)
- Font Weights: 400, 500, 600, 700, 800, 900
- Font Sizes: Responsive scale from 0.75rem to 4rem
- Base Unit: 0.25rem (4px)
- Scale: 0.25rem, 0.5rem, 1rem, 1.5rem, 2rem, 3rem, 4rem, 6rem
interface CarCardProps {
car: Car;
}- Displays car information with image, price, specs
- Wishlist and compare functionality
- Quick view modal integration
- Responsive design with hover effects
interface CompareContextType {
compareList: Car[];
addToCompare: (car: Car) => void;
removeFromCompare: (carId: string) => void;
clearCompare: () => void;
isInCompare: (carId: string) => boolean;
canAddMore: boolean;
}- Compare up to 3 cars side by side
- AI-powered recommendations
- User preference analysis
- Smart insights and suggestions
- Advanced search with multiple filters
- Real-time filtering and sorting
- URL-based filter state
- Responsive filter sidebar
- Modern Glassmorphism Design: Frosted glass navigation with backdrop blur
- Responsive Menu: Collapsible mobile navigation
- Search Integration: Global search functionality
- User Actions: Quick access to wishlist, cart, and compare
- Grid/List Views: Toggle between different viewing modes
- Advanced Filters: Brand, price, year, fuel type, transmission, location
- Smart Sorting: Price, year, mileage, newest first
- Pagination: Efficient pagination with 12 cars per page
- Selection Mode: Special mode for selecting cars to compare
- AI Recommendations: Personalized suggestions based on preferences
- Detailed Comparison: Side-by-side specification comparison
- Smart Insights: Intelligent analysis of car features
- Multi-Step Form: 4-step process with progress indicator
- Image Upload: Support for up to 10 car images
- Feature Selection: Comprehensive feature checklist
- Form Validation: Real-time validation with error handling
/* Mobile First Approach */
@media (max-width: 640px) { /* Mobile */ }
@media (max-width: 768px) { /* Tablet */ }
@media (max-width: 1024px) { /* Desktop */ }
@media (max-width: 1200px) { /* Large Desktop */ }- Touch-friendly interface with 44px minimum touch targets
- Optimized images with Next.js Image component
- Reduced animations on mobile devices
- Simplified navigation for small screens
- Keyboard Navigation: Full keyboard accessibility
- Screen Reader Support: Proper ARIA labels and roles
- Color Contrast: WCAG AA compliant color ratios
- Focus Management: Visible focus indicators
- Reduced Motion: Respects user motion preferences
- Proper heading hierarchy (h1-h6)
- Semantic landmarks (nav, main, aside, footer)
- Form labels and descriptions
- Alt text for all images
Complete dark theme support with:
- Automatic system preference detection
- Manual theme toggle
- Persistent theme selection
- Optimized colors for dark environments
export const metadata: Metadata = {
title: "carVo - Buy & Sell Cars Online",
description: "Find your perfect car or sell your vehicle with ease.",
keywords: "cars, buy cars, sell cars, used cars, new cars",
openGraph: {
title: "carVo - Buy & Sell Cars Online",
description: "Find your perfect car or sell your vehicle with ease.",
images: ["/og-image.jpg"],
},
};- Next.js Image optimization
- Code splitting and lazy loading
- Optimized bundle size
- Fast page transitions
- Car browsing and filtering
- Search functionality
- Car comparison system
- Wishlist and cart operations
- Sell car form submission
- Responsive design on all devices
- Dark mode toggle
- Accessibility features
- Connect your GitHub repository to Vercel
- Configure environment variables
- Deploy automatically on push to main branch
- Netlify: Static site deployment
- AWS Amplify: Full-stack deployment
- Docker: Containerized deployment
Create a .env.local file:
NEXT_PUBLIC_SITE_URL=http://localhost:3000
NEXT_PUBLIC_API_URL=your-api-url- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow TypeScript best practices
- Use CSS Modules for styling
- Write semantic HTML
- Ensure accessibility compliance
- Test on multiple devices and browsers
This project is licensed under the MIT License - see the LICENSE file for details.
- Next.js Team - For the amazing framework
- Vercel - For hosting and deployment
- Inter Font - For the beautiful typography
- React Team - For the powerful UI library
For support, email ecoding45@gmail.com.
- Basic car browsing and filtering
- Car comparison system
- Sell car functionality
- Responsive design
- Dark mode support
- User authentication and profiles
- Real-time chat with sellers
- Advanced search with AI
- Mobile app development
- Payment integration
- Car financing calculator
- Insurance integration
- Virtual car tours
- Blockchain-based ownership verification
- Machine learning price predictions
Built with β€οΈ by the Easy Coding Tutorial Team
Making car buying and selling simple, transparent, and enjoyable.