feat: enhance player and statistic card components with improved layout and dynamic duration display
Some checks failed
Frontend CI / lint (push) Failing after 18s
Frontend CI / build (push) Has been skipped

This commit is contained in:
JSC
2025-08-16 12:24:56 +02:00
parent f6117ededd
commit ecb17e9f94
4 changed files with 22 additions and 8 deletions

View File

@@ -12,13 +12,13 @@ interface StatisticCardProps {
export function StatisticCard({ title, icon: Icon, value, description }: StatisticCardProps) {
return (
<Card>
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-0">
<CardTitle className="text-sm font-medium">{title}</CardTitle>
<Icon className="h-4 w-4 text-muted-foreground" />
</CardHeader>
<CardContent>
<div className="text-2xl font-bold">{value}</div>
<p className="text-xs text-muted-foreground">{description}</p>
<div className="text-2xl font-bold text-center">{value}</div>
<p className="text-xs text-muted-foreground text-center mt-1">{description}</p>
</CardContent>
</Card>
)