94 lines
3.9 KiB
TypeScript
94 lines
3.9 KiB
TypeScript
'use client';
|
|
|
|
import { motion, useReducedMotion } from 'framer-motion';
|
|
|
|
export default function LeagueHomeMockup() {
|
|
const shouldReduceMotion = useReducedMotion();
|
|
|
|
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 (
|
|
<div className="relative w-full h-full bg-gradient-to-br from-deep-graphite via-iron-gray to-deep-graphite rounded-lg p-8 overflow-hidden">
|
|
<motion.div
|
|
variants={containerVariants}
|
|
initial="hidden"
|
|
animate="visible"
|
|
className="space-y-6"
|
|
>
|
|
<motion.div variants={itemVariants}>
|
|
<div className="text-xl font-bold text-white mb-2">Super GT Championship</div>
|
|
<div className="text-sm text-gray-400">Season 3 • Round 8/12</div>
|
|
</motion.div>
|
|
|
|
<motion.div variants={itemVariants}>
|
|
<div className="text-base font-semibold text-white mb-4">Upcoming Races</div>
|
|
<div className="space-y-3">
|
|
{[1, 2, 3].map((i) => (
|
|
<motion.div
|
|
key={i}
|
|
className="relative flex items-center gap-4 bg-iron-gray rounded-lg p-4 border border-charcoal-outline shadow-[inset_0_1px_2px_rgba(0,0,0,0.2)]"
|
|
whileHover={shouldReduceMotion ? {} : {
|
|
y: -2,
|
|
boxShadow: '0 4px 24px rgba(0,0,0,0.4), 0 0 20px rgba(25,140,255,0.3)',
|
|
transition: { duration: 0.15 }
|
|
}}
|
|
transition={{ type: 'spring', stiffness: 200, damping: 20 }}
|
|
>
|
|
<div className="h-10 w-10 bg-charcoal-outline rounded border border-primary-blue/20"></div>
|
|
<div className="flex-1">
|
|
<div className="h-3 w-32 bg-white/10 rounded mb-2"></div>
|
|
<div className="h-2.5 w-24 bg-white/5 rounded font-mono"></div>
|
|
</div>
|
|
{i === 1 && (
|
|
<motion.div
|
|
className="absolute right-4"
|
|
animate={shouldReduceMotion ? {} : {
|
|
scale: [1, 1.2, 1],
|
|
boxShadow: [
|
|
'0 0 20px rgba(25,140,255,0.3)',
|
|
'0 0 32px rgba(67,201,230,0.4)',
|
|
'0 0 20px rgba(25,140,255,0.3)'
|
|
]
|
|
}}
|
|
transition={{ duration: 2, repeat: Infinity }}
|
|
>
|
|
<div className="w-3 h-3 bg-primary-blue rounded-full shadow-glow"></div>
|
|
</motion.div>
|
|
)}
|
|
</motion.div>
|
|
))}
|
|
</div>
|
|
</motion.div>
|
|
|
|
<motion.div variants={itemVariants}>
|
|
<div className="text-base font-semibold text-white mb-4">Recent Results</div>
|
|
<div className="bg-iron-gray rounded-lg p-4 border border-charcoal-outline shadow-[0_4px_24px_rgba(0,0,0,0.4)]">
|
|
<div className="flex items-center gap-3 mb-3 pb-3 border-b border-charcoal-outline">
|
|
<div className="h-2.5 w-8 bg-white/10 rounded font-mono"></div>
|
|
<div className="h-2.5 flex-1 bg-white/10 rounded"></div>
|
|
<div className="h-2.5 w-12 bg-white/10 rounded font-mono"></div>
|
|
</div>
|
|
{[1, 2].map((i) => (
|
|
<div key={i} className="flex items-center gap-3 py-2">
|
|
<div className="h-2.5 w-8 bg-white/5 rounded font-mono"></div>
|
|
<div className="h-2.5 flex-1 bg-white/5 rounded"></div>
|
|
<div className="h-2.5 w-12 bg-performance-green/20 rounded text-center font-mono text-performance-green"></div>
|
|
</div>
|
|
))}
|
|
</div>
|
|
</motion.div>
|
|
</motion.div>
|
|
</div>
|
|
);
|
|
} |