Functional design, code generation plan and summary of the contact page, the updated LAYOUT.md diagram and the extended link requirement. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3.0 KiB
3.0 KiB
Domain Entities — Unit 3: Contact page
Entity relationships
graph TD
Page["ContactPageContent"] -->|"has"| Head["head: eyebrow, title, intro template"]
Page -->|"has"| Titles["formTitle, detailsTitle"]
Page -->|"has"| Photo["image: ContentImage 4:5"]
Page -->|"has"| Portrait["portrait: ContentImage face crop"]
Site["SiteContent"] -->|"replyTime fills"| Head
Site -->|"email, socials"| Card["ContactDetails (twice)"]
Registry["sitePages /contact"] -->|"title, description, ogImage"| Head2["head tags + ContactPage JSON-LD"]
Business["ProfessionalService @id"] -->|"about"| Head2
classDef content fill:#9ae6b4,stroke:#2f855a,stroke-width:1px,color:#000;
classDef derived fill:#FFA726,stroke:#E65100,stroke-width:1px,color:#000;
classDef registry fill:#e2e8f0,stroke:#4a5568,stroke-width:1px,color:#000;
class Page,Head,Titles,Photo,Portrait,Site content;
class Card,Head2 derived;
class Registry,Business registry;
Text alternative: the page content holds the head texts, the two section titles, the photo and the portrait; the site content fills in the reply time and feeds the contact card; the page registry and the business id produce the head tags and the ContactPage structured data.
ContactPageContent (content/types.ts, values in content/contactContent.ts)
| Field | Type | Value |
|---|---|---|
head.eyebrow |
string |
"Neem contact op" |
head.title |
string |
"Contact" |
head.intro |
string |
"Wil je een fotoshoot boeken of meer informatie ontvangen? Stuur me een berichtje, ik reageer binnen {reactietermijn}." |
formTitle |
string |
"Stuur me een bericht" (visually hidden h2) |
detailsTitle |
string |
"Direct contact" |
image |
ContentImage |
the contact photo, 4:5, descriptive alt text |
portrait |
ContentImage |
square face crop from the same photo, alt: '' is set by the card (decorative) |
{reactietermijn} is the one placeholder in the intro; it is replaced by siteContent.contactForm.replyTime (BR-CP-05). Plain strings, so the API can deliver the same shape.
Images
| Image | Location | Size | Notes |
|---|---|---|---|
| Contact photo | web/src/assets/contact/contact.jpg |
about 900×1125 (4:5), compressed | original from andreaslop.nl/contact, resized once |
| Portrait crop | web/src/assets/contact/contact-portret.jpg |
144×144 (72 px at 2×) | face crop, a few kB |
| Preview image | web/public/og-contact.jpg |
1200×630 | crop of the same photo, own alt text in sitePages |
Structured data
ContactPage = webPage('ContactPage', '/contact', { about: { '@id': businessId } }) — name and description from the registry, no e-mail address.
Registry and test lists
sitePages['/contact']: title "Contact – fotoshoot boeken in Huizen", description from SEO-CP-02,indexed: true,ogImagethe preview image.lighthouserc.cjs:/contactmoves fromnoindexPathstoindexedPaths(not inphotoPagePaths, Q2 = A);sitemap.test.ts:/contactin the expected list.