Files
0pt/components/sections/pricing-section.tsx
T
adminandClaude Opus 4.8 86fc1574c5 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>
2026-06-24 18:19:09 +02:00

87 lines
3.3 KiB
TypeScript

"use client";
import Link from "next/link";
import { useReveal } from "@/hooks/use-reveal";
const MODELS = [
{
index: "01",
name: "Per jobb",
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: "Löpande feed.",
points: ["Dagliga deltan.", "Webhook vid ändring.", "Färskhet bevakas."],
cta: "Konfigurera feed",
featured: false,
},
{
index: "03",
name: "Custom",
tagline: "Stora uppdrag.",
points: ["Offert innan start.", "ML, BI, dokument.", "Dedikerad API."],
cta: "Boka samtal",
featured: false,
},
];
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-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>
<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} 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-10 flex-1 space-y-px border-t border-border">
{m.points.map((p) => (
<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-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)" }
}
>
{m.cta}
</Link>
</div>
))}
</div>
</div>
</section>
);
}