import { AbsoluteFill } from "remotion"; import type { CarouselSlideProps } from "../schema"; import { theme } from "../theme"; import { Logo } from "./shared"; import { Starfield } from "./Starfield"; /** One 4:5 carousel slide (LinkedIn / Instagram). The renderer produces one PNG per slide. */ export function CarouselSlide({ heading, body, index, total, brand }: CarouselSlideProps) { const accent = brand.accent ?? theme.blue; const cover = index === 1; return (

60 ? 62 : 74, lineHeight: 1.08, color: theme.white, textShadow: cover ? `0 0 40px ${accent}88` : undefined, }} > {heading}

{body && (

280 ? 36 : 42, lineHeight: 1.4, marginTop: 44, color: "rgba(255,255,255,0.86)" }}> {body}

)}

{brand.name ? `${brand.name} ยท ` : ""} {index} / {total}

); }