import React from 'react'; import { AbsoluteFill, interpolate, useCurrentFrame } from 'remotion'; import { ArrowDefs, Fade, Label, Mono, Panel, SceneBackground, SceneChrome } from '../kit'; import { appear, drawIn } from '../motion'; import { theme } from '../theme'; const TREE = [ { line: '├── src/data/projects.json', hot: false }, { line: '├── src/data/pages/*.json', hot: false }, { line: '├── src/i18n/locales/vi/content/projects.json', hot: false }, { line: '└── src/i18n/locales/en/content/projects.json', hot: true }, ]; // Centered group: tree panel 480–950, branch graph 1010–1410 (center 945≈960). // Vertical band 200–730 — below the title row, above the bullet row. export const GitStorage: React.FC = () => { const frame = useCurrentFrame(); const branchDraw = drawIn(frame, 55, 45); const mergeDraw = drawIn(frame, 140, 45); const branchOn = appear(frame, 100); const mergedOn = appear(frame, 185); const pulse = interpolate(frame % 50, [0, 25, 50], [0, 0.6, 0], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' }); const commitOn = appear(frame, 115); return (
main branch view
{TREE.map((t, i) => (
{t.line}
))}
src/i18n/locales/en/content/projects.json
− "summary": "Logistics dashboard…"
+ "summary": "Logistics platform…"
1 file changed, 1 insertion(+), 1 deletion(−)
the whole diff of a headline change
); };