Variant E (tijdreis): vijf tijdperken, 2006-pakketten, 1989-terminalformulier en tests
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,168 @@
|
||||
import { Fragment } from 'react';
|
||||
import { processSteps } from '../../features/landing/data/content';
|
||||
import { handleAnchorClick } from '../../utils/scrollToHash';
|
||||
import { marqueeText, processEra } from './eraContent';
|
||||
|
||||
const SANS = 'Arial, Helvetica, sans-serif';
|
||||
const BEVEL_BOX = { border: '2px inset var(--e-w98-inset)' } as const;
|
||||
|
||||
/** 1998: early web, step cards with progress blocks and a "Klaar!" card. */
|
||||
export function Era1998() {
|
||||
const total = processSteps.length;
|
||||
|
||||
return (
|
||||
<section id="werkwijze" aria-labelledby="werkwijze-heading" className="e-sec-1998 relative">
|
||||
<div
|
||||
aria-hidden="true"
|
||||
className="overflow-hidden whitespace-nowrap border-t-2 border-[#a0a0a0] bg-[#800000] py-[7px] text-[15px] font-bold text-[#ffff00]"
|
||||
style={{ fontFamily: SANS }}
|
||||
data-testid="e-marquee"
|
||||
>
|
||||
<div className="e-marquee-track">{marqueeText.repeat(2)} </div>
|
||||
</div>
|
||||
<span
|
||||
aria-hidden="true"
|
||||
className="absolute right-6 top-[52px] px-2.5 py-[3px] text-[13px] font-bold"
|
||||
style={{
|
||||
fontFamily: SANS,
|
||||
background: 'var(--e-w98-bg)',
|
||||
border: '2px outset var(--e-w98-bevel)',
|
||||
}}
|
||||
>
|
||||
1998
|
||||
</span>
|
||||
<div className="mx-auto max-w-[1080px] px-6 pb-24 pt-[88px]">
|
||||
<h2
|
||||
id="werkwijze-heading"
|
||||
className="m-0 text-center text-[clamp(30px,3.6vw,40px)] font-bold"
|
||||
style={{ color: 'var(--e-w98-head)' }}
|
||||
>
|
||||
{processEra.heading}
|
||||
</h2>
|
||||
<p className="mb-0 mt-2.5 text-center text-[19px]">{processEra.sub}</p>
|
||||
<hr
|
||||
className="mb-10 mt-[22px] border-0"
|
||||
style={{ borderTop: '2px groove var(--e-w98-groove)' }}
|
||||
/>
|
||||
|
||||
<ol className="m-0 flex list-none flex-wrap items-stretch p-0">
|
||||
{processSteps.map((step, index) => (
|
||||
<Fragment key={step.label}>
|
||||
<li className="e-w98-card" data-testid={`e-step-${index + 1}`}>
|
||||
<div
|
||||
className="px-2 py-1 text-sm font-bold text-white"
|
||||
style={{
|
||||
fontFamily: SANS,
|
||||
background: 'linear-gradient(90deg, #800000 0%, #b03030 100%)',
|
||||
}}
|
||||
>
|
||||
Stap {index + 1} van {total}
|
||||
</div>
|
||||
<div
|
||||
className="mt-[3px] flex flex-1 flex-col px-4 pb-4 pt-[18px]"
|
||||
style={{
|
||||
...BEVEL_BOX,
|
||||
background: 'var(--e-w98-paper)',
|
||||
color: 'var(--e-w98-paper-ink)',
|
||||
}}
|
||||
>
|
||||
<div
|
||||
aria-hidden="true"
|
||||
className="flex h-16 w-16 items-center justify-center text-[38px] font-bold"
|
||||
style={{
|
||||
fontFamily: SANS,
|
||||
background: 'var(--e-w98-face)',
|
||||
border: '3px outset var(--e-w98-bevel)',
|
||||
color: 'var(--e-w98-num)',
|
||||
}}
|
||||
>
|
||||
{index + 1}
|
||||
</div>
|
||||
<h3 className="mb-0.5 mt-3.5 text-2xl leading-[1.15]">{step.title}</h3>
|
||||
<p className="m-0 mb-3 text-base italic" style={{ color: 'var(--e-w98-sub)' }}>
|
||||
{step.phase}
|
||||
</p>
|
||||
<p className="m-0 mb-[18px] flex-1 text-[17px]">{step.description}</p>
|
||||
<div
|
||||
aria-hidden="true"
|
||||
className="flex gap-0.5 p-[3px]"
|
||||
style={{ ...BEVEL_BOX, background: 'var(--e-w98-track)' }}
|
||||
>
|
||||
{processSteps.map((_, block) => (
|
||||
<span
|
||||
key={block}
|
||||
className="h-4 flex-1"
|
||||
style={{ background: block <= index ? 'var(--e-w98-bar)' : 'transparent' }}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
<p
|
||||
className="m-0 mt-1 text-xs"
|
||||
style={{ fontFamily: SANS, color: 'var(--e-w98-sub)' }}
|
||||
>
|
||||
{Math.round(((index + 1) / total) * 100)}% van je project
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
<li className="e-w98-arrow" aria-hidden="true">
|
||||
<svg width="28" height="28" viewBox="0 0 28 28">
|
||||
<path
|
||||
d="M3 10h12V4l10 10-10 10v-6H3z"
|
||||
fill="var(--e-w98-arrow)"
|
||||
stroke="var(--e-w98-arrow-line)"
|
||||
strokeWidth="1.5"
|
||||
strokeLinejoin="miter"
|
||||
/>
|
||||
</svg>
|
||||
</li>
|
||||
</Fragment>
|
||||
))}
|
||||
<li className="e-w98-card" data-testid="e-step-done">
|
||||
<div
|
||||
className="px-2 py-1 text-sm font-bold text-white"
|
||||
style={{
|
||||
fontFamily: SANS,
|
||||
background: 'linear-gradient(90deg, #006600 0%, #1f7a1f 100%)',
|
||||
}}
|
||||
>
|
||||
{processEra.doneTitle}
|
||||
</div>
|
||||
<div
|
||||
className="mt-[3px] flex flex-1 flex-col justify-center px-4 py-[18px] text-center"
|
||||
style={{
|
||||
...BEVEL_BOX,
|
||||
background: 'var(--e-w98-done)',
|
||||
color: 'var(--e-w98-paper-ink)',
|
||||
}}
|
||||
>
|
||||
<p
|
||||
aria-hidden="true"
|
||||
className="m-0 text-[44px] font-bold leading-none"
|
||||
style={{ fontFamily: SANS, color: 'var(--e-w98-green)' }}
|
||||
>
|
||||
100%
|
||||
</p>
|
||||
<h3 className="my-2.5 text-[26px] leading-[1.1]">{processEra.doneHeading}</h3>
|
||||
<p className="m-0 mb-4 text-[17px]">{processEra.doneText}</p>
|
||||
<a
|
||||
href="#contact"
|
||||
onClick={(event) => handleAnchorClick(event, '#contact')}
|
||||
className="underline"
|
||||
style={{ color: 'var(--e-w98-link)' }}
|
||||
>
|
||||
{processEra.doneLink}
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
<p
|
||||
className="m-0 mt-10 text-center text-[13px]"
|
||||
style={{ fontFamily: SANS, color: 'var(--e-w98-sub)' }}
|
||||
>
|
||||
{processEra.joke}
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user