website refactor

This commit is contained in:
2026-01-20 12:16:58 +01:00
parent 3556db494f
commit a0d8d47e49
8 changed files with 276 additions and 187 deletions

View File

@@ -0,0 +1,25 @@
'use client';
import { StatGrid } from '@/ui/StatGrid';
import { Users, Trophy, Activity } from 'lucide-react';
interface DriverStatsHeaderProps {
totalDrivers: string;
activeDrivers: string;
totalRaces: string;
}
export function DriverStatsHeader({ totalDrivers, activeDrivers, totalRaces }: DriverStatsHeaderProps) {
return (
<StatGrid
columns={{ base: 1, md: 3 }}
variant="card"
cardVariant="muted"
stats={[
{ label: 'Total Drivers', value: totalDrivers, icon: Users, intent: 'primary' },
{ label: 'Active Drivers', value: activeDrivers, icon: Activity, intent: 'success' },
{ label: 'Total Races', value: totalRaces, icon: Trophy, intent: 'warning' },
]}
/>
);
}