'use client'; import { motion, useReducedMotion } from 'framer-motion'; import { useState, useEffect } from 'react'; export default function RaceHistoryMockup() { const shouldReduceMotion = useReducedMotion(); const [isMobile, setIsMobile] = useState(false); useEffect(() => { const checkMobile = () => setIsMobile(window.innerWidth < 768); checkMobile(); window.addEventListener('resize', checkMobile); return () => window.removeEventListener('resize', checkMobile); }, []); const itemVariants = { hidden: { opacity: 0, scale: shouldReduceMotion ? 1 : 0.95 }, visible: { opacity: 1, scale: 1 } }; // Simple, elegant mobile version - just the core story if (isMobile) { return (
{/* Race result - clean and simple */}
P3
Watkins Glen
GT3 Sprint
{/* Simple arrow */}
{/* Updates - minimal */}
Profile Updated
Stats ↑
+12
); } // Desktop version - richer with more updates return (
{/* Race Result Card - Enhanced */}
P3
🏁
Watkins Glen
GT3 Sprint Race
24 drivers 45 min Just finished
{/* Connection Flow with Animation */}
Auto-sync
{/* Profile Updates Grid - More detailed */}
Profile Updates
{/* Career Stats Update */}
Career Stats
Wins: 24 → 25
{/* Rating Update */}
Rating +12
1342 → 1354
{/* Season Points Update */}
Season +18
248 → 266 pts
{/* Team Points Update */}
Team +18
Contributing
); }