website poc
This commit is contained in:
104
apps/website/components/mockups/CareerProgressionMockup.tsx
Normal file
104
apps/website/components/mockups/CareerProgressionMockup.tsx
Normal file
@@ -0,0 +1,104 @@
|
||||
'use client';
|
||||
|
||||
import { motion, useReducedMotion } from 'framer-motion';
|
||||
|
||||
export default function CareerProgressionMockup() {
|
||||
const shouldReduceMotion = useReducedMotion();
|
||||
|
||||
const containerVariants = {
|
||||
hidden: { opacity: 0 },
|
||||
visible: {
|
||||
opacity: 1,
|
||||
transition: { staggerChildren: shouldReduceMotion ? 0 : 0.08 }
|
||||
}
|
||||
};
|
||||
|
||||
const itemVariants = {
|
||||
hidden: { opacity: 0, x: shouldReduceMotion ? 0 : -20 },
|
||||
visible: { opacity: 1, x: 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"
|
||||
>
|
||||
{/* Driver Header */}
|
||||
<motion.div variants={itemVariants} className="flex items-center gap-4 pb-6 border-b border-charcoal-outline">
|
||||
<div className="h-16 w-16 bg-charcoal-outline rounded-full border-2 border-primary-blue/30"></div>
|
||||
<div className="flex-1">
|
||||
<div className="h-4 w-40 bg-white/10 rounded mb-2"></div>
|
||||
<div className="flex items-center gap-3">
|
||||
<div className="h-3 w-24 bg-primary-blue/20 rounded"></div>
|
||||
<div className="h-3 w-20 bg-performance-green/20 rounded"></div>
|
||||
</div>
|
||||
</div>
|
||||
</motion.div>
|
||||
|
||||
{/* Career Stats */}
|
||||
<motion.div variants={itemVariants}>
|
||||
<div className="text-sm font-semibold text-white/60 mb-3">Career Overview</div>
|
||||
<div className="grid grid-cols-3 gap-3">
|
||||
{[1, 2, 3].map((i) => (
|
||||
<motion.div
|
||||
key={i}
|
||||
className="bg-iron-gray rounded-lg p-3 border border-charcoal-outline"
|
||||
whileHover={shouldReduceMotion ? {} : {
|
||||
y: -2,
|
||||
boxShadow: '0 4px 16px rgba(0,0,0,0.3)',
|
||||
transition: { duration: 0.15 }
|
||||
}}
|
||||
>
|
||||
<div className="h-6 w-12 bg-primary-blue/30 rounded mb-2 font-mono"></div>
|
||||
<div className="h-2 w-16 bg-white/5 rounded"></div>
|
||||
</motion.div>
|
||||
))}
|
||||
</div>
|
||||
</motion.div>
|
||||
|
||||
{/* Season Timeline */}
|
||||
<motion.div variants={itemVariants}>
|
||||
<div className="text-sm font-semibold text-white/60 mb-3">Season History</div>
|
||||
<div className="space-y-2">
|
||||
{[1, 2, 3].map((i) => (
|
||||
<motion.div
|
||||
key={i}
|
||||
className="flex items-center gap-3 bg-iron-gray rounded-lg p-3 border border-charcoal-outline"
|
||||
whileHover={shouldReduceMotion ? {} : {
|
||||
x: 4,
|
||||
boxShadow: '0 2px 12px rgba(25,140,255,0.2)',
|
||||
transition: { duration: 0.15 }
|
||||
}}
|
||||
>
|
||||
<div className="h-8 w-8 bg-charcoal-outline rounded border border-primary-blue/20"></div>
|
||||
<div className="flex-1">
|
||||
<div className="h-2.5 w-32 bg-white/10 rounded mb-1.5"></div>
|
||||
<div className="h-2 w-24 bg-white/5 rounded"></div>
|
||||
</div>
|
||||
<div className="flex gap-2">
|
||||
<div className="h-6 w-8 bg-performance-green/20 rounded text-center font-mono"></div>
|
||||
<div className="h-6 w-8 bg-primary-blue/20 rounded text-center font-mono"></div>
|
||||
</div>
|
||||
</motion.div>
|
||||
))}
|
||||
</div>
|
||||
</motion.div>
|
||||
|
||||
{/* Multi-League Badge */}
|
||||
<motion.div variants={itemVariants}>
|
||||
<div className="flex items-center gap-2 bg-charcoal-outline rounded-lg p-3 border border-primary-blue/30">
|
||||
<div className="flex -space-x-2">
|
||||
{[1, 2, 3].map((i) => (
|
||||
<div key={i} className="h-6 w-6 bg-iron-gray rounded-full border-2 border-charcoal-outline"></div>
|
||||
))}
|
||||
</div>
|
||||
<div className="h-2 w-32 bg-white/5 rounded"></div>
|
||||
</div>
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user