Present: slide order, presentation settings, blocks drawn for a screen

- Setup's Order list: drag or move any slide; saved in the address
- A heading-only section titles the slides after it, no slide of its own
- Event Presentation settings (095): background image and color, dim,
  frame, accent, text color, logo
- Blocks: Presentation text and Leave out of the presentation; map
  blocks get a slide per section, map only, no details, location slides
- Presented, links are plain text, people a row of round photos and
  names, organizations their logos

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-11-12 03:41:06 -06:00
parent a79559d290
commit 7e21a0dd40
16 changed files with 652 additions and 68 deletions

View file

@ -71,7 +71,8 @@ import { SITE_NAME } from '../lib/site.ts'
import { useSmallImage } from '../lib/useSmallImage.ts'
import { useReadingMode } from '../lib/readingMode.ts'
import { WordMotion, Words } from './RotatingWords.tsx'
import OrgListCards from '../pages/sections/OrgList-Card.tsx'
import OrgListCards, { OrgLogoRow } from '../pages/sections/OrgList-Card.tsx'
import { usePresenting } from '../lib/presenting.ts'
const BODY = 'var(--color-muted)'
@ -87,6 +88,14 @@ export default function ContentBlocks({
/** Put before each heading's id: a blog post's tab (contents.ts, splitTabs). */
anchorPrefix?: string
}) {
const presenting = usePresenting()
// Presented, a block set to is left out and the rest take their
// Presentation text (095).
if (presenting && blocks) {
blocks = blocks
.filter((block) => !block.present?.hide)
.map((block) => (block.present?.text ? { ...block, text: block.present.text } : block))
}
if (!blocks?.length) return null
// Headings get ids so a post's contents (PostContents) and a shared
// link (#getting-there) can point at them.
@ -378,6 +387,9 @@ function Block({
}) {
const text = block.text ?? ''
const reading = useReadingMode()
// On a screen: links are their text, people and organizations
// just pictures and names (095).
const presenting = usePresenting()
switch (block.type) {
// A blog post's tab marker (BlogPost.tsx splits the post at
@ -410,7 +422,7 @@ function Block({
</span>
<span style={{ color: plain ? BODY : 'var(--color-body)' }}>
<span className={plain ? undefined : 'font-bold'}>
{item.url ? (
{item.url && !presenting ? (
<Anchor href={item.url} className="underline" style={{ color: accentText(accent) }}>
{item.text}
</Anchor>
@ -607,6 +619,7 @@ function Block({
// Picked ones in their order, else every listed one of its kind.
const ids = (block.items ?? []).map((item) => item.org_id).filter((id): id is string => Boolean(id))
if (ids.length === 0 && !block.org_kind) return null
if (presenting) return <OrgLogoRow kind={block.org_kind} ids={ids} accent={accent} />
return (
<OrgListCards
kind={block.org_kind}
@ -626,8 +639,8 @@ function Block({
if (!block.team_id && picked.length === 0) return null
return (
<div className="space-y-6">
{block.team_id && <PeopleTiles size="lg" teams={block.team_id} accent={accent} headingLevel={level} />}
{picked.length > 0 && <PeopleTiles size="lg" people={picked} accent={accent} headingLevel={level} />}
{block.team_id && <PeopleTiles size="lg" teams={block.team_id} accent={accent} headingLevel={level} row={presenting} />}
{picked.length > 0 && <PeopleTiles size="lg" people={picked} accent={accent} headingLevel={level} row={presenting} />}
</div>
)
}
@ -638,7 +651,7 @@ function Block({
case 'paragraph':
default:
if (!text) return null
return block.href ? (
return block.href && !presenting ? (
<p className="leading-relaxed" style={{ color: BODY }}>
<Anchor href={block.href} className="underline" style={{ color: accentText(accent) }}>
{text}