Events: a 16:9 event photo apart from the card background

- New Event photo and Photo description (migration 061), shown whole
  at the top of the event's page, as the front page's featured event,
  on featured cards, in newsletter picks and as the share preview.
- The front page's featured event box is 16:9 (was 16:7).
- Card background is only the faded background of the event's card.
- Each event's photo starts as its card background, so nothing
  changes on screen until it's replaced.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-10-02 16:03:54 -05:00
parent b816203c0c
commit e324422f32
14 changed files with 69 additions and 15 deletions

View file

@ -147,13 +147,27 @@ export const events = {
{ path: "event_logo", label: "Event logo", widget: "image", folder: "logos", resolve: mediaUrl, full: true },
{ path: "org_logo", label: "Org logo override", widget: "image", folder: "logos", resolve: mediaUrl, full: true },
{ path: "color", label: "Color", widget: "color" },
{
path: "photo",
label: "Event photo",
widget: "image",
resolve: mediaUrl,
full: true,
help: "16:9, eg. 1920 x 1080, shown whole: at the top of the event's page, as the front page's featured event, on featured cards, in the newsletter and when the page is shared.",
},
{
path: "photo_alt",
label: "Photo description",
full: true,
help: "What the photo shows, for people who can't see it, eg. Campers around the fire at the 2025 retreat. Default: none (read as decoration).",
},
{
path: "card_image",
label: "Card background",
widget: "image",
resolve: mediaUrl,
full: true,
help: "A photo behind the event's card, faded so the text stays readable.",
help: "Only behind the event's card, faded so the text stays readable and cropped to the card's shape (about square). Keep the subject centered and leave words out.",
},
],
},

View file

@ -133,8 +133,11 @@ export type EventRecord = {
org_logo?: string | null
event_logo?: string | null
color?: string | null
/** Behind the card. See 029_event_card_image.sql. */
/** Behind the card only, cropped. See 029_event_card_image.sql. */
card_image?: string | null
/** The event's own 16:9 photo, shown whole. See 061_event_photo.sql. */
photo?: string | null
photo_alt?: string | null
/* In billing order. The first is the one `color` and `org_logo`
fell back to when the event set neither. */
hosts: EventHost[]

View file

@ -111,7 +111,8 @@ export type FeaturedCard = {
/** The countdown's event plus what the hero's event card draws. */
export type HeroEvent = CountdownEvent & {
tagline?: string | null
card_image?: string | null
photo?: string | null
photo_alt?: string | null
org_logo?: string | null
links: Link[]
}