Skip to content

Commit b7afdf2

Browse files
btpodclaude
andauthored
Visual treatments: minimal / editorial / cinematic (#3)
* Add visual treatments (minimal/editorial/cinematic) with review fixes applied Feature: an additive visualTreatment option over the same pipeline. Minimal stays the original composition; Editorial adds a designed cold open, alternating graphic zones, and denser beats; Cinematic promotes image/stat/ quote cues to full-frame moments. Switching invalidates only compose+render — paid speech and lip-sync clips are never re-bought. Exposed as --treatment in the CLI and a picker in Step 3 of the studio. Fixes applied from self-review of the working tree: - compose/builder: drop the 0.01s epsilon shaved off same-track tile durations. The runtime gates visibility to the authored window, so the gap hid both the clip and its fallback for ~1 in 3 seams at 30fps, flashing the base poster (the first host's face) for one frame — in every treatment. The float-sum overlap lint it silenced is warn-only; we accept the noise. Regression-tested with a multi-segment fixture. - pipeline: option overrides on an existing project now invalidate downstream stages via a shared optionInvalidations map (also adopted by the studio PATCH route), so `--treatment cinematic` on a finished run actually re-composes instead of silently returning the old video. - compose/builder: data-layout-allow-occlusion is now scoped to elements the cold-open slate intentionally covers, instead of blanket-stamping every overlay (which blinded the layout audit's occluded-text check for captions). - compose/builder: .stat-card/.l3-bar get position:relative so the new .cue-meta badge anchors to its card, not the full video frame; the stat meter starts collapsed instead of snapping full→zero mid fade-in. - broll: cinematic full-frame b-roll now generates canvas-aspect 2K images (square 1K sources were cover-cropped ~44% and upscaled ~1.9x); the aspect is part of the content-addressed filename so cached squares are never reused full-frame. Single-cue regen matches. - studio preview: editorial cards alternate sides by cue index like the render; the cinematic b-roll branch remounts per cue so the entrance animation replays; the intro slate shares TREATMENT_INTRO timing with the builder (min-duration gate + tail fade) instead of hand-copied constants. - Step 3 + README: state that switching treatments restyles existing beats — re-suggest to plan at the new density. - web run route: start the SSE heartbeat at declaration (pre-existing prefer-const lint failure; behavior unchanged). Known/by-design: the cold-open slate covers the first ~3.2s of captions while the hosts speak (standard title-card trade-off); treatment switches do not auto-replan cues to avoid re-buying b-roll images. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * Honor videoResolution in the final render + fix multi-worker black band 720p projects were silently shipping 1920x1080 files: videoResolution only controlled animator clip/still resolution while the canvas (and the MP4) stayed at CANVAS[aspect]. The composition is still authored at the fixed 1920-based canvas — every px value in compose/builder.ts assumes it — and the render stage now downscales to the selected resolution during the edit-list remux (lanczos, supersampled, so sharper than a native 720p capture). Re-encodes use -bf 0 so libx264 B-frames can't reintroduce the empty leading edit list (the black-first-frame bug this step exists to kill); verified 0 empty edits and start_time 0.000000 on the outputs. 1080p keeps the lossless stream-copy path. Also pass --workers 1 to hyperframes render: 0.6.x secondary workers capture a viewport ~87px shorter than data-height, leaving a black bottom band across the first (N-1)/N of every render (confirmed in existing outputs by sampling bottom-row luma: flat 16 through t=30s, real content only in the last worker's chunk). Single-worker renders verified clean at every timestamp. Verified end-to-end: rendered editorial and cinematic cuts of an existing episode via the CLI --treatment flag (which exercised the new optionInvalidations path — compose+render re-ran instead of silently skipping); both outputs 1280x720 with content to the bottom edge. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent e5fd768 commit b7afdf2

20 files changed

Lines changed: 652 additions & 105 deletions

File tree

‎README.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,23 @@ A five‑step wizard over the same pipeline the CLI runs, with the receipts visi
108108

109109
<img src=".github/assets/studio.png" alt="The podframes studio — script editing with a live lip-synced preview" width="100%" />
110110

111+
### Visual treatments
112+
113+
The original composition remains the default, with two richer opt-in cuts that reuse the same
114+
voices, avatar clips, trims, captions, and B-roll assets:
115+
116+
| Treatment | What changes | Cue rhythm |
117+
| --- | --- | --- |
118+
| **Minimal** | Original talking-host cut with compact supporting cards | ≈1–2/min |
119+
| **Editorial** | Designed cold open, alternating graphic zones, larger stat/B-roll cards | ≈4/min |
120+
| **Cinematic** | Full-frame visual takeovers, bold typography, dense story treatment | ≈6/min |
121+
122+
Switching treatment invalidates only composition + render — it never re-buys speech or lip-sync
123+
video, so it restyles the beats you already have. To get a treatment's full cue density on an
124+
existing episode, re-suggest the beats afterwards (**Suggest beats** in the studio, or
125+
`--only broll --force` then `--from compose` in the CLI). Pick the treatment in
126+
**B-roll & captions**, or use `--treatment editorial|cinematic` in the CLI.
127+
111128
## Video providers
112129

113130
Both are **per‑turn audio‑to‑video with real lip‑sync** — each line becomes its own clip, driven

‎apps/cli/src/index.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
type ConversationConfig,
1515
type Host,
1616
type StageName,
17+
type VisualTreatment,
1718
} from "@podframes/core";
1819

1920
const HELP = `
@@ -38,6 +39,7 @@ OPTIONS
3839
--host-b "<name|model|voice>" e.g. "Theo|elevenlabs/eleven_v3|JBFqn..."
3940
4041
--provider <p> Video backend: replicate-p-video (default, cheaper) | fal-ltx (higher-quality alt)
42+
--treatment <t> minimal (default) | editorial | cinematic
4143
--captions <s> clean | karaoke | highlight | neon | slam | bold | gradient | boxed
4244
--resolution <r> 720p (default) | 1080p
4345
--draft Fast, lower-quality render (good for iterating)
@@ -128,6 +130,7 @@ async function main(): Promise<void> {
128130
"host-a": { type: "string" },
129131
"host-b": { type: "string" },
130132
provider: { type: "string" },
133+
treatment: { type: "string" },
131134
captions: { type: "string" },
132135
resolution: { type: "string" },
133136
draft: { type: "boolean" },
@@ -168,6 +171,7 @@ async function main(): Promise<void> {
168171
...(values.language ? { language: values.language } : {}),
169172
options: {
170173
...(values.provider ? { videoProvider: values.provider as "fal-ltx" | "replicate-p-video" } : {}),
174+
...(values.treatment ? { visualTreatment: values.treatment as VisualTreatment } : {}),
171175
...(values.captions ? { captionStyle: values.captions as CaptionStyle } : {}),
172176
...(values.resolution ? { videoResolution: values.resolution === "1080p" ? "1080p" : "720p" } : {}),
173177
...(values.draft ? { renderQuality: "draft" as const } : {}),

‎apps/web/app/api/projects/[slug]/broll/[cueId]/regenerate/route.ts‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { rm } from "node:fs/promises";
2-
import { Project, GeminiClient, resolveEnv, clearStages, brollImagePrompt, brollImagePath, withProjectLock } from "@podframes/core";
2+
import { Project, GeminiClient, resolveEnv, clearStages, brollImagePrompt, brollImagePath, brollImageGeometry, withProjectLock } from "@podframes/core";
33
import { findRepoRoot, safeSlug } from "@/lib/root";
44
import { isRunActiveAnywhere } from "@/lib/runs";
55
import { projectSummary } from "@/lib/dto";
@@ -41,17 +41,18 @@ export async function POST(
4141

4242
// Content-addressed name (same scheme as the batch stage): a prompt change
4343
// regenerates under a new name; re-rolling the SAME prompt replaces the file.
44+
// Geometry follows the treatment (square card vs cinematic full-frame),
45+
// exactly like the batch stage, so a regen never mismatches the composition.
46+
const geometry = brollImageGeometry(s.options.visualTreatment, s.config.aspectRatio);
4447
const prior = cue.imagePath;
45-
const rel = brollImagePath(cue);
48+
const rel = brollImagePath(cue, geometry.aspectRatio);
4649
const outPath = project.abs(rel);
4750
await rm(outPath, { force: true });
48-
// Always square — matches the fixed-square compose card (see compose/builder.ts
49-
// .broll-card), independent of the video's own aspect ratio.
5051
await gemini.generateImageToFile({
5152
model: s.options.brollImageModel,
5253
prompt: brollImagePrompt(cue.imagePrompt),
53-
aspectRatio: "1:1",
54-
imageSize: "1K",
54+
aspectRatio: geometry.aspectRatio,
55+
imageSize: geometry.imageSize,
5556
outputPath: outPath,
5657
});
5758
cue.imagePath = rel;

‎apps/web/app/api/projects/[slug]/route.ts‎

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
clearTurnClips,
66
INVALIDATION,
77
mergeOptions,
8+
optionInvalidations,
89
validateOptions,
910
STAGE_NAMES,
1011
withProjectLock,
@@ -64,7 +65,7 @@ interface PatchBody {
6465
script?: Script;
6566
/** Edited b-roll cues. */
6667
cues?: Cue[];
67-
/** Option edits (captionStyle / captionColor / videoProvider / videoResolution / renderQuality). */
68+
/** Option edits (visual treatment / captions / video provider / resolution / render quality). */
6869
options?: Partial<PipelineOptions>;
6970
/** Non-destructive visual trims for generated clips. Does not re-run animation. */
7071
clipTrims?: { id: string; trimStartSec?: number; trimEndSec?: number }[];
@@ -211,19 +212,12 @@ export async function PATCH(req: Request, { params }: { params: Promise<{ slug:
211212
add(INVALIDATION.broll);
212213
}
213214

214-
// ── Options (captions / video provider / resolution) ──
215+
// ── Options (visual treatment / captions / video provider / resolution) ──
216+
// optionInvalidations is the shared option→stage map (the CLI generate path
217+
// uses the same one, so a flag and a studio edit invalidate identically).
215218
if (body.options) {
216-
const o = s.options;
217-
const captiony = (["captionStyle", "captionColor"] as const).some(
218-
(k) => body.options![k] !== undefined && body.options![k] !== o[k],
219-
);
220-
const providerChanged = body.options.videoProvider !== undefined && body.options.videoProvider !== o.videoProvider;
221-
const resolutionChanged =
222-
body.options.videoResolution !== undefined && body.options.videoResolution !== o.videoResolution;
223-
s.options = mergeOptions({ ...o, ...body.options });
224-
if (captiony) add(INVALIDATION.captions);
225-
if (providerChanged) add(INVALIDATION.videoProvider);
226-
if (resolutionChanged) add(INVALIDATION.videoResolution);
219+
add(optionInvalidations(s.options, body.options));
220+
s.options = mergeOptions({ ...s.options, ...body.options });
227221
}
228222

229223
// ── Clip trims (visual-only edit) ──

‎apps/web/app/api/projects/[slug]/run/route.ts‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,17 @@ export async function GET(req: Request, { params }: { params: Promise<{ slug: st
2020
const stream = new ReadableStream<Uint8Array>({
2121
start(controller) {
2222
let closed = false;
23-
let heartbeat: ReturnType<typeof setInterval> | undefined;
2423
let unsubscribe: (() => void) | null = null;
24+
// Heartbeat every 10s so proxies can't kill a silent render — started
25+
// immediately (close() clears it, even on the already-finished path).
26+
const heartbeat = setInterval(() => {
27+
if (closed) return;
28+
try {
29+
controller.enqueue(encoder.encode(`: ping\n\n`));
30+
} catch {
31+
close();
32+
}
33+
}, 10_000);
2534
const send = (e: RunEvent) => {
2635
if (closed) return;
2736
try {
@@ -33,7 +42,7 @@ export async function GET(req: Request, { params }: { params: Promise<{ slug: st
3342
const close = () => {
3443
if (closed) return;
3544
closed = true;
36-
if (heartbeat) clearInterval(heartbeat);
45+
clearInterval(heartbeat);
3746
unsubscribe?.();
3847
try {
3948
controller.close();
@@ -55,15 +64,6 @@ export async function GET(req: Request, { params }: { params: Promise<{ slug: st
5564
// Already finished before we attached → replay carried the terminal event.
5665
if (run.status !== "running") return close();
5766

58-
heartbeat = setInterval(() => {
59-
if (closed) return;
60-
try {
61-
controller.enqueue(encoder.encode(`: ping\n\n`));
62-
} catch {
63-
close();
64-
}
65-
}, 10_000);
66-
6767
req.signal.addEventListener("abort", close);
6868
},
6969
});

‎apps/web/components/studio/wizard/Preview.tsx‎

Lines changed: 59 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client";
22

33
import { useEffect, useMemo, useRef, useState } from "react";
4-
import { captionMaxWords } from "@podframes/core/shared";
4+
import { captionMaxWords, TREATMENT_INTRO } from "@podframes/core/shared";
55
import {
66
buildTrimmedTimeline,
77
mapCuesToTrimmedTimeline,
@@ -15,7 +15,7 @@ import { useTransport } from "@/components/studio/transport";
1515
import { rosterThumb } from "@/lib/roster";
1616
import { useWizard } from "./context";
1717
import { hostFace } from "./cast";
18-
import type { CaptionStyle, WordTs } from "@podframes/core";
18+
import type { CaptionStyle, VisualTreatment, WordTs } from "@podframes/core";
1919

2020
const EMPTY_REGIONS: TurnRegion[] = [];
2121
const EMPTY_CLIPS: ClipAsset[] = [];
@@ -72,7 +72,10 @@ export function Preview() {
7272
// laid OVER the still-visible host, so those render as an overlay, not a replacement.
7373
const cues: Cue[] = project?.cues ?? [];
7474
const timedCues = trimTimeline.hasTrim ? mapCuesToTrimmedTimeline(cues, trimTimeline.segments, displayDuration) : cues;
75-
const activeCue = timedCues.find((c) => displayTime >= c.start && displayTime < c.end);
75+
// Index, not just the cue — the render alternates editorial card sides by cue
76+
// index (compose/builder.ts cue-side-*), and the preview must mirror that.
77+
const activeCueIndex = timedCues.findIndex((c) => displayTime >= c.start && displayTime < c.end);
78+
const activeCue = activeCueIndex >= 0 ? timedCues[activeCueIndex] : undefined;
7679
const cueColor = (c: Cue): string => {
7780
const host = c.hostId ? project?.config.hosts.find((h) => h.id === c.hostId) : undefined;
7881
return host ? providerColor(providerOfModel(host.model)) : "#22D3EE";
@@ -126,6 +129,7 @@ export function Preview() {
126129

127130
const captionStyle = (project?.options?.captionStyle ?? "clean") as CaptionStyle;
128131
const captionColor = project?.options?.captionColor ?? "#22D3EE";
132+
const visualTreatment = (project?.options?.visualTreatment ?? "minimal") as VisualTreatment;
129133
const regionFace = faceFor(region?.hostId);
130134
const regionFlipped = flipFor(region?.hostId);
131135
const regionHasTrim = !!regionClip && ((regionClip.trimStartSec ?? 0) > 0 || (regionClip.trimEndSec ?? 0) > 0);
@@ -169,8 +173,18 @@ export function Preview() {
169173
{/* B-roll is a centered overlay card now (matches compose/builder.ts), not a
170174
full-frame takeover — the host stays visible, so a fresh speaker-switch is
171175
never erased by it. */}
172-
{activeCue && <CueCard cue={activeCue} color={cueColor(activeCue)} slug={slug} updatedAt={project?.updatedAt} />}
176+
{activeCue && <CueCard cue={activeCue} cueIndex={activeCueIndex} color={cueColor(activeCue)} slug={slug} updatedAt={project?.updatedAt} treatment={visualTreatment} />}
173177
{region && <Karaoke region={region} time={displayTime} style={captionStyle} color={captionColor} />}
178+
{visualTreatment !== "minimal" &&
179+
displayDuration > TREATMENT_INTRO.minEpisodeSec &&
180+
displayTime < Math.min(TREATMENT_INTRO.maxSec, displayDuration) && (
181+
<TreatmentIntro
182+
title={project?.title || project?.config.topic || "Untitled episode"}
183+
hook={project?.hook || "A podframes conversation"}
184+
time={displayTime}
185+
duration={displayDuration}
186+
/>
187+
)}
174188
<span className="mono absolute left-2 top-2 border border-[var(--color-hairline)] bg-[#100f0ecc] px-1.5 py-0.5 text-[9px] text-[var(--color-text-muted)]">
175189
{hasFinal ? (hasTrimDrafts ? "DRAFT · TRIM" : "DRAFT") : regionClip ? (regionHasTrim ? "PREVIEW · TRIM" : "PREVIEW · CLIP") : "PREVIEW · STILL"}
176190
</span>
@@ -374,15 +388,30 @@ function ClipRail({ regions, started, finished }: { regions: TurnRegion[]; start
374388
}
375389

376390
/** stat/quote/lower-third cards, mirroring compose/builder.ts's cueInner() so the preview
377-
* matches what the real render actually draws over the (still-visible) host. */
378-
function CueCard({ cue, color, slug, updatedAt }: { cue: Cue; color: string; slug: string | null; updatedAt?: string }) {
391+
* matches what the real render actually draws over the (still-visible) host.
392+
* `cueIndex` drives the editorial side alternation — same modulo as the render. */
393+
function CueCard({ cue, cueIndex, color, slug, updatedAt, treatment }: { cue: Cue; cueIndex: number; color: string; slug: string | null; updatedAt?: string; treatment: VisualTreatment }) {
394+
// Mirrors builder.ts: even cues sit right, odd cues left (editorial only).
395+
const editorialSide = cueIndex % 2 === 0 ? "justify-end" : "justify-start";
379396
if (cue.type === "broll") {
380397
if (!cue.imagePath || !slug) return null;
398+
if (treatment === "cinematic") {
399+
return (
400+
// key remounts per cue so the cue-pop entrance replays when playback
401+
// jumps straight from one b-roll cue to the next (same as the card path).
402+
<div key={cue.id} className="absolute inset-0 bg-black">
403+
{/* eslint-disable-next-line @next/next/no-img-element */}
404+
<img src={mediaUrl(slug, cue.imagePath, updatedAt)} alt="" className="cue-pop h-full w-full object-cover" />
405+
<div className="absolute inset-0 bg-gradient-to-t from-black/80 via-black/5 to-black/25" />
406+
{cue.title && <div className="absolute inset-x-5 bottom-[17%] border-l-4 pl-3 text-lg font-extrabold leading-tight text-white" style={{ borderColor: color }}>{cue.title}</div>}
407+
</div>
408+
);
409+
}
381410
return (
382-
<div className="absolute inset-0 grid place-items-center px-[8%]">
411+
<div className={`absolute inset-0 flex px-[8%] ${treatment === "editorial" ? `items-start ${editorialSide} pt-[9%]` : "items-center justify-center"}`}>
383412
{/* cue-pop mirrors the render's GSAP entrance (scale+opacity, back.out overshoot);
384413
key remounts it (replaying the animation) each time you scrub into a new cue. */}
385-
<div key={cue.id} className="cue-pop relative aspect-square w-[60%] max-w-[220px] overflow-hidden border border-[var(--color-hairline)] shadow-lg">
414+
<div key={cue.id} className={`cue-pop relative aspect-square overflow-hidden border border-[var(--color-hairline)] shadow-lg ${treatment === "editorial" ? "w-[70%] max-w-[250px]" : "w-[60%] max-w-[220px]"}`}>
386415
{/* eslint-disable-next-line @next/next/no-img-element */}
387416
<img src={mediaUrl(slug, cue.imagePath, updatedAt)} alt="" className="h-full w-full object-cover" />
388417
<div className="absolute inset-0 bg-gradient-to-b from-black/0 via-black/0 to-black/75" />
@@ -398,8 +427,8 @@ function CueCard({ cue, color, slug, updatedAt }: { cue: Cue; color: string; slu
398427
}
399428
if (cue.type === "stat") {
400429
return (
401-
<div className="absolute inset-0 grid place-items-center px-6">
402-
<div className="flex flex-col items-center gap-1 border border-[var(--color-hairline)] bg-[#181715dd] px-6 py-5 text-center shadow-lg">
430+
<div className={`absolute inset-0 flex px-6 ${treatment === "cinematic" ? "items-center bg-[#100f0ef2]" : treatment === "editorial" ? `items-start ${editorialSide} pt-[10%]` : "items-center justify-center"}`}>
431+
<div className={`flex flex-col gap-1 border border-[var(--color-hairline)] bg-[#181715ed] px-6 py-5 shadow-lg ${treatment === "cinematic" ? "w-full items-start text-left" : "items-center text-center"}`}>
403432
<div className="text-3xl font-extrabold leading-none" style={{ color }}>{cue.figure || cue.title || ""}</div>
404433
{cue.title && cue.figure && <div className="text-[13px] font-bold text-white">{cue.title}</div>}
405434
{cue.subtitle && <div className="text-[11px] text-white/70">{cue.subtitle}</div>}
@@ -409,7 +438,7 @@ function CueCard({ cue, color, slug, updatedAt }: { cue: Cue; color: string; slu
409438
}
410439
if (cue.type === "quote") {
411440
return (
412-
<div className="absolute inset-0 grid place-items-center px-9 text-center">
441+
<div className={`absolute inset-0 grid place-items-center px-9 text-center ${treatment === "cinematic" ? "bg-[#100f0ef2]" : ""}`}>
413442
<div>
414443
<div className="text-4xl font-extrabold leading-none opacity-50" style={{ color }}>&ldquo;</div>
415444
<div className="-mt-2 text-[15px] font-bold leading-snug text-white">{cue.title}</div>
@@ -420,7 +449,7 @@ function CueCard({ cue, color, slug, updatedAt }: { cue: Cue; color: string; slu
420449
}
421450
// lower-third
422451
return (
423-
<div className="absolute inset-x-3 bottom-[12%] flex items-stretch gap-2.5 border border-[var(--color-hairline)] bg-[#100f0ed1] px-3 py-2">
452+
<div className={`absolute bottom-[12%] flex items-stretch gap-2.5 border border-[var(--color-hairline)] bg-[#100f0ee8] px-3 py-2 ${treatment === "minimal" ? "inset-x-3" : "inset-x-[8%]"}`}>
424453
<span className="w-1 shrink-0" style={{ background: color }} />
425454
<div className="min-w-0">
426455
<div className="truncate text-[13px] font-bold text-white">{cue.title}</div>
@@ -430,6 +459,24 @@ function CueCard({ cue, color, slug, updatedAt }: { cue: Cue; color: string; slu
430459
);
431460
}
432461

462+
function TreatmentIntro({ title, hook, time, duration }: { title: string; hook: string; time: number; duration: number }) {
463+
// Mirror the render's tail fade (builder.ts fades the slate out over
464+
// TREATMENT_INTRO.fadeSec) so scrubbing near 3s previews the same frame.
465+
const introDur = Math.min(TREATMENT_INTRO.maxSec, duration);
466+
const fadeStart = introDur - TREATMENT_INTRO.fadeSec;
467+
const opacity = time <= fadeStart ? 1 : Math.max(0, (introDur - time) / TREATMENT_INTRO.fadeSec);
468+
return (
469+
<div className="absolute inset-0 flex flex-col justify-center overflow-hidden bg-[var(--color-bg)] px-[9%] text-left" style={{ opacity }}>
470+
<div className="absolute inset-0 opacity-40" style={{ backgroundImage: "linear-gradient(var(--color-hairline) 1px, transparent 1px), linear-gradient(90deg, var(--color-hairline) 1px, transparent 1px)", backgroundSize: "32px 32px" }} />
471+
<div className="cue-pop relative">
472+
<div className="text-[28px] font-extrabold leading-[0.98] tracking-[-0.035em] text-[var(--color-text)]">{title}</div>
473+
<div className="mt-3 max-w-[90%] text-[12px] leading-snug text-[var(--color-text-secondary)]">{hook}</div>
474+
<div className="mt-5 h-1 w-[62%] bg-[var(--color-accent)]" />
475+
</div>
476+
</div>
477+
);
478+
}
479+
433480
/** Mirror compose/captions.ts grouping so the preview shows the same PHRASES the
434481
* render will: break on sentence ends, pauses, and the style's maxWords. */
435482
function groupWords(words: WordTs[], maxWords: number): WordTs[][] {

0 commit comments

Comments
 (0)