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>
48 lines
2.4 KiB
TypeScript
48 lines
2.4 KiB
TypeScript
"use client";
|
|
|
|
import { useReveal } from "@/hooks/use-reveal";
|
|
|
|
const PRINCIPLES = [
|
|
["01", "Härkomst per fält.", "Källa, färskhet, konfidens. Hela kedjan syns."],
|
|
["02", "Korroborering först.", "Oeniga källor blir osäkert fält."],
|
|
["03", "Hellre tomt än gissat.", "Obelagt levereras ej. Aldrig uppfunnet."],
|
|
];
|
|
|
|
export function PhilosophySection() {
|
|
const ref = useReveal<HTMLElement>();
|
|
return (
|
|
<section ref={ref} id="filosofi" className="border-b border-border bg-background">
|
|
<div className="mx-auto grid max-w-[80rem] grid-cols-1 gap-12 px-6 py-32 lg:grid-cols-[4fr_8fr] lg:py-40">
|
|
<div className="lg:sticky lg:top-24 lg:self-start">
|
|
<p className="reveal-left font-mono text-[11px] uppercase tracking-[0.14em] text-muted-foreground">01 — Filosofi</p>
|
|
<p className="reveal-left delay-1 mt-4 font-mono text-[11px] uppercase tracking-[0.08em] text-foreground">Ärlig data. Visad ärligt.</p>
|
|
</div>
|
|
<div>
|
|
<h2 className="reveal max-w-[20ch] text-[clamp(2.4rem,5.5vw,4.5rem)] font-medium leading-[0.98] tracking-[-0.03em]">
|
|
Andra säljer säkerhet de saknar.
|
|
<br />
|
|
<span className="text-muted-foreground">Vi visar källan.</span>
|
|
</h2>
|
|
<div className="mt-20 border-t border-border">
|
|
{PRINCIPLES.map(([n, title, body], i) => (
|
|
<div
|
|
key={n}
|
|
className={`reveal delay-${i + 1} group relative grid grid-cols-[3.5rem_1fr] items-baseline gap-8 border-b border-border py-8 transition-[padding] duration-300 ease-out hover:pl-2`}
|
|
>
|
|
<span className="absolute -left-2 top-0 h-px w-0 bg-foreground transition-all duration-500 ease-out group-hover:w-full group-hover:opacity-100" aria-hidden />
|
|
<span className="font-mono text-[clamp(1.5rem,2vw,2.25rem)] font-medium leading-none tracking-[-0.02em] text-muted-foreground/40 transition-colors duration-300 group-hover:text-foreground">
|
|
{n}
|
|
</span>
|
|
<div>
|
|
<p className="text-[clamp(1.25rem,2vw,1.75rem)] font-medium leading-tight tracking-[-0.02em]">{title}</p>
|
|
<p className="mt-2 max-w-[42ch] leading-relaxed text-muted-foreground">{body}</p>
|
|
</div>
|
|
</div>
|
|
))}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
);
|
|
}
|