Files
SluijsensandClaude Sonnet 5.5 13f78c48cd Adds the hero contract: golden files for the picture and the preload links, mapping and seed
Model B (wide 3:2 and tall 4:5 variants, focus point), agreed with the CMS
session. Pure functions mapHero, heroHtml and heroPreloadHtml, golden files in
web/contract/host-injection/hero with a README, and a seed with a first focus
estimate per photo. No site change yet.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 14:44:30 +01:00

59 lines
1.7 KiB
JSON

{
"display": "slideshow",
"title": "<b>\"Andrea\" & 'Slop'</b>",
"tagline": "<i>x</i>",
"buttons": [
{ "label": "javascript", "target": "javascript:alert(1)" },
{ "label": "Protocolvrij", "target": "//evil.example/x" },
{ "label": "<Goed>", "target": "/a?b=1&c=\"2\"" }
],
"slides": [
{
"id": "skip1",
"alt": "",
"decorative": false,
"image": { "width": 10, "height": 10, "src": "/media/x.webp" }
},
{
"id": "skip2",
"alt": "extern",
"decorative": false,
"image": {
"width": 10,
"height": 10,
"src": "https://evil.example/x.webp"
}
},
{
"id": "skip3",
"alt": "geen afmeting",
"decorative": false,
"image": { "width": 0, "height": 10, "src": "/media/x.webp" }
},
{
"id": "a1",
"alt": "Een \"foto\" <script>",
"decorative": false,
"image": {
"width": 1600,
"height": 1067,
"src": "/media/hero/a\"b/w1600.webp",
"variants": [
{
"ratio": "wide",
"width": 800,
"type": "image/webp",
"url": "/media/hero/a\"b/w800.webp"
},
{
"ratio": "wide",
"width": 400,
"type": "image/webp",
"url": "https://evil.example/w400.webp"
}
]
}
}
]
}