'use client'; import { motion, useReducedMotion } from 'framer-motion'; import { useState, useEffect } from 'react'; export default function LeagueHomeMockup() { const shouldReduceMotion = useReducedMotion(); const [isMobile, setIsMobile] = useState(false); useEffect(() => { setIsMobile(window.innerWidth < 768); }, []); if (isMobile) { return (
🏆
Super GT
Round 8/12
Next Race
🏁
Latest Result
); } const containerVariants = { hidden: { opacity: 0 }, visible: { opacity: 1, transition: { staggerChildren: shouldReduceMotion ? 0 : 0.1 } } }; const itemVariants = { hidden: { opacity: 0, y: shouldReduceMotion ? 0 : 20 }, visible: { opacity: 1, y: 0 } }; return (
🏆
Super GT Championship
Season 3 • Round 8/12
Your league's dedicated home page
Upcoming Races
Calendar automatically synced from iRacing
{[1, 2, 3].map((i) => (
🏁
{i === 1 && (
)}
))}
Recent Results
Results appear instantly after each race
{[1, 2].map((i) => (
))}
); }