website refactor

This commit is contained in:
2026-01-21 17:50:02 +01:00
parent 4b54c3603b
commit 02987f60c8
29 changed files with 1673 additions and 35 deletions

View File

@@ -7,6 +7,10 @@ import { useRouter } from 'next/navigation';
import { routes } from '@/lib/routing/RouteConfig';
import { Box } from '@/ui/Box';
import { Text } from '@/ui/Text';
import { Group } from '@/ui/Group';
import { Badge } from '@/ui/Badge';
import { Icon } from '@/ui/Icon';
import { Droplet, XCircle } from 'lucide-react';
interface StandingEntry {
position: number;
@@ -19,6 +23,9 @@ interface StandingEntry {
races: number;
avgFinish: number | null;
gap: string;
positionChange: number;
lastRacePoints: number;
droppedRaceIds: string[];
}
interface LeagueStandingsTableProps {
@@ -44,6 +51,7 @@ export function LeagueStandingsTable({ standings }: LeagueStandingsTableProps) {
key={entry.driverId || entry.driverName}
id={entry.driverId || ''}
rank={entry.position}
rankDelta={entry.positionChange}
name={entry.driverName}
avatarUrl="" // Not provided in StandingEntry
nationality="INT"