Skip to content
SprecherEast
Issue 1024

Title band: neighborhood photo as a faded backdrop, with a deliberate crop

Back to our plan
Done
enhancementfrontendcmspriority: medium

Problem

In plain words: the title band at the top of post and event pages is now a plain coloured strip (#1015). The owner wants it to carry a neighborhood photo as a soft backdrop, on every page, so the site looks like the place it is about.

Summary of the owner's decisions (2026-11-10, Claude Code session, voice): the title band across the whole site shows a piece of a neighborhood photo as a faded, slightly greyed backdrop, edge to edge. The page title must always read in good contrast over it, and the band stays short. The piece of the photo shown is chosen on purpose for each photo so it shows something worth seeing; a band that happens to land on a curb, a road edge or empty sky is not acceptable. He wants that rule written into the image guideline. He expects part of this already exists and is being adjusted, not built from nothing.

Proposed fix

  • The shared page header's band takes an optional backdrop photo: full width, faded with a theme scrim so the title meets contrast in light and dark, band height unchanged or shorter.
  • The band shows the part of the photo an editor chose: reuse the upload's focal point and the focal-point support added in #1015 (Media atFocalPoint, toObjectPosition), and what the home page hero already does, before adding anything.
  • Where the photo comes from is editor-adjustable in the CMS with no code change: one site-wide default backdrop, which a page may replace. Native first: check the existing site settings global, page hero fields and theme decorations for a place to hold it, and record the ladder findings here.
  • No photo set means today's plain band, unchanged.
  • The image guideline gains the principle: a backdrop's visible band is chosen deliberately per photo and checked at each width; a photo whose good part cannot fill a wide, short band is not used as a backdrop.
  • Titles: the brand voice already caps a headline's length and publishing refuses longer ones. Check that the cap holds on every content type whose title can sit on the band, and that the longest allowed title still reads over the photo at phone width.

Acceptance criteria

  • Not done: Tests written first: the band with and without a backdrop, the focal position applied, the scrim present, and the plain band when none is set.
  • Not done: Contrast of the title and category over the backdrop meets WCAG AA in light and dark, measured on the real photo at its lightest and darkest areas under the title, with a mechanical check where one can run (axe on the gallery entry or an e2e probe).
  • Not done: Checked at the six test widths, light and dark, on a post, an event and a plain page, with the chosen photo: the visible band shows the intended part of the photo at every width, the title reads clearly, the band is no taller than today, no sideways scroll, and the page's largest element still loads fast (the backdrop is sized for the band and does not delay the first paint).
  • Not done: An editor can set, change and remove the backdrop and its focal point in the CMS; removing it restores the plain band.
  • Not done: The image guideline carries the deliberate-crop principle (no item-specific examples); notes, component set, gallery and generated docs are updated.
  • Not done: The owner sees captures with the proposed photo and crop, phone, tablet and desktop, before this merges.

Files likely touched

src/platform/ui/PageHeader.tsx and its tests and gallery entry, src/platform/ui/Media*, src/platform/lib/focalPoint.ts, the site settings or theme options global under src/modules/site/cms/ or src/platform/theme/, the page, post and event routes that draw the header, docs/guidelines/images.md, notes and docs/reference/

Must not touch

The metadata bar (#1002), the home page hero's own layout, cards

Area

frontend, cms

Priority

medium


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab