// CapaVHS: capa de locadora (640 × 880) em 3D: faixa azul no topo ("VIDEOCLUBE"), foto lavada no meio (saturate 0,7, sépia 0,25, // desfoque 0,6 px), faixa vermelha embaixo com o título Bebas e um selo amarelo girado. Entra de 0,6x a 1x com sobra e oscila // rotateY −14° ± 5° e rotateX 6° (período 60 quadros). import React from 'react'; import {Img, useCurrentFrame} from 'remotion'; import {COR, FONTE, caber, eb} from '../base'; export type CapaVHSProps = {src: string; titulo: string; topo?: string; selo?: string; y?: number; inicio?: number; foco?: string; fim?: number}; export const CapaVHS: React.FC = ({src, titulo, topo = 'VIDEOCLUBE', selo, y = 720, inicio = 0, foco = '50% 50%', fim}) => { const f = useCurrentFrame(); const t = f - inicio; if (t < 0 || (fim !== undefined && f >= fim)) return null; const p = eb(t / 16, 1.7); const tt = titulo.toUpperCase(); const tam = caber(tt, 170, 560, 400, 0.01); const W = 640, H = 880; return
{topo}
{tt}
{selo &&
{selo.toUpperCase()}
}
; };