Events block: a card opens the event in full, its own blocks too

An events block's events bring their own page's blocks (one level
deep, so events listing each other stop there), photo and place. A
card opens the event under the cards: photo, type and date, title,
place, person host, its blocks (else its card text) and a link to its
page. Reading mode shows them all in full, and the presentation's
event spotlight shows its blocks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-11-09 04:31:34 -06:00
parent df8052c75e
commit 375c364861
4 changed files with 174 additions and 33 deletions

View file

@ -14,8 +14,8 @@
venue each map block (088): the map with its locations
place then the map once per marked location, it lit up
cards each events block (088): its events on one slide
event then each event alone: picture, title, card text
and its person host
event then each event alone: picture, title, its person
host and its own page's blocks (else its card text)
A schedule's slides, for each day picked, in order:
overview the day's picked entries on one slide
@ -1040,6 +1040,10 @@ function SlideView({ slide, accent }: { slide: Slide; accent: string }) {
const event = entry.event!
const image = mediaUrl(event.image)
const blurb = entry.detail || event.blurb
// Its own page's blocks, when it has some, in place of its card
// text, zoomed for the column they're in.
const blocks = event.blocks?.length ? event.blocks : null
const zoom = Math.max(1, (window.innerWidth * 0.75) / TEXT_WIDTH)
return (
<div className="flex h-full items-center gap-[5vw]">
{image && (
@ -1047,7 +1051,7 @@ function SlideView({ slide, accent }: { slide: Slide; accent: string }) {
<img src={image} alt="" className="aspect-video w-full object-cover shadow-lg" />
</Rise>
)}
<Scroll center className="min-w-0 self-stretch">
<Scroll center={!blocks} className="min-w-0 self-stretch">
{eventLine(event) && (
<Rise from="right">
<p className="text-[clamp(1.2rem,2.4vw,3rem)] font-semibold capitalize" style={{ color }}>
@ -1060,15 +1064,8 @@ function SlideView({ slide, accent }: { slide: Slide; accent: string }) {
{entry.text || event.title}
</h1>
</Rise>
{blurb && (
<Rise order={2} from="right">
<div className="mt-[3vh] space-y-3 text-[clamp(1rem,1.8vw,2.2rem)] leading-snug text-muted">
<Paragraphs text={blurb} accent={accent} />
</div>
</Rise>
)}
{entry.person && (
<Rise order={3} from="right" className="mt-[3vh] flex items-center gap-[1.5vw]">
<Rise order={2} from="right" className="mt-[3vh] flex items-center gap-[1.5vw]">
<Avatar person={entry.person} size="h-[6vw] w-[6vw] text-[1.6vw]" />
<span>
<span className="block text-[clamp(1.1rem,2vw,2.6rem)] font-bold text-ink">{entry.person.name}</span>
@ -1078,6 +1075,21 @@ function SlideView({ slide, accent }: { slide: Slide; accent: string }) {
</span>
</Rise>
)}
{blocks ? (
<Rise order={3} from="right" className="mt-[3vh]">
<div style={{ zoom }}>
<ContentBlocks blocks={blocks} accent={event.color || accent} anchorPrefix={`${event.id}-`} />
</div>
</Rise>
) : (
blurb && (
<Rise order={3} from="right">
<div className="mt-[3vh] space-y-3 text-[clamp(1rem,1.8vw,2.2rem)] leading-snug text-muted">
<Paragraphs text={blurb} accent={accent} />
</div>
</Rise>
)
)}
</Scroll>
</div>
)