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:
2026-11-10 18:56:38 +01:00
co-authored by Claude Sonnet 5.5
parent 00f6f0653b
commit 4d9abd695d
25 changed files with 2032 additions and 45 deletions
@@ -0,0 +1,24 @@
# Logical Components — e-timetravel (U5)
```mermaid
graph TD
le[LandingE] --> nav[ENav with toggles]
le --> s26[Era 2026 hero]
le --> s13[Era 2013 about]
le --> s06[Era 2006 packages]
le --> s98[Era 1998 process]
le --> dith[Dither strips]
le --> s89[Era 1989 terminal contact]
s06 --> shared[usePackagesQuery usePackageFilter useSwipeRow]
s89 --> form[useContactForm and availability]
s98 --> marq[Marquee static under reduced motion]
le -.styles.-> css[era.css and e fonts]
classDef ui fill:#2196F3,stroke:#0d47a1,color:#000;
classDef hook fill:#9C27B0,stroke:#4a148c,color:#000;
classDef style fill:#FF9800,stroke:#e65100,color:#000;
class le,nav,s26,s13,s06,s98,dith,s89,marq ui;
class shared,form hook;
class css style;
```
Text alternative: the lazy E landing contains a nav and five era sections plus dither strips; the 2006 and 1989 sections reuse the shared packages and form logic, and the E chunk brings its own CSS and fonts.
@@ -0,0 +1,18 @@
# NFR Design Patterns — e-timetravel (U5)
| Pattern | Where | Purpose |
|---|---|---|
| Chunk isolation | `src/variants/e` + `loadVariant` | E code, fonts and CSS load only when the visitor chooses E |
| Era tokens | `era.css` | one set of variables per era and mode; components use `var(--e-...)` so light/dark needs no component logic |
| Decorative vs content | era badges, marquee, dither, scanlines, bevel numbers | `aria-hidden` and `pointer-events: none`; real content never depends on them |
| Reduced-motion switch | `usePrefersReducedMotion` + CSS media query | marquee renders as a static line, caret and scanlines static; no `animation` property remains |
| Shared logic, separate skin | packages and form | the same hooks as B with era-specific markup and styles |
| Focus integrity | every era | era styles never set `outline: none` without a replacement; `:focus-visible` ring uses the era text colour |
| Fallback fonts | font stacks | text stays readable before fonts load (swap), widths comparable to avoid layout shift |
| Contrast by construction | token test | all text/background pairs of the E token sets are asserted ≥ 4.5:1 (≥ 3:1 for large display text) |
## Misuse / robustness scenarios
1. Visitor with reduced motion switches to E: no moving content (marquee, caret, scanlines) and no dither transition (U1 rule).
2. Screen-reader user switches to E: the live region announces the new variant; era badges and glyphs are ignored; headings keep a logical order.
3. Slow network: the E chunk or its fonts fail to load: U1 falls back to B with an alert; if only a font fails, system fallbacks keep the text readable.
4. Dark mode in the 1998 section: bevel and paper colours come from the dark token set (no light-only hard-coded colours).