File size: 1,462 Bytes
00a4363
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { Composition, Still } from "remotion";
import { QuoteCard } from "./compositions/QuoteCard";
import { ShortVertical, shortVerticalDuration } from "./compositions/ShortVertical";
import { FPS, quoteCardSchema, shortVerticalSchema, type ShortVerticalProps } from "./schema";

const sampleShort: ShortVerticalProps = {
  hook: "Your archive already is a podcast",
  scenes: [
    { type: "section", onScreenText: "You have written hundreds of thousands of words.", narration: "", durationS: 3 },
    { type: "pull_quote", onScreenText: "If a host says it, you wrote it.", narration: "", durationS: 3, citation: "Notestack blog" },
    { type: "outro", onScreenText: "Paste your Substack URL. Launch.", narration: "", durationS: 2.5 },
  ],
  captions: [],
  brand: {},
};

export function Root() {
  return (
    <>
      <Composition
        id="ShortVertical"
        component={ShortVertical}
        schema={shortVerticalSchema}
        width={1080}
        height={1920}
        fps={FPS}
        durationInFrames={shortVerticalDuration(sampleShort)}
        defaultProps={sampleShort}
        calculateMetadata={({ props }) => ({ durationInFrames: shortVerticalDuration(props) })}
      />
      <Still
        id="QuoteCard"
        component={QuoteCard}
        schema={quoteCardSchema}
        width={1080}
        height={1080}
        defaultProps={{ quote: "Every sentence, traceable.", author: "Notestack", brand: {} }}
      />
    </>
  );
}