Files
0pt/components/sections/gallery-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

38 lines
1.9 KiB
TypeScript

"use client";
import { useReveal } from "@/hooks/use-reveal";
import { DataArtifact } from "@/components/data-artifact";
const TILES: { variant: "table" | "map" | "schema" | "chart" | "grid"; index: string; title: string; line: string }[] = [
{ variant: "table", index: "A", title: "Tabell", line: "Härkomst per cell." },
{ variant: "map", index: "B", title: "Täckning", line: "Per marknad, andel bekräftat." },
{ variant: "schema", index: "C", title: "Schema", line: "Levererad datamodell som ER." },
{ variant: "chart", index: "D", title: "Dashboard", line: "En röd serie, resten mono." },
{ variant: "grid", index: "E", title: "Export", line: "CSV · Parquet · JSON · API · NocoDB · Metabase · FiveCRM." },
];
export function GallerySection() {
const ref = useReveal<HTMLElement>();
return (
<section ref={ref} 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">— Visualiseringar</p>
<h2 className="reveal delay-1 mt-3 text-[clamp(1.8rem,3.5vw,3rem)] font-medium tracking-[-0.02em]">Se din data på ditt sätt.</h2>
<div className="mt-10 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
{TILES.map((t, i) => (
<div key={t.title} className={`reveal-scale delay-${i + 1} ${i === 0 ? "md:col-span-2" : ""}`}>
<DataArtifact variant={t.variant} />
<div className="mt-3 flex items-baseline gap-3">
<span className="font-mono text-[11px] text-muted-foreground">{t.index}</span>
<span className="text-sm font-medium">{t.title}</span>
<span className="text-sm text-muted-foreground">{t.line}</span>
</div>
</div>
))}
</div>
</div>
</section>
);
}