Hero-module: sitecontract definitief (crop-model B, plan goedgekeurd)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-16 14:27:40 +01:00
co-authored by Claude Sonnet 5.5
parent f441ad9366
commit cdd0cf8947
2 changed files with 18 additions and 5 deletions
@@ -1,4 +1,6 @@
# Hero contract with the websites: points agreed with the ASF session (2026-11-16)
# Hero contract with the websites (FINAL, 2026-11-16)
**Status**: final. Bryan chose crop/focus model **B** on 2026-11-16 (relayed by SLP Software - SLS - Main). The 8 current ASF exports are the seed sources (no larger originals now; a later upload through the admin is always possible). The ASF session proposes a first-guess focus point per photo (recorded in the seed data); Bryan adjusts them in the admin. The ASF session delivers the golden files for `<picture>` and the preload.
Input for Application Design. Source: message of "Andrea Slop Fotografie - ASF - Main" (technical answer; the crop/focus model stays Bryan's choice). The SLS side is delivered by the SLS session (three title lines with screen-reader text derived from the lines).
@@ -17,12 +19,11 @@ Input for Application Design. Source: message of "Andrea Slop Fotografie - ASF -
| Hydration | The region holds neutral HTML (fixed classes, no Chakra classes); React takes over with the same source after hydration; slides 2..n load afterwards. The first slide of the data block must equal the first slide the host wrote into the HTML (same source, same cache rule). |
| Golden files | ASF delivers input JSON, expected HTML region and expected preload, with a README and the commit, in `web/contract/host-injection/hero/` on a new ASF branch `feature/hero-module`. They start once Bryan chose the crop model. An A/B-neutral subset (title, tagline, button, first slide `<img>` without `<picture>`) can be delivered earlier. |
## Crop/focus model: input for Bryan's choice
## Crop/focus model: B (decided)
- **A**: a focus point only; the site uses `object-position`; one ratio per width.
- **B (recommended by both sessions)**: the host cuts variants per named ratio around the focus point (or an administrator-set crop), the focus point stays in the data. ASF can use `<picture>` per ratio.
The host cuts variants per named ratio around the focus point (or an administrator-set crop) and also delivers the focus point; sites use `<picture>` per ratio and may use the focus point as `object-position` for in-between shapes. (Option A, a focus point only, was not chosen.)
ASF proposal if B is chosen:
Ratios and widths (ASF proposal, accepted):
| Ratio | Name | Widths | Notes |
|---|---|---|---|