diff --git a/app/page.tsx b/app/page.tsx index 1b5cdfb..8770ae3 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -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() { + ); diff --git a/components/data-artifact.tsx b/components/data-artifact.tsx new file mode 100644 index 0000000..532e8e2 --- /dev/null +++ b/components/data-artifact.tsx @@ -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(); + return ( +
+ {variant === "table" ? ( +
+
+ dim_company + härkomst +
+ {TABLE_ROWS.map((r, i) => ( +
+ {r[0]} + + + {r[1]} + +
+ ))} +
+ ) : null} + + {variant === "map" ? ( +
+ {MAP_CELLS.map((c, i) => ( +
+

{c[0]}

+

{c[1] ? `${c[1]}%` : "—"}

+
+
= 95 ? "var(--prov-3)" : c[1] > 0 ? "var(--prov-2)" : "transparent" }} /> +
+
+ ))} +
+ ) : null} + + {variant === "schema" ? ( +
+ {[ + { n: "dim_company", key: true }, + { n: "fact_financials", key: false }, + { n: "bridge_provenance", key: true }, + ].map((e, i) => ( +
+
{e.n}
+
id · key · src
+
+ ))} +
+ ) : null} + + {variant === "chart" ? ( +
+ {CHART_BARS.map((h, i) => ( +
+ ))} +
+ ) : null} + + {variant === "grid" ? ( +
+ 0pt + +
+ ) : null} +
+ ); +} diff --git a/components/sections/collection-section.tsx b/components/sections/collection-section.tsx index df3edf4..50fdc90 100644 --- a/components/sections/collection-section.tsx +++ b/components/sections/collection-section.tsx @@ -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(); return ( -
- {/* Section Title */} -
-

- Surface Options -

-
+
+
+

04 — Täckning

+

Tjugo marknader. En modell.

- {/* Accessories Grid/Carousel */} -
- {/* Mobile: Horizontal Carousel */} -
- {accessories.map((accessory) => ( -
- {/* Image */} -
- -
- - {/* Content */} -
-
-
-

- {accessory.name} -

-

- {accessory.description} -

-
- - {accessory.price} - -
+
+ {MARKETS.map((m) => ( +
+

{m.code}

+

{m.live ? `${m.coverage}%` : "kommande"}

+
+
= 95 ? "var(--prov-3)" : m.coverage >= 85 ? "var(--prov-2)" : "var(--muted-foreground)" }} />
))}
- {/* Desktop: Grid */} -
- {accessories.map((accessory) => ( -
- {/* Image */} -
- -
- - {/* Content */} -
-
-
-

- {accessory.name} -

-

- {accessory.description} -

-
- - {accessory.price} - -
-
+
+ {STATS.map(([n, l]) => ( +
+

{n}

+

{l}

))}
diff --git a/components/sections/editorial-section.tsx b/components/sections/editorial-section.tsx index 8ea95db..2de2dd9 100644 --- a/components/sections/editorial-section.tsx +++ b/components/sections/editorial-section.tsx @@ -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(null); - const [scrollProgress, setScrollProgress] = useState(0); - const rafRef = useRef(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(); return ( -
- {/* Newsletter Banner */} - - - {/* Decorative Icons */} -
- - -
- - {/* Full-width Video with Parallax */} -
-
- - {/* Specs Grid */} -
- {specs.map((spec) => ( -
-

- {spec.label} -

-

- {spec.value} -

-
- ))} +
+
+
+ Data du kan{" "} + + stå för + + {" "} + i ett styrelserum. Inte bara en CSV som ser rätt ut. +
+

+ 0PT — SIAX Technology AB +

); diff --git a/components/sections/featured-products-section.tsx b/components/sections/featured-products-section.tsx index 14e3f4b..1f06bcd 100644 --- a/components/sections/featured-products-section.tsx +++ b/components/sections/featured-products-section.tsx @@ -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; +} + +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(); + const [filter, setFilter] = useState("Alla"); + const shown = DATASETS.filter((d) => filter === "Alla" || d.cat === filter); + return ( -
-
- {/* Bento Grid */} -
- {features.map((feature, index) => ( -
- +
+
+
+
+

02 — Katalog

+

Färdiga dataset. Redo att leverera.

+
+
+ {FILTERS.map((f) => ( + + ))} +
+
+ +
+ {shown.map((d, i) => ( +
+ +

{d.markets}

+

{d.title}

+

{d.desc}

+
+ {d.count} + · + Uppdaterad: {d.freshness} +
+
+ +
+
+ + Visa urval → + + + Beställ + +
))}
diff --git a/components/sections/footer-section.tsx b/components/sections/footer-section.tsx index 073686d..7933030 100644 --- a/components/sections/footer-section.tsx +++ b/components/sections/footer-section.tsx @@ -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(); return ( -