Add practice sets (cloze/newtype/translation/reading) rewritten to real-exam style, rebalance vol2 answer keys, add video standards + Text1 lecture source; ignore build artifacts and media

This commit is contained in:
2026-10-14 12:23:18 +08:00
parent b85903291f
commit d7174f0be1
137 changed files with 8311 additions and 269 deletions
@@ -0,0 +1,55 @@
import React from 'react';
import { AbsoluteFill, Audio, Sequence, staticFile } from 'remotion';
import { SCENES, type SceneTiming } from './timing.generated';
import { GlobalBg, TopBar, Subtitles } from './Shared';
import { Intro } from './scenes/Intro';
import { Overview } from './scenes/Overview';
import { Para } from './scenes/Para';
import { AnswerKey } from './scenes/AnswerKey';
import { Memory } from './scenes/Memory';
import { PARAS } from './content';
// 背景音乐(放在 public/bgm.mp3),音量压低,不抢人声
const WITH_BGM = true;
const BGM_VOLUME = 0.10;
const renderScene = (s: SceneTiming): React.ReactNode => {
switch (s.key) {
case 'intro':
return <Intro scene={s} />;
case 'overview':
return <Overview scene={s} />;
case 'p1':
case 'p2':
case 'p3':
case 'p4':
return <Para scene={s} conf={PARAS[s.key]} />;
case 'answers':
return <AnswerKey scene={s} />;
case 'memory':
return <Memory scene={s} />;
default:
return null;
}
};
export const Video: React.FC = () => {
return (
<AbsoluteFill>
<GlobalBg />
{WITH_BGM ? <Audio src={staticFile('bgm.mp3')} volume={BGM_VOLUME} loop /> : null}
{SCENES.map((s) => (
<Sequence key={s.key} from={s.start} durationInFrames={s.dur}>
{/* 配音:与本场景同步 */}
<Audio src={staticFile(s.audio)} volume={1} />
{renderScene(s)}
</Sequence>
))}
<TopBar />
<Subtitles />
</AbsoluteFill>
);
};