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; } // Check if user has a pending email verification (signed up but not verified) const pendingVerificationEmail = localStorage.getItem('pendingVerificationEmail'); if (pendingVerificationEmail) { // Redirect to verify-email page with the stored email navigate('/verify-email', { state: { email: pendingVerificationEmail } }); return; } loginWithRedirect({ appState: { returnTo: '/garage' } }); }; const handleSignup = () => { navigate('/signup'); }; return (
Your collection deserves better than a spreadsheet. Track every drive, lap time, and modification across your entire stable. From maintenance histories and fuel logs to document storage and performance analytics, our platform gives you complete visibility into each car's story. Whether it's one daily-driven sports car or a varied collection of different makes and models, we'll help you spend less time on paperwork and more time behind the wheel. Let's build a system that matches your passion.
Do not hesitate to reach out for assistance in creating a custom workflow that best fits your needs.
We're car people, just like you. We built this because we wanted a community where enthusiasts could connect. That's where community verified Premium 93 started. But we were also tired of juggling spreadsheets, receipts, and service records across our own collections. Just getting started? Reach out and we'll help.
We are proud to use the finest technology and best practices to provide quality and satisfaction for our users.
Trusted Platform