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>
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
{
|
||||
"display": "slideshow",
|
||||
"title": "Andrea Slop",
|
||||
"tagline": "Lifestyle fotograaf · Huizen",
|
||||
"lead": null,
|
||||
"buttons": [{ "label": "Lees meer", "target": "/over-mij" }],
|
||||
"slides": [
|
||||
{
|
||||
"id": "11111111-1111-1111-1111-111111111111",
|
||||
"alt": "Zwangerschapsfoto in de duinen",
|
||||
"decorative": false,
|
||||
"image": {
|
||||
"width": 1600,
|
||||
"height": 1067,
|
||||
"focus": { "x": 0.5, "y": 0.55 },
|
||||
"src": "/media/hero/3f9a1c/wide-1600.webp",
|
||||
"variants": [
|
||||
{
|
||||
"ratio": "wide",
|
||||
"width": 1600,
|
||||
"type": "image/webp",
|
||||
"url": "/media/hero/3f9a1c/wide-1600.webp"
|
||||
},
|
||||
{
|
||||
"ratio": "wide",
|
||||
"width": 960,
|
||||
"type": "image/webp",
|
||||
"url": "/media/hero/3f9a1c/wide-960.webp"
|
||||
},
|
||||
{
|
||||
"ratio": "wide",
|
||||
"width": 1600,
|
||||
"type": "image/avif",
|
||||
"url": "/media/hero/3f9a1c/wide-1600.avif"
|
||||
},
|
||||
{
|
||||
"ratio": "wide",
|
||||
"width": 960,
|
||||
"type": "image/avif",
|
||||
"url": "/media/hero/3f9a1c/wide-960.avif"
|
||||
},
|
||||
{
|
||||
"ratio": "tall",
|
||||
"width": 960,
|
||||
"type": "image/webp",
|
||||
"url": "/media/hero/3f9a1c/tall-960.webp"
|
||||
},
|
||||
{
|
||||
"ratio": "tall",
|
||||
"width": 640,
|
||||
"type": "image/webp",
|
||||
"url": "/media/hero/3f9a1c/tall-640.webp"
|
||||
},
|
||||
{
|
||||
"ratio": "tall",
|
||||
"width": 960,
|
||||
"type": "image/avif",
|
||||
"url": "/media/hero/3f9a1c/tall-960.avif"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "22222222-2222-2222-2222-222222222222",
|
||||
"alt": "Knusse newbornfoto met de familie",
|
||||
"decorative": false,
|
||||
"image": {
|
||||
"width": 1600,
|
||||
"height": 1067,
|
||||
"focus": { "x": 0.45, "y": 0.5 },
|
||||
"src": "/media/hero/7b2e90/wide-1600.webp",
|
||||
"variants": []
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user