import { useState, useEffect } from 'react'; import { useAuth0 } from '@auth0/auth0-react'; import { useNavigate } from 'react-router-dom'; import { HeroCarousel } from './HomePage/HeroCarousel'; import { FeaturesGrid } from './HomePage/FeaturesGrid'; import { motion } from 'framer-motion'; export const HomePage = () => { const { loginWithRedirect, isAuthenticated } = useAuth0(); const [mobileMenuOpen, setMobileMenuOpen] = useState(false); const [isScrolled, setIsScrolled] = useState(false); const navigate = useNavigate(); useEffect(() => { const handleScroll = () => { setIsScrolled(window.scrollY > 100); }; window.addEventListener('scroll', handleScroll); return () => window.removeEventListener('scroll', handleScroll); }, []); const handleAuthAction = () => { if (isAuthenticated) { navigate('/garage'); return; } loginWithRedirect({ appState: { returnTo: '/garage' } }); }; const handleSignup = () => { navigate('/signup'); }; return (
{/* Navigation Bar */} {/* Hero Carousel */}
{/* Welcome Section */}
{/* Full Logo */}
MotoVaultPro - Precision Vehicle Management

We are pleased to provide comprehensive vehicle management solutions including Vehicle Tracking, Fuel Log Management, Maintenance Records, Document Storage, Service Station Locations, and detailed Analytics for all your vehicles. A combination of these features can create a perfect management system for your fleet. Based on your specific needs, our platform will help you determine the best approach to managing your vehicles.

Do not hesitate to reach out for assistance in creating a custom workflow that best fits your needs.

{/* About Section */}

About Us

Overall, our goal is to meet each individual's needs with quality, passion, and professionalism.

Most importantly, we treat each and every vehicle as if it were our own and strive to achieve perfection in vehicle management. If you are unsure of what you need for your vehicles, we are happy to help talk you through the best options for comprehensive tracking.

We are proud to use the finest technology and best practices to provide quality and satisfaction for our users.

Trusted Platform

{/* Features Grid */}
{/* Bottom CTA */}

We are a cloud-based platform accessible anywhere, anytime.

{/* Footer */}
); };