forked from Celo-HaiTi/celoht-dapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStatGrid.tsx
More file actions
19 lines (19 loc) · 724 Bytes
/
Copy pathStatGrid.tsx
File metadata and controls
19 lines (19 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
export function StatGrid({ stats }: { stats: { value: string; label: string }[] }) {
return (
<dl className="grid grid-cols-2 gap-4 sm:grid-cols-4">
{stats.map((stat) => (
<div
key={stat.label}
className="surface-panel rounded-[var(--celoht-radius-md)] border p-5 transition-[border-color,transform,box-shadow] duration-300 hover:-translate-y-0.5 hover:border-gold-300/30"
>
<dt className="text-xs uppercase tracking-[0.16em] text-parchment-100/48">
{stat.label}
</dt>
<dd className="mt-2 font-mono text-2xl font-semibold tabular-nums text-gold-300">
{stat.value}
</dd>
</div>
))}
</dl>
);
}