B-secties: nav, hero, Over, Werkwijze, contactblok en footer volgens ontwerp B
Nieuwe tokens (brand, inv, panel, field, prog, body), Archivo als lettertype (Sora en Instrument Sans verwijderd), witte toggles op het rode kopblok, en tests voor structuur, landmarks en contrast in alle vier de thema's. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,46 +1,55 @@
|
||||
import { aboutContent } from '../data/content';
|
||||
import { aboutContent, aboutFacts } from '../data/content';
|
||||
|
||||
/** "Over" of design B: offset-block photo on the left, text and three facts on the right. */
|
||||
export function AboutSection() {
|
||||
return (
|
||||
<section className="py-[88px]">
|
||||
<div className="mx-auto max-w-[1080px] px-6">
|
||||
<div className="grid grid-cols-1 items-start gap-8 sm:grid-cols-[1.2fr_0.8fr] sm:grid-rows-[auto_1fr] sm:items-stretch sm:gap-12">
|
||||
<div className="order-1 mb-3 sm:col-start-1 sm:row-start-1 sm:mb-0">
|
||||
<span
|
||||
id="over"
|
||||
className="font-mono block scroll-mt-16 text-sm uppercase tracking-wider text-accent"
|
||||
>
|
||||
// over
|
||||
</span>
|
||||
<h2 className="font-display mt-3.5 text-3xl font-bold sm:text-4xl">
|
||||
Eén ontwikkelaar, korte lijnen
|
||||
</h2>
|
||||
</div>
|
||||
<div className="order-2 flex items-center justify-center sm:order-3 sm:col-start-2 sm:row-start-1 sm:row-span-2">
|
||||
<picture>
|
||||
<source
|
||||
type="image/webp"
|
||||
srcSet="/bryan-slop-400.webp 400w, /bryan-slop-800.webp 800w"
|
||||
sizes="(min-width: 640px) 224px, 160px"
|
||||
/>
|
||||
<img
|
||||
src="/bryan-slop-800.jpg"
|
||||
srcSet="/bryan-slop-400.jpg 400w, /bryan-slop-800.jpg 800w"
|
||||
sizes="(min-width: 640px) 224px, 160px"
|
||||
alt="Bryan Slop, oprichter van SLP Software"
|
||||
width={224}
|
||||
height={224}
|
||||
className="h-40 w-40 rounded-full border-2 border-accent-line object-cover shadow-lg sm:h-56 sm:w-56"
|
||||
/>
|
||||
</picture>
|
||||
</div>
|
||||
<div className="order-3 sm:order-2 sm:col-start-1 sm:row-start-2">
|
||||
{aboutContent.paragraphs.map((paragraph) => (
|
||||
<p key={paragraph} className="mb-4 text-muted">
|
||||
{paragraph}
|
||||
</p>
|
||||
<section id="over" aria-labelledby="over-heading" className="bg-bg">
|
||||
<div className="mx-auto grid max-w-[1280px] grid-cols-1 items-center gap-x-[104px] gap-y-[72px] px-6 py-20 sm:px-8 md:grid-cols-2 md:py-[136px]">
|
||||
<div className="relative mb-7 mr-7 max-w-[480px]">
|
||||
<div
|
||||
aria-hidden="true"
|
||||
className="absolute -bottom-7 -right-7 h-[55%] w-[55%] bg-brand"
|
||||
data-testid="about-photo-block"
|
||||
/>
|
||||
<picture>
|
||||
<source
|
||||
type="image/webp"
|
||||
srcSet="/bryan-slop-400.webp 400w, /bryan-slop-800.webp 800w"
|
||||
sizes="(min-width: 768px) 480px, 90vw"
|
||||
/>
|
||||
<img
|
||||
src="/bryan-slop-800.jpg"
|
||||
srcSet="/bryan-slop-400.jpg 400w, /bryan-slop-800.jpg 800w"
|
||||
sizes="(min-width: 768px) 480px, 90vw"
|
||||
alt="Bryan Slop, oprichter van SLP Software"
|
||||
width={480}
|
||||
height={640}
|
||||
className="relative block aspect-[3/4] w-full object-cover object-[50%_30%]"
|
||||
/>
|
||||
</picture>
|
||||
</div>
|
||||
<div>
|
||||
<h2
|
||||
id="over-heading"
|
||||
className="mb-9 text-[clamp(40px,5.4vw,80px)] font-extrabold leading-[0.95] tracking-[-0.03em] [font-stretch:112%]"
|
||||
>
|
||||
Eén ontwikkelaar, korte lijnen
|
||||
</h2>
|
||||
{aboutContent.paragraphs.map((paragraph) => (
|
||||
<p key={paragraph} className="mb-[18px] max-w-[52ch] text-body">
|
||||
{paragraph}
|
||||
</p>
|
||||
))}
|
||||
<dl className="mt-14 grid grid-cols-1 gap-7 sm:grid-cols-3 sm:gap-x-8">
|
||||
{aboutFacts.map((fact) => (
|
||||
<div key={fact.title} className="border-t-[3px] border-text pt-3.5">
|
||||
<dt className="text-[22px] font-extrabold leading-[1.15] [font-stretch:112%]">
|
||||
{fact.title}
|
||||
</dt>
|
||||
<dd className="mt-1.5 text-[15px] text-muted">{fact.text}</dd>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -1,34 +1,56 @@
|
||||
import { contactInfo } from '../data/content';
|
||||
|
||||
/**
|
||||
* Contact block of design B: brand-red section with the display heading, intro, mail link and a
|
||||
* panel on the right. Until the contact form (unit U4) the panel holds the mailto call-to-action.
|
||||
*/
|
||||
export function ContactSection() {
|
||||
const mailtoHref = `mailto:${contactInfo.email}?subject=${encodeURIComponent(contactInfo.mailSubject)}`;
|
||||
|
||||
return (
|
||||
<section className="pb-[110px]">
|
||||
<div className="mx-auto max-w-[1080px] px-6">
|
||||
<div className="rounded-[20px] border border-accent-line bg-gradient-to-br from-surface-2 to-surface px-10 py-14 text-center">
|
||||
<span
|
||||
id="contact"
|
||||
className="font-mono block scroll-mt-16 text-sm uppercase tracking-wider text-accent"
|
||||
>
|
||||
// contact
|
||||
</span>
|
||||
<h2 className="font-display mt-3.5 text-3xl font-bold sm:text-4xl">
|
||||
{contactInfo.heading}
|
||||
</h2>
|
||||
<p className="mx-auto mb-8 mt-3.5 max-w-[46ch] text-muted">{contactInfo.description}</p>
|
||||
<a
|
||||
href={mailtoHref}
|
||||
className="rounded-lg bg-accent px-6 py-3.5 text-[0.98rem] font-semibold text-[var(--color-accent-contrast)] transition-colors hover:bg-[var(--color-accent-hover)]"
|
||||
>
|
||||
Stuur een bericht
|
||||
</a>
|
||||
<span className="font-mono mt-5 block text-[0.9rem] text-muted">
|
||||
of mail direct naar{' '}
|
||||
<a href={`mailto:${contactInfo.email}`} className="text-accent underline-offset-2 hover:underline">
|
||||
<section id="contact" aria-labelledby="contact-heading" className="bg-brand text-on-brand">
|
||||
<div className="mx-auto max-w-[1280px] px-6 pb-24 pt-20 sm:px-8 md:pb-[152px] md:pt-36">
|
||||
<h2
|
||||
id="contact-heading"
|
||||
className="text-[clamp(56px,10.5vw,168px)] font-extrabold leading-[0.88] tracking-[-0.03em] [font-stretch:125%]"
|
||||
aria-label={contactInfo.heading}
|
||||
>
|
||||
{contactInfo.displayHeading.map((line) => (
|
||||
<span key={line} className="block" aria-hidden="true">
|
||||
{line}
|
||||
</span>
|
||||
))}
|
||||
</h2>
|
||||
<div className="mt-12 flex flex-wrap items-end justify-between gap-x-16 gap-y-10 md:mt-[72px]">
|
||||
<div className="flex-[1_1_320px] self-start">
|
||||
<p className="mb-10 max-w-[40ch] text-[19px]">{contactInfo.description}</p>
|
||||
<p className="mb-2 text-[15px] font-semibold">Liever direct mailen?</p>
|
||||
<a
|
||||
href={`mailto:${contactInfo.email}`}
|
||||
className="break-words text-[clamp(24px,2.6vw,36px)] font-bold tracking-[-0.02em] underline decoration-[3px] underline-offset-8 [font-stretch:112%]"
|
||||
data-testid="contact-email-link"
|
||||
>
|
||||
{contactInfo.email}
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
className="min-w-0 flex-[1.4_1_520px] bg-panel p-[clamp(24px,4vw,48px)] text-text"
|
||||
data-testid="contact-panel"
|
||||
>
|
||||
<p className="mb-3 text-[clamp(28px,3vw,40px)] font-extrabold leading-none tracking-[-0.02em] [font-stretch:112%]">
|
||||
Vertel wat je voor ogen hebt
|
||||
</p>
|
||||
<p className="mb-7 max-w-[44ch] text-body">
|
||||
Stuur een bericht met je idee of vraag. Je krijgt binnen één werkdag reactie.
|
||||
</p>
|
||||
<a
|
||||
href={mailtoHref}
|
||||
className="inline-block bg-brand px-6 py-[18px] text-[17px] font-bold text-on-brand no-underline hover:opacity-90"
|
||||
data-testid="contact-mailto-button"
|
||||
>
|
||||
Stuur een bericht
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -1,41 +1,59 @@
|
||||
import { heroContent } from '../data/content';
|
||||
import { handleAnchorClick } from '../../../utils/scrollToHash';
|
||||
|
||||
/**
|
||||
* Hero of design B: display headline on the brand-red block, lead + two buttons, and the black
|
||||
* code strip with the blinking caret. The nav sits directly above in the same colour.
|
||||
*/
|
||||
export function Hero() {
|
||||
return (
|
||||
<header id="top" className="relative overflow-hidden pb-[88px] pt-24">
|
||||
<div className="mx-auto max-w-[1080px] px-6">
|
||||
<span className="font-mono mb-5 block text-sm uppercase tracking-wider text-accent">
|
||||
{heroContent.eyebrow}
|
||||
</span>
|
||||
<h1 className="font-display mb-6 max-w-[15ch] text-4xl font-extrabold leading-tight tracking-tight sm:text-5xl">
|
||||
{heroContent.heading}
|
||||
</h1>
|
||||
<p className="mb-9 max-w-[52ch] text-lg text-muted">{heroContent.lead}</p>
|
||||
<div
|
||||
aria-hidden="true"
|
||||
className="font-mono mb-10 inline-flex max-w-full items-center gap-2 overflow-x-auto whitespace-nowrap rounded border border-line bg-surface px-6 py-4 shadow-lg"
|
||||
<section id="top" aria-labelledby="hero-heading" className="bg-brand text-on-brand">
|
||||
<div className="mx-auto max-w-[1280px] px-6 pb-16 pt-10 sm:px-8 sm:pb-24 sm:pt-16">
|
||||
<h1
|
||||
id="hero-heading"
|
||||
className="text-[clamp(56px,10.5vw,168px)] font-extrabold leading-[0.88] tracking-[-0.03em] [font-stretch:125%]"
|
||||
aria-label={heroContent.heading}
|
||||
>
|
||||
<span>{heroContent.codeLine}</span>
|
||||
<span className="caret" data-testid="hero-caret" />
|
||||
</div>
|
||||
<div className="flex flex-col gap-4 sm:flex-row sm:flex-wrap">
|
||||
<a
|
||||
href="#pakketten"
|
||||
onClick={(event) => handleAnchorClick(event, '#pakketten')}
|
||||
className="rounded-lg bg-accent px-6 py-3.5 text-center text-[0.98rem] font-semibold text-[var(--color-accent-contrast)] transition-transform hover:bg-[var(--color-accent-hover)] active:scale-[0.98] sm:text-left"
|
||||
>
|
||||
Bekijk pakketten
|
||||
</a>
|
||||
<a
|
||||
href="#contact"
|
||||
onClick={(event) => handleAnchorClick(event, '#contact')}
|
||||
className="rounded-lg border border-line px-6 py-3.5 text-center text-[0.98rem] font-semibold text-text transition-colors hover:border-accent-line sm:text-left"
|
||||
>
|
||||
Plan een gesprek
|
||||
</a>
|
||||
{heroContent.displayHeading.map((line, index) => (
|
||||
<span
|
||||
key={line}
|
||||
className="block"
|
||||
aria-hidden="true"
|
||||
data-testid={`hero-line-${index}`}
|
||||
>
|
||||
{line}
|
||||
</span>
|
||||
))}
|
||||
</h1>
|
||||
<div className="mt-12 flex flex-wrap items-end justify-between gap-10 sm:mt-[72px] lg:gap-x-16">
|
||||
<p className="max-w-[48ch] text-[19px] leading-[1.55]">{heroContent.lead}</p>
|
||||
<div className="flex flex-wrap gap-3">
|
||||
<a
|
||||
href="#pakketten"
|
||||
onClick={(event) => handleAnchorClick(event, '#pakketten')}
|
||||
className="bg-white px-[26px] py-[17px] text-base font-bold text-[#0e0d0d] no-underline hover:opacity-90"
|
||||
>
|
||||
Bekijk pakketten
|
||||
</a>
|
||||
<a
|
||||
href="#contact"
|
||||
onClick={(event) => handleAnchorClick(event, '#contact')}
|
||||
className="border-2 border-white px-6 py-[15px] text-base font-bold text-white no-underline hover:opacity-90"
|
||||
>
|
||||
Plan een gesprek
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div className="bg-inv">
|
||||
<div className="font-mono mx-auto flex max-w-[1280px] flex-wrap items-center justify-between gap-x-8 gap-y-2 px-6 py-[22px] text-base sm:px-8">
|
||||
<span className="text-white" aria-hidden="true">
|
||||
<span className="text-[#a8a29c]">~/slp $</span> {heroContent.codeLine}
|
||||
<span className="caret ml-1.5 !bg-white" data-testid="hero-caret" />
|
||||
</span>
|
||||
<span className="text-sm text-[#a8a29c]">{heroContent.eyebrow}</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,26 +1,22 @@
|
||||
import { processSteps } from '../data/content';
|
||||
import { ProcessStep } from './ProcessStep';
|
||||
|
||||
/** "Werkwijze" of design B: black section with three steps, progress bars and outlined numbers. */
|
||||
export function ProcessSection() {
|
||||
return (
|
||||
<section className="py-[88px]">
|
||||
<div className="mx-auto max-w-[1080px] px-6">
|
||||
<div className="mb-[52px]">
|
||||
<span
|
||||
id="werkwijze"
|
||||
className="font-mono block scroll-mt-16 text-sm uppercase tracking-wider text-accent"
|
||||
>
|
||||
// werkwijze
|
||||
</span>
|
||||
<h2 className="font-display mt-3.5 text-3xl font-bold sm:text-4xl">
|
||||
Van idee naar live in drie stappen
|
||||
</h2>
|
||||
</div>
|
||||
<div className="grid grid-cols-1 gap-[22px] sm:grid-cols-3">
|
||||
{processSteps.map((step) => (
|
||||
<ProcessStep key={step.label} step={step} />
|
||||
<section id="werkwijze" aria-labelledby="werkwijze-heading" className="bg-inv text-white">
|
||||
<div className="mx-auto max-w-[1280px] px-6 pb-24 pt-20 sm:px-8 md:pb-[136px] md:pt-32">
|
||||
<h2
|
||||
id="werkwijze-heading"
|
||||
className="mb-16 max-w-[14ch] text-[clamp(40px,5.4vw,80px)] font-extrabold leading-[0.95] tracking-[-0.03em] [font-stretch:112%] md:mb-[88px]"
|
||||
>
|
||||
Van idee naar live in drie stappen
|
||||
</h2>
|
||||
<ol className="grid grid-cols-1 gap-x-10 gap-y-16 md:grid-cols-3">
|
||||
{processSteps.map((step, index) => (
|
||||
<ProcessStep key={step.label} step={step} index={index} total={processSteps.length} />
|
||||
))}
|
||||
</div>
|
||||
</ol>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
||||
@@ -1,11 +1,32 @@
|
||||
import type { ProcessStepData } from '../data/content';
|
||||
|
||||
export function ProcessStep({ step }: { step: ProcessStepData }) {
|
||||
interface ProcessStepProps {
|
||||
step: ProcessStepData;
|
||||
/** 0-based position and total, used for the number and the progress bar (33 / 66 / 100 %). */
|
||||
index: number;
|
||||
total: number;
|
||||
}
|
||||
|
||||
export function ProcessStep({ step, index, total }: ProcessStepProps) {
|
||||
const number = String(index + 1).padStart(2, '0');
|
||||
const progress = `${((index + 1) / total) * 100}%`;
|
||||
|
||||
return (
|
||||
<div className="border-l-2 border-line py-1 pl-6 transition-colors hover:border-accent">
|
||||
<span className="font-mono mb-2.5 block text-[0.78rem] text-accent">{step.label}</span>
|
||||
<h3 className="mb-2 text-[1.08rem]">{step.title}</h3>
|
||||
<p className="text-[0.93rem] text-muted">{step.description}</p>
|
||||
</div>
|
||||
<li data-testid={`process-step-${number}`}>
|
||||
<div aria-hidden="true" className="mb-8 h-1 bg-[#34302e]">
|
||||
<div className="h-1 bg-prog" style={{ width: progress }} data-testid="process-progress" />
|
||||
</div>
|
||||
<div
|
||||
aria-hidden="true"
|
||||
className="mb-8 text-[120px] font-black leading-[0.9] text-transparent [-webkit-text-stroke:1.5px_#ffffff] [font-stretch:125%]"
|
||||
>
|
||||
{number}
|
||||
</div>
|
||||
<p className="mb-2 text-sm font-semibold text-[#b9b3ae]">{step.phase}</p>
|
||||
<h3 className="mb-3 text-[26px] font-extrabold leading-[1.1] [font-stretch:112%]">
|
||||
{step.title}
|
||||
</h3>
|
||||
<p className="max-w-[36ch] text-base text-[#cfcac5]">{step.description}</p>
|
||||
</li>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user