website 1.10.0: the home page laid out from its editor; photos that match the layout

- Pages → Home: each section's layout and background when it's open, and move up, move down
  and show or hide on its header. They save straight to the design, as Template and style →
  Home page layout does (which keeps them too). Shared lists in admin/layouts.ts.
- A section offers only the photo fields its layout shows: a slot for each (hero: 1 for Photo,
  Video and Split, 3 for Collage, none for Text only); Welcome's photo and pastor and the
  Invitation's photo only for the layouts that use them. Photos for other layouts are kept.
- e2e: the hero opens with /^Top of the page/; a new test for the editor's layout controls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 08:56:08 +02:00
co-authored by Claude Opus 5.5
parent 101248195f
commit 8b1d1da5a9
12 changed files with 264 additions and 66 deletions
+11
View File
@@ -3,6 +3,17 @@
What each version changes for the church, in plain language (read by the Hub like Cross Events'
WHATS-NEW.md; a section shows once its version is tagged).
## 1.10.0
- **Lay out your home page while you edit it.** In **Pages → Home**, open a section to choose its
layout and background right there. Use the arrows to move a section up or down, and the eye to
show or hide it. No more switching back and forth to **Template and style** (it still has the
same settings, if you prefer it there).
- **The photos match the layout.** A section now asks for exactly the photos its layout shows: one
for Photo and Split, three for Collage, none for Text only. The Welcome's photo and the pastor's
photo and quote, and the Invitation's background photo, only appear for the layouts that use
them. Photos you added for another layout are kept, so switching back brings them back.
## 1.9.0
- **Choose a background for each homepage section.** In **Template and style → Home page layout**,