Let the hero's photos or brand backdrop sit behind a stream or video
hero_mode answered two questions with one value, so a livestream or featured video could only ever sit on the brand backdrop. It's now two settings: Background brand | photos Beside the words nothing | livestream | featured video Any background goes with any feature: the photo slideshow can run behind the stream, with its captions, progress bars and pause button as before. The fallbacks are unchanged: photos with none added shows brand, and a feature with no link set shows nothing beside the words. Migration 025 adds hero_backdrop and hero_feature, maps each row's hero_mode onto them (photos → photos + nothing, livestream/video → brand + that feature, brand → brand + nothing) and drops hero_mode. ADD/DROP COLUMN rather than a rebuild, so front_page's children and touch trigger are untouched. The API's hero sends `backdrop` and `feature` in place of `mode`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5b9c8f7391
commit
7eeac6b22f
6 changed files with 104 additions and 40 deletions
|
|
@ -994,16 +994,26 @@ const frontPage = {
|
|||
note: "The first thing a visitor sees. Blank buttons don't render.",
|
||||
fields: [
|
||||
{
|
||||
path: "hero_mode",
|
||||
label: "Mode",
|
||||
path: "hero_backdrop",
|
||||
label: "Background",
|
||||
widget: "select",
|
||||
options: [
|
||||
["brand", "Brand — animated colour, no media"],
|
||||
["brand", "Brand — animated colour and the dove"],
|
||||
["photos", "Photos — cycles through the photos below"],
|
||||
["livestream", "Livestream — embeds the stream with a LIVE badge"],
|
||||
["video", "Featured video — shows the video below, click to play"],
|
||||
],
|
||||
blankLabel: "— brand —",
|
||||
help: "Photos with none added shows the brand background",
|
||||
},
|
||||
{
|
||||
path: "hero_feature",
|
||||
label: "Beside the words",
|
||||
widget: "select",
|
||||
options: [
|
||||
["none", "Nothing — the words fill the hero"],
|
||||
["livestream", "Livestream — the stream, with a LIVE badge"],
|
||||
["video", "Featured video — click to play"],
|
||||
],
|
||||
blankLabel: "— nothing —",
|
||||
help: "Switch to Livestream when you go live, and back when you're done",
|
||||
},
|
||||
{ path: "eyebrow", label: "Eyebrow", help: "Small line above the headline" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue