Present: featured events lit on the list slide; schedule row fixes
- An events list slide tints, bars and stars its featured events - A schedule block's sub-items sit a little in, not under the title - An entry with no place, person or tags no longer shows a stray 0 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7d31b3eea8
commit
b2ef692155
1 changed files with 16 additions and 4 deletions
|
|
@ -1539,7 +1539,8 @@ function SlideMap({ venue, accent, active, vh, only }: {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* An overview's rows: each entry, a block's sub-items under it.
|
/* An overview's rows: each entry, a block's sub-items under it, a
|
||||||
|
little in from it with their own times in a column.
|
||||||
`start` is the first row's place in the slide's entrance. */
|
`start` is the first row's place in the slide's entrance. */
|
||||||
function OverviewEntries({ entries, accent, start = 1 }: { entries: ContentBlockItem[]; accent: string; start?: number }) {
|
function OverviewEntries({ entries, accent, start = 1 }: { entries: ContentBlockItem[]; accent: string; start?: number }) {
|
||||||
return (
|
return (
|
||||||
|
|
@ -1549,7 +1550,7 @@ function OverviewEntries({ entries, accent, start = 1 }: { entries: ContentBlock
|
||||||
<Rise order={start + i} from="left">
|
<Rise order={start + i} from="left">
|
||||||
<OverviewLine entry={entry} accent={accent} />
|
<OverviewLine entry={entry} accent={accent} />
|
||||||
{entry.kind === 'block' && entry.items?.length ? (
|
{entry.kind === 'block' && entry.items?.length ? (
|
||||||
<ul className="ml-[14vw] pb-[1vh]">
|
<ul className="ml-[3vw] pb-[1vh]">
|
||||||
{entry.items.map((item, j) => (
|
{entry.items.map((item, j) => (
|
||||||
<li key={j} style={item.featured ? featuredStyle(accent) : undefined}>
|
<li key={j} style={item.featured ? featuredStyle(accent) : undefined}>
|
||||||
<OverviewLine entry={item} accent={accent} sub />
|
<OverviewLine entry={item} accent={accent} sub />
|
||||||
|
|
@ -1602,7 +1603,8 @@ function OverviewLine({ entry, accent, sub = false }: { entry: ContentBlockItem;
|
||||||
)}
|
)}
|
||||||
{entry.text}
|
{entry.text}
|
||||||
</span>
|
</span>
|
||||||
{(entry.location || entry.person || entry.tags?.length) && (
|
{/* Boolean: a bare 0 (no tags) would show as text. */}
|
||||||
|
{Boolean(entry.location || entry.person || entry.tags?.length) && (
|
||||||
<span className="mt-1 flex flex-wrap items-center gap-x-[1.5vw] gap-y-1 text-[clamp(0.9rem,1.4vw,1.8rem)] text-muted">
|
<span className="mt-1 flex flex-wrap items-center gap-x-[1.5vw] gap-y-1 text-[clamp(0.9rem,1.4vw,1.8rem)] text-muted">
|
||||||
{entry.location && <span>{entry.location}</span>}
|
{entry.location && <span>{entry.location}</span>}
|
||||||
{entry.person && <span>{entry.person.name}</span>}
|
{entry.person && <span>{entry.person.name}</span>}
|
||||||
|
|
@ -1771,9 +1773,19 @@ function SlideView({ slide, accent }: { slide: Slide; accent: string }) {
|
||||||
<Fit>
|
<Fit>
|
||||||
<ul className={`gap-x-[4vw] ${items.length > ONE_COLUMN ? 'columns-2' : ''}`}>
|
<ul className={`gap-x-[4vw] ${items.length > ONE_COLUMN ? 'columns-2' : ''}`}>
|
||||||
{items.map((item, i) => (
|
{items.map((item, i) => (
|
||||||
<li key={i} className="break-inside-avoid border-b border-brand/15 even:bg-tint-soft/60">
|
<li
|
||||||
|
key={i}
|
||||||
|
className="break-inside-avoid border-b border-brand/15 even:bg-tint-soft/60"
|
||||||
|
// Featured (090): tinted with a bar and a star, as a schedule's.
|
||||||
|
style={item.featured ? featuredStyle(accent) : undefined}
|
||||||
|
>
|
||||||
<Rise order={i + 1} from="left" className="px-[1vw] py-[1.2vh]">
|
<Rise order={i + 1} from="left" className="px-[1vw] py-[1.2vh]">
|
||||||
<span className="block text-[clamp(1.2rem,2.2vw,2.8rem)] font-bold leading-tight text-ink">
|
<span className="block text-[clamp(1.2rem,2.2vw,2.8rem)] font-bold leading-tight text-ink">
|
||||||
|
{item.featured && (
|
||||||
|
<span className="mr-[0.6vw]" style={{ color }}>
|
||||||
|
<FeaturedStar className="h-[0.8em] w-[0.8em]" />
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
{item.text || item.event!.title}
|
{item.text || item.event!.title}
|
||||||
</span>
|
</span>
|
||||||
{item.person && !off.has('person') && (
|
{item.person && !off.has('person') && (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue