// The edit: a React composition rendered by raea (`raea render`). The clips come from cuts.ts (`raea cut` writes it),
// the parts from components/ (`raea component add` copies them in; they're yours to change), the look from brand/brand.css.
// Change anything here: layout, timing, what plays when. `raea check` renders it and says what's wrong.
import { AbsoluteFill, Audio, Composition, Series, Video, registerRoot } from "raea";
import { cuts, edit, frames, total } from "./cuts";
import { css } from "./styles.gen";
// Before any cuts: a card saying what comes next, three seconds long. Its colours are its own on purpose, not a brand's
// (`raea brand SITE` writes brand/brand.css); delete it once the edit has clips.
function Start() {
return (
raea
No clips yet. Run raea cut on a take to put its footage in cuts.ts, and this edit plays it.
);
}
function Edit() {
if (cuts.length === 0) return ;
return (
{cuts.map((c, i) => (
{/* a talking take: ; a screen recording: (`raea frame TAKE` says which); a take with
sound alone (a voice recording) plays under whatever you put in its place */}
{c.kind === "audio" ? (
) : (
)}
))}
);
}
registerRoot(() => );