Converts every last bare-Swedish const array across landing sections
(STATS, TILES, CHAIN, PIPELINE, MODELS, DATASETS, PRINCIPLES, COLUMNS)
and shared components (data-artifact, provenance-badge) to {en,sv} Loc
objects consumed via useT(). Verified by per-file verify agent: 10/10
clean, zero remaining bare-Swedish display text. tsc 0 + build green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
101 lines
4.2 KiB
TypeScript
101 lines
4.2 KiB
TypeScript
"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/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]">{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>
|
|
);
|
|
}
|