Spaces:
Runtime error
Runtime error
Download renderer/src/compositions/QuoteCard.tsx from firebird-technologies/NoteStack-Test: direct link, hf CLI and curl.
- Browser
- Download file 1.11 kB
-
https://huggingface.co/spaces/firebird-technologies/NoteStack-Test/resolve/main/renderer/src/compositions/QuoteCard.tsx
- Command line
-
hf download hf://spaces/firebird-technologies/NoteStack-Test/renderer/src/compositions/QuoteCard.tsx
-
curl -L -o QuoteCard.tsx https://huggingface.co/spaces/firebird-technologies/NoteStack-Test/resolve/main/renderer/src/compositions/QuoteCard.tsx
1.11 kB
| import { AbsoluteFill } from "remotion"; | |
| import type { QuoteCardProps } from "../schema"; | |
| import { theme } from "../theme"; | |
| import { Starfield } from "./Starfield"; | |
| export function QuoteCard({ quote, author, publication, brand }: QuoteCardProps) { | |
| const accent = brand.accent ?? theme.blue; | |
| return ( | |
| <AbsoluteFill> | |
| <Starfield count={90} accent={accent} /> | |
| <AbsoluteFill style={{ padding: 110, justifyContent: "center" }}> | |
| <div style={{ width: 80, height: 4, background: accent, boxShadow: `0 0 20px ${accent}`, marginBottom: 48 }} /> | |
| <p style={{ fontFamily: theme.display, fontSize: quote.length > 200 ? 48 : 62, lineHeight: 1.25, color: theme.white }}> | |
| {quote} | |
| </p> | |
| <p style={{ fontFamily: theme.mono, fontSize: 28, marginTop: 48, color: "rgba(255,255,255,0.72)" }}> | |
| {author} | |
| {publication ? ` · ${publication}` : ""} | |
| </p> | |
| </AbsoluteFill> | |
| {brand.logoUrl && ( | |
| <img src={brand.logoUrl} style={{ position: "absolute", right: 60, bottom: 60, width: 72, height: 72 }} /> | |
| )} | |
| </AbsoluteFill> | |
| ); | |
| } | |