feat: wrapup wow — animated counters, scroll-reveal, fun facts, component split, budget formatting
Some checks failed
CI / Check / Test (push) Failing after 6m25s

This commit is contained in:
2026-06-04 17:15:35 +02:00
parent ebf9a9f4a8
commit 4bd8dcbf05
8 changed files with 425 additions and 238 deletions

6
spa/src/lib/format.ts Normal file
View File

@@ -0,0 +1,6 @@
export function fmtUsd(n: number): string {
if (n >= 1_000_000_000) return `$${(n / 1_000_000_000).toFixed(n % 1_000_000_000 === 0 ? 0 : 1)}B`
if (n >= 1_000_000) return `$${Math.round(n / 1_000_000)}M`
if (n >= 1_000) return `$${Math.round(n / 1_000)}K`
return `$${n}`
}