mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-07 13:38:15 -08:00
* wip * chore: update counts to allow unix timeframe * feat: add db functions for counting new items * wip: endpoint working * wip * wip: initial ui done * add header, adjust ui * add time listened toggle * fix layout, year param * param fixes
32 lines
743 B
TypeScript
32 lines
743 B
TypeScript
interface Props {
|
|
figure: string;
|
|
text: string;
|
|
}
|
|
|
|
export default function RewindStatText(props: Props) {
|
|
return (
|
|
<div className="flex items-baseline gap-1.5">
|
|
<div className="w-23 text-end shrink-0">
|
|
<span
|
|
className="
|
|
relative inline-block
|
|
text-2xl font-semibold
|
|
"
|
|
>
|
|
<span
|
|
className="
|
|
absolute inset-0
|
|
-translate-x-2 translate-y-8
|
|
bg-(--color-primary)
|
|
z-0
|
|
h-1
|
|
"
|
|
aria-hidden
|
|
/>
|
|
<span className="relative z-1">{props.figure}</span>
|
|
</span>
|
|
</div>
|
|
<span className="text-sm">{props.text}</span>
|
|
</div>
|
|
);
|
|
}
|