init app
This commit is contained in:
16
components/StatCard.tsx
Normal file
16
components/StatCard.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
export function StatCard({
|
||||
label,
|
||||
value,
|
||||
color = "text-fg",
|
||||
}: {
|
||||
label: string;
|
||||
value: number | string;
|
||||
color?: string;
|
||||
}) {
|
||||
return (
|
||||
<div className="bg-surface border-2 border-border rounded-2xl p-5 shadow-card">
|
||||
<div className={`font-mono text-3xl font-bold ${color}`}>{value}</div>
|
||||
<div className="text-muted text-sm mt-1">{label}</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user