Spaces:
Runtime error
Runtime error
Download renderer/src/Root.tsx from firebird-technologies/NoteStack-Test: direct link, hf CLI and curl.
- Browser
- Download file 1.46 kB
-
https://huggingface.co/spaces/firebird-technologies/NoteStack-Test/resolve/00a4363f7a11b73a246bf02519a065de62195b64/renderer/src/Root.tsx
- Command line
-
hf download hf://spaces/firebird-technologies/NoteStack-Test@00a4363f7a11b73a246bf02519a065de62195b64/renderer/src/Root.tsx
-
curl -L -o Root.tsx https://huggingface.co/spaces/firebird-technologies/NoteStack-Test/resolve/00a4363f7a11b73a246bf02519a065de62195b64/renderer/src/Root.tsx
1.46 kB
| 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: {} }} | |
| /> | |
| </> | |
| ); | |
| } | |