'use client';
import { Stack } from '@/ui/Stack';
import { Text } from '@/ui/Text';
import { motion, useReducedMotion } from 'framer-motion';
import { useEffect, useState } from 'react';
export function CareerProgressionMockup() {
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, y: shouldReduceMotion ? 0 : 8 },
visible: { opacity: 1, y: 0 }
};
// Simple mobile version - just the essence
if (isMobile) {
return (
{/* Clean stat cards */}
{[
{ value: '24', label: 'Wins' },
{ value: '48', label: 'Podiums' },
{ value: '156', label: 'Races' }
].map((stat, i) => (
{stat.value}
{stat.label}
))}
{/* Single elegant season card */}
GT3 Championship
P2
);
}
// Desktop version - more detailed
return (
{/* Driver Header */}
🏎️
Your Racing Identity
Multi-league profile
Career tracking
{/* Career Stats */}
Career Overview
{[
{ label: 'Wins', value: '24' },
{ label: 'Podiums', value: '48' },
{ label: 'Races', value: '156' }
].map((stat, i) => (
{stat.value}
{stat.label}
))}
{/* Season Timeline */}
Season History
{[
{ league: 'GT3 Championship', season: 'S3', position: 'P2', points: '248' },
{ league: 'Endurance Series', season: 'S2', position: 'P1', points: '312' },
{ league: 'Formula Sprint', season: 'S1', position: 'P5', points: '186' }
].map((season, i) => (
🏁
{season.league}
Season complete
{season.position}
{season.points}
))}
{/* Multi-League Badge */}
{[1, 2, 3].map((i) => (
🏆
))}
Active in 3 leagues across seasons
);
}