Website 1.6.0: real photos for the demo church, photos sized to their frames
The demo church (and the eight demo profiles) used one generated "hills and sun" SVG for every picture. Now 104 Unsplash stock photos (models; free under the Unsplash License, credited in backend/demo-photos/CREDITS.md): a set per profile, a portrait for every leader (before: only the pastor), a picture for each event, and a photo for each message instead of the stand-in video's thumbnail. Demo photos go through processImage like an upload, made once per machine and copied; without demo-photos/ the illustration still stands in. A message's thumbnailUrl that is one of the site's own uploads now comes before the YouTube thumbnail; admins and the YouTube feed store YouTube's address there, so a church's own messages are unchanged. Faster on phones: the Community collage hero, the collage row, the team's portraits and the ministry cards give the browser their real width (sizes), so a phone no longer fetches the full-width photo for a small frame. Checked: backend tests (131), Website e2e (130, baselines retaken; Lighthouse mobile 90-98 performance, 100 accessibility and SEO), typecheck, lint and both builds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,42 @@
|
||||
# Changelog — Church Website
|
||||
|
||||
## [1.6.0] — 2026-11-27
|
||||
|
||||
No migration, no new environment settings.
|
||||
|
||||
### Changed
|
||||
|
||||
- **The demo church has photos** instead of the generated "hills and sun" illustration that
|
||||
stood in for every picture. 104 stock photos from Unsplash (free under the Unsplash License;
|
||||
credits in `backend/demo-photos/CREDITS.md` and `photos.json`), 12 MB of WebP in
|
||||
`backend/demo-photos/`. Each demo profile has its own set (`photos` in `src/demo/seeds.ts`): a
|
||||
stone parish church, a city spire, a worship night, a school hall, a family table, farmland, a
|
||||
coffee table, a campus. The ministry pictures match what they are (Sunday school, choir, soup
|
||||
kitchen, students). Acacia Hill (a template on its own) gets an acacia at sunrise. The people
|
||||
are the photographers' models.
|
||||
- **Every leader has a portrait** (before: only the first, so the team showed three empty
|
||||
circles), named for them in its alt text (`photos.team`).
|
||||
- **The demo's events have pictures** (`photos.events`; before: the grey placeholder on event
|
||||
cards). Photos that compress well where an event page shows them large (the picnic is 75 KB at
|
||||
960 px, not the 170 KB of the busier one), so the event pages stay at Lighthouse 90+.
|
||||
- **The demo's messages have photos** (`photos.messages`: a pulpit, an open Bible, a
|
||||
microphone, a preacher who matches the speaker) instead of the stand-in video's thumbnail.
|
||||
`Message.thumbnailUrl` set to one of the site's own uploads (`/api/uploads/…`) now comes before
|
||||
the YouTube thumbnail (`messageThumbnail`); admins and the YouTube feed store YouTube's address
|
||||
there, which is still never used, so nothing changes for a church's own messages.
|
||||
- Demo photos become media assets the way an upload does (`processImage`: 480, 960 and 1600 px
|
||||
in WebP and JPEG), so demo sites serve responsive images. Each photo is processed once per
|
||||
machine (`<tmp>/crosscode-website-demo/`, made in a folder of its own and renamed into place)
|
||||
and copied into `<uploads>/demo/`. Without `demo-photos/`, the illustration still stands in.
|
||||
- e2e: the fake YouTube thumbnail is one of the demo photos.
|
||||
|
||||
### Fixed
|
||||
|
||||
- Photos in small frames are fetched at their size, not the screen's: Community's collage hero
|
||||
(fixed 10–16rem frames), the collage row in the other templates (a third of the width), the
|
||||
team's portraits (12rem, 20rem featured) and the ministry cards (a quarter or a third of the
|
||||
width) say so in `sizes`. A phone fetched the 960 or 1600 px photo for each before.
|
||||
|
||||
## [1.5.0] — 2026-11-27
|
||||
|
||||
No migration, no new environment settings.
|
||||
|
||||
Reference in New Issue
Block a user