- Mãos com formas e rotações próprias, membros articulados (limbs) e animais. - Elementos de cenário separados (natureza, construções, interiores) e testes de lugares. - Personagens reaproveitáveis de Noé e a Arca (Noé, esposa, Sem, Cam e Jafé) e a fonte Barlow Semi Condensed. - História noe-e-a-arca: pauta, bíblia, roteiro do ep. 1, tomadas Cartoon e montagem. - Montagem: narração mais corrida (tira silêncios longos) e cabeçalho com o número do vídeo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
49 lines
2.3 KiB
TypeScript
49 lines
2.3 KiB
TypeScript
// Cartão de personagem (prévia da biblioteca e conferência): um ou mais personagens lado a lado, cada um com
|
|
// expressão e pose, sobre fundo neutro, com o nome na etiqueta.
|
|
import React from "react";
|
|
import { AbsoluteFill, useCurrentFrame, useVideoConfig } from "remotion";
|
|
import { CharacterFigure } from "./CharacterFigure";
|
|
import { Grain, TagLabel } from "./overlays";
|
|
import { loadFonts } from "./theme";
|
|
import type { CharacterLook, Expression, Pose } from "./character";
|
|
import type { IconId } from "./spec";
|
|
|
|
loadFonts();
|
|
|
|
export type CardProps = {
|
|
width: number; height: number;
|
|
background?: string;
|
|
/** "face": enquadra só a cabeça (conferir expressões de perto). */
|
|
framing?: "full" | "face";
|
|
figures: { look: CharacterLook; expression?: Expression; pose?: Pose; item?: IconId; label?: string }[];
|
|
};
|
|
|
|
export function CharacterCard({ figures, background = "#2a2e45", framing = "full" }: CardProps) {
|
|
const frame = useCurrentFrame();
|
|
const { fps } = useVideoConfig();
|
|
const n = Math.max(1, figures.length);
|
|
return (
|
|
<AbsoluteFill style={{ background, containerType: "size" }}>
|
|
<div style={{ position: "absolute", inset: "8% 2% 4%", display: "grid", gridTemplateColumns: `repeat(${n}, minmax(0, 1fr))`, alignItems: "end" }}>
|
|
{figures.map((f, i) => (
|
|
<div key={i} style={{ position: "relative", height: "100%", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "flex-end" }}>
|
|
{f.label && <div style={{ marginBottom: "4%" }}><TagLabel text={f.label} size={n > 3 ? 2.2 : 3.4} /></div>}
|
|
{framing === "face" ? (
|
|
<div style={{ width: "92%", aspectRatio: "1 / 1", overflow: "hidden", position: "relative" }}>
|
|
<div style={{ position: "absolute", left: "-15%", top: "-36%", width: "130%", aspectRatio: "200 / 440" }}>
|
|
<CharacterFigure look={f.look} expression={f.expression} pose={f.pose} item={f.item} t={frame / fps} />
|
|
</div>
|
|
</div>
|
|
) : (
|
|
<div style={{ width: "90%", aspectRatio: "200 / 440", maxHeight: "86%" }}>
|
|
<CharacterFigure look={f.look} expression={f.expression} pose={f.pose} item={f.item} t={frame / fps} />
|
|
</div>
|
|
)}
|
|
</div>
|
|
))}
|
|
</div>
|
|
<Grain />
|
|
</AbsoluteFill>
|
|
);
|
|
}
|