Present: a callout slide without its tint and bar

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-11-12 05:49:27 -06:00
parent c46a612226
commit c26e662406

View file

@ -1672,18 +1672,15 @@ function SlideView({ slide, accent }: { slide: Slide; accent: string }) {
} }
if (slide.kind === 'callout') { if (slide.kind === 'callout') {
// The callout's tinted box, its text large, in the middle of the // The callout's text large, in the middle of the slide under its
// slide under its heading. // heading: no tint or bar, the slide is the callout.
const block = slide.blocks![0] const block = slide.blocks![0]
return ( return (
<div className="flex h-full flex-col text-center"> <div className="flex h-full flex-col text-center">
<Scroll center> <Scroll center>
<SlideTitle color={color}>{slide.title}</SlideTitle> <SlideTitle color={color}>{slide.title}</SlideTitle>
<Rise order={1}> <Rise order={1}>
<aside <aside className="mx-auto max-w-[75vw] space-y-[2vh] text-[clamp(1.3rem,2.8vw,3.4rem)] leading-snug text-body">
className="mx-auto max-w-[75vw] space-y-[2vh] border-l-[0.5vw] px-[3vw] py-[3vh] text-[clamp(1.3rem,2.8vw,3.4rem)] leading-snug text-body"
style={{ borderColor: accent, background: `color-mix(in srgb, ${accent} 10%, var(--color-surface))` }}
>
<Paragraphs text={block.present?.text || block.text} accent={accent} /> <Paragraphs text={block.present?.text || block.text} accent={accent} />
</aside> </aside>
</Rise> </Rise>