fix(recovery): restore source removed by production documentation merge
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
"use client";
|
||||
|
||||
import { useReveal } from "@/hooks/use-reveal";
|
||||
import { useT } from "@/components/locale-provider";
|
||||
import { MARKETS } from "@/lib/data";
|
||||
|
||||
const STATS: [string, { en: string; sv: string }][] = [
|
||||
["4 980", { en: "records in the sample", sv: "poster i exempel" }],
|
||||
["20", { en: "omitted. Never guessed", sv: "utelämnade. Ej gissade" }],
|
||||
["3,2", { en: "sources per field", sv: "källor per fält" }],
|
||||
];
|
||||
|
||||
export function CollectionSection() {
|
||||
const t = useT();
|
||||
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-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">{t({ en: "04 — Coverage", sv: "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="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]">
|
||||
{t({ en: "Twenty markets.", sv: "Tjugo marknader." })}
|
||||
<br />
|
||||
{t({ en: "One model.", sv: "En modell." })}
|
||||
</h2>
|
||||
<p className="reveal-fade delay-2 col-span-4 font-mono text-[13px] leading-relaxed text-muted-foreground lg:text-right">
|
||||
{t({ en: "Same engine. Same proof.", sv: "Samma motor. Samma bevis." })}
|
||||
<br />
|
||||
{t({ en: "Every country.", sv: "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">{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}%` : t({ en: "coming", sv: "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-px grid grid-cols-1 gap-px border border-border bg-border sm:grid-cols-3">
|
||||
{STATS.map(([n, l], i) => (
|
||||
<div key={l.sv} 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">{t(l)}</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
"use client";
|
||||
|
||||
import { useReveal } from "@/hooks/use-reveal";
|
||||
import { useT } from "@/components/locale-provider";
|
||||
|
||||
export function EditorialSection() {
|
||||
const ref = useReveal<HTMLElement>();
|
||||
const t = useT();
|
||||
return (
|
||||
<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]">{t({ en: "Manifesto", sv: "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]">
|
||||
{t({ en: "Data you can", sv: "Data du kan" })}{" "}
|
||||
<span className="relative whitespace-nowrap">
|
||||
{t({ en: "stand behind", sv: "stå för" })}
|
||||
<span className="absolute -bottom-1 left-0 h-0.5 w-full" style={{ backgroundColor: "var(--accent-red)" }} />
|
||||
</span>
|
||||
.
|
||||
<br />
|
||||
<span className="text-[#737373]">{t({ en: "Not just look right.", sv: "Inte se rätt ut." })}</span>
|
||||
</blockquote>
|
||||
|
||||
<p className="reveal delay-2 mt-20 font-mono text-[11px] uppercase tracking-[0.16em] text-[#a3a3a3]">
|
||||
0PT — SIAX Technology AB
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,122 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { useState } from "react";
|
||||
import { useReveal } from "@/hooks/use-reveal";
|
||||
import { useT } from "@/components/locale-provider";
|
||||
import { ProvenanceBadge } from "@/components/provenance-badge";
|
||||
import type { ProvLevel } from "@/lib/data";
|
||||
|
||||
const FILTERS = ["Alla", "Bolag", "Beslutsfattare", "Fordon", "Finansiellt"] as const;
|
||||
type Filter = (typeof FILTERS)[number];
|
||||
|
||||
const FILTER_LABELS: Record<Filter, { en: string; sv: string }> = {
|
||||
Alla: { en: "All", sv: "Alla" },
|
||||
Bolag: { en: "Companies", sv: "Bolag" },
|
||||
Beslutsfattare: { en: "Decision-makers", sv: "Beslutsfattare" },
|
||||
Fordon: { en: "Vehicles", sv: "Fordon" },
|
||||
Finansiellt: { en: "Financial", sv: "Finansiellt" },
|
||||
};
|
||||
|
||||
type Localized = { en: string; sv: string };
|
||||
|
||||
interface Dataset {
|
||||
id: string;
|
||||
markets: string;
|
||||
title: Localized;
|
||||
desc: Localized;
|
||||
count: Localized;
|
||||
freshness: Localized;
|
||||
level: ProvLevel;
|
||||
source: Localized;
|
||||
cat: Exclude<Filter, "Alla">;
|
||||
}
|
||||
|
||||
const DATASETS: Dataset[] = [
|
||||
{ id: "nordic-companies", markets: "SE · NO · DK · FI", title: { en: "Nordic company data", sv: "Nordisk bolagsdata" }, desc: { en: "Official registers. Per field.", sv: "Officiella register. Per fält." }, count: { en: "4.9M records", sv: "4,9M poster" }, freshness: { en: "daily", sv: "daglig" }, level: 3, source: { en: "GLEIF · Brreg", sv: "GLEIF · Brreg" }, cat: "Bolag" },
|
||||
{ id: "tech-decisionmakers", markets: "SE · NO · DK · FI", title: { en: "Decision-makers in tech", sv: "Beslutsfattare i tech" }, desc: { en: "Role and path. Source per field.", sv: "Roll och väg. Källa per fält." }, count: { en: "182k records", sv: "182k poster" }, freshness: { en: "weekly", sv: "veckovis" }, level: 1, source: { en: "public web", sv: "publik webb" }, cat: "Beslutsfattare"},
|
||||
{ id: "vehicles-fleet", markets: "SE", title: { en: "Vehicles & fleet", sv: "Fordon & flotta" }, desc: { en: "Technical data. The VehIQ synergy.", sv: "Tekniska data. VehIQ-synergin." }, count: { en: "6.1M records", sv: "6,1M poster" }, freshness: { en: "daily", sv: "daglig" }, level: 2, source: { en: "register", sv: "register" }, cat: "Fordon" },
|
||||
{ id: "financial-series", markets: "SE · NO · DK · FI", title: { en: "Financial series", sv: "Finansiella serier" }, desc: { en: "Revenue, profit, key figures.", sv: "Omsättning, resultat, nyckeltal."}, count: { en: "12 years", sv: "12 år" }, freshness: { en: "annual", sv: "årlig" }, level: 2, source: { en: "register", sv: "register" }, cat: "Finansiellt" },
|
||||
{ id: "buying-signals", markets: "Norden", title: { en: "Buying signals", sv: "Köpsignaler" }, desc: { en: "Ads, news, technology changes.", sv: "Annonser, nyheter, teknikbyten." }, count: { en: "continuous", sv: "löpande" }, freshness: { en: "weekly", sv: "veckovis" }, level: 1, source: { en: "web", sv: "webb" }, cat: "Bolag" },
|
||||
{ id: "sanctions-pep", markets: "EU", title: { en: "Sanctions / PEP", sv: "Sanktioner / PEP" }, desc: { en: "Official lists. Screening.", sv: "Officiella listor. Screening." }, count: { en: "global", sv: "global" }, freshness: { en: "daily", sv: "daglig" }, level: 3, source: { en: "OpenSanctions", sv: "OpenSanctions" }, cat: "Bolag" },
|
||||
];
|
||||
|
||||
export function FeaturedProductsSection() {
|
||||
const ref = useReveal<HTMLElement>();
|
||||
const t = useT();
|
||||
const [filter, setFilter] = useState<Filter>("Alla");
|
||||
const shown = DATASETS.filter((d) => filter === "Alla" || d.cat === filter);
|
||||
|
||||
return (
|
||||
<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">{t({ en: "02 / Catalog", sv: "02 / Katalog" })}</p>
|
||||
<h2 className="mt-5 text-[clamp(2.2rem,5vw,4rem)] font-medium leading-[0.98] tracking-[-0.03em]">
|
||||
{t({ en: "Ready-made datasets.", sv: "Färdiga dataset." })}
|
||||
<br />
|
||||
<span className="text-muted-foreground">{t({ en: "Ready to ship.", sv: "Redo att leverera." })}</span>
|
||||
</h2>
|
||||
</div>
|
||||
<div role="group" aria-label={t({ en: "Filter by type", sv: "Filtrera efter typ" })} className="flex flex-wrap gap-px bg-border">
|
||||
{FILTERS.map((f) => (
|
||||
<button
|
||||
key={f}
|
||||
aria-pressed={filter === f}
|
||||
onClick={() => setFilter(f)}
|
||||
className="bg-background px-4 py-2 font-mono text-[11px] uppercase tracking-[0.1em] transition-colors"
|
||||
style={{
|
||||
backgroundColor: filter === f ? "var(--foreground)" : "var(--background)",
|
||||
color: filter === f ? "var(--background)" : "var(--foreground)",
|
||||
}}
|
||||
>
|
||||
{t(FILTER_LABELS[f])}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<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.sv} 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-muted-foreground">{String(i + 1).padStart(2, "0")}</span>
|
||||
</div>
|
||||
<h3 className="mt-5 text-xl font-semibold tracking-[-0.01em] transition-transform duration-300 group-hover:translate-x-1">{t(d.title)}</h3>
|
||||
<p className="mt-2 text-sm text-muted-foreground">{t(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">{t(d.count)}</span>
|
||||
<span className="text-border">·</span>
|
||||
<span>{t(d.freshness)}</span>
|
||||
</div>
|
||||
<div className="mt-4">
|
||||
<ProvenanceBadge level={d.level} source={t(d.source)} freshness={t(d.freshness)} />
|
||||
</div>
|
||||
|
||||
<div className="mt-auto flex items-center justify-between pt-7">
|
||||
<Link href={`/katalog/${d.id}`} className="font-mono text-[11px] uppercase tracking-[0.1em] underline-offset-4 hover:underline">
|
||||
{t({ en: "View →", sv: "Visa →" })}
|
||||
</Link>
|
||||
<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">
|
||||
{t({ en: "Order", sv: "Beställ" })}
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { useReveal } from "@/hooks/use-reveal";
|
||||
import { useT } from "@/components/locale-provider";
|
||||
|
||||
type Loc = { en: string; sv: string };
|
||||
const COLUMNS: { head: Loc; links: { label: Loc; href: string }[] }[] = [
|
||||
{ head: { en: "Product", sv: "Produkt" }, links: [{ label: { en: "Catalog", sv: "Katalog" }, href: "/#katalog" }, { label: { en: "Order", sv: "Beställ" }, href: "/bestall" }, { label: { en: "Pricing", sv: "Priser" }, href: "/#priser" }, { label: { en: "API", sv: "API" }, href: "/bestall" }] },
|
||||
{ head: { en: "Sources", sv: "Källor" }, links: [{ label: { en: "Sourcing", sv: "Sourcing" }, href: "/#tackning" }, { label: { en: "Freshness", sv: "Färskhet" }, href: "/#tackning" }, { label: { en: "Licenses", sv: "Licenser" }, href: "/#motorn" }] },
|
||||
{ head: { en: "Company", sv: "Bolag" }, links: [{ label: { en: "SIAX", sv: "SIAX" }, href: "https://siax.io" }, { label: { en: "Contact", sv: "Kontakt" }, href: "mailto:hej@siax.io" }] },
|
||||
{ head: { en: "Legal", sv: "Juridik" }, links: [{ label: { en: "DPA", sv: "DPA" }, href: "/#" }, { label: { en: "Terms", sv: "Villkor" }, href: "/#" }, { label: { en: "Privacy", sv: "Integritet" }, href: "/#" }] },
|
||||
];
|
||||
|
||||
export function FooterSection() {
|
||||
const ref = useReveal<HTMLElement>();
|
||||
const t = useT();
|
||||
return (
|
||||
<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="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-5 max-w-sm text-[15px] leading-snug text-[#a3a3a3]">
|
||||
{t({ en: "On demand. Provenance per field.", sv: "På beställning. Härkomst per fält." })}<br />
|
||||
{t({ en: "Nothing guessed.", sv: "Inget gissat." })}
|
||||
</p>
|
||||
</div>
|
||||
{COLUMNS.map((c, i) => (
|
||||
<div key={c.head.sv} 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]">{t(c.head)}</h4>
|
||||
<ul className="mt-4 space-y-3">
|
||||
{c.links.map((l) => (
|
||||
<li key={l.label.sv}>
|
||||
<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">{t(l.label)}</span>
|
||||
</Link>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
{/* 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">
|
||||
{t({ en: "Order.", sv: "Beställ." })}<br />{t({ en: "Pay half.", sv: "Betala hälften." })}<br />{t({ en: "Validate.", sv: "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>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
"use client";
|
||||
|
||||
import { useReveal } from "@/hooks/use-reveal";
|
||||
import { useT } from "@/components/locale-provider";
|
||||
import { DataArtifact } from "@/components/data-artifact";
|
||||
|
||||
const TILES: { variant: "table" | "map" | "schema" | "chart" | "grid"; index: string; title: { en: string; sv: string }; line: { en: string; sv: string } }[] = [
|
||||
{ variant: "table", index: "01", title: { en: "Table", sv: "Tabell" }, line: { en: "Source per cell.", sv: "Källa per cell." } },
|
||||
{ variant: "map", index: "02", title: { en: "Coverage", sv: "Täckning" }, line: { en: "Share confirmed.", sv: "Andel bekräftat." } },
|
||||
{ variant: "schema", index: "03", title: { en: "Schema", sv: "Schema" }, line: { en: "Delivered model.", sv: "Levererad modell." } },
|
||||
{ variant: "chart", index: "04", title: { en: "Dashboard", sv: "Dashboard" }, line: { en: "One series.", sv: "En serie." } },
|
||||
{ variant: "grid", index: "05", title: { en: "Export", sv: "Export" }, line: { en: "Any format.", sv: "Valfritt format." } },
|
||||
];
|
||||
|
||||
export function GallerySection() {
|
||||
const ref = useReveal<HTMLElement>();
|
||||
const tr = useT();
|
||||
return (
|
||||
<section ref={ref} className="border-b border-border bg-background">
|
||||
<div className="mx-auto max-w-[80rem] px-6 py-32 lg:py-40">
|
||||
<header className="flex items-end justify-between gap-8 border-b border-border pb-8">
|
||||
<div>
|
||||
<p className="reveal font-mono text-[11px] uppercase tracking-[0.18em] text-muted-foreground">{tr({ en: "— Visualizations", sv: "— 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]">
|
||||
{tr({ en: "See it.", sv: "Se den." })}
|
||||
</h2>
|
||||
</div>
|
||||
<p className="reveal-right delay-2 hidden max-w-[16rem] text-sm leading-relaxed text-muted-foreground md:block">
|
||||
{tr({ en: "Table. Map. Schema. Chart. Your call.", sv: "Tabell. Karta. Schema. Graf. Du väljer." })}
|
||||
</p>
|
||||
</header>
|
||||
|
||||
<div className="mt-16 grid grid-cols-1 gap-px border border-border bg-border md:grid-cols-2 lg:grid-cols-3">
|
||||
{TILES.map((t, i) => (
|
||||
<article
|
||||
key={t.index}
|
||||
className={`group reveal-scale delay-${i + 1} flex flex-col bg-background p-8 transition-opacity duration-300 hover:opacity-[0.92] ${i === 0 ? "md:col-span-2" : ""}`}
|
||||
>
|
||||
<div className="flex items-baseline justify-between">
|
||||
<span className="font-mono text-[clamp(2rem,4vw,3.5rem)] font-medium leading-none tracking-[-0.04em] text-border transition-colors duration-300 group-hover:text-muted-foreground">
|
||||
{t.index}
|
||||
</span>
|
||||
<span className="h-px w-12 origin-right scale-x-50 bg-border transition-transform duration-300 group-hover:scale-x-100" />
|
||||
</div>
|
||||
|
||||
<div className="mt-8">
|
||||
<DataArtifact variant={t.variant} />
|
||||
</div>
|
||||
|
||||
<div className="mt-6 flex items-baseline justify-between border-t border-border pt-4">
|
||||
<span className="text-base font-medium tracking-[-0.01em]">{tr(t.title)}</span>
|
||||
<span className="font-mono text-[11px] uppercase tracking-[0.1em] text-muted-foreground">{tr(t.line)}</span>
|
||||
</div>
|
||||
</article>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { useReveal } from "@/hooks/use-reveal";
|
||||
import { useT } from "@/components/locale-provider";
|
||||
|
||||
type Loc = { en: string; sv: string };
|
||||
type LocOrStr = string | Loc;
|
||||
|
||||
const STATS: [LocOrStr, Loc][] = [
|
||||
["20", { en: "markets", sv: "marknader" }],
|
||||
[{ en: "Per field", sv: "Per fält" }, { en: "provenance & confidence", sv: "härkomst & konfidens" }],
|
||||
["50/50", { en: "start & approved", sv: "start & godkänt" }],
|
||||
["GDPR", { en: "native, with DPA", sv: "native, med DPA" }],
|
||||
];
|
||||
|
||||
// Data-native hero artifact: a miniature company table that "is" the product.
|
||||
const ROWS: [string, LocOrStr, LocOrStr, 0 | 1 | 2 | 3][] = [
|
||||
["556016-0680", "Volvo Group", "GLEIF", 3],
|
||||
["915933149", "Equinor ASA", "Brreg", 3],
|
||||
["25052943", "Maersk A/S", "CVR", 2],
|
||||
["0112038-9", "Nokia Oyj", "PRH", 2],
|
||||
["—", { en: "Email (FI)", sv: "E-post (FI)" }, { en: "license", sv: "licens" }, 0],
|
||||
];
|
||||
const PROV = ["var(--prov-0)", "var(--prov-1)", "var(--prov-2)", "var(--prov-3)"];
|
||||
|
||||
export function HeroSection() {
|
||||
const ref = useReveal<HTMLElement>();
|
||||
const t = useT();
|
||||
// Resolve a value that may be a literal string (brand/number) or a localized {en,sv} pair.
|
||||
const tx = (v: LocOrStr) => (typeof v === "string" ? v : t(v));
|
||||
|
||||
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/50 md:text-[22vw]">0pt</span>
|
||||
</div>
|
||||
{/* 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-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.18em] text-muted-foreground">
|
||||
{t({ en: "00 — Data services on demand", sv: "00 — Datatjänster på beställning" })}
|
||||
</p>
|
||||
<h1 className="reveal delay-2 mt-8 text-[clamp(3rem,8vw,7rem)] font-medium leading-[0.92] tracking-[-0.035em]">
|
||||
{t({ en: "Order data.", sv: "Beställ data." })}
|
||||
<br />
|
||||
{t({ en: "Validate fields.", sv: "Validera fält." })}
|
||||
</h1>
|
||||
<p className="reveal delay-3 mt-8 max-w-[32ch] text-xl leading-snug text-muted-foreground">
|
||||
{t({
|
||||
en: "Build the job. Pay half. Track production. Approve. The source is always visible.",
|
||||
sv: "Bygg jobbet. Betala hälften. Följ produktionen. Godkänn. Källan syns — alltid.",
|
||||
})}
|
||||
</p>
|
||||
<div className="reveal delay-4 mt-12 flex flex-wrap gap-3">
|
||||
<Link
|
||||
href="/bestall"
|
||||
className="bg-foreground px-7 py-4 font-mono text-[12px] uppercase tracking-[0.14em] text-background transition-colors hover:bg-[var(--accent-red)]"
|
||||
>
|
||||
{t({ en: "Build an order", sv: "Bygg beställning" })}
|
||||
</Link>
|
||||
<Link
|
||||
href="/katalog/nordic-companies"
|
||||
className="border border-foreground px-7 py-4 font-mono text-[12px] uppercase tracking-[0.14em] transition-colors hover:bg-foreground hover:text-background"
|
||||
>
|
||||
{t({ en: "See a dataset", sv: "Se ett dataset" })}
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
<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], i) => (
|
||||
<div key={i} className="group bg-background p-4 transition-colors hover:bg-muted/40">
|
||||
<p className="text-2xl font-semibold tracking-[-0.03em]">{tx(n)}</p>
|
||||
<p className="mt-2 font-mono text-[10px] uppercase tracking-[0.1em] text-muted-foreground">{t(l)}</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* 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.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">{t({ en: "provenance", sv: "härkomst" })}</span>
|
||||
</div>
|
||||
{ROWS.map((r, i) => (
|
||||
<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 transition-transform duration-200 group-hover:translate-x-0.5">{tx(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">
|
||||
<span
|
||||
className="inline-block h-[7px] w-[7px]"
|
||||
style={{ backgroundColor: r[3] === 0 ? "transparent" : PROV[r[3]], border: r[3] === 0 ? `1px solid ${PROV[0]}` : "none" }}
|
||||
/>
|
||||
{tx(r[2])}
|
||||
</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
"use client";
|
||||
|
||||
import { useReveal } from "@/hooks/use-reveal";
|
||||
import { useT } from "@/components/locale-provider";
|
||||
|
||||
type Loc = { en: string; sv: string };
|
||||
const PRINCIPLES: [string, Loc, Loc][] = [
|
||||
["01", { en: "Provenance per field.", sv: "Härkomst per fält." }, { en: "Source, freshness, confidence. The whole chain is visible.", sv: "Källa, färskhet, konfidens. Hela kedjan syns." }],
|
||||
["02", { en: "Corroboration first.", sv: "Korroborering först." }, { en: "Sources that disagree become an uncertain field.", sv: "Oeniga källor blir osäkert fält." }],
|
||||
["03", { en: "Empty over guessed.", sv: "Hellre tomt än gissat." }, { en: "Unverified data is not delivered. Never invented.", sv: "Obelagt levereras ej. Aldrig uppfunnet." }],
|
||||
];
|
||||
|
||||
export function PhilosophySection() {
|
||||
const ref = useReveal<HTMLElement>();
|
||||
const t = useT();
|
||||
return (
|
||||
<section ref={ref} id="filosofi" className="border-b border-border bg-background">
|
||||
<div className="mx-auto grid max-w-[80rem] grid-cols-1 gap-12 px-6 py-32 lg:grid-cols-[4fr_8fr] lg:py-40">
|
||||
<div className="lg:sticky lg:top-24 lg:self-start">
|
||||
<p className="reveal-left font-mono text-[11px] uppercase tracking-[0.14em] text-muted-foreground">{t({ en: "01 — Philosophy", sv: "01 — Filosofi" })}</p>
|
||||
<p className="reveal-left delay-1 mt-4 font-mono text-[11px] uppercase tracking-[0.08em] text-foreground">{t({ en: "Honest data. Shown honestly.", sv: "Ärlig data. Visad ärligt." })}</p>
|
||||
</div>
|
||||
<div>
|
||||
<h2 className="reveal max-w-[20ch] text-[clamp(2.4rem,5.5vw,4.5rem)] font-medium leading-[0.98] tracking-[-0.03em]">
|
||||
{t({ en: "Others sell certainty they don't have.", sv: "Andra säljer säkerhet de saknar." })}
|
||||
<br />
|
||||
<span className="text-muted-foreground">{t({ en: "We show the source.", sv: "Vi visar källan." })}</span>
|
||||
</h2>
|
||||
<div className="mt-20 border-t border-border">
|
||||
{PRINCIPLES.map(([n, title, body], i) => (
|
||||
<div
|
||||
key={n}
|
||||
className={`reveal delay-${i + 1} group relative grid grid-cols-[3.5rem_1fr] items-baseline gap-8 border-b border-border py-8 transition-[padding] duration-300 ease-out hover:pl-2`}
|
||||
>
|
||||
<span className="absolute -left-2 top-0 h-px w-0 bg-foreground transition-all duration-500 ease-out group-hover:w-full group-hover:opacity-100" aria-hidden />
|
||||
<span className="font-mono text-[clamp(1.5rem,2vw,2.25rem)] font-medium leading-none tracking-[-0.02em] text-muted-foreground transition-colors duration-300 group-hover:text-foreground">
|
||||
{n}
|
||||
</span>
|
||||
<div>
|
||||
<p className="text-[clamp(1.25rem,2vw,1.75rem)] font-medium leading-tight tracking-[-0.02em]">{t(title)}</p>
|
||||
<p className="mt-2 max-w-[42ch] leading-relaxed text-muted-foreground">{t(body)}</p>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { useReveal } from "@/hooks/use-reveal";
|
||||
import { useT } from "@/components/locale-provider";
|
||||
|
||||
const MODELS = [
|
||||
{
|
||||
index: "01",
|
||||
name: { en: "Per job", sv: "Per jobb" },
|
||||
tagline: { en: "Pay for what you order.", sv: "Betala för det du beställer." },
|
||||
points: [
|
||||
{ en: "50 % to start. 50 % on approval.", sv: "50 % start. 50 % vid godkänt." },
|
||||
{ en: "No subscriptions.", sv: "Inga abonnemang." },
|
||||
{ en: "Provenance included.", sv: "Härkomst ingår." },
|
||||
],
|
||||
cta: { en: "Build order", sv: "Bygg beställning" },
|
||||
featured: true,
|
||||
},
|
||||
{
|
||||
index: "02",
|
||||
name: { en: "Subscription", sv: "Prenumeration" },
|
||||
tagline: { en: "Continuous feed.", sv: "Löpande feed." },
|
||||
points: [
|
||||
{ en: "Daily deltas.", sv: "Dagliga deltan." },
|
||||
{ en: "Webhook on change.", sv: "Webhook vid ändring." },
|
||||
{ en: "Freshness monitored.", sv: "Färskhet bevakas." },
|
||||
],
|
||||
cta: { en: "Configure feed", sv: "Konfigurera feed" },
|
||||
featured: false,
|
||||
},
|
||||
{
|
||||
index: "03",
|
||||
name: { en: "Custom", sv: "Custom" },
|
||||
tagline: { en: "Large engagements.", sv: "Stora uppdrag." },
|
||||
points: [
|
||||
{ en: "Quote before start.", sv: "Offert innan start." },
|
||||
{ en: "ML, BI, documents.", sv: "ML, BI, dokument." },
|
||||
{ en: "Dedicated API.", sv: "Dedikerad API." },
|
||||
],
|
||||
cta: { en: "Book a call", sv: "Boka samtal" },
|
||||
featured: false,
|
||||
},
|
||||
];
|
||||
|
||||
export function PricingSection() {
|
||||
const ref = useReveal<HTMLElement>();
|
||||
const t = useT();
|
||||
return (
|
||||
<section ref={ref} id="priser" className="border-b border-border bg-background">
|
||||
<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">{t({ en: "06 — Pricing", sv: "06 — Priser" })}</p>
|
||||
<p className="reveal delay-1 font-mono text-[11px] uppercase tracking-[0.18em] text-muted-foreground">{t({ en: "Three models", sv: "Tre modeller" })}</p>
|
||||
</div>
|
||||
|
||||
<h2 className="reveal delay-1 mt-12 max-w-[20ch] text-[clamp(2.4rem,6vw,5rem)] font-medium leading-[0.96] tracking-[-0.03em]">
|
||||
{t({ en: "Three ways to buy.", sv: "Tre sätt att köpa." })}
|
||||
<br />
|
||||
{t({ en: "No surprises.", sv: "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.index} 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">{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]">{t(m.name)}</h3>
|
||||
<p className="mt-2 text-sm text-muted-foreground">{t(m.tagline)}</p>
|
||||
|
||||
<ul className="mt-10 flex-1 space-y-px border-t border-border">
|
||||
{m.points.map((p) => (
|
||||
<li key={p.sv} 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>{t(p)}</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
<Link
|
||||
href="/bestall"
|
||||
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)" }
|
||||
: { border: "1px solid var(--foreground)", color: "var(--foreground)" }
|
||||
}
|
||||
>
|
||||
{t(m.cta)}
|
||||
</Link>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
"use client";
|
||||
|
||||
import { useReveal } from "@/hooks/use-reveal";
|
||||
import { useT } from "@/components/locale-provider";
|
||||
|
||||
const CHAIN = [
|
||||
["01", { en: "Official APIs", sv: "Officiella API:er" }, { en: "GLEIF · Brreg · Companies House", sv: "GLEIF · Brreg · Companies House" }, "var(--prov-3)"],
|
||||
["02", { en: "Authorized web", sv: "Auktoriserad webb" }, { en: "robots.txt. Rate limits.", sv: "robots.txt. Rate limits." }, "var(--prov-1)"],
|
||||
["03", { en: "Licensed partner data", sv: "Licensierad partnerdata" }, { en: "Contracted access.", sv: "Avtalad åtkomst." }, "var(--prov-2)"],
|
||||
["04", { en: "Otherwise: empty", sv: "Annars: tomt" }, { en: "We never guess.", sv: "Vi gissar aldrig." }, "transparent"],
|
||||
] as const;
|
||||
|
||||
const PIPELINE = [
|
||||
{ en: "Source racing", sv: "Källracing" },
|
||||
{ en: "Extraction", sv: "Extraktion" },
|
||||
{ en: "Structuring", sv: "Strukturering" },
|
||||
{ en: "Enrichment", sv: "Berikning" },
|
||||
{ en: "QA", sv: "QA" },
|
||||
] as const;
|
||||
|
||||
export function TechnologySection() {
|
||||
const ref = useReveal<HTMLElement>();
|
||||
const t = useT();
|
||||
return (
|
||||
<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]">{t({ en: "The engine", sv: "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]">
|
||||
{t({ en: "Lawfully collected.", sv: "Lagligt insamlat." })}
|
||||
<br />
|
||||
{t({ en: "Traceable at every step.", sv: "Spårbart varje steg." })}
|
||||
</h2>
|
||||
|
||||
{/* sourcing chain */}
|
||||
<p className="reveal delay-2 mt-20 font-mono text-[11px] uppercase tracking-[0.16em] text-[#737373]">{t({ en: "The sourcing chain — by priority", sv: "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 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] 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-16 text-[1.0625rem] font-medium leading-tight tracking-[-0.01em]">{t(title)}</p>
|
||||
<p className="mt-2 font-mono text-[11px] leading-relaxed text-[#a3a3a3]">{t(sub)}</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
{/* pipeline */}
|
||||
<p className="reveal delay-3 mt-24 font-mono text-[11px] uppercase tracking-[0.16em] text-[#737373]">{t({ en: "The pipeline", sv: "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={i} 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]">{t(s)}</span>
|
||||
{i < PIPELINE.length - 1 ? <span aria-hidden className="text-[#404040]">/</span> : null}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
<p className="reveal delay-4 mt-8 max-w-md font-mono text-[11px] uppercase leading-relaxed tracking-[0.06em] text-[#737373]">
|
||||
{t({ en: "QA runs inside the pipeline. Not on the side.", sv: "QA körs i pipelinen. Inte vid sidan om." })}
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
"use client";
|
||||
|
||||
import { useReveal } from "@/hooks/use-reveal";
|
||||
import { useT } from "@/components/locale-provider";
|
||||
|
||||
const NUMBERS: [string, { en: string; sv: string }, boolean][] = [
|
||||
["94%", { en: "Average confidence", sv: "Snittkonfidens" }, true],
|
||||
["50/50", { en: "Start. Approved.", sv: "Start. Godkänt." }, false],
|
||||
["<4d", { en: "Delivery", sv: "Leverans" }, false],
|
||||
];
|
||||
|
||||
export function TestimonialsSection() {
|
||||
const t = useT();
|
||||
const ref = useReveal<HTMLElement>();
|
||||
return (
|
||||
<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">{t({ en: "05 — Proof", sv: "05 — Bevis" })}</p>
|
||||
<p className="reveal delay-1 font-mono text-[11px] uppercase tracking-[0.18em] text-muted-foreground">{t({ en: "Measurable", sv: "Mätbart" })}</p>
|
||||
</div>
|
||||
|
||||
<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]">
|
||||
{t({ en: "Numbers.", sv: "Siffror." })}
|
||||
<br />
|
||||
{t({ en: "Not promises.", sv: "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.sv}
|
||||
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">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-4 font-mono text-[11px] uppercase tracking-[0.14em] text-muted-foreground">{t(l)}</p>
|
||||
</div>
|
||||
))}
|
||||
</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]">
|
||||
{t({
|
||||
en: "“We trust the list before we dial. The per-contact provenance is what sealed it.”",
|
||||
sv: "“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