Files
0pt/components/sections/gallery-section.tsx
T
adminandClaude Opus 4.8 86fc1574c5 feat(ui): visual upgrade — sharper, more confident, fewer words
16-file refinement (mono system intact): oversized tight headlines + giant faint mono indices as texture, single shared hairline grids over boxes, wider 8px vertical rhythm, restrained hairline-draw hover micro-interactions, red kept to <=1 per screen. Copy cut to terse, confident Swedish across landing + app screens. Logic/props/ids/contracts preserved; tsc clean, next build green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 18:19:09 +02:00

59 lines
2.8 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: "01", title: "Tabell", line: "Källa per cell." },
{ variant: "map", index: "02", title: "Täckning", line: "Andel bekräftat." },
{ variant: "schema", index: "03", title: "Schema", line: "Levererad modell." },
{ variant: "chart", index: "04", title: "Dashboard", line: "En serie." },
{ variant: "grid", index: "05", title: "Export", line: "Valfritt format." },
];
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-32 lg:py-40">
<header className="flex items-end justify-between gap-8 border-b border-border pb-8">
<div>
<p className="reveal font-mono text-[11px] uppercase tracking-[0.18em] text-muted-foreground">— Visualiseringar</p>
<h2 className="reveal delay-1 mt-4 text-[clamp(2.4rem,5.5vw,4.5rem)] font-medium leading-[0.95] tracking-[-0.03em]">
Se den.
</h2>
</div>
<p className="reveal-right delay-2 hidden max-w-[16rem] text-sm leading-relaxed text-muted-foreground md:block">
Tabell. Karta. Schema. Graf. Du väljer.
</p>
</header>
<div className="mt-16 grid grid-cols-1 gap-px border border-border bg-border md:grid-cols-2 lg:grid-cols-3">
{TILES.map((t, i) => (
<article
key={t.title}
className={`group reveal-scale delay-${i + 1} flex flex-col bg-background p-8 transition-opacity duration-300 hover:opacity-[0.92] ${i === 0 ? "md:col-span-2" : ""}`}
>
<div className="flex items-baseline justify-between">
<span className="font-mono text-[clamp(2rem,4vw,3.5rem)] font-medium leading-none tracking-[-0.04em] text-border transition-colors duration-300 group-hover:text-muted-foreground">
{t.index}
</span>
<span className="h-px w-12 origin-right scale-x-50 bg-border transition-transform duration-300 group-hover:scale-x-100" />
</div>
<div className="mt-8">
<DataArtifact variant={t.variant} />
</div>
<div className="mt-6 flex items-baseline justify-between border-t border-border pt-4">
<span className="text-base font-medium tracking-[-0.01em]">{t.title}</span>
<span className="font-mono text-[11px] uppercase tracking-[0.1em] text-muted-foreground">{t.line}</span>
</div>
</article>
))}
</div>
</div>
</section>
);
}