feat: transform all landing sections to 0pt (data-native, no photos)

DataArtifact primitive (table/map/schema/chart/grid); Filosofi, Katalog (#katalog), Motorn (#motorn, dark), Visualiseringsgalleri, Täckning (#tackning), Editorial, Bevis, Priser (#priser), Footer — all on mono tokens + useReveal scroll-reveal, provenance signature, single red. Removed all template photography/scroll-image machinery. next build green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-24 17:50:28 +02:00
co-authored by Claude Opus 4.8
parent 22e09d984d
commit f3b796a241
11 changed files with 435 additions and 986 deletions
+2
View File
@@ -7,6 +7,7 @@ import { GallerySection } from "@/components/sections/gallery-section";
import { CollectionSection } from "@/components/sections/collection-section";
import { EditorialSection } from "@/components/sections/editorial-section";
import { TestimonialsSection } from "@/components/sections/testimonials-section";
import { PricingSection } from "@/components/sections/pricing-section";
import { FooterSection } from "@/components/sections/footer-section";
export default function Home() {
@@ -21,6 +22,7 @@ export default function Home() {
<CollectionSection />
<EditorialSection />
<TestimonialsSection />
<PricingSection />
<FooterSection />
</main>
);
+94
View File
@@ -0,0 +1,94 @@
"use client";
import { useReveal } from "@/hooks/use-reveal";
type Variant = "table" | "map" | "schema" | "chart" | "grid";
const PROV = ["var(--prov-0)", "var(--prov-1)", "var(--prov-2)", "var(--prov-3)"];
const TABLE_ROWS: [string, string, 0 | 1 | 2 | 3][] = [
["Volvo Group", "GLEIF", 3],
["Equinor ASA", "Brreg", 3],
["Maersk A/S", "CVR", 2],
["Nokia Oyj", "PRH", 2],
["E-post (FI)", "licens", 0],
];
const MAP_CELLS: [string, number][] = [
["SE", 98], ["NO", 96], ["DK", 94], ["FI", 89],
["IS", 0], ["NL", 0], ["DE", 0], ["FR", 0],
];
const CHART_BARS = [42, 61, 38, 74, 55, 88];
/**
* The generative, photo-free visual primitive. Every "image" surface uses it.
* Animates on scroll-into-view; settles to a complete static state under
* prefers-reduced-motion. Color discipline: mono + provenance squares + ONE red.
*/
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}`}>
{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>
{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" }} />
{r[1]}
</span>
</div>
))}
</div>
) : null}
{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 className="h-full" style={{ width: `${c[1]}%`, backgroundColor: c[1] >= 95 ? "var(--prov-3)" : c[1] > 0 ? "var(--prov-2)" : "transparent" }} />
</div>
</div>
))}
</div>
) : 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" }}>
{[
{ 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>
))}
</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>
) : 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>
<span className="animate-float absolute right-6 top-6 inline-block h-3 w-3" style={{ backgroundColor: "var(--accent-red)" }} />
</div>
) : null}
</div>
);
}
+23 -91
View File
@@ -1,107 +1,39 @@
"use client";
import { FadeImage } from "@/components/fade-image";
import { useReveal } from "@/hooks/use-reveal";
import { MARKETS } from "@/lib/data";
const accessories = [
{
id: 1,
name: "Compact Model",
description: "120m² living space with optimal energy efficiency",
price: "$285,000",
image: "/images/hero-side-1.png",
},
{
id: 2,
name: "Standard Model",
description: "180m² perfect balance of space and sustainability",
price: "$395,000",
image: "/images/hero-side-2.png",
},
{
id: 3,
name: "Premium Model",
description: "250m² expansive design with maximum comfort",
price: "$525,000",
image: "/images/hero-side-4.png",
},
const STATS = [
["4 980", "poster i exempelleverans"],
["20", "utelämnade — ej gissade"],
["3,2", "källor per bekräftat fält"],
];
export function CollectionSection() {
const ref = useReveal<HTMLElement>();
return (
<section id="accessories" className="bg-background">
{/* Section Title */}
<div className="px-6 py-20 md:px-12 lg:px-20 md:py-10">
<h2 className="text-3xl font-medium tracking-tight text-foreground md:text-4xl">
Surface Options
</h2>
</div>
<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>
{/* Accessories Grid/Carousel */}
<div className="pb-24">
{/* Mobile: Horizontal Carousel */}
<div className="flex gap-6 overflow-x-auto px-6 pb-4 md:hidden snap-x snap-mandatory scrollbar-hide">
{accessories.map((accessory) => (
<div key={accessory.id} className="group flex-shrink-0 w-[75vw] snap-center">
{/* Image */}
<div className="relative aspect-[2/3] overflow-hidden rounded-2xl bg-secondary">
<FadeImage
src={accessory.image || "/placeholder.svg"}
alt={accessory.name}
fill
className="object-cover group-hover:scale-105"
/>
</div>
{/* Content */}
<div className="py-6">
<div className="flex items-start justify-between gap-4">
<div className="flex-1">
<h3 className="text-lg font-medium leading-snug text-foreground">
{accessory.name}
</h3>
<p className="mt-2 text-sm text-muted-foreground">
{accessory.description}
</p>
</div>
<span className="text-lg font-medium text-foreground">
{accessory.price}
</span>
</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>
</div>
))}
</div>
{/* Desktop: Grid */}
<div className="hidden md:grid md:grid-cols-3 gap-8 md:px-12 lg:px-20">
{accessories.map((accessory) => (
<div key={accessory.id} className="group">
{/* Image */}
<div className="relative aspect-[2/3] overflow-hidden rounded-2xl bg-secondary">
<FadeImage
src={accessory.image || "/placeholder.svg"}
alt={accessory.name}
fill
className="object-cover group-hover:scale-105"
/>
</div>
{/* Content */}
<div className="py-6">
<div className="flex items-start justify-between gap-4">
<div className="flex-1">
<h3 className="text-lg font-medium leading-snug text-foreground">
{accessory.name}
</h3>
<p className="mt-2 text-sm text-muted-foreground">
{accessory.description}
</p>
</div>
<span className="font-medium text-foreground text-2xl">
{accessory.price}
</span>
</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>
))}
</div>
+15 -95
View File
@@ -1,103 +1,23 @@
"use client";
import { useRef, useState, useEffect, useCallback } from "react";
const specs = [
{ label: "Surface Area", value: "180m²" },
{ label: "Energy Use", value: "15 kWh/m²" },
{ label: "Solar Panels", value: "40 m²" },
{ label: "Carbon Balance", value: "-20%" },
];
import { useReveal } from "@/hooks/use-reveal";
export function EditorialSection() {
const videoRef = useRef<HTMLDivElement>(null);
const [scrollProgress, setScrollProgress] = useState(0);
const rafRef = useRef<number | null>(null);
const updateParallax = useCallback(() => {
if (!videoRef.current) return;
const rect = videoRef.current.getBoundingClientRect();
const windowHeight = window.innerHeight;
// Calculate when video enters and exits viewport
const videoTop = rect.top;
const videoBottom = rect.bottom;
// Progress from 0 (entering viewport) to 1 (exiting viewport)
if (videoBottom > 0 && videoTop < windowHeight) {
const progress = 1 - (videoTop + rect.height / 2) / (windowHeight + rect.height);
setScrollProgress(Math.max(0, Math.min(1, progress)));
}
}, []);
useEffect(() => {
const handleScroll = () => {
if (rafRef.current) {
cancelAnimationFrame(rafRef.current);
}
rafRef.current = requestAnimationFrame(updateParallax);
};
window.addEventListener("scroll", handleScroll, { passive: true });
updateParallax();
return () => {
window.removeEventListener("scroll", handleScroll);
if (rafRef.current) {
cancelAnimationFrame(rafRef.current);
}
};
}, [updateParallax]);
// Parallax effect: video moves up as you scroll down
const parallaxY = (scrollProgress - 0.5) * 30; // -15px to +15px range
const ref = useReveal<HTMLElement>();
return (
<section className="bg-background">
{/* Newsletter Banner */}
{/* Decorative Icons */}
<div className="flex items-center justify-center gap-6 pb-20">
</div>
{/* Full-width Video with Parallax */}
<div ref={videoRef} className="relative aspect-[16/9] w-full md:aspect-[21/9] overflow-hidden">
<video
autoPlay
loop
muted
playsInline
className="absolute inset-0 h-full w-full object-cover"
style={{
transform: `scale(1.15) translate3d(0, ${parallaxY}px, 0) translateZ(0)`,
WebkitTransform: `scale(1.15) translate3d(0, ${parallaxY}px, 0) translateZ(0)`,
backfaceVisibility: 'hidden',
WebkitBackfaceVisibility: 'hidden',
willChange: 'transform',
}}
src="https://hebbkx1anhila5yf.public.blob.vercel-storage.com/27eb7fb4-0105-4010-ac9e-0ac977a31b05_1-FZ89nvBAAsR3caRJbhYv7T2mjBofth.mp4"
/>
</div>
{/* Specs Grid */}
<div className="grid grid-cols-2 border-t border-border md:grid-cols-4">
{specs.map((spec) => (
<div
key={spec.label}
className="border-b border-r border-border p-8 text-center last:border-r-0 md:border-b-0"
>
<p className="mb-2 text-xs uppercase tracking-widest text-muted-foreground">
{spec.label}
</p>
<p className="font-medium text-foreground text-5xl">
{spec.value}
</p>
</div>
))}
<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]">
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.
</blockquote>
<p className="reveal delay-2 mt-10 font-mono text-[11px] uppercase tracking-[0.14em] text-[#a3a3a3]">
0PT — SIAX Technology AB
</p>
</div>
</section>
);
@@ -1,67 +1,88 @@
"use client";
import { FadeImage } from "@/components/fade-image";
import Link from "next/link";
import { useState } from "react";
import { useReveal } from "@/hooks/use-reveal";
import { ProvenanceBadge } from "@/components/provenance-badge";
import type { ProvLevel } from "@/lib/data";
const features = [
{
image: "/images/4312e1bb-e030-4528-b6df-8a6ea69fe384.png",
span: "col-span-2 row-span-2", // Large
},
{
image: "/images/b2401fa5-4eac-465f-b1f9-014aadc182ee.png",
span: "col-span-1 row-span-1", // Small
},
{
image: "/images/dd1b32a8-3722-4ea2-8808-10d53532809d.png",
span: "col-span-1 row-span-1", // Small
},
{
image: "/images/61af06cc-84d0-4031-a0ed-76fc43b1c1e1.png",
span: "col-span-1 row-span-2", // Tall
},
{
image: "/images/249083d2-c49c-4c06-a125-376284d90c42.png",
span: "col-span-1 row-span-1", // Small
},
{
image: "/images/7638f650-8586-4403-8c13-141921a04f9d.png",
span: "col-span-2 row-span-1", // Wide
},
{
image: "/images/5b3bdb95-fac7-4d22-aa97-98b5d547b2db.png",
span: "col-span-1 row-span-1", // Small
},
{
image: "/images/634f7bae-77a5-49d0-a0ab-5271a6194e66.png",
span: "col-span-1 row-span-2", // Tall
},
{
image: "/images/09ffa8fd-cdd1-453f-9aa2-d6c702a1f4b5.png",
span: "col-span-2 row-span-1", // Wide
},
{
image: "/images/040e36b1-d16f-474b-a712-a9979e6ab479.png",
span: "col-span-1 row-span-1", // Small
},
const FILTERS = ["Alla", "Bolag", "Beslutsfattare", "Fordon", "Finansiellt"] as const;
type Filter = (typeof FILTERS)[number];
interface Dataset {
markets: string;
title: string;
desc: string;
count: string;
freshness: string;
level: ProvLevel;
source: string;
cat: Exclude<Filter, "Alla">;
}
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" },
];
export function FeaturedProductsSection() {
const ref = useReveal<HTMLElement>();
const [filter, setFilter] = useState<Filter>("Alla");
const shown = DATASETS.filter((d) => filter === "Alla" || d.cat === filter);
return (
<section id="technology" className="relative bg-background py-20 md:py-32">
<div className="px-4 md:px-12 lg:px-20">
{/* Bento Grid */}
<div className="grid grid-cols-2 md:grid-cols-4 gap-3 md:gap-4 w-full max-w-7xl mx-auto auto-rows-[180px] md:auto-rows-[220px]">
{features.map((feature, index) => (
<div
key={index}
className={`relative overflow-hidden rounded-lg border border-gray-200 ${feature.span}`}
>
<FadeImage
src={feature.image || "/placeholder.svg"}
alt={`Architecture sketch ${index + 1}`}
fill
className="object-cover"
/>
<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>
</div>
<div className="flex flex-wrap gap-2">
{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"
style={{
borderColor: filter === f ? "var(--foreground)" : "var(--border)",
backgroundColor: filter === f ? "var(--foreground)" : "transparent",
color: filter === f ? "var(--background)" : "var(--foreground)",
}}
>
{f}
</button>
))}
</div>
</div>
<div className="mt-10 grid grid-cols-1 gap-px 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>
<div className="mt-3">
<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">
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">
Beställ
</Link>
</div>
</div>
))}
</div>
+36 -114
View File
@@ -1,127 +1,49 @@
"use client";
import Link from "next/link";
import { useReveal } from "@/hooks/use-reveal";
const footerLinks = {
explore: [
{ label: "Products", href: "#products" },
{ label: "Technology", href: "#technology" },
{ label: "Gallery", href: "#gallery" },
{ label: "Accessories", href: "#accessories" },
],
about: [
{ label: "Our Story", href: "#" },
{ label: "Team", href: "#" },
{ label: "Careers", href: "#" },
{ label: "Contact", href: "#" },
],
service: [
{ label: "FAQ", href: "#" },
{ label: "Shipping", href: "#" },
{ label: "Returns", href: "#" },
{ label: "Warranty", href: "#" },
],
};
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: "Juridik", links: [{ label: "DPA", href: "/#" }, { label: "Villkor", href: "/#" }, { label: "Integritet", href: "/#" }] },
];
export function FooterSection() {
const ref = useReveal<HTMLElement>();
return (
<footer className="bg-background">
{/* Main Footer Content */}
<div className="border-t border-border px-6 py-16 md:px-12 md:py-20 lg:px-20">
<div className="grid grid-cols-2 gap-12 md:grid-cols-4 lg:grid-cols-5">
{/* Brand */}
<div className="col-span-2 md:col-span-1 lg:col-span-2">
<Link href="#hero" className="text-lg font-medium text-foreground">
MONO
</Link>
<p className="mt-4 max-w-xs text-sm leading-relaxed text-muted-foreground">
Sustainable design homes combining contemporary aesthetics with energy efficiency and eco-friendly materials.
<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">
<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>
</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>
</div>
{/* Explore */}
<div>
<h4 className="mb-4 text-sm font-medium text-foreground">Explore</h4>
<ul className="space-y-3">
{footerLinks.explore.map((link) => (
<li key={link.label}>
<Link
href={link.href}
className="text-sm text-muted-foreground transition-colors hover:text-foreground"
>
{link.label}
</Link>
</li>
))}
</ul>
</div>
{/* About */}
<div>
<h4 className="mb-4 text-sm font-medium text-foreground">About</h4>
<ul className="space-y-3">
{footerLinks.about.map((link) => (
<li key={link.label}>
<Link
href={link.href}
className="text-sm text-muted-foreground transition-colors hover:text-foreground"
>
{link.label}
</Link>
</li>
))}
</ul>
</div>
{/* Service */}
<div>
<h4 className="mb-4 text-sm font-medium text-foreground">Service</h4>
<ul className="space-y-3">
{footerLinks.service.map((link) => (
<li key={link.label}>
<Link
href={link.href}
className="text-sm text-muted-foreground transition-colors hover:text-foreground"
>
{link.label}
</Link>
</li>
))}
</ul>
</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">
{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>
</li>
))}
</ul>
</div>
))}
</div>
</div>
{/* Bottom Bar */}
<div className="border-t border-border px-6 py-6 md:px-12 lg:px-20">
<div className="flex flex-col items-center justify-between gap-4 md:flex-row">
<p className="text-xs text-muted-foreground">
2026 MONO. All rights reserved.
</p>
{/* Social Links */}
<div className="flex items-center gap-4">
<Link
href="#"
className="text-xs text-muted-foreground transition-colors hover:text-foreground"
>
Instagram
</Link>
<Link
href="#"
className="text-xs text-muted-foreground transition-colors hover:text-foreground"
>
Twitter
</Link>
<Link
href="#"
className="text-xs text-muted-foreground transition-colors hover:text-foreground"
>
YouTube
</Link>
</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>
</div>
</div>
</footer>
+26 -123
View File
@@ -1,132 +1,35 @@
"use client";
import Image from "next/image";
import { useEffect, useRef, useState, useCallback } from "react";
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." },
];
export function GallerySection() {
const galleryRef = useRef<HTMLDivElement>(null);
const [scrollProgress, setScrollProgress] = useState(0);
const rafRef = useRef<number | null>(null);
const images = [
{ src: "/images/mono-1.png", alt: "Modern architecture at sunrise" },
{ src: "/images/mono-2.png", alt: "Modern architecture in daylight" },
{ src: "/images/mono-3.png", alt: "Modern architecture at dusk" },
{ src: "/images/mono-4.png", alt: "Modern architecture at night" },
];
const updateTransform = useCallback(() => {
if (!galleryRef.current) return;
const rect = galleryRef.current.getBoundingClientRect();
const windowHeight = window.innerHeight;
const sectionHeight = galleryRef.current.offsetHeight;
// Calculate scroll progress through the section
const scrollableRange = sectionHeight - windowHeight;
const scrolled = -rect.top;
const progress = Math.max(0, Math.min(1, scrolled / scrollableRange));
setScrollProgress(progress);
}, []);
useEffect(() => {
const handleScroll = () => {
if (rafRef.current) {
cancelAnimationFrame(rafRef.current);
}
rafRef.current = requestAnimationFrame(updateTransform);
};
window.addEventListener("scroll", handleScroll, { passive: true });
updateTransform();
return () => {
window.removeEventListener("scroll", handleScroll);
if (rafRef.current) {
cancelAnimationFrame(rafRef.current);
}
};
}, [updateTransform]);
const isLastImage = images.length - 1;
// Calculate fullscreen progress for the last image - more gradual
// Start expanding when last image is 80% stacked, finish at end of section
const fullscreenStartProgress = 0.6; // Start earlier for smoother transition
const fullscreenProgress = Math.max(0, Math.min(1, (scrollProgress - fullscreenStartProgress) / (1 - fullscreenStartProgress)));
// Ease out cubic for smoother animation
const easedFullscreenProgress = 1 - Math.pow(1 - fullscreenProgress, 3);
const ref = useReveal<HTMLElement>();
return (
<section
id="gallery"
ref={galleryRef}
className="relative bg-black"
style={{ minHeight: `${(images.length + 1) * 100}vh` }}
>
{/* Sticky container */}
<div className="sticky top-0 h-screen overflow-hidden flex items-center justify-center px-4">
<div className="relative w-full max-w-5xl h-[70vh] md:h-[80vh]">
{images.map((image, index) => {
const isLast = index === isLastImage;
// Calculate stacking progress for each image
const imageProgress = (scrollProgress * images.length) - index;
const stackProgress = Math.max(0, Math.min(1, imageProgress));
// Images start below and move up to stack
let translateY = (1 - stackProgress) * 100; // 100% to 0%
let scale = 0.8 + (stackProgress * 0.2); // 0.8 to 1
let opacity = stackProgress;
// Last image expands to fullscreen smoothly
if (isLast) {
// Blend between normal scale and expanded scale
const normalScale = 0.8 + (stackProgress * 0.2);
const expandedScale = 1 + (easedFullscreenProgress * 0.8); // 1 to 1.8
scale = normalScale + (Math.max(0, stackProgress - 0.8) * 5) * (expandedScale - normalScale);
}
// Calculate z-index so later images appear on top
const zIndex = index;
// Remove border radius on last image when expanding - gradual transition
const borderRadius = isLast && easedFullscreenProgress > 0.3 ? (1 - easedFullscreenProgress) * 16 : undefined;
return (
<div
key={index}
className="absolute inset-0 flex items-center justify-center"
style={{
zIndex,
transform: `translate3d(0, ${translateY}%, 0) scale(${scale}) translateZ(0)`,
WebkitTransform: `translate3d(0, ${translateY}%, 0) scale(${scale}) translateZ(0)`,
opacity,
backfaceVisibility: 'hidden',
WebkitBackfaceVisibility: 'hidden',
willChange: 'transform, opacity',
WebkitFontSmoothing: 'antialiased',
}}
>
<div
className="relative w-full h-full overflow-hidden rounded-xl md:rounded-2xl"
style={{
borderRadius: borderRadius !== undefined ? `${borderRadius}px` : undefined,
}}
>
<Image
src={image.src || "/placeholder.svg"}
alt={image.alt}
fill
className="object-cover"
priority={index < 3}
/>
</div>
<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="mt-10 grid grid-cols-1 gap-6 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>
</div>
);
})}
</div>
))}
</div>
</div>
</section>
+26 -158
View File
@@ -1,169 +1,37 @@
"use client";
import Image from "next/image";
import { useEffect, useRef, useState, useCallback } from "react";
import { useReveal } from "@/hooks/use-reveal";
const titles = [
"Sustainable Architecture.",
"Built for Tomorrow.",
"Eco-Responsible.",
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."],
];
export function PhilosophySection() {
const sectionRef = useRef<HTMLDivElement>(null);
const descriptionRef = useRef<HTMLDivElement>(null);
const [titleOpacity, setTitleOpacity] = useState(0);
const [descriptionProgress, setDescriptionProgress] = useState(0);
const rafRef = useRef<number | null>(null);
const updateTransforms = useCallback(() => {
if (!sectionRef.current) return;
const rect = sectionRef.current.getBoundingClientRect();
const windowHeight = window.innerHeight;
const sectionHeight = sectionRef.current.offsetHeight;
// Calculate progress based on scroll position
const scrollableRange = sectionHeight - windowHeight;
const scrolled = -rect.top;
const progress = Math.max(0, Math.min(1, scrolled / scrollableRange));
// Title rotates through 3 texts based on scroll progress
setTitleOpacity(progress);
// Description word animation
if (descriptionRef.current) {
const descRect = descriptionRef.current.getBoundingClientRect();
const descTop = descRect.top;
const descHeight = descRect.height;
// Start animation when element enters viewport
const startTrigger = windowHeight * 0.8;
const endTrigger = windowHeight * 0.2;
if (descTop < startTrigger && descTop > endTrigger - descHeight) {
const descProgress = Math.max(0, Math.min(1, (startTrigger - descTop) / (startTrigger - endTrigger)));
setDescriptionProgress(descProgress);
}
}
}, []);
useEffect(() => {
const handleScroll = () => {
// Cancel any pending animation frame
if (rafRef.current) {
cancelAnimationFrame(rafRef.current);
}
// Use requestAnimationFrame for smooth updates
rafRef.current = requestAnimationFrame(updateTransforms);
};
window.addEventListener("scroll", handleScroll, { passive: true });
updateTransforms();
return () => {
window.removeEventListener("scroll", handleScroll);
if (rafRef.current) {
cancelAnimationFrame(rafRef.current);
}
};
}, [updateTransforms]);
const ref = useReveal<HTMLElement>();
return (
<section id="products" className="bg-background">
{/* Scroll-Animated Product Grid */}
<div ref={sectionRef} className="relative" style={{ height: "200vh" }}>
<div className="sticky top-0 h-screen flex items-center justify-center overflow-hidden">
<div className="relative w-full max-w-7xl px-4">
{/* Title - centered with 3D rotation */}
<div
className="flex items-center justify-center pointer-events-none"
style={{
perspective: '1000px',
}}
>
<div className="relative w-full" style={{ transformStyle: 'preserve-3d', minHeight: '150px' }}>
{titles.map((title, index) => {
// Last text "Built to last" stays visible at the end
const isLastText = index === titles.length - 1;
// Calculate which text should be visible based on scroll progress
const segmentSize = 1 / titles.length;
const startProgress = index * segmentSize;
const endProgress = (index + 1) * segmentSize;
let rotateX = 0;
let opacity = 0;
if (titleOpacity >= startProgress && titleOpacity < endProgress) {
// Active text - rotating in
const localProgress = (titleOpacity - startProgress) / segmentSize;
rotateX = (1 - localProgress) * 90;
opacity = localProgress;
} else if (titleOpacity >= endProgress) {
// Text that has passed - last text stays visible
if (isLastText) {
rotateX = 0;
opacity = 1;
} else {
rotateX = -90;
opacity = 0;
}
} else {
// Text that hasn't appeared yet
rotateX = 90;
opacity = 0;
}
return (
<h2
key={index}
className="absolute inset-0 flex items-center justify-center text-[8vw] sm:text-[7vw] font-medium leading-tight tracking-tighter text-foreground md:text-[6vw] lg:text-[5vw] text-center px-4"
style={{
transform: `rotateX(${rotateX}deg) translateZ(0)`,
opacity,
transformStyle: 'preserve-3d',
backfaceVisibility: 'hidden',
WebkitBackfaceVisibility: 'hidden',
willChange: 'transform, opacity',
WebkitFontSmoothing: 'antialiased',
}}
>
{title}
</h2>
);
})}
</div>
</div>
</div>
<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="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>
</div>
</div>
{/* Description */}
<div ref={descriptionRef} className="px-6 pt-8 pb-20 md:px-12 md:pt-12 md:pb-28 lg:px-20 lg:pt-16 lg:pb-36">
<div className="text-center">
<p className="mt-8 leading-relaxed text-muted-foreground text-3xl text-center">
{("A design home that combines contemporary aesthetics and energy performance. Built with eco-friendly materials, it minimizes carbon footprint while offering optimal comfort.").split(" ").map((word, index, array) => {
const wordProgress = Math.max(0, Math.min(1, (descriptionProgress * array.length) - index));
const opacity = wordProgress;
const blur = (1 - wordProgress) * 40;
return (
<span
key={index}
style={{
opacity,
filter: `blur(${blur}px)`,
transition: 'opacity 0.3s ease, filter 0.3s ease',
}}
>
{word}{index < array.length - 1 ? " " : ""}
</span>
);
})}
</p>
<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>
<div className="mt-12">
{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>
<p className="text-lg font-medium">{title}</p>
<p className="mt-1 text-muted-foreground">{body}</p>
</div>
</div>
))}
</div>
</div>
</div>
</section>
+71
View File
@@ -0,0 +1,71 @@
"use client";
import Link from "next/link";
import { useReveal } from "@/hooks/use-reveal";
const MODELS = [
{
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",
featured: true,
},
{
name: "Prenumeration",
tagline: "Återkommande feed eller löpande berikning.",
points: ["Dagliga eller veckovisa deltan", "Webhook vid förändring", "Färskhetsövervakning"],
cta: "Konfigurera feed",
featured: false,
},
{
name: "Custom",
tagline: "Stora eller komplexa uppdrag.",
points: ["Scope + offert innan start", "ML-, BI- och dokumentjobb", "Dedikerad leverans + 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-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="mt-10 grid grid-cols-1 gap-px 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>
<p className="mt-2 text-sm text-muted-foreground">{m.tagline}</p>
<ul className="mt-5 flex-1 space-y-2.5">
{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" />
<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"
style={
m.featured
? { backgroundColor: "var(--foreground)", color: "var(--background)" }
: { border: "1px solid var(--foreground)", color: "var(--foreground)" }
}
>
{m.cta}
</Link>
</div>
))}
</div>
</div>
</section>
);
}
+36 -330
View File
@@ -1,347 +1,53 @@
"use client";
import Image from "next/image";
import { useEffect, useRef, useState } from "react";
import { useReveal } from "@/hooks/use-reveal";
function ScrollRevealText({ text }: { text: string }) {
const containerRef = useRef<HTMLParagraphElement>(null);
const [progress, setProgress] = useState(0);
useEffect(() => {
const handleScroll = () => {
if (!containerRef.current) return;
const rect = containerRef.current.getBoundingClientRect();
const windowHeight = window.innerHeight;
// Slower animation - more viewport range
const startOffset = windowHeight * 0.9;
const endOffset = windowHeight * 0.1;
const totalDistance = startOffset - endOffset;
const currentPosition = startOffset - rect.top;
const newProgress = Math.max(0, Math.min(1, currentPosition / totalDistance));
setProgress(newProgress);
};
window.addEventListener("scroll", handleScroll, { passive: true });
handleScroll(); // Initial check
return () => window.removeEventListener("scroll", handleScroll);
}, []);
const words = text.split(" ");
return (
<p
ref={containerRef}
className="text-3xl font-semibold leading-snug text-white md:text-4xl lg:text-5xl"
>
{words.map((word, index) => {
// Calculate blur and opacity based on scroll progress
const appearProgress = progress * (words.length + 1);
const wordAppearProgress = Math.max(0, Math.min(1, appearProgress - index));
const wordOpacity = wordAppearProgress;
const wordBlur = (1 - wordAppearProgress) * 40;
return (
<span
key={index}
className="inline-block"
style={{
opacity: wordOpacity,
filter: `blur(${wordBlur}px)`,
transition: 'opacity 0.1s linear, filter 0.1s linear',
marginRight: '0.3em',
}}
>
{word}
</span>
);
})}
</p>
);
}
const sideImages = [
{
src: "/images/interior-view.png",
alt: "Interior view with landscape",
position: "left",
},
{
src: "/images/rusted-metal.png",
alt: "Rusted metal texture",
position: "right",
},
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"],
];
const textCycles = [
"Design & Sustainability.",
"Passive Energy.",
"Bio-sourced Construction.",
];
const PIPELINE = ["Källracing", "Extraktion & OCR", "Strukturering", "Berikning & fusion", "Kvalitetskontroll"];
export function TechnologySection() {
const sectionRef = useRef<HTMLElement>(null);
const textSectionRef = useRef<HTMLDivElement>(null);
const [scrollProgress, setScrollProgress] = useState(0);
const [textProgress, setTextProgress] = useState(0);
const descriptionText = "Passive architecture reimagining modern living. Triple glazing, reinforced insulation and natural ventilation combine with solar panels to create an energy-autonomous home. Bio-sourced materials like solid wood and hemp wool ensure healthy indoor air and minimal ecological footprint.";
useEffect(() => {
const handleScroll = () => {
if (!sectionRef.current) return;
const rect = sectionRef.current.getBoundingClientRect();
const scrollableHeight = window.innerHeight * 4; // Increased for 3 text cycles
const scrolled = -rect.top;
const progress = Math.max(0, Math.min(1, scrolled / scrollableHeight));
setScrollProgress(progress);
// Text scroll progress
if (textSectionRef.current) {
const textRect = textSectionRef.current.getBoundingClientRect();
const windowHeight = window.innerHeight;
const startOffset = windowHeight * 0.9;
const endOffset = windowHeight * 0.1;
const totalDistance = startOffset - endOffset;
const currentPosition = startOffset - textRect.top;
const newTextProgress = Math.max(0, Math.min(1, currentPosition / totalDistance));
setTextProgress(newTextProgress);
}
};
window.addEventListener("scroll", handleScroll, { passive: true });
handleScroll();
return () => {
window.removeEventListener("scroll", handleScroll);
};
}, []);
// Title fades out first (0 to 0.2)
const titleOpacity = Math.max(0, 1 - (scrollProgress / 0.2));
// Image transforms start after title fades (0.2 to 1)
const imageProgress = Math.max(0, Math.min(1, (scrollProgress - 0.2) / 0.8));
// Smooth interpolations
const centerWidth = 100 - (imageProgress * 58); // 100% to 42%
const centerHeight = 100 - (imageProgress * 30); // 100% to 70%
const sideWidth = imageProgress * 22; // 0% to 22%
const sideOpacity = imageProgress;
const sideTranslateLeft = -100 + (imageProgress * 100); // -100% to 0%
const sideTranslateRight = 100 - (imageProgress * 100); // 100% to 0%
const gap = imageProgress * 16; // 0px to 16px
// Calculate grayscale for text section based on textProgress
const grayscaleAmount = Math.round((1 - textProgress) * 100);
const ref = useReveal<HTMLElement>();
return (
<section ref={sectionRef} className="relative bg-foreground">
{/* Sticky container for scroll animation */}
<div className="sticky top-0 h-screen overflow-hidden">
<div className="flex h-full w-full items-center justify-center">
{/* Bento Grid Container */}
<div
className="relative flex h-full w-full items-stretch justify-center"
style={{ gap: `${gap}px`, padding: `${imageProgress * 16}px` }}
>
{/* Left Column */}
<div
className="relative overflow-hidden will-change-transform"
style={{
width: `${sideWidth}%`,
height: "100%",
transform: `translateX(${sideTranslateLeft}%)`,
opacity: sideOpacity,
}}
>
{sideImages.filter(img => img.position === "left").map((img, idx) => (
<Image
key={idx}
src={img.src || "/placeholder.svg"}
alt={img.alt}
fill
className="object-cover"
/>
))}
</div>
<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.
</h2>
{/* Main Center Image */}
<div
className="relative overflow-hidden will-change-transform"
style={{
width: `${centerWidth}%`,
height: "100%",
flex: "0 0 auto",
}}
>
{/* Layered Images - Progressive Fade In */}
{/* Image 1 - Base layer - Sunrise/Sunset with sun rays */}
<Image
src="/images/mono-1.png"
alt="Modern architecture at sunrise"
fill
className="object-cover"
style={{
opacity: scrollProgress < 0.25 ? 1 : 1,
}}
/>
{/* Image 2 - Daytime scene - Fades in during first text cycle */}
<Image
src="/images/mono-2.png"
alt="Modern architecture in daylight"
fill
className="absolute inset-0 object-cover"
style={{
opacity: Math.max(0, Math.min(1, (scrollProgress - 0.1) / 0.2)),
transition: 'opacity 0.3s ease',
}}
/>
{/* Image 3 - Dusk/Evening - Fades in during second text cycle */}
<Image
src="/images/mono-3.png"
alt="Modern architecture at dusk"
fill
className="absolute inset-0 object-cover"
style={{
opacity: Math.max(0, Math.min(1, (scrollProgress - 0.4) / 0.2)),
transition: 'opacity 0.3s ease',
}}
/>
{/* Image 4 - Night with stars - Fades in during third text cycle */}
<Image
src="/images/mono-4.png"
alt="Modern architecture at night"
fill
className="absolute inset-0 object-cover"
style={{
opacity: Math.max(0, Math.min(1, (scrollProgress - 0.7) / 0.2)),
transition: 'opacity 0.3s ease',
}}
/>
<div className="absolute inset-0 bg-foreground/40" />
{/* Title Text - Cycles through 3 texts with blur effect */}
<div
className="absolute inset-0 flex flex-col items-center justify-center px-6 text-center"
>
{textCycles.map((text, cycleIndex) => {
// Each text cycle takes 1/3 of the scroll progress
const cycleStart = cycleIndex / textCycles.length;
const cycleEnd = (cycleIndex + 1) / textCycles.length;
const cycleMid = (cycleStart + cycleEnd) / 2;
const words = text.split(" ");
return (
<h2
key={cycleIndex}
className="absolute max-w-3xl font-medium leading-tight tracking-tight text-white md:text-5xl lg:text-7xl text-5xl"
>
{words.map((word, wordIndex) => {
let wordOpacity = 0;
let wordBlur = 40;
if (scrollProgress >= cycleStart && scrollProgress < cycleEnd) {
const localProgress = (scrollProgress - cycleStart) / (cycleEnd - cycleStart);
// First half: appear (blur 40→0, opacity 0→1)
if (localProgress < 0.5) {
const appearProgress = (localProgress / 0.5) * (words.length + 1);
const wordAppearProgress = Math.max(0, Math.min(1, appearProgress - wordIndex));
wordOpacity = wordAppearProgress;
wordBlur = (1 - wordAppearProgress) * 40;
}
// Second half: disappear (blur 0→40, opacity 1→0)
else {
const disappearProgress = ((localProgress - 0.5) / 0.5) * (words.length + 1);
const wordDisappearProgress = Math.max(0, Math.min(1, disappearProgress - wordIndex));
wordOpacity = 1 - wordDisappearProgress;
wordBlur = wordDisappearProgress * 40;
}
}
return (
<span
key={wordIndex}
className="inline-block"
style={{
opacity: wordOpacity,
filter: `blur(${wordBlur}px)`,
transition: 'opacity 0.1s linear, filter 0.1s linear',
marginRight: '0.3em',
}}
>
{word}
</span>
);
})}
</h2>
);
})}
{/* sourcing chain */}
<div className="mt-12 grid grid-cols-1 gap-px bg-[#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 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" }} />
</div>
<p className="mt-3 text-base font-medium">{title}</p>
<p className="mt-1 font-mono text-[11px] text-[#a3a3a3]">{sub}</p>
</div>
))}
</div>
{/* Right Column */}
<div
className="relative overflow-hidden will-change-transform"
style={{
width: `${sideWidth}%`,
height: "100%",
transform: `translateX(${sideTranslateRight}%)`,
opacity: sideOpacity,
}}
>
{sideImages.filter(img => img.position === "right").map((img, idx) => (
<Image
key={idx}
src={img.src || "/placeholder.svg"}
alt={img.alt}
fill
className="object-cover"
/>
))}
{/* pipeline */}
<div className="reveal delay-2 mt-10 flex flex-wrap items-center gap-x-2 gap-y-3">
{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>
</div>
</div>
</div>
{/* Scroll space to enable animation - increased for 3 text cycles */}
<div className="h-[400vh]" />
{/* Description Section with Background Image and Scroll Reveal */}
<div
ref={textSectionRef}
className="relative overflow-hidden px-6 py-24 md:px-12 md:py-32 lg:px-20 lg:py-40 bg-black"
>
{/* Gradient Overlay - Top to transparent */}
<div
className="absolute top-0 left-0 right-0 z-0 pointer-events-none"
style={{
height: '150px',
background: 'linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%)'
}}
/>
{/* Text Content */}
<div className="relative z-10 mx-auto max-w-4xl">
<ScrollRevealText text={descriptionText} />
))}
</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>
</div>
</section>
);
+28 -18
View File
@@ -1,27 +1,37 @@
"use client";
import Image from "next/image";
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],
];
export function TestimonialsSection() {
const ref = useReveal<HTMLElement>();
return (
<section id="about" className="bg-background">
{/* About Image with Text Overlay */}
<div className="relative aspect-[16/9] w-full">
<Image
src="/images/testimonial-house.png"
alt="Modern corten steel architecture in natural landscape"
fill
className="object-cover"
/>
{/* Fade gradient overlay - dark at bottom fading to transparent at top */}
<div className="absolute inset-0 bg-gradient-to-t from-black/70 via-black/30 to-transparent" />
{/* Text Overlay */}
<div className="absolute inset-0 flex items-end justify-center px-6 pb-16 md:px-12 md:pb-24 lg:px-20 lg:pb-32">
<p className="mx-auto max-w-5xl text-2xl leading-relaxed text-white md:text-3xl lg:text-[2.5rem] lg:leading-snug text-center">
A passive house that combines contemporary design with environmental respect —
built for those who refuse to choose between modern comfort and ecological responsibility.
<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>
<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">
{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)" }}>
{n}
</p>
<p className="mt-2 font-mono text-[11px] uppercase tracking-[0.08em] 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>
</div>
</section>