import { AbsoluteFill } from 'remotion'; import { Caption } from '../design/Caption'; import { KeyCap } from '../design/KeyCap'; import { Stage } from '../design/Stage'; import { Clip, type Cut, type Shot } from '../footage/Clip'; import { frameOf, Sounds } from '../footage/Sounds'; const CUTS: Cut[] = [{ take: 'cells', from: 3.1, to: 13.1 }]; const SHOTS: Shot[] = [ { f: 0, z: 1, x: 1024, y: 576 }, { f: 60, z: 1.25, x: 1190, y: 440 }, { f: 110, z: 1.75, x: 1190, y: 420 }, { f: 470, z: 1.75, x: 1190, y: 420 }, { f: 560, z: 1.2, x: 1200, y: 460 }, ]; // One badge per key, held until the next one. const KEYS: { t: number; keys: string[] }[] = [ { t: 4.26, keys: ['点击'] }, { t: 5.73, keys: ['Tab'] }, { t: 6.88, keys: ['↓'] }, { t: 7.94, keys: ['End'] }, { t: 8.29, keys: ['⌫'] }, { t: 10.63, keys: ['Enter'] }, ]; export const Cells: React.FC = () => { const at = (t: number) => frameOf(CUTS, t); const backs = [8.29, 8.5, 8.71].map(at); return ( {KEYS.map((k, i) => { const from = at(k.t) - 12; const to = i + 1 < KEYS.length ? at(KEYS[i + 1].t) - 12 : at(k.t) + 70; return ; })} ); };