'use client'; import { motion, useReducedMotion } from 'framer-motion'; export default function RaceHistoryMockup() { const shouldReduceMotion = useReducedMotion(); const containerVariants = { hidden: { opacity: 0 }, visible: { opacity: 1, transition: { staggerChildren: shouldReduceMotion ? 0 : 0.15 } } }; const raceCardVariants = { hidden: { opacity: 0, x: shouldReduceMotion ? 0 : -20 }, visible: { opacity: 1, x: 0 } }; const profileSectionVariants = { hidden: { opacity: 0, x: shouldReduceMotion ? 0 : 20 }, visible: { opacity: 1, x: 0, transition: { delay: shouldReduceMotion ? 0 : 0.2 } } }; const connectionLineVariants = { hidden: { scaleX: 0, opacity: 0 }, visible: { scaleX: 1, opacity: 0.3, transition: { duration: 0.6 } } }; return (
{/* Left: Race Result Card */}
P3
Watkins Glen
GT3 Sprint • Race 8
Finish 3rd of 24
Incidents 0x
{/* Connection Arrow */}
{/* Right: Unified Profile Preview */}
Updates Your Profile
{/* Stats Section */}
Career Stats
{/* Team Points */}
Team Points
+18
{/* Rating */}
Rating
+12
{/* Season History */}
Season Record
); }