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>
60 lines
2.4 KiB
TypeScript
60 lines
2.4 KiB
TypeScript
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 (
|
|
<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}
|
|
>
|
|
{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>
|
|
<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>
|
|
);
|
|
}
|