1.6 KiB
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.tsxEra2026.tsxhero,Era2013.tsxabout,Era2006.tsxpackages (sharedusePackagesQuery,usePackageFilter,useSwipeRow,useContactPreselect, B'sSwipeDots),Era1998.tsxprocess,Era1989.tsxcontact +TerminalForm.tsx(shareduseContactForm,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.tsxupdated 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.