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:
parent
b816203c0c
commit
e324422f32
14 changed files with 69 additions and 15 deletions
|
|
@ -203,7 +203,7 @@ export function shapeSeries(row) {
|
|||
`image` is { file, kind }, like the timeline's logo: the record
|
||||
tables keep bare filenames in different public/ directories,
|
||||
and logoForKind in media.ts knows which is which. The kinds are
|
||||
the ref kinds, plus 'event-background' and 'featured' (the
|
||||
the ref kinds, plus 'event-photo' and 'featured' (the
|
||||
card's own image). An unpublished
|
||||
record's card is dropped; an unlisted one's stays, since
|
||||
featuring it is attaching it by hand.
|
||||
|
|
@ -213,11 +213,11 @@ const FEATURED_REFS = {
|
|||
event: {
|
||||
sql: (marks) =>
|
||||
`SELECT id, title, tagline AS blurb, date_label AS eyebrow,
|
||||
card_image, event_logo
|
||||
photo, event_logo
|
||||
FROM events WHERE is_published = 1 AND id IN (${marks})`,
|
||||
image: (row) =>
|
||||
row.card_image
|
||||
? { file: row.card_image, kind: "event-background" }
|
||||
row.photo
|
||||
? { file: row.photo, kind: "event-photo" }
|
||||
: row.event_logo
|
||||
? { file: row.event_logo, kind: "event" }
|
||||
: null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue