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

@ -165,6 +165,8 @@ export interface PeopleTilesProps
/** The group labels' heading level, by what they sit under (3 under
* a section's h2). In reading mode the names are one level under. */
headingLevel?: 3 | 4 | 5;
/** Just round photos and names in a row, as presented (095). */
row?: boolean;
/** How long a fetched team or person is reused, in ms. */
ttl?: number;
emptyMessage?: string;
@ -195,8 +197,10 @@ export default function PeopleTiles({
ttl = 5 * 60_000,
loadingMessage = "Loading…",
errorMessage = "Couldn't load this list right now.",
row = false,
...view
}: PeopleTilesProps) {
const View = row ? PeopleRow : PeopleTilesView;
const specs = useMemo(() => normalizeTeams(teams), [teams]);
const teamKey = specs.map((spec) => spec.id).join(",");
@ -278,14 +282,14 @@ export default function PeopleTiles({
if (specs.length) {
if (failed) return <p className="pl__empty">{errorMessage}</p>;
if (!teamGroups) return <p className="pl__empty">{loadingMessage}</p>;
return <PeopleTilesView {...view} groups={teamGroups} />;
return <View {...view} groups={teamGroups} />;
}
if (slugKey) {
if (failed) return <p className="pl__empty">{errorMessage}</p>;
if (!directory) return <p className="pl__empty">{loadingMessage}</p>;
return (
<PeopleTilesView
<View
{...view}
groups={groups?.map((group) => ({
...group,
@ -297,7 +301,7 @@ export default function PeopleTiles({
}
return (
<PeopleTilesView
<View
{...view}
groups={groups as PeopleGroup[] | undefined}
people={people as Person[] | undefined}
@ -768,6 +772,24 @@ function Tile({
);
}
/* Everyone in the groups, then the people, as round photos over
their names, left to right: a people block presented (095). */
function PeopleRow({ groups, people }: { groups?: PeopleGroup[]; people?: Person[] }) {
const everyone = [...(groups ?? []).flatMap((group) => group.people), ...(people ?? [])];
return (
<ul className="flex flex-wrap gap-6">
{everyone.map((person, i) => (
<li key={person.id ?? i} className="flex w-28 flex-col items-center text-center">
<span className="block h-24 w-24 overflow-hidden rounded-full">
<Photo src={mediaUrl(person.photo)} name={person.name} />
</span>
<span className="mt-2 text-sm font-semibold leading-tight text-ink">{person.name}</span>
</li>
))}
</ul>
);
}
function Photo({ src, name }: { src?: string | null; name: string }) {
const img = useSmallImage(src);