Adds the Prijzen section to the homepage

Shows the three live packages as cards with their price and what is
included. Each card links to the contact section with ?pakket=<id>, so
the contact form can preselect it. Invalid packages from the CMS are
skipped and the pakket value is only accepted when it names a package.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-20 01:07:36 +02:00
co-authored by Claude Opus 5.5
parent 0b54a67dc4
commit 30dab1af42
32 changed files with 1250 additions and 6 deletions
@@ -0,0 +1,64 @@
# Domain Entities — Unit 3: Prijzen
## Relationships
```mermaid
graph TD
Package["PricingPackage"]
List["Package list"]
Card["Price card"]
Option["Shoot option"]
Param["pakket search parameter"]
List -->|"contains, in display order"| Package
Package -->|"shown as"| Card
Package -->|"becomes"| Option
Card -->|"links with id as"| Param
Param -->|"preselects"| Option
classDef entity fill:#2196F3,stroke:#0d47a1,stroke-width:1px,color:#000;
classDef value fill:#FF9800,stroke:#e65100,stroke-width:1px,color:#000;
classDef ui fill:#9ae6b4,stroke:#2f855a,stroke-width:1px,color:#000;
class Package,List entity;
class Param,Option value;
class Card ui;
```
Text alternative: the package list holds packages in display order; each package is shown as a price card and becomes a shoot option in the contact form; a card links with the package id as the `pakket` parameter, which preselects that option (blue = data, orange = derived value, green = UI).
## PricingPackage
| Field | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Stable slug, lowercase letters, digits and hyphens (e.g. `newborn`). Used in `?pakket=` and as the shoot value in the contact payload. |
| `name` | string | yes | Display name (e.g. "Newborn"); also the label of the shoot option |
| `price` | number | yes | Whole euros, > 0 (Q5 = A: no package without a price) |
| `features` | string[] | yes | What is included; at least one item |
### Invariants
- `id` is unique within the list and matches `^[a-z0-9-]+$`.
- `name` is non-empty after trimming.
- `price` is a finite integer > 0.
- `features` has ≥ 1 non-empty item.
- The list order is the display order (live: Zwangerschap, Newborn, Gezin).
Packages that break an invariant are left out of the page rather than breaking it (same approach as `visibleSocials`); the API is the place that rejects them at input (Q5 = A).
## Initial data (live site, 2026-10-19)
| id | name | price | features |
|---|---|---|---|
| `zwangerschap` | Zwangerschap | 175 | 1 uur fotografie · Minstens 30 zorgvuldig nabewerkte foto's · Persoonlijke online fotogalerij |
| `newborn` | Newborn | 185 | 1-2 uur fotografie · Minstens 40 zorgvuldig nabewerkte foto's · Persoonlijke online fotogalerij |
| `gezin` | Gezin | 175 | 1 uur fotografie · Minstens 30 zorgvuldig nabewerkte foto's · Persoonlijke online fotogalerij |
## Section content (`HomeContent.pricing`)
| Field | Value |
|---|---|
| `title` | "Prijzen" |
| `lead` | "Pakketten" |
| `decorations` | two decorative images from the design (`deco-1.png`, `deco-2.png`), `alt=""` |
## VAT
Andrea uses the small business scheme (KOR) and charges no VAT, so prices are shown as they are, without a VAT note (Q1 = C).