Files

1.6 KiB

Code Summary — e-timetravel (U5)

All new code in src/variants/e/:

  • LandingE.tsx (own skip link, header, main#main, footer), ENav.tsx
  • Era2026.tsx hero, Era2013.tsx about, Era2006.tsx packages (shared usePackagesQuery, usePackageFilter, useSwipeRow, useContactPreselect, B's SwipeDots), Era1998.tsx process, Era1989.tsx contact + TerminalForm.tsx (shared useContactForm, useContactAvailability)
  • eraTokens.ts (light/dark CSS variables + contrast pairs), era.css (effects, bevels, gloss, dither, scanlines; motion off under reduced motion), fonts.ts (Open Sans, VT323 — E chunk only), eraContent.ts (E-only strings)
  • Tests: __tests__/eraTokens.test.ts (WCAG contrast, both modes), __tests__/LandingE.test.tsx (landmarks, headings, packages, filter, preselect, steps, mailto fallback, terminal form send/errors, decorative aria-hidden). VariantRenderer.test.tsx updated for the real E landing.

Results: lint 0 errors (2 pre-existing warnings); 21 files / 304 tests pass; build OK. E chunk JS 24.9 kB (7.8 kB gzip), E CSS 56 kB (24.5 kB gzip, mostly @font-face rules); main JS 468.5 kB (152.1 kB gzip), unchanged.

Deviations from the canvas (accessibility): glossy red tops and the green "Klaar!" header are slightly darker for contrast; the form has the fixed contract fields (name, e-mail, subject, message) instead of the canvas fields (soort/telefoon); star badge text is real text.

Observation (B and E, not changed): useContactForm applies a package preselect only while the form is mounted. A card click before the form has mounted (it mounts when the contact section nears the viewport) is not applied.