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

55 lines
2.8 KiB
TypeScript

"use client";
import { useReveal } from "@/hooks/use-reveal";
const CHAIN = [
["01", "Officiella API:er & bulk", "GLEIF · Brreg · Companies House", "var(--prov-3)"],
["02", "Auktoriserad webb", "robots.txt + rate limits", "var(--prov-1)"],
["03", "Licensierad partnerdata", "avtalad åtkomst", "var(--prov-2)"],
["04", "Annars: ej tillgänglig", "vi gissar aldrig", "transparent"],
];
const PIPELINE = ["Källracing", "Extraktion & OCR", "Strukturering", "Berikning & fusion", "Kvalitetskontroll"];
export function TechnologySection() {
const ref = useReveal<HTMLElement>();
return (
<section ref={ref} id="motorn" className="dark grain-overlay relative border-b border-[#262626] bg-[#0a0a0a] text-[#fafafa]">
<span aria-hidden className="animate-float pointer-events-none absolute right-[10%] top-[14%] inline-block h-3 w-3" style={{ backgroundColor: "var(--accent-red)" }} />
<div className="relative mx-auto max-w-[80rem] px-6 py-24 lg:py-32">
<p className="reveal font-mono text-[11px] uppercase tracking-[0.14em] text-[#a3a3a3]">03 — Motorn</p>
<h2 className="reveal delay-1 mt-3 max-w-3xl text-[clamp(1.8rem,3.5vw,3rem)] font-medium tracking-[-0.02em]">
Laglig insamling. Spårbar varje steg.
</h2>
{/* sourcing chain */}
<div className="mt-12 grid grid-cols-1 gap-px bg-[#262626] sm:grid-cols-2 lg:grid-cols-4">
{CHAIN.map(([n, title, sub, color], i) => (
<div key={n} className={`reveal-right delay-${i + 1} bg-[#0a0a0a] p-5`}>
<div className="flex items-center justify-between">
<span className="font-mono text-[11px] text-[#a3a3a3]">{n}</span>
<span className="inline-block h-2.5 w-2.5" style={{ backgroundColor: color === "transparent" ? "transparent" : color, border: color === "transparent" ? "1px solid #525252" : "none" }} />
</div>
<p className="mt-3 text-base font-medium">{title}</p>
<p className="mt-1 font-mono text-[11px] text-[#a3a3a3]">{sub}</p>
</div>
))}
</div>
{/* pipeline */}
<div className="reveal delay-2 mt-10 flex flex-wrap items-center gap-x-2 gap-y-3">
{PIPELINE.map((s, i) => (
<div key={s} className="flex items-center gap-2">
<span className="border border-[#262626] px-3 py-2 font-mono text-[11px] uppercase tracking-[0.08em] text-[#fafafa]">{s}</span>
{i < PIPELINE.length - 1 ? <span className="text-[#525252]">→</span> : null}
</div>
))}
</div>
<p className="reveal delay-3 mt-5 font-mono text-[11px] uppercase tracking-[0.06em] text-[#a3a3a3]">
Kvalitetskontroller körs i pipelinen — inte i en sidoplattform.
</p>
</div>
</section>
);
}