From 7bb7bd68aeb732315c76b675d99a14137d9e0067 Mon Sep 17 00:00:00 2001 From: "dong.nguyen" Date: Wed, 28 Oct 2026 23:12:44 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20intro=20video=20+=20/how-it-works=20pag?= =?UTF-8?q?e=20(spec-v7)=20=E2=80=94=20Remotion=20video/=20project=20(62s?= =?UTF-8?q?=20explainer,=20centered=20scene=20composition),=20self-hosted?= =?UTF-8?q?=20MP4=20+=20poster=20+=20EN/VI=20VTT,=20lazy=20page=20+=20mani?= =?UTF-8?q?fest=20+=20UI=20group=2015=20+=20nav=20entry,=20spec-v7=20+=20A?= =?UTF-8?q?GENTS=20updates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 6 +- AGENTS.md | 25 +- docs/design/specs/v7/spec-v7-intro-video.md | 73 + pnpm-lock.yaml | 2631 ++++++++++++++++++- pnpm-workspace.yaml | 6 + public/media/how-it-works-poster.jpg | Bin 0 -> 73106 bytes public/media/how-it-works.en.vtt | 19 + public/media/how-it-works.mp4 | Bin 0 -> 1603398 bytes public/media/how-it-works.vi.vtt | 19 + src/App.css | 103 + src/App.tsx | 4 +- src/data/navigation.ts | 2 +- src/data/pages.ts | 2 + src/data/pages/how-it-works.json | 8 + src/i18n/dict-types.ts | 2 + src/i18n/index.ts | 4 + src/i18n/locales/en/ui/how-it-works.json | 29 + src/i18n/locales/en/ui/navigation.json | 1 + src/i18n/locales/vi/ui/how-it-works.json | 29 + src/i18n/locales/vi/ui/navigation.json | 1 + src/i18n/validate.ts | 3 +- src/pages/HowItWorksPage.tsx | 101 + src/types/index.ts | 3 +- video/README.md | 41 + video/captured.json | 1 + video/inputs/.gitkeep | 0 video/package.json | 22 + video/remotion.config.ts | 8 + video/src/Explainer.tsx | 33 + video/src/Root.tsx | 19 + video/src/index.ts | 4 + video/src/kit.tsx | 170 ++ video/src/motion.ts | 23 + video/src/scenes/DataLayer.tsx | 118 + video/src/scenes/GitStorage.tsx | 132 + video/src/scenes/LiveEdit.tsx | 173 ++ video/src/scenes/Outro.tsx | 36 + video/src/scenes/Pipeline.tsx | 109 + video/src/scenes/Title.tsx | 38 + video/src/theme.ts | 21 + video/src/timeline.ts | 20 + video/tsconfig.json | 17 + 42 files changed, 4039 insertions(+), 17 deletions(-) create mode 100644 docs/design/specs/v7/spec-v7-intro-video.md create mode 100644 public/media/how-it-works-poster.jpg create mode 100644 public/media/how-it-works.en.vtt create mode 100644 public/media/how-it-works.mp4 create mode 100644 public/media/how-it-works.vi.vtt create mode 100644 src/data/pages/how-it-works.json create mode 100644 src/i18n/locales/en/ui/how-it-works.json create mode 100644 src/i18n/locales/vi/ui/how-it-works.json create mode 100644 src/pages/HowItWorksPage.tsx create mode 100644 video/README.md create mode 100644 video/captured.json create mode 100644 video/inputs/.gitkeep create mode 100644 video/package.json create mode 100644 video/remotion.config.ts create mode 100644 video/src/Explainer.tsx create mode 100644 video/src/Root.tsx create mode 100644 video/src/index.ts create mode 100644 video/src/kit.tsx create mode 100644 video/src/motion.ts create mode 100644 video/src/scenes/DataLayer.tsx create mode 100644 video/src/scenes/GitStorage.tsx create mode 100644 video/src/scenes/LiveEdit.tsx create mode 100644 video/src/scenes/Outro.tsx create mode 100644 video/src/scenes/Pipeline.tsx create mode 100644 video/src/scenes/Title.tsx create mode 100644 video/src/theme.ts create mode 100644 video/src/timeline.ts create mode 100644 video/tsconfig.json diff --git a/.gitignore b/.gitignore index 38bf396..f68144d 100644 --- a/.gitignore +++ b/.gitignore @@ -36,4 +36,8 @@ dist-ssr # Generated code (spec-v5): src/types/content-ids.ts is produced by # scripts/generate-content-types.ts from src/data/*.json on predev/prebuild/prepare. -/src/types/content-ids.ts \ No newline at end of file +/src/types/content-ids.ts + +# Raw screen footage for the captured video variant (spec-v7-intro-video §6): +# local material only — the rendered public/media/*.mp4 is the committed artifact. +/video/inputs/*.mp4 \ No newline at end of file diff --git a/AGENTS.md b/AGENTS.md index 3fa0aac..d9bc7db 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -15,6 +15,7 @@ Personal engineering portfolio — multi-page SPA built with React + TypeScript | Animation | motion ^14.0.0 (`motion/react` ESM entrypoint) | | Linter | Oxlint 1 (`plugins: react, typescript, oxc`) | | Resume generation | playwright ^1.64.0, tsx ^4.23.15 | +| Video rendering | Remotion ^4 — standalone workspace member `video/`; the SPA never imports it | | Package manager | pnpm | ## Commands @@ -30,6 +31,7 @@ Personal engineering portfolio — multi-page SPA built with React + TypeScript | `pnpm generate:ids` | Regenerate `src/types/content-ids.ts` from the structure documents (also run by `predev` / `prebuild` / `prepare`) | | `pnpm sitemap` | Regenerate `dist/sitemap.xml` + `dist/robots.txt` on its own (also run by `pnpm build`) | | `pnpm preview` | Preview production build locally | +| `pnpm --dir video render` | Render the `/how-it-works` intro video → `public/media/how-it-works.mp4` (standalone Remotion project in `video/`, spec-v7) | ## Routing @@ -37,7 +39,7 @@ Personal engineering portfolio — multi-page SPA built with React + TypeScript - Layout: `` (top) → `
` → `