Files
0pt/components/sections/collection-section.tsx
T
adminandClaude Opus 4.8 f3b796a241 feat: transform all landing sections to 0pt (data-native, no photos)
DataArtifact primitive (table/map/schema/chart/grid); Filosofi, Katalog (#katalog), Motorn (#motorn, dark), Visualiseringsgalleri, Täckning (#tackning), Editorial, Bevis, Priser (#priser), Footer — all on mono tokens + useReveal scroll-reveal, provenance signature, single red. Removed all template photography/scroll-image machinery. next build green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 17:50:28 +02:00

44 lines
1.9 KiB
TypeScript

"use client";
import { useReveal } from "@/hooks/use-reveal";
import { MARKETS } from "@/lib/data";
const STATS = [
["4 980", "poster i exempelleverans"],
["20", "utelämnade — ej gissade"],
["3,2", "källor per bekräftat fält"],
];
export function CollectionSection() {
const ref = useReveal<HTMLElement>();
return (
<section ref={ref} id="tackning" className="border-b border-border bg-background">
<div className="mx-auto max-w-[80rem] px-6 py-24 lg:py-32">
<p className="reveal font-mono text-[11px] uppercase tracking-[0.14em] text-muted-foreground">04 — Täckning</p>
<h2 className="reveal delay-1 mt-3 text-[clamp(1.8rem,3.5vw,3rem)] font-medium tracking-[-0.02em]">Tjugo marknader. En modell.</h2>
<div className="reveal delay-2 mt-10 grid grid-cols-[repeat(auto-fill,minmax(104px,1fr))] gap-px bg-border">
{MARKETS.map((m) => (
<div key={m.code} className="bg-background p-3" style={{ opacity: m.live ? 1 : 0.55 }}>
<p className="font-mono text-sm font-semibold">{m.code}</p>
<p className="font-mono text-[10px] text-muted-foreground">{m.live ? `${m.coverage}%` : "kommande"}</p>
<div className="mt-2 h-1 w-full bg-secondary">
<div className="h-full" style={{ width: `${m.coverage}%`, backgroundColor: m.coverage >= 95 ? "var(--prov-3)" : m.coverage >= 85 ? "var(--prov-2)" : "var(--muted-foreground)" }} />
</div>
</div>
))}
</div>
<div className="reveal delay-3 mt-8 grid grid-cols-1 gap-px bg-border sm:grid-cols-3">
{STATS.map(([n, l]) => (
<div key={l} className="bg-background p-5">
<p className="text-3xl font-medium tracking-[-0.02em]">{n}</p>
<p className="mt-1 font-mono text-[10px] uppercase tracking-[0.08em] text-muted-foreground">{l}</p>
</div>
))}
</div>
</div>
</section>
);
}