Adds the Contact section to the homepage

Adds the contact form with the live fields, validation and browser-side
anti-spam, behind a coming-soon notice with a mail button until the API
exists. A "Boek" link on a price card selects its package, tidies the
URL and moves focus to the form. The form loads only when it comes near
the screen, so the hero does not wait for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-21 00:36:43 +02:00
co-authored by Claude Opus 5.5
parent 0b8e8d5f8b
commit 0fce403ebc
46 changed files with 2505 additions and 16 deletions
@@ -604,3 +604,127 @@ De foto mag nog iets kleiner? 75% van huidige groote maken is denk ik goed. Het
**Context**: CONSTRUCTION - Unit 4 complete; Unit 5 start
---
## Unit 5 Contact — Functional Design Plan and Questions
**Timestamp**: 2026-10-20T22:20:00Z
**User Input**: (none — AI-initiated, following "Ga dan verder naar de volgende stage")
**AI Response**: "Committed 0b8e8d5, pushed, dispatched CI run 554 (deploy to test). Created construction/plans/contact-functional-design-plan.md (6 steps, listing what is already fixed) and contact-fd-questions.md with 6 questions: when errors appear, error messages, success behaviour (+ reply time text), mail button subject, focus after a 'Boek' click, failure message."
**Context**: CONSTRUCTION - Unit 5 Functional Design (awaiting answers)
---
## Unit 5 Contact — Functional Design Answers (partial)
**Timestamp**: 2026-10-20T22:30:00Z
**User Input**: "1B
2X, emailadres: \"Dit e-mailadres is ongeldig.\" Te lang: \"Het bericht is te lang\"
3A, maar het bericht is: \"Bedankt voor je bericht! Ik reageer binnen 1-2 werkdagen.
4A
5A"
**AI Response**: "Recorded answers 1–5 in contact-fd-questions.md. Question 6 unanswered; the 'too long' message is ambiguous for the name and e-mail fields. Created contact-fd-clarification-questions.md with 2 follow-up questions."
**Context**: CONSTRUCTION - Unit 5 Functional Design (awaiting clarifications)
---
## Unit 5 Contact — Clarification Answers
**Timestamp**: 2026-10-20T22:40:00Z
**User Input**: "1A, 2A"
**AI Response**: "Recorded: failure message with mailto link, input kept (Q6 = A); per-field 'too long' messages (A). Added design detail for Q1 = B: an untouched empty field gets no error on blur, and a shown error clears as soon as the field becomes valid while typing. Generating functional design artifacts."
**Context**: CONSTRUCTION - Unit 5 Functional Design (answers complete)
---
## Unit 5 Contact — Clarification Answers
**Timestamp**: 2026-10-20T22:40:00Z
**User Input**: "1A, 2A"
**AI Response**: "Recorded: failure message with mailto link, input kept (Q6 = A); per-field 'too long' messages (A). Added design detail for Q1 = B: an untouched empty field gets no error on blur, and a shown error clears as soon as the field becomes valid while typing. Generating functional design artifacts."
**Context**: CONSTRUCTION - Unit 5 Functional Design (answers complete)
---
## Unit 5 Contact — Functional Design Complete
**Timestamp**: 2026-10-20T23:00:00Z
**User Input**: (none — generation)
**AI Response**: "Generated construction/contact/functional-design/: domain-entities.md (values, errors, payload, shoot options, limits, setting, anti-spam inputs), business-rules.md (BR-FORM-01..13 incl. the user's messages and blur timing, BR-SEND-01..04 with the 1-2 werkdagen thank-you, BR-SPAM-01..03, BR-GATE-01..03, BR-MAIL-01 subject, BR-PARAM-02/04 and BR-FOCUS-01; two decision flowcharts; misuse notes), business-logic-model.md (submit sequence, pure reducer state machine, 8 pure functions, 10 PBT properties incl. stateful PBT-06), frontend-components.md (ContactSection, ContactFormGate, ContactForm, content, accessibility). Prompt: Request Changes or Continue to Code Generation."
**Context**: CONSTRUCTION - Unit 5 Functional Design (awaiting approval)
---
## Test Deploy Result (units 1–4 incl. review fixes)
**Timestamp**: 2026-10-20T23:05:00Z
**User Input**: (none — CI run finished)
**AI Response**: "CI run 554 (workflow_dispatch on feature/homepage-sections at 0b8e8d5, deploy_test=true) completed: check success, deploy-test success, lighthouse success, deploy-production skipped."
**Context**: Test environment updated with units 1–4 and the review fixes
---
## Unit 5 Contact — Functional Design Approval
**Timestamp**: 2026-10-20T23:10:00Z
**User Input**: "Ga verder naar de volgende stage"
**AI Response**: "Functional design approved. Proceeding to Code Generation Part 1 (planning) for unit 5."
**Context**: CONSTRUCTION - Unit 5 Functional Design approved
---
## Unit 5 Contact — Code Generation Plan
**Timestamp**: 2026-10-20T23:15:00Z
**User Input**: (none — AI-initiated)
**AI Response**: "Created construction/plans/contact-code-generation-plan.md (19 steps): types/content, six pure helpers incl. the form reducer with stateful PBT, adapter, formControl recipe and panel shadow, ContactForm, ContactFormGate, ContactSection (preselect, URL clean-up, focus), route + app tests, pnpm check with a performance comparison (defer the form like the carousel if it costs performance), visual checks, summary, commit. Prompt: approve plan or request changes."
**Context**: CONSTRUCTION - Unit 5 Code Generation Part 1 (awaiting plan approval)
---
## Unit 5 Contact — Plan Approval
**Timestamp**: 2026-10-20T23:20:00Z
**User Input**: "Approve plan. Je mag na het genereren de code alvast committed, pushen en een deploy naar test doen"
**AI Response**: "Plan approved. Authorised for this unit: after generation, commit, push and dispatch a test deploy. Starting Code Generation Part 2."
**Context**: CONSTRUCTION - Unit 5 Code Generation Part 2 (start)
---
## Unit 5 Contact — Code Generation Complete, Push and Test Deploy
**Timestamp**: 2026-10-21T00:30:00Z
**User Input**: "Kan je mij een screenshot van de desktop versie sturen zodra je klaar bent?" (received mid-generation)
**AI Response**: "Executed all 19 steps. Findings: labels were not linked (control id overridden; Ark uses Field.Root id) — fixed; React-compiler lint on field refs — focus by id instead; lazy form unmounted after ?pakket= cleanup — latched once loaded; two reducer branches only randomly covered — deterministic tests added. Performance: 5-run medians against a rebuilt unit-4 build (sparse worktree; a full worktree hit the Windows path limit): 0.83 → 0.80 with the form in the route chunk, 0.81 with the form lazy, 0.83 after replacing Chakra List/Blockquote (slot recipes) in PriceCard and TestimonialSlide with plain elements so the route no longer fetches a new shared chunk. Placeholder heights measured. Final pnpm check green: 237 tests, 100% lib coverage, Lighthouse mobile 0.83, desktop 1.0, a11y/BP/SEO 1.0. Sent desktop screenshots (overlay; form switched on locally and reverted) and a phone screenshot. Committing, pushing and dispatching a test deploy as authorised for this unit."
**Context**: CONSTRUCTION - Unit 5 Code Generation (complete, awaiting approval)
---