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>
This commit is contained in:
+139
-62
@@ -3,6 +3,7 @@
|
||||
import Link from "next/link";
|
||||
import { useEffect, useState } from "react";
|
||||
import { OrderStepper } from "@/components/order-stepper";
|
||||
import { useReveal } from "@/hooks/use-reveal";
|
||||
import { formatSEK, computeEstimate, type Estimate } from "@/lib/data";
|
||||
|
||||
const FALLBACK: Estimate = computeEstimate({
|
||||
@@ -16,15 +17,16 @@ const FALLBACK: Estimate = computeEstimate({
|
||||
});
|
||||
|
||||
const TRUST = [
|
||||
["Härkomst per fält", "Varje värde bär källa, färskhet och konfidens."],
|
||||
["DPA & GDPR-native", "Databehandlaravtal och dokumenterad laglig grund per fält."],
|
||||
["Din egen data: du pushar", "Read-only roll du själv skapar, tidsbegränsad, raderad efteråt."],
|
||||
["Revisionslogg", "Vad vi rörde, när och varför — fullständigt loggat."],
|
||||
["Härkomst per fält", "Källa, färskhet, konfidens."],
|
||||
["GDPR-native", "DPA och laglig grund per fält."],
|
||||
["Du pushar din data", "Read-only roll. Tidsbegränsad. Raderad efteråt."],
|
||||
["Revisionslogg", "Vad. När. Varför."],
|
||||
];
|
||||
|
||||
export default function DepositPage() {
|
||||
const [est, setEst] = useState<Estimate>(FALLBACK);
|
||||
const [recap, setRecap] = useState<Record<string, string>>({});
|
||||
const reveal = useReveal<HTMLDivElement>();
|
||||
|
||||
useEffect(() => {
|
||||
try {
|
||||
@@ -45,83 +47,158 @@ export default function DepositPage() {
|
||||
return (
|
||||
<main className="min-h-screen bg-background text-foreground">
|
||||
<OrderStepper active={2} />
|
||||
<div className="mx-auto max-w-[80rem] px-6 py-10">
|
||||
<p className="font-mono text-[11px] uppercase tracking-[0.14em] text-muted-foreground">Steg 2 — Förskott</p>
|
||||
<h1 className="mt-3 text-4xl font-medium tracking-[-0.025em] md:text-5xl">Betala 50 %. Resten i depå.</h1>
|
||||
|
||||
<div className="mt-8 grid grid-cols-1 gap-6 lg:grid-cols-[1fr_360px]">
|
||||
<div className="flex flex-col gap-4">
|
||||
<div ref={reveal} className="mx-auto max-w-[80rem] px-6 py-16 md:py-24">
|
||||
{/* header */}
|
||||
<div className="reveal flex items-start justify-between gap-6 border-b border-border pb-8">
|
||||
<div>
|
||||
<p className="font-mono text-[11px] uppercase tracking-[0.16em] text-muted-foreground">
|
||||
Steg 2 — Förskott
|
||||
</p>
|
||||
<h1 className="mt-4 text-5xl font-medium leading-[0.95] tracking-[-0.03em] md:text-7xl">
|
||||
Halva nu.
|
||||
<br />
|
||||
Halva i depå.
|
||||
</h1>
|
||||
</div>
|
||||
<span
|
||||
aria-hidden
|
||||
className="select-none font-mono text-7xl font-medium leading-none tracking-[-0.04em] text-border md:text-8xl"
|
||||
>
|
||||
02
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div className="mt-16 grid grid-cols-1 gap-px bg-border lg:grid-cols-[1fr_360px]">
|
||||
<div className="flex flex-col gap-px bg-border">
|
||||
{/* split */}
|
||||
<div className="border border-border">
|
||||
<div className="border-b border-border px-4 py-2 font-mono text-[11px] uppercase tracking-[0.12em] text-muted-foreground">
|
||||
Betalningsupplägg
|
||||
<section className="reveal bg-background">
|
||||
<div className="flex items-center justify-between border-b border-border px-1 pb-3">
|
||||
<p className="font-mono text-[11px] uppercase tracking-[0.14em] text-muted-foreground">
|
||||
Betalningsupplägg
|
||||
</p>
|
||||
<p className="font-mono text-[11px] uppercase tracking-[0.14em] text-muted-foreground">
|
||||
50 / 50
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2">
|
||||
<div className="border-b border-border p-6 sm:border-b-0 sm:border-r" style={{ backgroundColor: "rgba(228,0,20,0.06)" }}>
|
||||
<p className="font-mono text-[10.5px] uppercase tracking-[0.1em]" style={{ color: "var(--accent-red)" }}>
|
||||
Nu — startar jobbet
|
||||
<div
|
||||
className="group relative border-b border-border p-8 transition-opacity sm:border-b-0 sm:border-r"
|
||||
style={{ backgroundColor: "rgba(228,0,20,0.05)" }}
|
||||
>
|
||||
<p
|
||||
className="font-mono text-[10.5px] uppercase tracking-[0.12em]"
|
||||
style={{ color: "var(--accent-red)" }}
|
||||
>
|
||||
Nu
|
||||
</p>
|
||||
<p
|
||||
className="mt-4 text-5xl font-medium tabular-nums tracking-[-0.02em]"
|
||||
style={{ color: "var(--accent-red)" }}
|
||||
>
|
||||
{formatSEK(est.deposit)}
|
||||
</p>
|
||||
<p className="mt-3 font-mono text-[11px] text-muted-foreground">
|
||||
Startar jobbet. Idag.
|
||||
</p>
|
||||
<p className="mt-2 text-3xl font-medium" style={{ color: "var(--accent-red)" }}>{formatSEK(est.deposit)}</p>
|
||||
<p className="mt-1 font-mono text-[11px] text-muted-foreground">50 % · debiteras idag</p>
|
||||
</div>
|
||||
<div className="p-6">
|
||||
<p className="font-mono text-[10.5px] uppercase tracking-[0.1em] text-muted-foreground">Vid godkänt</p>
|
||||
<p className="mt-2 text-3xl font-medium">{formatSEK(est.remainder)}</p>
|
||||
<p className="mt-1 font-mono text-[11px] text-muted-foreground">50 % · frigörs ur depå</p>
|
||||
<div className="group relative p-8 transition-opacity">
|
||||
<p className="font-mono text-[10.5px] uppercase tracking-[0.12em] text-muted-foreground">
|
||||
Vid godkänt
|
||||
</p>
|
||||
<p className="mt-4 text-5xl font-medium tabular-nums tracking-[-0.02em]">
|
||||
{formatSEK(est.remainder)}
|
||||
</p>
|
||||
<p className="mt-3 font-mono text-[11px] text-muted-foreground">
|
||||
Frigörs ur depå.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className="border-t border-border px-6 py-3 text-sm text-muted-foreground">
|
||||
Du debiteras aldrig andra halvan förrän du granskat och tryckt Godkänn.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p className="border-t border-border px-1 pt-3 text-sm text-muted-foreground">
|
||||
Andra halvan rörs först när du tryckt Godkänn.
|
||||
</p>
|
||||
</section>
|
||||
|
||||
{/* trust */}
|
||||
<div className="border border-border">
|
||||
<div className="border-b border-border px-4 py-2 font-mono text-[11px] uppercase tracking-[0.12em] text-muted-foreground">
|
||||
Så hanterar vi data & åtkomst
|
||||
</div>
|
||||
<div className="divide-y divide-border">
|
||||
{TRUST.map(([t, s]) => (
|
||||
<div key={t} className="flex items-start gap-3 px-4 py-3">
|
||||
<span className="mt-0.5 inline-block h-4 w-4 shrink-0 text-center text-xs leading-4" style={{ color: "var(--prov-3)" }}>✓</span>
|
||||
<span>
|
||||
<span className="text-sm font-medium">{t}</span>
|
||||
<span className="ml-2 text-xs text-muted-foreground">{s}</span>
|
||||
<section className="reveal delay-1 bg-background">
|
||||
<p className="border-b border-border px-1 pb-3 font-mono text-[11px] uppercase tracking-[0.14em] text-muted-foreground">
|
||||
Data & åtkomst
|
||||
</p>
|
||||
<dl>
|
||||
{TRUST.map(([t, s], i) => (
|
||||
<div
|
||||
key={t}
|
||||
className="group flex items-baseline gap-4 border-b border-border py-4 transition-colors last:border-b-0"
|
||||
>
|
||||
<span
|
||||
aria-hidden
|
||||
className="w-6 shrink-0 font-mono text-[11px] tabular-nums text-muted-foreground"
|
||||
>
|
||||
{String(i + 1).padStart(2, "0")}
|
||||
</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* summary */}
|
||||
<aside className="lg:sticky lg:top-6 lg:self-start">
|
||||
<div className="border border-border">
|
||||
<div className="border-b border-border px-4 py-2 font-mono text-[11px] uppercase tracking-[0.12em] text-muted-foreground">
|
||||
Din beställning
|
||||
</div>
|
||||
<dl className="divide-y divide-border">
|
||||
{Object.entries(recap).map(([k, v]) => (
|
||||
<div key={k} className="flex items-center justify-between px-4 py-2.5">
|
||||
<dt className="font-mono text-[10.5px] uppercase tracking-[0.08em] text-muted-foreground">{k}</dt>
|
||||
<dd className="max-w-[60%] truncate text-right font-mono text-xs">{v || "—"}</dd>
|
||||
<dt className="w-44 shrink-0 text-sm font-medium tracking-[-0.01em]">{t}</dt>
|
||||
<dd className="text-sm text-muted-foreground">{s}</dd>
|
||||
<span
|
||||
aria-hidden
|
||||
className="ml-auto h-2 w-2 shrink-0 self-center"
|
||||
style={{ backgroundColor: "var(--prov-3)" }}
|
||||
/>
|
||||
</div>
|
||||
))}
|
||||
</dl>
|
||||
<div className="m-4 border p-4" style={{ borderColor: "var(--accent-red)" }}>
|
||||
<p className="font-mono text-[10.5px] uppercase tracking-[0.1em]" style={{ color: "var(--accent-red)" }}>Att betala nu</p>
|
||||
<p className="mt-1 font-mono text-2xl font-medium">{formatSEK(est.deposit)}</p>
|
||||
<p className="mt-1 text-xs text-muted-foreground">exkl. moms · Stripe</p>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
{/* summary */}
|
||||
<aside className="bg-background lg:sticky lg:top-6 lg:self-start">
|
||||
<div className="reveal reveal-right border border-border">
|
||||
<p className="border-b border-border px-4 py-3 font-mono text-[11px] uppercase tracking-[0.14em] text-muted-foreground">
|
||||
Din beställning
|
||||
</p>
|
||||
<dl className="divide-y divide-border">
|
||||
{Object.entries(recap).map(([k, v]) => (
|
||||
<div key={k} className="flex items-center justify-between px-4 py-3">
|
||||
<dt className="font-mono text-[10.5px] uppercase tracking-[0.1em] text-muted-foreground">
|
||||
{k}
|
||||
</dt>
|
||||
<dd className="max-w-[60%] truncate text-right font-mono text-xs tracking-[-0.01em]">
|
||||
{v || "—"}
|
||||
</dd>
|
||||
</div>
|
||||
))}
|
||||
</dl>
|
||||
|
||||
<div className="border-t border-border p-4">
|
||||
<div className="flex items-baseline justify-between">
|
||||
<p
|
||||
className="font-mono text-[10.5px] uppercase tracking-[0.12em]"
|
||||
style={{ color: "var(--accent-red)" }}
|
||||
>
|
||||
Att betala nu
|
||||
</p>
|
||||
<p className="font-mono text-[10.5px] uppercase tracking-[0.1em] text-muted-foreground">
|
||||
exkl. moms · Stripe
|
||||
</p>
|
||||
</div>
|
||||
<p className="mt-2 font-mono text-3xl font-medium tabular-nums tracking-[-0.02em]">
|
||||
{formatSEK(est.deposit)}
|
||||
</p>
|
||||
</div>
|
||||
<div className="p-4 pt-0">
|
||||
|
||||
<div className="border-t border-border p-4">
|
||||
<Link
|
||||
href="/order/SX-4471"
|
||||
className="block w-full bg-foreground py-3.5 text-center font-mono text-[12px] uppercase tracking-[0.1em] text-background transition-colors hover:bg-[var(--accent-red)]"
|
||||
className="block w-full bg-foreground py-4 text-center font-mono text-[12px] uppercase tracking-[0.12em] text-background transition-colors hover:bg-[var(--accent-red)]"
|
||||
>
|
||||
Betala & starta produktion →
|
||||
Betala. Starta. →
|
||||
</Link>
|
||||
<Link href="/bestall" className="mt-3 block text-center font-mono text-[11px] uppercase tracking-[0.08em] text-muted-foreground underline-offset-4 hover:underline">
|
||||
← Tillbaka till konfiguration
|
||||
<Link
|
||||
href="/bestall"
|
||||
className="mt-4 block text-center font-mono text-[11px] uppercase tracking-[0.1em] text-muted-foreground underline-offset-4 transition-colors hover:text-foreground hover:underline"
|
||||
>
|
||||
← Tillbaka
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+57
-39
@@ -78,10 +78,14 @@ export default function ConfiguratorPage() {
|
||||
</button>
|
||||
);
|
||||
|
||||
const Block = ({ label, children }: { label: string; children: React.ReactNode }) => (
|
||||
<div className="border border-border">
|
||||
<div className="border-b border-border px-4 py-2 font-mono text-[11px] uppercase tracking-[0.12em] text-muted-foreground">
|
||||
{label}
|
||||
const Block = ({ index, label, children }: { index: string; label: string; children: React.ReactNode }) => (
|
||||
<div className="group border border-border transition-colors hover:border-foreground">
|
||||
<div className="flex items-center gap-3 border-b border-border px-4 py-2.5">
|
||||
<span className="font-mono text-[11px] tabular-nums text-muted-foreground transition-colors group-hover:text-foreground">
|
||||
{index}
|
||||
</span>
|
||||
<span className="h-3 w-px bg-border" />
|
||||
<span className="font-mono text-[11px] uppercase tracking-[0.12em] text-foreground">{label}</span>
|
||||
</div>
|
||||
<div className="p-4">{children}</div>
|
||||
</div>
|
||||
@@ -91,18 +95,30 @@ export default function ConfiguratorPage() {
|
||||
<main className="min-h-screen bg-background text-foreground">
|
||||
<OrderStepper active={1} />
|
||||
|
||||
<div className="mx-auto max-w-[80rem] px-6 py-10">
|
||||
<p className="font-mono text-[11px] uppercase tracking-[0.14em] text-muted-foreground">
|
||||
Steg 1 — Konfigurera
|
||||
</p>
|
||||
<h1 className="mt-3 text-4xl font-medium tracking-[-0.025em] md:text-5xl">
|
||||
Sätt ihop ditt datajobb.
|
||||
</h1>
|
||||
<div className="mx-auto max-w-[80rem] px-6 py-16">
|
||||
{/* Editorial masthead — oversized index as graphic texture */}
|
||||
<div className="reveal relative border-b border-border pb-10">
|
||||
<span
|
||||
aria-hidden
|
||||
className="pointer-events-none absolute -top-6 right-0 select-none font-mono text-[7rem] leading-none tracking-[-0.04em] text-muted-foreground/10 md:text-[10rem]"
|
||||
>
|
||||
01
|
||||
</span>
|
||||
<p className="font-mono text-[11px] uppercase tracking-[0.18em] text-muted-foreground">
|
||||
Steg 01 / Konfigurera
|
||||
</p>
|
||||
<h1 className="mt-4 max-w-[14ch] text-5xl font-medium leading-[0.95] tracking-[-0.035em] md:text-7xl">
|
||||
Bygg jobbet.
|
||||
</h1>
|
||||
<p className="mt-5 max-w-[34ch] font-mono text-[12px] uppercase tracking-[0.06em] text-muted-foreground">
|
||||
Sju val. Ett pris. Inget gissat.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="mt-8 grid grid-cols-1 gap-6 lg:grid-cols-[1fr_360px]">
|
||||
<div className="mt-12 grid grid-cols-1 gap-6 lg:grid-cols-[1fr_360px]">
|
||||
{/* LEFT — builder */}
|
||||
<div className="flex flex-col gap-4">
|
||||
<Block label="Marknader">
|
||||
<div className="reveal-left flex flex-col gap-4">
|
||||
<Block index="01" label="Marknader">
|
||||
<div className="flex flex-wrap gap-2">
|
||||
{MARKETS.map((m) => (
|
||||
<Chip
|
||||
@@ -117,11 +133,11 @@ export default function ConfiguratorPage() {
|
||||
))}
|
||||
</div>
|
||||
<p className="mt-3 font-mono text-[10.5px] uppercase tracking-[0.08em] text-muted-foreground">
|
||||
Nordiska marknader är live. Övriga markeras "kommande".
|
||||
Norden live. Övriga kommer.
|
||||
</p>
|
||||
</Block>
|
||||
|
||||
<Block label="Typ av poster">
|
||||
<Block index="02" label="Typ av poster">
|
||||
<div className="flex gap-2">
|
||||
{ENTITY_TYPES.map((e) => (
|
||||
<Chip key={e.id} active={type === e.id} onClick={() => setType(e.id)}>
|
||||
@@ -131,7 +147,7 @@ export default function ConfiguratorPage() {
|
||||
</div>
|
||||
</Block>
|
||||
|
||||
<Block label="Fält att inkludera">
|
||||
<Block index="03" label="Fält att inkludera">
|
||||
<div className="flex flex-col">
|
||||
{FIELDS.map((f, i) => {
|
||||
const on = f.locked || fieldIds.includes(f.id);
|
||||
@@ -172,7 +188,7 @@ export default function ConfiguratorPage() {
|
||||
</div>
|
||||
</Block>
|
||||
|
||||
<Block label="Berikning & matchning">
|
||||
<Block index="04" label="Berikning & matchning">
|
||||
<div className="flex flex-wrap gap-2">
|
||||
{ENRICHMENTS.map((e) => (
|
||||
<Chip
|
||||
@@ -187,7 +203,7 @@ export default function ConfiguratorPage() {
|
||||
</Block>
|
||||
|
||||
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2">
|
||||
<Block label="Volym (antal poster)">
|
||||
<Block index="05" label="Volym">
|
||||
<input
|
||||
type="number"
|
||||
min={100}
|
||||
@@ -205,7 +221,7 @@ export default function ConfiguratorPage() {
|
||||
</div>
|
||||
</Block>
|
||||
|
||||
<Block label="Konfidensmål">
|
||||
<Block index="06" label="Konfidensmål">
|
||||
<div className="flex items-baseline justify-between">
|
||||
<span className="font-mono text-2xl" style={{ color: confidenceColor(confidence) }}>
|
||||
{confidence}%
|
||||
@@ -232,7 +248,7 @@ export default function ConfiguratorPage() {
|
||||
</Block>
|
||||
</div>
|
||||
|
||||
<Block label="Leveransformat">
|
||||
<Block index="07" label="Leveransformat">
|
||||
<div className="flex flex-wrap gap-2">
|
||||
{DELIVERY_FORMATS.map((f) => (
|
||||
<Chip key={f} active={formats.includes(f)} onClick={() => toggle(formats, f, setFormats)}>
|
||||
@@ -244,10 +260,12 @@ export default function ConfiguratorPage() {
|
||||
</div>
|
||||
|
||||
{/* RIGHT — sticky summary */}
|
||||
<aside className="lg:sticky lg:top-6 lg:self-start">
|
||||
<aside className="reveal-right lg:sticky lg:top-6 lg:self-start">
|
||||
<div className="border border-border">
|
||||
<div className="border-b border-border px-4 py-2 font-mono text-[11px] uppercase tracking-[0.12em] text-muted-foreground">
|
||||
Sammanfattning
|
||||
<div className="flex items-center gap-3 border-b border-border px-4 py-2.5">
|
||||
<span className="font-mono text-[11px] tabular-nums text-muted-foreground">∑</span>
|
||||
<span className="h-3 w-px bg-border" />
|
||||
<span className="font-mono text-[11px] uppercase tracking-[0.12em] text-foreground">Order</span>
|
||||
</div>
|
||||
<dl className="divide-y divide-border">
|
||||
{[
|
||||
@@ -257,8 +275,8 @@ export default function ConfiguratorPage() {
|
||||
["Berikning", String(enrichmentIds.length)],
|
||||
["Volym", new Intl.NumberFormat("sv-SE").format(volume)],
|
||||
["Frekvens", frequency],
|
||||
["Leveranstid", `≈ ${est.timelineDays} dgr`],
|
||||
["Est. konfidens", `${est.estConfidence}%`],
|
||||
["Leverans", `≈ ${est.timelineDays} dgr`],
|
||||
["Konfidens", `${est.estConfidence}%`],
|
||||
].map(([k, v]) => (
|
||||
<div key={k} className="flex items-center justify-between px-4 py-2.5">
|
||||
<dt className="font-mono text-[10.5px] uppercase tracking-[0.08em] text-muted-foreground">{k}</dt>
|
||||
@@ -267,24 +285,24 @@ export default function ConfiguratorPage() {
|
||||
))}
|
||||
</dl>
|
||||
|
||||
{/* price */}
|
||||
{/* price — oversized numeral */}
|
||||
<div className="border-t border-border p-4">
|
||||
<div className="flex items-baseline justify-between">
|
||||
<span className="font-mono text-[10.5px] uppercase tracking-[0.08em] text-muted-foreground">
|
||||
Totalt arvode{est.recurring ? " /mån" : ""}
|
||||
</span>
|
||||
<span className="text-[34px] font-medium tracking-[-0.02em]">{formatSEK(est.price)}</span>
|
||||
</div>
|
||||
<p className="font-mono text-[10.5px] uppercase tracking-[0.08em] text-muted-foreground">
|
||||
Arvode{est.recurring ? " /mån" : ""}
|
||||
</p>
|
||||
<p className="mt-1 text-[40px] font-medium leading-none tracking-[-0.03em] tabular-nums">
|
||||
{formatSEK(est.price)}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* deposit — the only red on this screen */}
|
||||
<div className="m-4 mt-0 border p-4" style={{ borderColor: "var(--accent-red)" }}>
|
||||
<p className="font-mono text-[10.5px] uppercase tracking-[0.1em]" style={{ color: "var(--accent-red)" }}>
|
||||
Förskott 50 % för att starta
|
||||
Förskott · 50 %
|
||||
</p>
|
||||
<p className="mt-1 font-mono text-2xl font-medium">{formatSEK(est.deposit)}</p>
|
||||
<p className="mt-1 text-xs text-muted-foreground">
|
||||
Resterande {formatSEK(est.remainder)} hålls i depå och frigörs vid godkänd leverans.
|
||||
<p className="mt-1 font-mono text-2xl font-medium tabular-nums">{formatSEK(est.deposit)}</p>
|
||||
<p className="mt-2 text-xs text-muted-foreground">
|
||||
Resten i depå. Frigörs vid godkänd leverans.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -293,12 +311,12 @@ export default function ConfiguratorPage() {
|
||||
href="/bestall/forskott"
|
||||
className="block w-full bg-foreground py-3.5 text-center font-mono text-[12px] uppercase tracking-[0.1em] text-background transition-colors hover:bg-[var(--accent-red)]"
|
||||
>
|
||||
Gå till förskott →
|
||||
Betala förskott →
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
<p className="mt-3 text-center font-mono text-[10px] uppercase tracking-[0.08em] text-muted-foreground">
|
||||
Härkomst per fält · GDPR-native · ingen uppgift gissad
|
||||
Källa per fält · GDPR-native · inget gissat
|
||||
</p>
|
||||
</aside>
|
||||
</div>
|
||||
|
||||
+114
-52
@@ -4,6 +4,7 @@ import Link from "next/link";
|
||||
import { useParams } from "next/navigation";
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
import { OrderStepper } from "@/components/order-stepper";
|
||||
import { useReveal } from "@/hooks/use-reveal";
|
||||
|
||||
const STAGES = [
|
||||
{ key: "source", title: "Källracing", meta: "GLEIF · Brreg · CVR · PRH" },
|
||||
@@ -25,6 +26,7 @@ function prefersReduced() {
|
||||
|
||||
export default function ProductionPage() {
|
||||
const { id } = useParams<{ id: string }>();
|
||||
const reveal = useReveal<HTMLDivElement>();
|
||||
const [running, setRunning] = useState(false);
|
||||
const [done, setDone] = useState(false);
|
||||
const [progress, setProgress] = useState<number[]>([0, 0, 0, 0, 0]);
|
||||
@@ -40,7 +42,7 @@ export default function ProductionPage() {
|
||||
setConf(94);
|
||||
setDone(true);
|
||||
setRunning(false);
|
||||
setFeed((f) => [{ t: stamp(), msg: "Leverans klar · konfidens 94 % · 4 980 poster", kind: "ok" }, ...f]);
|
||||
setFeed((f) => [{ t: stamp(), msg: "Levererad. 94 % konfidens. 4 980 poster.", kind: "ok" }, ...f]);
|
||||
};
|
||||
|
||||
const stamp = () => {
|
||||
@@ -55,7 +57,7 @@ export default function ProductionPage() {
|
||||
return;
|
||||
}
|
||||
setRunning(true);
|
||||
setFeed([{ t: "00:00", msg: `Order ${id} startad · depå mottagen`, kind: "run" }]);
|
||||
setFeed([{ t: "00:00", msg: `Order ${id}. Depå mottagen.`, kind: "run" }]);
|
||||
timer.current = setInterval(() => {
|
||||
tick.current += 1;
|
||||
setProgress((prev) => {
|
||||
@@ -64,7 +66,7 @@ export default function ProductionPage() {
|
||||
if (i === -1) return prev;
|
||||
next[i] = Math.min(100, next[i] + 8 + Math.random() * 10);
|
||||
if (next[i] >= 100 && i < STAGES.length) {
|
||||
setFeed((f) => [{ t: stamp(), msg: `${STAGES[i].title} klar`, kind: "ok" }, ...f].slice(0, 12));
|
||||
setFeed((f) => [{ t: stamp(), msg: `${STAGES[i].title}. Klar.`, kind: "ok" }, ...f].slice(0, 12));
|
||||
}
|
||||
return next;
|
||||
});
|
||||
@@ -81,97 +83,154 @@ export default function ProductionPage() {
|
||||
useEffect(() => () => { if (timer.current) clearInterval(timer.current); }, []);
|
||||
|
||||
const overall = Math.round(progress.reduce((a, b) => a + b, 0) / STAGES.length);
|
||||
const status = done ? "Levererad" : running ? `${overall} %` : "Väntar";
|
||||
|
||||
return (
|
||||
<main className="min-h-screen bg-background text-foreground">
|
||||
<OrderStepper active={3} />
|
||||
<div className="mx-auto max-w-[80rem] px-6 py-10">
|
||||
<p className="font-mono text-[11px] uppercase tracking-[0.14em] text-muted-foreground">Steg 3 — Produktion</p>
|
||||
<h1 className="mt-3 text-4xl font-medium tracking-[-0.025em] md:text-5xl">Följ jobbet — i realtid.</h1>
|
||||
|
||||
{/* control row */}
|
||||
<div className="mt-6 flex flex-wrap items-center gap-3">
|
||||
<div ref={reveal} className="mx-auto max-w-[80rem] px-6">
|
||||
{/* masthead — oversized numeral as graphic texture */}
|
||||
<header className="relative border-b border-border py-16 md:py-20">
|
||||
<span
|
||||
aria-hidden
|
||||
className="pointer-events-none absolute -top-6 right-0 select-none font-mono text-[clamp(7rem,18vw,15rem)] font-medium leading-none tracking-[-0.04em] text-foreground/[0.04]"
|
||||
>
|
||||
03
|
||||
</span>
|
||||
<p className="reveal font-mono text-[11px] uppercase tracking-[0.18em] text-muted-foreground">
|
||||
Steg 03 — Produktion
|
||||
</p>
|
||||
<h1 className="reveal delay-1 mt-5 max-w-[18ch] text-[clamp(2.6rem,7vw,5.5rem)] font-medium leading-[0.95] tracking-[-0.035em]">
|
||||
Se det hända.
|
||||
</h1>
|
||||
<p className="reveal delay-2 mt-5 font-mono text-sm text-muted-foreground">
|
||||
Live. Källa för källa.
|
||||
</p>
|
||||
</header>
|
||||
|
||||
{/* control row — single shared baseline */}
|
||||
<div className="reveal delay-2 flex flex-wrap items-stretch gap-px border-b border-border bg-border">
|
||||
<button
|
||||
type="button"
|
||||
onClick={start}
|
||||
disabled={running || done}
|
||||
className="bg-foreground px-5 py-3 font-mono text-[12px] uppercase tracking-[0.1em] text-background transition-colors hover:bg-[var(--accent-red)] disabled:opacity-40"
|
||||
className="group flex items-center gap-3 bg-background px-6 py-5 font-mono text-[12px] uppercase tracking-[0.12em] transition-colors hover:bg-foreground hover:text-background disabled:opacity-40 disabled:hover:bg-background disabled:hover:text-foreground"
|
||||
>
|
||||
{done ? "✓ Klart" : running ? "Kör…" : "▸ Starta simulering"}
|
||||
<span className="text-[var(--accent-red)] transition-colors group-hover:text-background group-disabled:text-foreground">
|
||||
{done ? "✓" : running ? "●" : "▸"}
|
||||
</span>
|
||||
{done ? "Klar" : running ? "Kör" : "Starta"}
|
||||
</button>
|
||||
<span className="border border-border px-3 py-2 font-mono text-[11px] uppercase tracking-[0.08em] text-muted-foreground">
|
||||
Order {id} · {done ? "klar" : running ? `${overall}%` : "väntar"}
|
||||
<span className="flex flex-1 items-center bg-background px-6 py-5 font-mono text-[11px] uppercase tracking-[0.1em] text-muted-foreground">
|
||||
Order {id}
|
||||
</span>
|
||||
<span className="border border-border px-3 py-2 font-mono text-[11px] uppercase tracking-[0.08em] text-muted-foreground">
|
||||
ETA ≈ 4 dgr (simulerad)
|
||||
<span className="flex items-center gap-3 bg-background px-6 py-5 font-mono text-[11px] uppercase tracking-[0.1em]">
|
||||
<span className="text-muted-foreground">Status</span>
|
||||
<span className="tabular-nums text-foreground">{status}</span>
|
||||
</span>
|
||||
<span className="flex items-center gap-3 bg-background px-6 py-5 font-mono text-[11px] uppercase tracking-[0.1em]">
|
||||
<span className="text-muted-foreground">ETA</span>
|
||||
<span className="tabular-nums text-foreground">≈ 4 dgr</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div className="mt-8 grid grid-cols-1 gap-6 lg:grid-cols-[1fr_320px]">
|
||||
{/* stages */}
|
||||
<div className="flex flex-col gap-3">
|
||||
<div className="grid grid-cols-1 lg:grid-cols-[1fr_340px]">
|
||||
{/* stages — numbered ledger, hairline-separated */}
|
||||
<div className="reveal-left delay-1 border-border lg:border-r">
|
||||
{STAGES.map((s, i) => {
|
||||
const p = Math.round(progress[i]);
|
||||
const isDone = p >= 100;
|
||||
const isRun = !isDone && (i === 0 || progress[i - 1] >= 100) && running;
|
||||
const color = isDone ? "var(--prov-3)" : isRun ? "var(--accent-red)" : "var(--border)";
|
||||
const accent = isDone ? "var(--prov-3)" : isRun ? "var(--accent-red)" : "var(--muted-foreground)";
|
||||
return (
|
||||
<div key={s.key} className="border p-4" style={{ borderColor: color }}>
|
||||
<div className="flex items-center justify-between">
|
||||
<span className="text-sm font-medium">{s.title}</span>
|
||||
<span className="font-mono text-xs text-muted-foreground">{p}%</span>
|
||||
<div
|
||||
key={s.key}
|
||||
className="group relative border-b border-border py-7 pl-6 pr-6 transition-colors hover:bg-secondary/40"
|
||||
>
|
||||
{/* state marker rail */}
|
||||
<span
|
||||
aria-hidden
|
||||
className="absolute left-0 top-0 h-full w-px transition-all"
|
||||
style={{ backgroundColor: isDone || isRun ? accent : "transparent" }}
|
||||
/>
|
||||
<div className="flex items-baseline justify-between gap-4">
|
||||
<div className="flex items-baseline gap-4">
|
||||
<span className="font-mono text-[11px] tabular-nums text-muted-foreground">
|
||||
{String(i + 1).padStart(2, "0")}
|
||||
</span>
|
||||
<span className="text-base font-medium tracking-[-0.01em]">{s.title}</span>
|
||||
</div>
|
||||
<span className="font-mono text-sm tabular-nums" style={{ color: accent }}>
|
||||
{p}%
|
||||
</span>
|
||||
</div>
|
||||
<div className="mt-2 h-1.5 w-full bg-secondary">
|
||||
<div className="h-full transition-all" style={{ width: `${p}%`, backgroundColor: isDone ? "var(--prov-3)" : "var(--foreground)" }} />
|
||||
<div className="mt-4 h-px w-full bg-border">
|
||||
<div
|
||||
className="h-px transition-all duration-300"
|
||||
style={{ width: `${p}%`, backgroundColor: isDone ? "var(--prov-3)" : "var(--foreground)" }}
|
||||
/>
|
||||
</div>
|
||||
<p className="mt-2 font-mono text-[10.5px] uppercase tracking-[0.06em] text-muted-foreground">{s.meta}</p>
|
||||
<p className="mt-3 pl-10 font-mono text-[10.5px] uppercase tracking-[0.08em] text-muted-foreground">
|
||||
{s.meta}
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
|
||||
{/* right column */}
|
||||
<div className="flex flex-col gap-4">
|
||||
<div className="border border-border p-5 text-center">
|
||||
{/* right column — gauge, markets, feed */}
|
||||
<aside className="reveal-right delay-2 flex flex-col">
|
||||
{/* confidence gauge */}
|
||||
<div className="border-b border-border px-6 py-10 text-center">
|
||||
<ConfidenceRing value={conf} />
|
||||
<p className="mt-2 font-mono text-[10.5px] uppercase tracking-[0.1em] text-muted-foreground">Levererbart</p>
|
||||
<p className="mt-5 font-mono text-[10.5px] uppercase tracking-[0.14em] text-muted-foreground">
|
||||
Konfidens — levererbart
|
||||
</p>
|
||||
</div>
|
||||
<div className="border border-border p-4">
|
||||
<p className="font-mono text-[10.5px] uppercase tracking-[0.1em] text-muted-foreground">Per marknad</p>
|
||||
<div className="mt-3 flex flex-col gap-2">
|
||||
|
||||
{/* per market */}
|
||||
<div className="border-b border-border px-6 py-7">
|
||||
<p className="font-mono text-[10.5px] uppercase tracking-[0.14em] text-muted-foreground">Per marknad</p>
|
||||
<div className="mt-5 flex flex-col gap-3.5">
|
||||
{MARKET_KEYS.map((m, i) => (
|
||||
<div key={m.code} className="flex items-center gap-2">
|
||||
<span className="w-7 font-mono text-xs">{m.code}</span>
|
||||
<div className="h-1.5 flex-1 bg-secondary">
|
||||
<div className="h-full bg-foreground transition-all" style={{ width: `${Math.round(markets[i])}%` }} />
|
||||
<div key={m.code} className="flex items-center gap-3">
|
||||
<span className="w-7 font-mono text-xs tabular-nums">{m.code}</span>
|
||||
<div className="h-px flex-1 bg-border">
|
||||
<div className="h-px bg-foreground transition-all duration-300" style={{ width: `${Math.round(markets[i])}%` }} />
|
||||
</div>
|
||||
<span className="w-9 text-right font-mono text-[10.5px] text-muted-foreground">{Math.round(markets[i])}%</span>
|
||||
<span className="w-10 text-right font-mono text-[10.5px] tabular-nums text-muted-foreground">
|
||||
{Math.round(markets[i])}%
|
||||
</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
<div className="border border-border p-4">
|
||||
<p className="font-mono text-[10.5px] uppercase tracking-[0.1em] text-muted-foreground">Aktivitet</p>
|
||||
<div className="mt-3 flex flex-col gap-1.5 font-mono text-[11px]">
|
||||
{feed.length === 0 ? <span className="text-muted-foreground">— väntar på start —</span> : null}
|
||||
|
||||
{/* activity */}
|
||||
<div className="px-6 py-7">
|
||||
<p className="font-mono text-[10.5px] uppercase tracking-[0.14em] text-muted-foreground">Aktivitet</p>
|
||||
<div className="mt-5 flex flex-col gap-2 font-mono text-[11px] leading-relaxed">
|
||||
{feed.length === 0 ? <span className="text-muted-foreground">Inget än.</span> : null}
|
||||
{feed.map((f, i) => (
|
||||
<div key={i} className="flex gap-2">
|
||||
<span className="text-muted-foreground">{f.t}</span>
|
||||
<div key={i} className="flex gap-3">
|
||||
<span className="tabular-nums text-muted-foreground">{f.t}</span>
|
||||
<span style={{ color: f.kind === "ok" ? "var(--prov-3)" : "var(--accent-red)" }}>{f.msg}</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
</div>
|
||||
|
||||
{done ? (
|
||||
<div className="mt-8">
|
||||
<div className="border-t border-border py-12">
|
||||
<Link
|
||||
href={`/order/${id}/validera`}
|
||||
className="inline-block bg-foreground px-6 py-3.5 font-mono text-[12px] uppercase tracking-[0.1em] text-background transition-colors hover:bg-[var(--accent-red)]"
|
||||
className="group inline-flex items-center gap-3 bg-foreground px-7 py-4 font-mono text-[12px] uppercase tracking-[0.12em] text-background transition-colors hover:bg-[var(--accent-red)]"
|
||||
>
|
||||
Granska & validera resultatet →
|
||||
Granska resultatet
|
||||
<span className="transition-transform duration-300 group-hover:translate-x-1">→</span>
|
||||
</Link>
|
||||
</div>
|
||||
) : null}
|
||||
@@ -185,15 +244,18 @@ function ConfidenceRing({ value }: { value: number }) {
|
||||
const c = 2 * Math.PI * r;
|
||||
const off = c - (value / 100) * c;
|
||||
return (
|
||||
<svg viewBox="0 0 130 130" className="mx-auto h-36 w-36">
|
||||
<circle cx="65" cy="65" r={r} fill="none" stroke="var(--secondary)" strokeWidth="8" />
|
||||
<svg viewBox="0 0 130 130" className="mx-auto h-40 w-40">
|
||||
<circle cx="65" cy="65" r={r} fill="none" stroke="var(--secondary)" strokeWidth="6" />
|
||||
<circle
|
||||
cx="65" cy="65" r={r} fill="none" stroke="var(--prov-3)" strokeWidth="8"
|
||||
cx="65" cy="65" r={r} fill="none" stroke="var(--prov-3)" strokeWidth="6"
|
||||
strokeDasharray={c} strokeDashoffset={off} strokeLinecap="butt"
|
||||
transform="rotate(-90 65 65)" style={{ transition: "stroke-dashoffset .3s" }}
|
||||
/>
|
||||
<text x="65" y="72" textAnchor="middle" className="fill-foreground font-mono" style={{ fontSize: 24 }}>
|
||||
{Math.round(value)}%
|
||||
<text x="65" y="64" textAnchor="middle" className="fill-foreground font-mono" style={{ fontSize: 30, letterSpacing: "-0.02em" }}>
|
||||
{Math.round(value)}
|
||||
</text>
|
||||
<text x="65" y="84" textAnchor="middle" className="fill-muted-foreground font-mono" style={{ fontSize: 10, letterSpacing: "0.14em" }}>
|
||||
PROCENT
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
import { useParams } from "next/navigation";
|
||||
import { useState } from "react";
|
||||
import { OrderStepper } from "@/components/order-stepper";
|
||||
import { useReveal } from "@/hooks/use-reveal";
|
||||
import { CellProvenance, ProvenanceBadge, PROVENANCE_LEGEND } from "@/components/provenance-badge";
|
||||
import { MARKETS, SAMPLE_ROWS, formatSEK } from "@/lib/data";
|
||||
|
||||
@@ -31,37 +32,64 @@ export default function ValidationPage() {
|
||||
const [tab, setTab] = useState<Tab>("Tabell");
|
||||
const [dests, setDests] = useState<string[]>(["CSV", "Tabellvy (NocoDB)"]);
|
||||
const [approved, setApproved] = useState(false);
|
||||
const ref = useReveal<HTMLElement>();
|
||||
|
||||
const toggleDest = (d: string) => setDests((p) => (p.includes(d) ? p.filter((x) => x !== d) : [...p, d]));
|
||||
|
||||
return (
|
||||
<main className="min-h-screen bg-background text-foreground">
|
||||
<main ref={ref} className="min-h-screen bg-background text-foreground">
|
||||
<OrderStepper active={4} />
|
||||
<div className="mx-auto max-w-[80rem] px-6 py-10">
|
||||
<p className="font-mono text-[11px] uppercase tracking-[0.14em] text-muted-foreground">Steg 4 — Validera & leverera</p>
|
||||
<h1 className="mt-3 text-4xl font-medium tracking-[-0.025em] md:text-5xl">Granska allt. Godkänn fritt.</h1>
|
||||
|
||||
{/* header — oversized faint numeral as graphic texture */}
|
||||
<div className="relative overflow-hidden border-b border-border">
|
||||
<span
|
||||
aria-hidden
|
||||
className="pointer-events-none absolute -right-3 -top-6 select-none font-mono text-[clamp(7rem,22vw,15rem)] font-medium leading-none tracking-[-0.05em] text-secondary"
|
||||
>
|
||||
04
|
||||
</span>
|
||||
<div className="relative mx-auto max-w-[80rem] px-6 py-16 md:py-24">
|
||||
<div className="reveal flex items-center gap-3">
|
||||
<span aria-hidden className="animate-float inline-block h-2 w-2" style={{ backgroundColor: "var(--accent-red)" }} />
|
||||
<p className="font-mono text-[11px] uppercase tracking-[0.16em] text-muted-foreground">Steg 04 — Validera</p>
|
||||
</div>
|
||||
<h1 className="reveal delay-1 mt-6 max-w-3xl text-[clamp(2.4rem,6vw,4.5rem)] font-medium leading-[0.95] tracking-[-0.035em]">
|
||||
Granska allt.
|
||||
<br />
|
||||
Godkänn fritt.
|
||||
</h1>
|
||||
<p className="reveal delay-2 mt-6 font-mono text-[11px] uppercase tracking-[0.1em] text-muted-foreground">
|
||||
Källan syns. Alltid. Inget gissat.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="mx-auto max-w-[80rem] px-6 py-12">
|
||||
{/* tabs */}
|
||||
<div className="mt-8 flex flex-wrap gap-0 border-b border-border">
|
||||
{TABS.map((t) => (
|
||||
<div className="reveal flex flex-wrap border-b border-border">
|
||||
{TABS.map((t, i) => (
|
||||
<button
|
||||
key={t}
|
||||
onClick={() => setTab(t)}
|
||||
className="px-4 py-3 font-mono text-[11px] uppercase tracking-[0.1em] transition-colors"
|
||||
style={{
|
||||
color: tab === t ? "var(--foreground)" : "var(--muted-foreground)",
|
||||
borderBottom: tab === t ? "2px solid var(--accent-red)" : "2px solid transparent",
|
||||
}}
|
||||
className="group relative -mb-px px-5 py-3.5 font-mono text-[11px] uppercase tracking-[0.12em] transition-colors"
|
||||
style={{ color: tab === t ? "var(--foreground)" : "var(--muted-foreground)" }}
|
||||
>
|
||||
<span className="mr-2 text-muted-foreground">{String(i + 1).padStart(2, "0")}</span>
|
||||
{t}
|
||||
<span
|
||||
aria-hidden
|
||||
className="absolute bottom-0 left-0 h-px bg-foreground transition-all duration-300 ease-out"
|
||||
style={{ width: tab === t ? "100%" : "0%" }}
|
||||
/>
|
||||
<span aria-hidden className="absolute bottom-0 left-0 h-px w-0 bg-border transition-[width] duration-300 ease-out group-hover:w-full" />
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<div className="mt-6">
|
||||
<div className="mt-10">
|
||||
{tab === "Tabell" ? (
|
||||
<div>
|
||||
<div className="mb-4 flex flex-wrap gap-2">
|
||||
<div className="reveal-fade">
|
||||
<div className="mb-5 flex flex-wrap gap-2">
|
||||
{PROVENANCE_LEGEND.map((l) => (
|
||||
<ProvenanceBadge key={l.level} level={l.level} source={l.text} />
|
||||
))}
|
||||
@@ -71,37 +99,41 @@ export default function ValidationPage() {
|
||||
<thead>
|
||||
<tr className="border-b border-border bg-secondary">
|
||||
{["Org.nr", "Bolag", "Säte", "SNI", "Anställda", "Oms. (tkr)", "E-post", "LEI"].map((h) => (
|
||||
<th key={h} className="px-3 py-2 text-left font-mono text-[10.5px] uppercase tracking-[0.08em] text-muted-foreground">{h}</th>
|
||||
<th key={h} className="px-3 py-2.5 text-left font-mono text-[10px] uppercase tracking-[0.1em] text-muted-foreground">{h}</th>
|
||||
))}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{SAMPLE_ROWS.map((r) => (
|
||||
<tr key={r.orgnr} className="border-b border-border last:border-b-0 hover:bg-secondary/50">
|
||||
<td className="px-3 py-2 font-mono text-xs">{r.orgnr}<CellProvenance level={3} /></td>
|
||||
<td className="px-3 py-2">{r.bolag}<CellProvenance level={3} /></td>
|
||||
<td className="px-3 py-2">{r.sate}<CellProvenance level={3} /></td>
|
||||
<td className="px-3 py-2 font-mono text-xs">{r.sni}<CellProvenance level={2} /></td>
|
||||
<td className="px-3 py-2 font-mono text-xs">{new Intl.NumberFormat("sv-SE").format(r.anstallda)}<CellProvenance level={2} /></td>
|
||||
<td className="px-3 py-2 font-mono text-xs">{new Intl.NumberFormat("sv-SE").format(r.oms)}<CellProvenance level={2} /></td>
|
||||
<td className="px-3 py-2 text-xs">
|
||||
<tr key={r.orgnr} className="border-b border-border transition-colors last:border-b-0 hover:bg-secondary/60">
|
||||
<td className="px-3 py-2.5 font-mono text-xs">{r.orgnr}<CellProvenance level={3} /></td>
|
||||
<td className="px-3 py-2.5">{r.bolag}<CellProvenance level={3} /></td>
|
||||
<td className="px-3 py-2.5">{r.sate}<CellProvenance level={3} /></td>
|
||||
<td className="px-3 py-2.5 font-mono text-xs">{r.sni}<CellProvenance level={2} /></td>
|
||||
<td className="px-3 py-2.5 font-mono text-xs">{new Intl.NumberFormat("sv-SE").format(r.anstallda)}<CellProvenance level={2} /></td>
|
||||
<td className="px-3 py-2.5 font-mono text-xs">{new Intl.NumberFormat("sv-SE").format(r.oms)}<CellProvenance level={2} /></td>
|
||||
<td className="px-3 py-2.5 text-xs">
|
||||
{r.epost ? (<>{r.epost}<CellProvenance level={r.epostLevel} /></>) : (<span className="text-muted-foreground">— licens (FI)<CellProvenance level={0} /></span>)}
|
||||
</td>
|
||||
<td className="px-3 py-2 font-mono text-xs">{r.lei}<CellProvenance level={3} /></td>
|
||||
<td className="px-3 py-2.5 font-mono text-xs">{r.lei}<CellProvenance level={3} /></td>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<p className="mt-4 font-mono text-[10.5px] uppercase tracking-[0.08em] text-muted-foreground">
|
||||
Varje cell bär sin källa. Tom = licens, aldrig gissning.
|
||||
</p>
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
{tab === "Täckning" ? (
|
||||
<div>
|
||||
<div className="reveal-fade">
|
||||
<p className="mb-4 font-mono text-[10.5px] uppercase tracking-[0.12em] text-muted-foreground">Per marknad</p>
|
||||
<div className="grid grid-cols-[repeat(auto-fill,minmax(96px,1fr))] gap-px bg-border">
|
||||
{MARKETS.filter((m) => m.live).map((m) => (
|
||||
<div key={m.code} className="bg-background p-3">
|
||||
<p className="font-mono text-sm font-semibold">{m.code}</p>
|
||||
<div key={m.code} className="group bg-background p-3 transition-colors hover:bg-secondary/40">
|
||||
<p className="font-mono text-sm font-semibold tracking-[-0.01em]">{m.code}</p>
|
||||
<p className="font-mono text-[10.5px] text-muted-foreground">{m.coverage}%</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)" : "var(--prov-2)" }} />
|
||||
@@ -109,11 +141,11 @@ export default function ValidationPage() {
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
<div className="mt-4 grid grid-cols-1 gap-px bg-border sm:grid-cols-3">
|
||||
{[["4 980", "poster levererade"], ["20", "utelämnade — ej gissade"], ["3,2", "källor per bekräftat fält"]].map(([n, l]) => (
|
||||
<div key={l} className="bg-background p-5">
|
||||
<p className="text-3xl font-medium">{n}</p>
|
||||
<p className="mt-1 font-mono text-[10.5px] uppercase tracking-[0.08em] text-muted-foreground">{l}</p>
|
||||
<div className="mt-px grid grid-cols-1 gap-px bg-border sm:grid-cols-3">
|
||||
{[["4 980", "poster levererade"], ["20", "utelämnade — ej gissade"], ["3,2", "källor per fält"]].map(([n, l]) => (
|
||||
<div key={l} className="bg-background p-6">
|
||||
<p className="text-4xl font-medium tracking-[-0.03em]">{n}</p>
|
||||
<p className="mt-2 font-mono text-[10.5px] uppercase tracking-[0.1em] text-muted-foreground">{l}</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
@@ -121,44 +153,45 @@ export default function ValidationPage() {
|
||||
) : null}
|
||||
|
||||
{tab === "Schema & arkitektur" ? (
|
||||
<div className="border border-border p-6" style={{ backgroundImage: "radial-gradient(var(--border) 1px, transparent 1px)", backgroundSize: "16px 16px" }}>
|
||||
<div className="reveal-fade border border-border p-6 md:p-8" style={{ backgroundImage: "radial-gradient(var(--border) 1px, transparent 1px)", backgroundSize: "16px 16px" }}>
|
||||
<p className="mb-6 font-mono text-[10.5px] uppercase tracking-[0.12em] text-muted-foreground">Stjärnschema · spårbart per fält</p>
|
||||
<div className="grid grid-cols-2 gap-4 md:grid-cols-3">
|
||||
{ENTITIES.map((e) => (
|
||||
<div key={e.name} className="bg-background" style={{ border: e.key ? "1px solid var(--accent-red)" : "1px solid var(--border)" }}>
|
||||
<div className="border-b border-border px-3 py-2 font-mono text-[11px]">{e.name}</div>
|
||||
<ul className="px-3 py-2 font-mono text-[10.5px] text-muted-foreground">
|
||||
<div key={e.name} className="group bg-background transition-[border-color]" style={{ border: e.key ? "1px solid var(--accent-red)" : "1px solid var(--border)" }}>
|
||||
<div className="border-b border-border px-3 py-2 font-mono text-[11px] tracking-[0.02em]">{e.name}</div>
|
||||
<ul className="px-3 py-2 font-mono text-[10.5px] leading-relaxed text-muted-foreground">
|
||||
{e.cols.map((c) => (<li key={c}>{c}</li>))}
|
||||
</ul>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
<p className="mt-4 font-mono text-[10.5px] uppercase tracking-[0.06em] text-muted-foreground">
|
||||
→ varje fält länkar till bridge_provenance · ingen uppgift utan spårbar källa
|
||||
<p className="mt-6 border-t border-border pt-4 font-mono text-[10.5px] uppercase tracking-[0.08em] text-muted-foreground">
|
||||
Varje fält → bridge_provenance. Ingen uppgift utan källa.
|
||||
</p>
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
{tab === "Kvalitetsrapport" ? (
|
||||
<div className="grid grid-cols-1 gap-4 md:grid-cols-2">
|
||||
<div className="border border-border p-5">
|
||||
<p className="font-mono text-[10.5px] uppercase tracking-[0.1em] text-muted-foreground">Per dimension</p>
|
||||
<div className="mt-4 flex flex-col gap-3">
|
||||
<div className="reveal-fade grid grid-cols-1 gap-px bg-border md:grid-cols-2">
|
||||
<div className="bg-background p-6">
|
||||
<p className="font-mono text-[10.5px] uppercase tracking-[0.12em] text-muted-foreground">Per dimension</p>
|
||||
<div className="mt-5 flex flex-col gap-4">
|
||||
{DIMENSIONS.map(([name, v, amber]) => (
|
||||
<div key={name}>
|
||||
<div className="flex justify-between font-mono text-xs"><span>{name}</span><span className="text-muted-foreground">{v}%</span></div>
|
||||
<div className="mt-1 h-1.5 w-full bg-secondary">
|
||||
<div className="mt-1.5 h-1.5 w-full bg-secondary">
|
||||
<div className="h-full" style={{ width: `${v}%`, backgroundColor: amber ? "var(--prov-2)" : "var(--prov-3)" }} />
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
<div className="border border-border p-5">
|
||||
<p className="font-mono text-[10.5px] uppercase tracking-[0.1em] text-muted-foreground">Kontroller som passerade</p>
|
||||
<ul className="mt-4 flex flex-col gap-2 text-sm">
|
||||
<div className="bg-background p-6">
|
||||
<p className="font-mono text-[10.5px] uppercase tracking-[0.12em] text-muted-foreground">Passerade kontroller</p>
|
||||
<ul className="mt-5 flex flex-col gap-2.5 text-sm">
|
||||
{CHECKS.map((c) => (
|
||||
<li key={c} className="flex items-start gap-2">
|
||||
<span style={{ color: "var(--prov-3)" }}>✓</span>
|
||||
<li key={c} className="flex items-start gap-2.5">
|
||||
<span aria-hidden className="mt-1.5 inline-block h-[9px] w-[9px] flex-shrink-0" style={{ backgroundColor: "var(--prov-3)" }} />
|
||||
<span>{c}</span>
|
||||
</li>
|
||||
))}
|
||||
@@ -169,20 +202,20 @@ export default function ValidationPage() {
|
||||
</div>
|
||||
|
||||
{/* destinations */}
|
||||
<div className="mt-8">
|
||||
<p className="font-mono text-[10.5px] uppercase tracking-[0.1em] text-muted-foreground">Leverera till</p>
|
||||
<div className="mt-3 flex flex-wrap gap-2">
|
||||
<div className="reveal mt-14 border-t border-border pt-8">
|
||||
<p className="font-mono text-[10.5px] uppercase tracking-[0.12em] text-muted-foreground">Leverera till</p>
|
||||
<div className="mt-4 flex flex-wrap gap-2">
|
||||
{DESTINATIONS.map((d) => {
|
||||
const on = dests.includes(d);
|
||||
return (
|
||||
<button
|
||||
key={d}
|
||||
onClick={() => toggleDest(d)}
|
||||
className="border px-3 py-2 font-mono text-[11px] uppercase tracking-[0.08em] transition-colors"
|
||||
className="border px-3.5 py-2 font-mono text-[11px] uppercase tracking-[0.08em] transition-colors hover:border-foreground"
|
||||
style={{
|
||||
borderColor: on ? "var(--accent-red)" : "var(--border)",
|
||||
backgroundColor: on ? "rgba(228,0,20,0.06)" : "transparent",
|
||||
color: "var(--foreground)",
|
||||
borderColor: on ? "var(--foreground)" : "var(--border)",
|
||||
backgroundColor: on ? "var(--foreground)" : "transparent",
|
||||
color: on ? "var(--background)" : "var(--foreground)",
|
||||
}}
|
||||
>
|
||||
{d}
|
||||
@@ -193,28 +226,32 @@ export default function ValidationPage() {
|
||||
</div>
|
||||
|
||||
{/* action bar */}
|
||||
<div className="mt-8 border border-border p-5">
|
||||
<div className="reveal mt-8 border border-border p-6 md:p-8">
|
||||
{approved ? (
|
||||
<div className="border p-4" style={{ borderColor: "var(--prov-3)" }}>
|
||||
<p className="font-mono text-sm" style={{ color: "var(--prov-3)" }}>
|
||||
✓ Leverans godkänd. Slutbetalning frigjord. Export upplåst.
|
||||
<div className="border p-5" style={{ borderColor: "var(--prov-3)" }}>
|
||||
<p className="flex items-center gap-2.5 font-mono text-sm" style={{ color: "var(--prov-3)" }}>
|
||||
<span aria-hidden className="inline-block h-[9px] w-[9px]" style={{ backgroundColor: "var(--prov-3)" }} />
|
||||
Godkänd. Slutbetalning frigjord. Export upplåst.
|
||||
</p>
|
||||
<p className="mt-1 text-xs text-muted-foreground">Order {id} · levererad till {dests.join(" · ") || "—"}.</p>
|
||||
<p className="mt-2 font-mono text-[11px] tracking-[0.02em] text-muted-foreground">Order {id} · {dests.join(" · ") || "—"}.</p>
|
||||
</div>
|
||||
) : (
|
||||
<div className="flex flex-col gap-4 md:flex-row md:items-center md:justify-between">
|
||||
<p className="max-w-xl text-sm text-muted-foreground">
|
||||
Godkänn leveransen — frigör resterande belopp ur depån och lås upp full export. Inte nöjd? Begär revidering utan kostnad.
|
||||
</p>
|
||||
<div className="flex gap-3">
|
||||
<div className="flex flex-col gap-6 md:flex-row md:items-center md:justify-between">
|
||||
<div>
|
||||
<p className="text-lg font-medium tracking-[-0.02em]">Nöjd? Frigör hälften.</p>
|
||||
<p className="mt-1.5 max-w-md font-mono text-[11px] uppercase leading-relaxed tracking-[0.06em] text-muted-foreground">
|
||||
Godkänn → depån släpper resten. Full export. Annars: revidering, utan kostnad.
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex flex-shrink-0 gap-3">
|
||||
<button className="border border-foreground px-5 py-3 font-mono text-[12px] uppercase tracking-[0.1em] transition-colors hover:bg-foreground hover:text-background">
|
||||
Begär revidering
|
||||
Revidera
|
||||
</button>
|
||||
<button
|
||||
onClick={() => setApproved(true)}
|
||||
className="bg-foreground px-5 py-3 font-mono text-[12px] uppercase tracking-[0.1em] text-background transition-colors hover:bg-[var(--accent-red)]"
|
||||
>
|
||||
Godkänn & frigör 50 %
|
||||
Godkänn · frigör 50 %
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -27,18 +27,18 @@ const CHART_BARS = [42, 61, 38, 74, 55, 88];
|
||||
export function DataArtifact({ variant, className = "" }: { variant: Variant; className?: string }) {
|
||||
const ref = useReveal<HTMLDivElement>();
|
||||
return (
|
||||
<div ref={ref} className={`grain-overlay relative overflow-hidden border border-border bg-background ${className}`}>
|
||||
<div ref={ref} className={`group grain-overlay relative overflow-hidden border border-border bg-background ${className}`}>
|
||||
{variant === "table" ? (
|
||||
<div>
|
||||
<div className="flex items-center justify-between border-b border-border px-3 py-2">
|
||||
<span className="font-mono text-[10px] uppercase tracking-[0.12em] text-muted-foreground">dim_company</span>
|
||||
<span className="font-mono text-[10px] uppercase tracking-[0.12em] text-muted-foreground">härkomst</span>
|
||||
<div className="flex items-center justify-between border-b border-border px-4 py-2.5">
|
||||
<span className="font-mono text-[10px] uppercase tracking-[0.18em] text-foreground">dim_company</span>
|
||||
<span className="font-mono text-[10px] uppercase tracking-[0.18em] text-muted-foreground">härkomst</span>
|
||||
</div>
|
||||
{TABLE_ROWS.map((r, i) => (
|
||||
<div key={i} className={`reveal delay-${i + 1} flex items-center justify-between border-b border-border px-3 py-2.5 last:border-b-0`}>
|
||||
<span className="truncate text-sm">{r[0]}</span>
|
||||
<span className="ml-3 inline-flex items-center gap-1.5 font-mono text-[10px] uppercase text-muted-foreground">
|
||||
<span className="inline-block h-[7px] w-[7px]" style={{ backgroundColor: r[2] === 0 ? "transparent" : PROV[r[2]], border: r[2] === 0 ? `1px solid ${PROV[0]}` : "none" }} />
|
||||
<div key={i} className={`reveal-left delay-${i + 1} flex items-center justify-between border-b border-border px-4 py-3 transition-colors duration-200 last:border-b-0 hover:bg-secondary`}>
|
||||
<span className="truncate text-[15px] tracking-tight">{r[0]}</span>
|
||||
<span className="ml-3 inline-flex items-center gap-2 font-mono text-[10px] uppercase tracking-[0.08em] text-muted-foreground">
|
||||
<span className="inline-block h-2 w-2" style={{ backgroundColor: r[2] === 0 ? "transparent" : PROV[r[2]], border: r[2] === 0 ? `1px solid ${PROV[0]}` : "none" }} />
|
||||
{r[1]}
|
||||
</span>
|
||||
</div>
|
||||
@@ -49,10 +49,10 @@ export function DataArtifact({ variant, className = "" }: { variant: Variant; cl
|
||||
{variant === "map" ? (
|
||||
<div className="grid grid-cols-4 gap-px bg-border">
|
||||
{MAP_CELLS.map((c, i) => (
|
||||
<div key={c[0]} className={`reveal-scale delay-${(i % 6) + 1} bg-background p-3`}>
|
||||
<p className="font-mono text-sm font-semibold">{c[0]}</p>
|
||||
<p className="font-mono text-[10px] text-muted-foreground">{c[1] ? `${c[1]}%` : "—"}</p>
|
||||
<div className="mt-2 h-1 w-full bg-secondary">
|
||||
<div key={c[0]} className={`reveal-scale delay-${(i % 6) + 1} group/cell relative bg-background p-4 transition-colors duration-200 hover:bg-secondary`}>
|
||||
<p className="font-mono text-lg font-semibold leading-none tracking-tight">{c[0]}</p>
|
||||
<p className="mt-1 font-mono text-[10px] tracking-[0.08em] text-muted-foreground">{c[1] ? `${c[1]}%` : "—"}</p>
|
||||
<div className="mt-3 h-px w-full bg-border">
|
||||
<div className="h-full" style={{ width: `${c[1]}%`, backgroundColor: c[1] >= 95 ? "var(--prov-3)" : c[1] > 0 ? "var(--prov-2)" : "transparent" }} />
|
||||
</div>
|
||||
</div>
|
||||
@@ -61,31 +61,35 @@ export function DataArtifact({ variant, className = "" }: { variant: Variant; cl
|
||||
) : null}
|
||||
|
||||
{variant === "schema" ? (
|
||||
<div className="grid grid-cols-3 gap-3 p-4" style={{ backgroundImage: "radial-gradient(var(--border) 1px, transparent 1px)", backgroundSize: "14px 14px" }}>
|
||||
<div className="grid grid-cols-3 gap-4 p-5" style={{ backgroundImage: "linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px)", backgroundSize: "16px 16px" }}>
|
||||
{[
|
||||
{ n: "dim_company", key: true },
|
||||
{ n: "fact_financials", key: false },
|
||||
{ n: "bridge_provenance", key: true },
|
||||
].map((e, i) => (
|
||||
<div key={e.n} className={`reveal-scale delay-${i + 1} bg-background`} style={{ border: e.key ? "1px solid var(--accent-red)" : "1px solid var(--border)" }}>
|
||||
<div className="border-b border-border px-2 py-1 font-mono text-[10px]">{e.n}</div>
|
||||
<div className="px-2 py-1.5 font-mono text-[9px] text-muted-foreground">id · key · src</div>
|
||||
<div key={e.n} className={`reveal-scale delay-${i + 1} bg-background transition-transform duration-200 hover:-translate-y-0.5`} style={{ borderTop: e.key ? "2px solid var(--accent-red)" : "2px solid var(--foreground)", borderLeft: "1px solid var(--border)", borderRight: "1px solid var(--border)", borderBottom: "1px solid var(--border)" }}>
|
||||
<div className="border-b border-border px-2.5 py-1.5 font-mono text-[10px] tracking-tight">{e.n}</div>
|
||||
<div className="px-2.5 py-2 font-mono text-[9px] tracking-[0.08em] text-muted-foreground">id · key · src</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
{variant === "chart" ? (
|
||||
<div className="flex h-40 items-end gap-2 p-4">
|
||||
{CHART_BARS.map((h, i) => (
|
||||
<div key={i} className={`reveal delay-${(i % 6) + 1} flex-1`} style={{ height: `${h}%`, backgroundColor: i === CHART_BARS.length - 1 ? "var(--accent-red)" : "var(--foreground)" }} />
|
||||
))}
|
||||
<div className="relative">
|
||||
<span className="pointer-events-none absolute left-4 top-3 select-none font-mono text-[10px] uppercase tracking-[0.18em] text-muted-foreground">täckning</span>
|
||||
<span className="pointer-events-none absolute right-4 top-3 select-none font-mono text-5xl font-semibold leading-none tracking-tighter text-border">06</span>
|
||||
<div className="flex h-44 items-end gap-2.5 px-4 pb-4 pt-12">
|
||||
{CHART_BARS.map((h, i) => (
|
||||
<div key={i} className={`reveal delay-${(i % 6) + 1} flex-1 transition-opacity duration-200 ${i === CHART_BARS.length - 1 ? "" : "group-hover:opacity-60"}`} style={{ height: `${h}%`, backgroundColor: i === CHART_BARS.length - 1 ? "var(--accent-red)" : "var(--foreground)" }} />
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
{variant === "grid" ? (
|
||||
<div className="relative flex h-40 items-center justify-center" style={{ backgroundImage: "radial-gradient(var(--border) 1px, transparent 1px)", backgroundSize: "16px 16px" }}>
|
||||
<span className="select-none text-6xl font-semibold tracking-tighter text-border">0pt</span>
|
||||
<div className="relative flex h-44 items-center justify-center overflow-hidden" style={{ backgroundImage: "linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px)", backgroundSize: "18px 18px" }}>
|
||||
<span className="select-none text-7xl font-semibold tracking-tighter text-border transition-colors duration-300 group-hover:text-muted-foreground">0pt</span>
|
||||
<span className="animate-float absolute right-6 top-6 inline-block h-3 w-3" style={{ backgroundColor: "var(--accent-red)" }} />
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
+43
-17
@@ -12,10 +12,15 @@ const NAV = [
|
||||
|
||||
function Wordmark() {
|
||||
return (
|
||||
<Link href="/" className="flex items-center gap-2">
|
||||
<span className="text-xl font-semibold tracking-[-0.02em]">0pt</span>
|
||||
<span className="inline-block h-1 w-1" style={{ backgroundColor: "var(--accent-red)" }} />
|
||||
<span className="font-mono text-[10px] uppercase tracking-[0.18em] text-muted-foreground">your data</span>
|
||||
<Link href="/" className="group flex items-baseline gap-2">
|
||||
<span className="text-xl font-semibold tracking-[-0.04em]">0pt</span>
|
||||
<span
|
||||
className="inline-block h-[5px] w-[5px] translate-y-[-2px] transition-transform duration-300 group-hover:translate-y-[-4px]"
|
||||
style={{ backgroundColor: "var(--accent-red)" }}
|
||||
/>
|
||||
<span className="font-mono text-[10px] uppercase tracking-[0.22em] text-muted-foreground">
|
||||
your data
|
||||
</span>
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
@@ -42,34 +47,42 @@ export function Header() {
|
||||
<div className="mx-auto flex h-16 max-w-[80rem] items-center justify-between px-6">
|
||||
<Wordmark />
|
||||
|
||||
<nav className="hidden items-center gap-7 md:flex">
|
||||
<nav className="hidden items-center md:flex">
|
||||
{NAV.map((n) => (
|
||||
<Link
|
||||
key={n.label}
|
||||
href={n.href}
|
||||
className="font-mono text-[12px] uppercase tracking-[0.1em] text-muted-foreground transition-colors hover:text-foreground"
|
||||
className="group relative px-4 py-2 font-mono text-[12px] uppercase tracking-[0.12em] text-muted-foreground transition-colors hover:text-foreground"
|
||||
>
|
||||
{n.label}
|
||||
<span
|
||||
aria-hidden
|
||||
className="pointer-events-none absolute bottom-1 left-4 right-4 h-px origin-left scale-x-0 bg-foreground transition-transform duration-300 group-hover:scale-x-100"
|
||||
/>
|
||||
</Link>
|
||||
))}
|
||||
</nav>
|
||||
|
||||
<div className="hidden items-center gap-5 md:flex">
|
||||
<Link href="/bestall" className="font-mono text-[12px] uppercase tracking-[0.1em] text-muted-foreground transition-colors hover:text-foreground">
|
||||
<div className="hidden items-center md:flex">
|
||||
<Link
|
||||
href="/bestall"
|
||||
className="px-4 py-2 font-mono text-[12px] uppercase tracking-[0.12em] text-muted-foreground transition-colors hover:text-foreground"
|
||||
>
|
||||
Logga in
|
||||
</Link>
|
||||
<Link
|
||||
href="/bestall"
|
||||
className="bg-foreground px-5 py-2.5 font-mono text-[12px] uppercase tracking-[0.1em] text-background transition-colors hover:bg-[var(--accent-red)]"
|
||||
className="ml-3 inline-flex items-center gap-2 bg-foreground px-5 py-2.5 font-mono text-[12px] uppercase tracking-[0.12em] text-background transition-colors hover:bg-[var(--accent-red)]"
|
||||
>
|
||||
Starta beställning
|
||||
Beställ
|
||||
<span aria-hidden>→</span>
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
<button
|
||||
aria-label="Meny"
|
||||
onClick={() => setOpen((v) => !v)}
|
||||
className="flex h-9 w-9 items-center justify-center border border-border md:hidden"
|
||||
className="flex h-9 w-9 items-center justify-center border border-border transition-colors hover:border-foreground md:hidden"
|
||||
>
|
||||
<span className="font-mono text-sm">{open ? "✕" : "≡"}</span>
|
||||
</button>
|
||||
@@ -77,14 +90,27 @@ export function Header() {
|
||||
|
||||
{open ? (
|
||||
<div className="border-t border-border bg-background md:hidden">
|
||||
<div className="flex flex-col gap-1 px-6 py-4">
|
||||
{NAV.map((n) => (
|
||||
<Link key={n.label} href={n.href} onClick={() => setOpen(false)} className="py-2 font-mono text-[12px] uppercase tracking-[0.1em] text-muted-foreground">
|
||||
{n.label}
|
||||
<div className="flex flex-col px-6 py-2">
|
||||
{NAV.map((n, i) => (
|
||||
<Link
|
||||
key={n.label}
|
||||
href={n.href}
|
||||
onClick={() => setOpen(false)}
|
||||
className="flex items-baseline justify-between border-b border-border py-4 font-mono text-[12px] uppercase tracking-[0.12em] text-muted-foreground transition-colors hover:text-foreground"
|
||||
>
|
||||
<span>{n.label}</span>
|
||||
<span className="text-[10px] tabular-nums text-muted-foreground/50">
|
||||
{String(i + 1).padStart(2, "0")}
|
||||
</span>
|
||||
</Link>
|
||||
))}
|
||||
<Link href="/bestall" onClick={() => setOpen(false)} className="mt-2 bg-foreground px-5 py-3 text-center font-mono text-[12px] uppercase tracking-[0.1em] text-background">
|
||||
Starta beställning
|
||||
<Link
|
||||
href="/bestall"
|
||||
onClick={() => setOpen(false)}
|
||||
className="mt-4 flex items-center justify-center gap-2 bg-foreground px-5 py-3.5 font-mono text-[12px] uppercase tracking-[0.12em] text-background"
|
||||
>
|
||||
Beställ
|
||||
<span aria-hidden>→</span>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -4,36 +4,72 @@ 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"],
|
||||
["4 980", "poster i exempel"],
|
||||
["20", "utelämnade. Ej gissade"],
|
||||
["3,2", "källor per fält"],
|
||||
];
|
||||
|
||||
export function CollectionSection() {
|
||||
const ref = useReveal<HTMLElement>();
|
||||
const liveCount = MARKETS.filter((m) => m.live).length;
|
||||
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="mx-auto max-w-[80rem] px-6 py-32 lg:py-40">
|
||||
<div className="flex items-baseline justify-between gap-6 border-b border-border pb-6">
|
||||
<p className="reveal font-mono text-[11px] uppercase tracking-[0.18em] text-muted-foreground">04 — Täckning</p>
|
||||
<p className="reveal delay-1 font-mono text-[11px] uppercase tracking-[0.18em] text-muted-foreground">{liveCount}/{MARKETS.length} live</p>
|
||||
</div>
|
||||
|
||||
<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 className="mt-12 grid items-end gap-y-8 lg:grid-cols-12 lg:gap-x-10">
|
||||
<h2 className="reveal delay-1 col-span-8 text-[clamp(2.4rem,6vw,4.75rem)] font-medium leading-[0.95] tracking-[-0.03em]">
|
||||
Tjugo marknader.
|
||||
<br />
|
||||
En modell.
|
||||
</h2>
|
||||
<p className="reveal-fade delay-2 col-span-4 font-mono text-[13px] leading-relaxed text-muted-foreground lg:text-right">
|
||||
Samma motor. Samma bevis.
|
||||
<br />
|
||||
Varje land.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="reveal delay-2 mt-16 grid grid-cols-[repeat(auto-fill,minmax(108px,1fr))] gap-px border border-border bg-border">
|
||||
{MARKETS.map((m, i) => (
|
||||
<div
|
||||
key={m.code}
|
||||
className="group relative bg-background p-4 transition-opacity duration-300"
|
||||
style={{ opacity: m.live ? 1 : 0.4 }}
|
||||
>
|
||||
<div className="flex items-baseline justify-between">
|
||||
<p className="font-mono text-sm font-semibold tracking-tight">{m.code}</p>
|
||||
<span className="font-mono text-[9px] text-muted-foreground/60">{String(i + 1).padStart(2, "0")}</span>
|
||||
</div>
|
||||
<p className="mt-1 font-mono text-[10px] uppercase tracking-[0.08em] text-muted-foreground">
|
||||
{m.live ? `${m.coverage}%` : "kommande"}
|
||||
</p>
|
||||
<div className="mt-3 h-px w-full bg-secondary">
|
||||
<div
|
||||
className="h-full transition-[width] duration-500"
|
||||
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 className="reveal delay-3 mt-px grid grid-cols-1 gap-px border border-border bg-border sm:grid-cols-3">
|
||||
{STATS.map(([n, l], i) => (
|
||||
<div key={l} className="bg-background p-6">
|
||||
<p
|
||||
className="text-[clamp(2.25rem,4vw,3rem)] font-medium leading-none tracking-[-0.03em]"
|
||||
style={i === 1 ? { color: "var(--accent-red)" } : undefined}
|
||||
>
|
||||
{n}
|
||||
</p>
|
||||
<p className="mt-3 font-mono text-[10px] uppercase tracking-[0.1em] text-muted-foreground">{l}</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
@@ -5,17 +5,34 @@ import { useReveal } from "@/hooks/use-reveal";
|
||||
export function EditorialSection() {
|
||||
const ref = useReveal<HTMLElement>();
|
||||
return (
|
||||
<section ref={ref} className="dark grain-overlay relative border-b border-[#262626] bg-[#0a0a0a] text-[#fafafa]">
|
||||
<div className="relative mx-auto flex min-h-[60vh] max-w-[80rem] flex-col justify-center px-6 py-28">
|
||||
<blockquote className="reveal max-w-5xl text-[clamp(2rem,5vw,4.5rem)] font-medium leading-[1.05] tracking-[-0.02em]">
|
||||
<section ref={ref} className="dark grain-overlay relative overflow-hidden border-b border-[#262626] bg-[#0a0a0a] text-[#fafafa]">
|
||||
{/* Oversized faint numeral — graphic texture */}
|
||||
<span
|
||||
aria-hidden
|
||||
className="reveal-fade pointer-events-none absolute -right-4 -top-10 select-none font-mono text-[clamp(8rem,22vw,18rem)] font-medium leading-none tracking-[-0.05em] text-[#171717]"
|
||||
>
|
||||
00
|
||||
</span>
|
||||
|
||||
<div className="relative mx-auto flex min-h-[64vh] max-w-[80rem] flex-col justify-center px-6 py-32">
|
||||
{/* Hairline + section index */}
|
||||
<div className="reveal-left flex items-center gap-4">
|
||||
<span className="font-mono text-[11px] uppercase tracking-[0.18em] text-[#737373]">Manifest</span>
|
||||
<span className="h-px flex-1 bg-[#262626]" />
|
||||
</div>
|
||||
|
||||
<blockquote className="reveal mt-16 max-w-5xl text-[clamp(2.5rem,6vw,5.5rem)] font-medium leading-[0.98] tracking-[-0.03em]">
|
||||
Data du kan{" "}
|
||||
<span className="relative whitespace-nowrap">
|
||||
stå för
|
||||
<span className="absolute -bottom-1 left-0 h-0.5 w-full" style={{ backgroundColor: "var(--accent-red)" }} />
|
||||
</span>{" "}
|
||||
i ett styrelserum. Inte bara en CSV som ser rätt ut.
|
||||
</span>
|
||||
.
|
||||
<br />
|
||||
<span className="text-[#737373]">Inte se rätt ut.</span>
|
||||
</blockquote>
|
||||
<p className="reveal delay-2 mt-10 font-mono text-[11px] uppercase tracking-[0.14em] text-[#a3a3a3]">
|
||||
|
||||
<p className="reveal delay-2 mt-20 font-mono text-[11px] uppercase tracking-[0.16em] text-[#a3a3a3]">
|
||||
0PT — SIAX Technology AB
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -21,12 +21,12 @@ interface Dataset {
|
||||
}
|
||||
|
||||
const DATASETS: Dataset[] = [
|
||||
{ markets: "SE · NO · DK · FI", title: "Nordisk bolagsdata", desc: "Identitet, säte, status, SNI — från officiella register.", count: "4,9M poster", freshness: "daglig", level: 3, source: "GLEIF · Brreg", cat: "Bolag" },
|
||||
{ markets: "SE · NO · DK · FI", title: "Beslutsfattare i tech", desc: "Roller och kontaktvägar, härkomst per fält.", count: "182k poster", freshness: "veckovis", level: 1, source: "publik webb", cat: "Beslutsfattare" },
|
||||
{ markets: "SE", title: "Fordonsregister & inventory", desc: "Tekniska data och flotta — VehIQ-synergin.", count: "6,1M poster", freshness: "daglig", level: 2, source: "register", cat: "Fordon" },
|
||||
{ markets: "SE · NO · DK · FI", title: "Finansiella tidsserier", desc: "Omsättning, resultat, nyckeltal per bokslutsår.", count: "12 år", freshness: "årlig", level: 2, source: "register", cat: "Finansiellt" },
|
||||
{ markets: "Norden", title: "Köpsignaler & intent", desc: "Jobbannonser, nyheter, teknikbyten.", count: "löpande", freshness: "veckovis", level: 1, source: "webb", cat: "Bolag" },
|
||||
{ markets: "EU", title: "Sanktioner / PEP", desc: "Officiella listor, för screening och diligence.", count: "global", freshness: "daglig", level: 3, source: "OpenSanctions", cat: "Bolag" },
|
||||
{ markets: "SE · NO · DK · FI", title: "Nordisk bolagsdata", desc: "Officiella register. Per fält.", count: "4,9M poster", freshness: "daglig", level: 3, source: "GLEIF · Brreg", cat: "Bolag" },
|
||||
{ markets: "SE · NO · DK · FI", title: "Beslutsfattare i tech", desc: "Roll och väg. Källa per fält.", count: "182k poster", freshness: "veckovis", level: 1, source: "publik webb", cat: "Beslutsfattare" },
|
||||
{ markets: "SE", title: "Fordon & flotta", desc: "Tekniska data. VehIQ-synergin.", count: "6,1M poster", freshness: "daglig", level: 2, source: "register", cat: "Fordon" },
|
||||
{ markets: "SE · NO · DK · FI", title: "Finansiella serier", desc: "Omsättning, resultat, nyckeltal.", count: "12 år", freshness: "årlig", level: 2, source: "register", cat: "Finansiellt" },
|
||||
{ markets: "Norden", title: "Köpsignaler", desc: "Annonser, nyheter, teknikbyten.", count: "löpande", freshness: "veckovis", level: 1, source: "webb", cat: "Bolag" },
|
||||
{ markets: "EU", title: "Sanktioner / PEP", desc: "Officiella listor. Screening.", count: "global", freshness: "daglig", level: 3, source: "OpenSanctions", cat: "Bolag" },
|
||||
];
|
||||
|
||||
export function FeaturedProductsSection() {
|
||||
@@ -35,22 +35,33 @@ export function FeaturedProductsSection() {
|
||||
const shown = DATASETS.filter((d) => filter === "Alla" || d.cat === filter);
|
||||
|
||||
return (
|
||||
<section ref={ref} id="katalog" className="border-b border-border bg-background">
|
||||
<div className="mx-auto max-w-[80rem] px-6 py-24 lg:py-32">
|
||||
<div className="reveal flex flex-wrap items-end justify-between gap-6">
|
||||
<div>
|
||||
<p className="font-mono text-[11px] uppercase tracking-[0.14em] text-muted-foreground">02 — Katalog</p>
|
||||
<h2 className="mt-3 text-[clamp(1.8rem,3.5vw,3rem)] font-medium tracking-[-0.02em]">Färdiga dataset. Redo att leverera.</h2>
|
||||
<section ref={ref} id="katalog" className="relative overflow-hidden border-b border-border bg-background">
|
||||
{/* oversized faint section numeral — graphic texture */}
|
||||
<span
|
||||
aria-hidden
|
||||
className="pointer-events-none absolute -right-4 top-8 select-none font-mono text-[18rem] leading-none tracking-[-0.05em] text-foreground/[0.025] sm:text-[24rem]"
|
||||
>
|
||||
02
|
||||
</span>
|
||||
|
||||
<div className="relative mx-auto max-w-[80rem] px-6 py-28 lg:py-40">
|
||||
<div className="reveal flex flex-wrap items-end justify-between gap-10 border-b border-border pb-10">
|
||||
<div className="max-w-2xl">
|
||||
<p className="font-mono text-[11px] uppercase tracking-[0.18em] text-muted-foreground">02 / Katalog</p>
|
||||
<h2 className="mt-5 text-[clamp(2.2rem,5vw,4rem)] font-medium leading-[0.98] tracking-[-0.03em]">
|
||||
Färdiga dataset.
|
||||
<br />
|
||||
<span className="text-muted-foreground">Redo att leverera.</span>
|
||||
</h2>
|
||||
</div>
|
||||
<div className="flex flex-wrap gap-2">
|
||||
<div className="flex flex-wrap gap-px bg-border">
|
||||
{FILTERS.map((f) => (
|
||||
<button
|
||||
key={f}
|
||||
onClick={() => setFilter(f)}
|
||||
className="border px-3 py-1.5 font-mono text-[11px] uppercase tracking-[0.08em] transition-colors"
|
||||
className="bg-background px-4 py-2 font-mono text-[11px] uppercase tracking-[0.1em] transition-colors"
|
||||
style={{
|
||||
borderColor: filter === f ? "var(--foreground)" : "var(--border)",
|
||||
backgroundColor: filter === f ? "var(--foreground)" : "transparent",
|
||||
backgroundColor: filter === f ? "var(--foreground)" : "var(--background)",
|
||||
color: filter === f ? "var(--background)" : "var(--foreground)",
|
||||
}}
|
||||
>
|
||||
@@ -60,26 +71,31 @@ export function FeaturedProductsSection() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="mt-10 grid grid-cols-1 gap-px bg-border md:grid-cols-3">
|
||||
<div className="mt-px grid grid-cols-1 gap-px border-x border-b border-border bg-border md:grid-cols-3">
|
||||
{shown.map((d, i) => (
|
||||
<div key={d.title} className={`reveal-scale delay-${(i % 6) + 1} group relative bg-background p-6 transition-colors hover:bg-secondary/40`}>
|
||||
<span className="absolute left-0 top-0 h-0.5 w-0 transition-all duration-300 group-hover:w-full" style={{ backgroundColor: "var(--accent-red)" }} />
|
||||
<p className="font-mono text-[10px] uppercase tracking-[0.12em] text-muted-foreground">{d.markets}</p>
|
||||
<h3 className="mt-3 text-lg font-semibold">{d.title}</h3>
|
||||
<p className="mt-1 text-sm text-muted-foreground">{d.desc}</p>
|
||||
<div className="mt-4 flex flex-wrap items-center gap-2">
|
||||
<span className="font-mono text-[11px] text-muted-foreground">{d.count}</span>
|
||||
<span className="text-border">·</span>
|
||||
<span className="font-mono text-[11px] text-muted-foreground">Uppdaterad: {d.freshness}</span>
|
||||
<div key={d.title} className={`reveal-scale delay-${(i % 6) + 1} group relative flex flex-col bg-background p-7 transition-colors hover:bg-secondary/40`}>
|
||||
<span className="absolute left-0 top-0 h-px w-0 transition-all duration-300 group-hover:w-full" style={{ backgroundColor: "var(--accent-red)" }} />
|
||||
<div className="flex items-baseline justify-between">
|
||||
<p className="font-mono text-[10px] uppercase tracking-[0.14em] text-muted-foreground">{d.markets}</p>
|
||||
<span className="font-mono text-[10px] tabular-nums text-foreground/20">{String(i + 1).padStart(2, "0")}</span>
|
||||
</div>
|
||||
<div className="mt-3">
|
||||
<h3 className="mt-5 text-xl font-semibold tracking-[-0.01em] transition-transform duration-300 group-hover:translate-x-1">{d.title}</h3>
|
||||
<p className="mt-2 text-sm text-muted-foreground">{d.desc}</p>
|
||||
|
||||
<div className="mt-6 flex items-center gap-3 border-t border-border pt-4 font-mono text-[11px] text-muted-foreground">
|
||||
<span className="text-foreground">{d.count}</span>
|
||||
<span className="text-border">·</span>
|
||||
<span>{d.freshness}</span>
|
||||
</div>
|
||||
<div className="mt-4">
|
||||
<ProvenanceBadge level={d.level} source={d.source} freshness={d.freshness} />
|
||||
</div>
|
||||
<div className="mt-5 flex items-center justify-between">
|
||||
<Link href="/order/SX-4471/validera" className="font-mono text-[11px] uppercase tracking-[0.08em] underline-offset-4 hover:underline">
|
||||
|
||||
<div className="mt-auto flex items-center justify-between pt-7">
|
||||
<Link href="/order/SX-4471/validera" className="font-mono text-[11px] uppercase tracking-[0.1em] underline-offset-4 hover:underline">
|
||||
Visa urval →
|
||||
</Link>
|
||||
<Link href="/bestall" className="border border-foreground px-3 py-1.5 font-mono text-[11px] uppercase tracking-[0.08em] transition-colors hover:bg-foreground hover:text-background">
|
||||
<Link href="/bestall" className="border border-foreground px-3 py-1.5 font-mono text-[11px] uppercase tracking-[0.1em] transition-colors hover:bg-foreground hover:text-background">
|
||||
Beställ
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
@@ -5,35 +5,40 @@ import { useReveal } from "@/hooks/use-reveal";
|
||||
|
||||
const COLUMNS: { head: string; links: { label: string; href: string }[] }[] = [
|
||||
{ head: "Produkt", links: [{ label: "Katalog", href: "/#katalog" }, { label: "Beställ", href: "/bestall" }, { label: "Priser", href: "/#priser" }, { label: "API", href: "/bestall" }] },
|
||||
{ head: "Källor", links: [{ label: "Sourcing-karta", href: "/#tackning" }, { label: "Färskhet", href: "/#tackning" }, { label: "Licenser", href: "/#motorn" }] },
|
||||
{ head: "Bolag", links: [{ label: "Om SIAX", href: "https://siax.io" }, { label: "Kontakt", href: "mailto:hej@siax.io" }] },
|
||||
{ head: "Källor", links: [{ label: "Sourcing", href: "/#tackning" }, { label: "Färskhet", href: "/#tackning" }, { label: "Licenser", href: "/#motorn" }] },
|
||||
{ head: "Bolag", links: [{ label: "SIAX", href: "https://siax.io" }, { label: "Kontakt", href: "mailto:hej@siax.io" }] },
|
||||
{ head: "Juridik", links: [{ label: "DPA", href: "/#" }, { label: "Villkor", href: "/#" }, { label: "Integritet", href: "/#" }] },
|
||||
];
|
||||
|
||||
export function FooterSection() {
|
||||
const ref = useReveal<HTMLElement>();
|
||||
return (
|
||||
<footer ref={ref} className="dark bg-[#0a0a0a] text-[#fafafa]">
|
||||
<div className="mx-auto max-w-[80rem] px-6 py-20">
|
||||
<div className="grid grid-cols-2 gap-10 md:grid-cols-5">
|
||||
<div className="reveal-left col-span-2">
|
||||
<footer ref={ref} className="dark relative overflow-hidden bg-[#0a0a0a] text-[#fafafa]">
|
||||
<div className="mx-auto max-w-[80rem] px-6">
|
||||
{/* Columns over a single shared baseline */}
|
||||
<div className="grid grid-cols-2 gap-x-10 gap-y-12 border-b border-[#1f1f1f] py-16 md:grid-cols-12">
|
||||
<div className="reveal-left col-span-2 md:col-span-5">
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="text-2xl font-semibold tracking-[-0.02em]">0pt</span>
|
||||
<span className="inline-block h-1 w-1" style={{ backgroundColor: "var(--accent-red)" }} />
|
||||
<span className="font-mono text-[10px] uppercase tracking-[0.18em] text-[#a3a3a3]">your data</span>
|
||||
<span className="font-mono text-[11px] uppercase tracking-[0.18em] text-[#737373]">your data</span>
|
||||
<span className="inline-block h-1 w-1 animate-float" style={{ backgroundColor: "var(--accent-red)" }} />
|
||||
</div>
|
||||
<p className="mt-4 max-w-xs text-sm text-[#a3a3a3]">
|
||||
Datatjänster på beställning. Härkomst per fält, GDPR-native.
|
||||
<p className="mt-5 max-w-sm text-[15px] leading-snug text-[#a3a3a3]">
|
||||
På beställning. Härkomst per fält.<br />
|
||||
Inget gissat.
|
||||
</p>
|
||||
</div>
|
||||
{COLUMNS.map((c, i) => (
|
||||
<div key={c.head} className={`reveal delay-${i + 1}`}>
|
||||
<h4 className="font-mono text-[11px] uppercase tracking-[0.12em] text-[#a3a3a3]">{c.head}</h4>
|
||||
<ul className="mt-4 space-y-2.5">
|
||||
<div key={c.head} className={`reveal delay-${i + 1} md:col-span-2`}>
|
||||
<h4 className="border-b border-[#1f1f1f] pb-2.5 font-mono text-[10px] uppercase tracking-[0.2em] text-[#737373]">{c.head}</h4>
|
||||
<ul className="mt-4 space-y-3">
|
||||
{c.links.map((l) => (
|
||||
<li key={l.label}>
|
||||
<Link href={l.href} className="text-sm text-[#fafafa] transition-colors hover:text-[var(--accent-red)]">
|
||||
{l.label}
|
||||
<Link
|
||||
href={l.href}
|
||||
className="group inline-flex items-center gap-2 text-[15px] tracking-[-0.01em] text-[#fafafa] transition-colors hover:text-[#fafafa]"
|
||||
>
|
||||
<span className="h-px w-0 bg-[#fafafa] transition-all duration-300 group-hover:w-4" />
|
||||
<span className="transition-transform duration-300 group-hover:translate-x-0">{l.label}</span>
|
||||
</Link>
|
||||
</li>
|
||||
))}
|
||||
@@ -41,9 +46,22 @@ export function FooterSection() {
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
<div className="mt-16 flex flex-col items-center justify-between gap-3 border-t border-[#262626] pt-6 md:flex-row">
|
||||
<p className="font-mono text-[11px] uppercase tracking-[0.08em] text-[#a3a3a3]">© 2026 SIAX Technology AB</p>
|
||||
<p className="font-mono text-[11px] uppercase tracking-[0.08em] text-[#a3a3a3]">0pt.app</p>
|
||||
|
||||
{/* Oversized wordmark as graphic texture */}
|
||||
<div className="reveal-fade relative py-12">
|
||||
<div className="flex items-end justify-between gap-6">
|
||||
<span className="select-none font-semibold leading-[0.8] tracking-[-0.05em] text-[#fafafa] text-[clamp(5rem,22vw,17rem)]">
|
||||
0pt
|
||||
</span>
|
||||
<span className="hidden pb-4 text-right font-mono text-[11px] uppercase leading-relaxed tracking-[0.14em] text-[#525252] md:block">
|
||||
Beställ.<br />Betala hälften.<br />Validera.
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col items-start justify-between gap-2 border-t border-[#1f1f1f] py-6 md:flex-row md:items-center">
|
||||
<p className="font-mono text-[10px] uppercase tracking-[0.12em] text-[#525252]">© 2026 SIAX Technology AB</p>
|
||||
<p className="font-mono text-[10px] uppercase tracking-[0.12em] text-[#525252]">0pt.app</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
@@ -4,31 +4,52 @@ 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." },
|
||||
{ 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-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="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-10 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
||||
<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) => (
|
||||
<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>
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
@@ -4,7 +4,7 @@ import Link from "next/link";
|
||||
import { useReveal } from "@/hooks/use-reveal";
|
||||
|
||||
const STATS = [
|
||||
["20", "marknader täckta"],
|
||||
["20", "marknader"],
|
||||
["Per fält", "härkomst & konfidens"],
|
||||
["50/50", "start & godkänt"],
|
||||
["GDPR", "native, med DPA"],
|
||||
@@ -25,46 +25,58 @@ export function HeroSection() {
|
||||
|
||||
return (
|
||||
<section ref={ref} className="grain-overlay relative overflow-hidden border-b border-border bg-background">
|
||||
{/* graph-paper grid */}
|
||||
<div
|
||||
aria-hidden
|
||||
className="pointer-events-none absolute inset-0 opacity-[0.5]"
|
||||
style={{
|
||||
backgroundImage:
|
||||
"linear-gradient(to right, var(--border) 1px, transparent 1px), linear-gradient(to bottom, var(--border) 1px, transparent 1px)",
|
||||
backgroundSize: "32px 32px",
|
||||
maskImage: "radial-gradient(120% 90% at 30% 20%, #000 30%, transparent 75%)",
|
||||
WebkitMaskImage: "radial-gradient(120% 90% at 30% 20%, #000 30%, transparent 75%)",
|
||||
}}
|
||||
/>
|
||||
{/* faint oversized wordmark */}
|
||||
<div aria-hidden className="pointer-events-none absolute -right-10 top-1/2 -translate-y-1/2 select-none">
|
||||
<span className="text-[34vw] font-semibold leading-none tracking-tighter text-border/60 md:text-[22vw]">0pt</span>
|
||||
<span className="text-[34vw] font-semibold leading-none tracking-tighter text-border/50 md:text-[22vw]">0pt</span>
|
||||
</div>
|
||||
<span aria-hidden className="animate-float pointer-events-none absolute right-[8%] top-[22%] inline-block h-3 w-3" style={{ backgroundColor: "var(--accent-red)" }} />
|
||||
{/* single red marker — the only red at rest */}
|
||||
<span aria-hidden className="animate-float pointer-events-none absolute right-[8%] top-[20%] inline-block h-3 w-3" style={{ backgroundColor: "var(--accent-red)" }} />
|
||||
|
||||
<div className="relative mx-auto grid max-w-[80rem] grid-cols-1 gap-12 px-6 py-24 lg:grid-cols-[1.1fr_0.9fr] lg:py-32">
|
||||
<div className="relative mx-auto grid max-w-[80rem] grid-cols-1 gap-16 px-6 py-28 lg:grid-cols-[1.1fr_0.9fr] lg:py-40">
|
||||
<div className="flex flex-col justify-center">
|
||||
<p className="reveal delay-1 font-mono text-[11px] uppercase tracking-[0.14em] text-muted-foreground">
|
||||
00 — Datatjänster på beställning · Norden & EU
|
||||
<p className="reveal delay-1 font-mono text-[11px] uppercase tracking-[0.18em] text-muted-foreground">
|
||||
00 — Datatjänster på beställning
|
||||
</p>
|
||||
<h1 className="reveal delay-2 mt-5 text-[clamp(2.6rem,7vw,6rem)] font-medium leading-[0.95] tracking-[-0.025em]">
|
||||
Beställ exakt den data du behöver.
|
||||
<h1 className="reveal delay-2 mt-8 text-[clamp(3rem,8vw,7rem)] font-medium leading-[0.92] tracking-[-0.035em]">
|
||||
Beställ data.
|
||||
<br />
|
||||
<span style={{ color: "var(--accent-red)" }}>Validera varje fält.</span>
|
||||
Validera fält.
|
||||
</h1>
|
||||
<p className="reveal delay-3 mt-6 max-w-[54ch] text-lg text-muted-foreground">
|
||||
Sätt ihop ditt eget datajobb. Betala 50 % för att starta. Följ produktionen i realtid. Godkänn
|
||||
resultatet med full insyn i var varje uppgift kommer ifrån — och hur säker den är.
|
||||
<p className="reveal delay-3 mt-8 max-w-[32ch] text-xl leading-snug text-muted-foreground">
|
||||
Bygg jobbet. Betala hälften. Följ produktionen. Godkänn. Källan syns — alltid.
|
||||
</p>
|
||||
<div className="reveal delay-4 mt-8 flex flex-wrap gap-3">
|
||||
<div className="reveal delay-4 mt-12 flex flex-wrap gap-3">
|
||||
<Link
|
||||
href="/bestall"
|
||||
className="bg-foreground px-6 py-3.5 font-mono text-[12px] uppercase tracking-[0.1em] text-background transition-colors hover:bg-[var(--accent-red)]"
|
||||
className="bg-foreground px-7 py-4 font-mono text-[12px] uppercase tracking-[0.14em] text-background transition-colors hover:bg-[var(--accent-red)]"
|
||||
>
|
||||
Bygg en beställning
|
||||
Bygg beställning
|
||||
</Link>
|
||||
<Link
|
||||
href="/order/SX-4471/validera"
|
||||
className="border border-foreground px-6 py-3.5 font-mono text-[12px] uppercase tracking-[0.1em] transition-colors hover:bg-foreground hover:text-background"
|
||||
className="border border-foreground px-7 py-4 font-mono text-[12px] uppercase tracking-[0.14em] transition-colors hover:bg-foreground hover:text-background"
|
||||
>
|
||||
Se ett levererat dataset
|
||||
Se ett dataset
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
<div className="reveal delay-5 mt-12 grid grid-cols-2 gap-px border border-border bg-border sm:grid-cols-4">
|
||||
<div className="reveal delay-5 mt-16 grid grid-cols-2 gap-px border border-border bg-border sm:grid-cols-4">
|
||||
{STATS.map(([n, l]) => (
|
||||
<div key={l} className="bg-background p-4">
|
||||
<p className="text-2xl font-semibold tracking-[-0.02em]">{n}</p>
|
||||
<p className="mt-1 font-mono text-[10px] uppercase tracking-[0.08em] text-muted-foreground">{l}</p>
|
||||
<div key={l} className="group bg-background p-4 transition-colors hover:bg-muted/40">
|
||||
<p className="text-2xl font-semibold tracking-[-0.03em]">{n}</p>
|
||||
<p className="mt-2 font-mono text-[10px] uppercase tracking-[0.1em] text-muted-foreground">{l}</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
@@ -73,14 +85,17 @@ export function HeroSection() {
|
||||
{/* the artifact */}
|
||||
<div className="reveal-fade flex items-center">
|
||||
<div className="w-full border border-border bg-background">
|
||||
<div className="flex items-center justify-between border-b border-border px-4 py-2">
|
||||
<span className="font-mono text-[10px] uppercase tracking-[0.12em] text-muted-foreground">dim_company · exempel</span>
|
||||
<span className="font-mono text-[10px] uppercase tracking-[0.12em] text-muted-foreground">härkomst</span>
|
||||
<div className="flex items-center justify-between border-b border-border px-4 py-2.5">
|
||||
<span className="font-mono text-[10px] uppercase tracking-[0.14em] text-muted-foreground">dim_company</span>
|
||||
<span className="font-mono text-[10px] uppercase tracking-[0.14em] text-muted-foreground">härkomst</span>
|
||||
</div>
|
||||
{ROWS.map((r, i) => (
|
||||
<div key={i} className={`reveal delay-${i + 1} flex items-center justify-between border-b border-border px-4 py-3 last:border-b-0`}>
|
||||
<div
|
||||
key={i}
|
||||
className={`reveal delay-${i + 1} group flex items-center justify-between border-b border-border px-4 py-3.5 transition-colors last:border-b-0 hover:bg-muted/40`}
|
||||
>
|
||||
<div className="min-w-0">
|
||||
<p className="truncate text-sm">{r[1]}</p>
|
||||
<p className="truncate text-sm transition-transform duration-200 group-hover:translate-x-0.5">{r[1]}</p>
|
||||
<p className="font-mono text-[10.5px] text-muted-foreground">{r[0]}</p>
|
||||
</div>
|
||||
<span className="ml-3 inline-flex items-center gap-1.5 border border-border px-1.5 py-0.5 font-mono text-[10px] uppercase text-muted-foreground">
|
||||
|
||||
@@ -3,31 +3,39 @@
|
||||
import { useReveal } from "@/hooks/use-reveal";
|
||||
|
||||
const PRINCIPLES = [
|
||||
["01", "Härkomst per fält.", "Varje värde bär källa, färskhet och konfidens. Du ser kedjan, inte bara siffran."],
|
||||
["02", "Korroborering före påstående.", "Flera oberoende källor måste vara överens. Annars markeras fältet som osäkert."],
|
||||
["03", "Hellre tomt än gissat.", "Det vi inte kan belägga levereras som ej tillgängligt — aldrig uppfunnet."],
|
||||
["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-24 lg:grid-cols-[4fr_8fr] lg:py-32">
|
||||
<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-3 font-mono text-[11px] uppercase tracking-[0.08em] text-muted-foreground">Ärlig data, visad ärligt.</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 text-[clamp(1.8rem,3.5vw,3rem)] font-medium leading-tight tracking-[-0.02em]">
|
||||
De flesta dataleverantörer säljer säkerhet de inte har. Vi visar källan till varje uppgift.
|
||||
<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-12">
|
||||
<div className="mt-20 border-t border-border">
|
||||
{PRINCIPLES.map(([n, title, body], i) => (
|
||||
<div key={n} className={`reveal delay-${i + 1} grid grid-cols-[auto_1fr] gap-6 border-t border-border py-6`}>
|
||||
<span className="font-mono text-[11px] text-muted-foreground">{n}</span>
|
||||
<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-lg font-medium">{title}</p>
|
||||
<p className="mt-1 text-muted-foreground">{body}</p>
|
||||
<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>
|
||||
))}
|
||||
|
||||
@@ -5,23 +5,26 @@ import { useReveal } from "@/hooks/use-reveal";
|
||||
|
||||
const MODELS = [
|
||||
{
|
||||
index: "01",
|
||||
name: "Per jobb",
|
||||
tagline: "Betala för exakt det du beställer.",
|
||||
points: ["50 % för att starta, 50 % vid godkänt", "Inga abonnemang", "Härkomst + kvalitetsrapport ingår"],
|
||||
cta: "Bygg en beställning",
|
||||
tagline: "Betala för det du beställer.",
|
||||
points: ["50 % start. 50 % vid godkänt.", "Inga abonnemang.", "Härkomst ingår."],
|
||||
cta: "Bygg beställning",
|
||||
featured: true,
|
||||
},
|
||||
{
|
||||
index: "02",
|
||||
name: "Prenumeration",
|
||||
tagline: "Återkommande feed eller löpande berikning.",
|
||||
points: ["Dagliga eller veckovisa deltan", "Webhook vid förändring", "Färskhetsövervakning"],
|
||||
tagline: "Löpande feed.",
|
||||
points: ["Dagliga deltan.", "Webhook vid ändring.", "Färskhet bevakas."],
|
||||
cta: "Konfigurera feed",
|
||||
featured: false,
|
||||
},
|
||||
{
|
||||
index: "03",
|
||||
name: "Custom",
|
||||
tagline: "Stora eller komplexa uppdrag.",
|
||||
points: ["Scope + offert innan start", "ML-, BI- och dokumentjobb", "Dedikerad leverans + API"],
|
||||
tagline: "Stora uppdrag.",
|
||||
points: ["Offert innan start.", "ML, BI, dokument.", "Dedikerad API."],
|
||||
cta: "Boka samtal",
|
||||
featured: false,
|
||||
},
|
||||
@@ -31,29 +34,41 @@ export function PricingSection() {
|
||||
const ref = useReveal<HTMLElement>();
|
||||
return (
|
||||
<section ref={ref} id="priser" 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">06 — Priser</p>
|
||||
<h2 className="reveal delay-1 mt-3 text-[clamp(1.8rem,3.5vw,3rem)] font-medium tracking-[-0.02em]">Tre sätt att köpa. Inga överraskningar.</h2>
|
||||
<div className="mx-auto max-w-[80rem] px-6 py-32 lg:py-40">
|
||||
<div className="flex items-baseline justify-between border-b border-border pb-6">
|
||||
<p className="reveal font-mono text-[11px] uppercase tracking-[0.18em] text-muted-foreground">06 — Priser</p>
|
||||
<p className="reveal delay-1 font-mono text-[11px] uppercase tracking-[0.18em] text-muted-foreground">Tre modeller</p>
|
||||
</div>
|
||||
|
||||
<div className="mt-10 grid grid-cols-1 gap-px bg-border md:grid-cols-3">
|
||||
<h2 className="reveal delay-1 mt-12 max-w-[20ch] text-[clamp(2.4rem,6vw,5rem)] font-medium leading-[0.96] tracking-[-0.03em]">
|
||||
Tre sätt att köpa.
|
||||
<br />
|
||||
Inga överraskningar.
|
||||
</h2>
|
||||
|
||||
<div className="mt-20 grid grid-cols-1 gap-px border border-border bg-border md:grid-cols-3">
|
||||
{MODELS.map((m, i) => (
|
||||
<div key={m.name} className={`reveal delay-${i + 1} flex flex-col bg-background p-6`}>
|
||||
<div className="flex items-center justify-between">
|
||||
<h3 className="text-lg font-semibold">{m.name}</h3>
|
||||
{m.featured ? <span className="inline-block h-2 w-2" style={{ backgroundColor: "var(--accent-red)" }} /> : null}
|
||||
<div key={m.name} className={`reveal delay-${i + 1} group relative flex flex-col bg-background p-8`}>
|
||||
<div className="flex items-start justify-between">
|
||||
<span className="font-mono text-[11px] uppercase tracking-[0.18em] text-muted-foreground/60">{m.index}</span>
|
||||
{m.featured ? <span className="mt-1 inline-block h-2 w-2" style={{ backgroundColor: "var(--accent-red)" }} /> : null}
|
||||
</div>
|
||||
|
||||
<h3 className="mt-10 text-2xl font-semibold tracking-[-0.02em]">{m.name}</h3>
|
||||
<p className="mt-2 text-sm text-muted-foreground">{m.tagline}</p>
|
||||
<ul className="mt-5 flex-1 space-y-2.5">
|
||||
|
||||
<ul className="mt-10 flex-1 space-y-px border-t border-border">
|
||||
{m.points.map((p) => (
|
||||
<li key={p} className="flex items-start gap-2 text-sm">
|
||||
<span className="mt-1 inline-block h-1.5 w-1.5 shrink-0 bg-foreground" />
|
||||
<li key={p} className="flex items-center gap-3 border-b border-border py-3 text-sm">
|
||||
<span className="inline-block h-1 w-1 shrink-0 bg-foreground" />
|
||||
<span>{p}</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
<Link
|
||||
href="/bestall"
|
||||
className="mt-6 block py-3 text-center font-mono text-[11px] uppercase tracking-[0.1em] transition-colors"
|
||||
className="mt-10 block py-4 text-center font-mono text-[11px] uppercase tracking-[0.14em] transition-all duration-200 hover:-translate-y-px"
|
||||
style={
|
||||
m.featured
|
||||
? { backgroundColor: "var(--foreground)", color: "var(--background)" }
|
||||
|
||||
@@ -3,50 +3,88 @@
|
||||
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"],
|
||||
["01", "Officiella API:er", "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: tomt", "Vi gissar aldrig.", "transparent"],
|
||||
];
|
||||
|
||||
const PIPELINE = ["Källracing", "Extraktion & OCR", "Strukturering", "Berikning & fusion", "Kvalitetskontroll"];
|
||||
const PIPELINE = ["Källracing", "Extraktion", "Strukturering", "Berikning", "QA"];
|
||||
|
||||
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.
|
||||
<section ref={ref} id="motorn" className="dark grain-overlay relative overflow-hidden border-b border-[#262626] bg-[#0a0a0a] text-[#fafafa]">
|
||||
{/* graph-paper hairline texture */}
|
||||
<div
|
||||
aria-hidden
|
||||
className="pointer-events-none absolute inset-0 opacity-[0.5]"
|
||||
style={{
|
||||
backgroundImage:
|
||||
"linear-gradient(to right, #161616 1px, transparent 1px), linear-gradient(to bottom, #161616 1px, transparent 1px)",
|
||||
backgroundSize: "64px 64px",
|
||||
maskImage: "radial-gradient(120% 80% at 80% 0%, #000 0%, transparent 75%)",
|
||||
WebkitMaskImage: "radial-gradient(120% 80% at 80% 0%, #000 0%, transparent 75%)",
|
||||
}}
|
||||
/>
|
||||
{/* oversized faint section numeral */}
|
||||
<span
|
||||
aria-hidden
|
||||
className="pointer-events-none absolute -right-2 top-2 select-none font-mono text-[clamp(7rem,22vw,16rem)] font-medium leading-none tracking-[-0.04em] text-[#141414]"
|
||||
>
|
||||
03
|
||||
</span>
|
||||
|
||||
<div className="relative mx-auto max-w-[80rem] px-6 py-28 lg:py-40">
|
||||
<div className="reveal flex items-center gap-3">
|
||||
<span aria-hidden className="animate-float inline-block h-2 w-2" style={{ backgroundColor: "var(--accent-red)" }} />
|
||||
<p className="font-mono text-[11px] uppercase tracking-[0.16em] text-[#a3a3a3]">Motorn</p>
|
||||
</div>
|
||||
<h2 className="reveal delay-1 mt-6 max-w-3xl text-[clamp(2.2rem,5vw,4rem)] font-medium leading-[0.98] tracking-[-0.03em]">
|
||||
Lagligt insamlat.
|
||||
<br />
|
||||
Spårbart 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">
|
||||
<p className="reveal delay-2 mt-20 font-mono text-[11px] uppercase tracking-[0.16em] text-[#737373]">Källkedjan — i prioritet</p>
|
||||
<div className="reveal-scale delay-2 mt-6 grid grid-cols-1 border-t border-[#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
|
||||
key={n}
|
||||
className={`reveal delay-${i + 1} group relative border-b border-l border-[#262626] p-6 transition-[background-color] duration-300 hover:bg-[#121212] sm:[&:nth-child(2n)]:border-r lg:[&:nth-child(2n)]:border-r-0 lg:[&:last-child]:border-r`}
|
||||
>
|
||||
{/* hairline draw on hover */}
|
||||
<span aria-hidden className="absolute left-0 top-0 h-px w-0 bg-[#525252] transition-[width] duration-300 ease-out group-hover:w-full" />
|
||||
<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" }} />
|
||||
<span className="font-mono text-[11px] tracking-[0.08em] text-[#737373]">{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>
|
||||
<p className="mt-16 text-[1.0625rem] font-medium leading-tight tracking-[-0.01em]">{title}</p>
|
||||
<p className="mt-2 font-mono text-[11px] leading-relaxed 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">
|
||||
<p className="reveal delay-3 mt-24 font-mono text-[11px] uppercase tracking-[0.16em] text-[#737373]">Pipelinen</p>
|
||||
<div className="reveal delay-3 mt-6 flex flex-wrap items-center gap-x-3 gap-y-4">
|
||||
{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 key={s} className="flex items-center gap-3">
|
||||
<span className="font-mono text-[11px] tracking-[0.06em] text-[#525252]">{String(i + 1).padStart(2, "0")}</span>
|
||||
<span className="font-mono text-[13px] uppercase tracking-[0.06em] text-[#fafafa]">{s}</span>
|
||||
{i < PIPELINE.length - 1 ? <span aria-hidden className="text-[#404040]">/</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 className="reveal delay-4 mt-8 max-w-md font-mono text-[11px] uppercase leading-relaxed tracking-[0.06em] text-[#737373]">
|
||||
QA körs i pipelinen. Inte vid sidan om.
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -3,36 +3,54 @@
|
||||
import { useReveal } from "@/hooks/use-reveal";
|
||||
|
||||
const NUMBERS = [
|
||||
["94%", "snittkonfidens, levererat", true],
|
||||
["50/50", "betala vid start & godkänt", false],
|
||||
["<4 dgr", "typisk leveranstid", false],
|
||||
["94%", "Snittkonfidens", true],
|
||||
["50/50", "Start. Godkänt.", false],
|
||||
["<4d", "Leverans", false],
|
||||
];
|
||||
|
||||
export function TestimonialsSection() {
|
||||
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">05 — Bevis</p>
|
||||
<h2 className="reveal delay-1 mt-3 text-[clamp(1.8rem,3.5vw,3rem)] font-medium tracking-[-0.02em]">Mätbart. Inte marknadsföring.</h2>
|
||||
<section ref={ref} className="relative border-b border-border bg-background">
|
||||
<div className="mx-auto max-w-[80rem] px-6 py-32 lg:py-44">
|
||||
<div className="flex items-baseline justify-between border-b border-border pb-6">
|
||||
<p className="reveal font-mono text-[11px] uppercase tracking-[0.18em] text-muted-foreground">05 — Bevis</p>
|
||||
<p className="reveal delay-1 font-mono text-[11px] uppercase tracking-[0.18em] text-muted-foreground">Mätbart</p>
|
||||
</div>
|
||||
|
||||
<div className="mt-12 grid grid-cols-1 divide-y divide-border border-y border-border sm:grid-cols-3 sm:divide-x sm:divide-y-0">
|
||||
<h2 className="reveal delay-1 mt-10 max-w-3xl text-[clamp(2.4rem,6vw,4.5rem)] font-medium leading-[0.98] tracking-[-0.03em]">
|
||||
Siffror.
|
||||
<br />
|
||||
Inte löften.
|
||||
</h2>
|
||||
|
||||
<div className="mt-20 grid grid-cols-1 border-t border-border sm:grid-cols-3">
|
||||
{NUMBERS.map(([n, l, red], i) => (
|
||||
<div key={l as string} className={`reveal delay-${i + 1} px-2 py-8`}>
|
||||
<p className="text-[clamp(2.5rem,6vw,4.5rem)] font-semibold tracking-[-0.02em]" style={{ color: red ? "var(--accent-red)" : "var(--foreground)" }}>
|
||||
<div
|
||||
key={l as string}
|
||||
className={`reveal delay-${i + 2} group relative border-b border-border py-12 sm:border-b-0 sm:border-l sm:py-0 sm:pl-8 sm:pr-4 ${i === 0 ? "sm:border-l-0 sm:pl-0" : ""}`}
|
||||
>
|
||||
<p className="font-mono text-[11px] tabular-nums text-muted-foreground/60">0{i + 1}</p>
|
||||
<p
|
||||
className="mt-3 text-[clamp(3.2rem,8vw,6rem)] font-semibold leading-[0.9] tracking-[-0.04em] transition-transform duration-300 group-hover:-translate-y-0.5"
|
||||
style={{ color: red ? "var(--accent-red)" : "var(--foreground)" }}
|
||||
>
|
||||
{n}
|
||||
</p>
|
||||
<p className="mt-2 font-mono text-[11px] uppercase tracking-[0.08em] text-muted-foreground">{l}</p>
|
||||
<p className="mt-4 font-mono text-[11px] uppercase tracking-[0.14em] text-muted-foreground">{l}</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<div className="reveal-scale delay-4 mt-10 max-w-2xl border border-border p-8">
|
||||
<p className="text-xl leading-relaxed">
|
||||
"Vi vågar äntligen lita på listan innan vi ringer. Härkomsten per kontakt avgjorde det."
|
||||
</p>
|
||||
<p className="mt-4 font-mono text-[11px] uppercase tracking-[0.1em] text-muted-foreground">RevOps · B2B SaaS</p>
|
||||
</div>
|
||||
<figure className="reveal-scale delay-5 mt-24 max-w-3xl border-t border-border pt-10">
|
||||
<blockquote className="text-[clamp(1.5rem,3.2vw,2.25rem)] font-medium leading-[1.15] tracking-[-0.02em]">
|
||||
"Vi litar på listan innan vi ringer. Härkomsten per kontakt avgjorde."
|
||||
</blockquote>
|
||||
<figcaption className="mt-8 flex items-center gap-3 font-mono text-[11px] uppercase tracking-[0.16em] text-muted-foreground">
|
||||
<span aria-hidden className="inline-block h-1.5 w-1.5" style={{ background: "var(--prov-0)" }} />
|
||||
RevOps · B2B SaaS
|
||||
</figcaption>
|
||||
</figure>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user