Open source CapCut alternative.
TypeScript
feat(site): open the onboarding on a finished project
David Leb3e99562f752
diff --git a/site/public/cut/landing/mason-fish.jpg b/site/public/cut/landing/mason-fish.jpgnew file mode 100644index 00000000..3bafc0bfBinary files /dev/null and b/site/public/cut/landing/mason-fish.jpg differdiff --git a/site/public/cut/landing/mason-loop.mp4 b/site/public/cut/landing/mason-loop.mp4new file mode 100644index 00000000..e03e02acBinary files /dev/null and b/site/public/cut/landing/mason-loop.mp4 differdiff --git a/site/public/cut/landing/mason-school.jpg b/site/public/cut/landing/mason-school.jpgnew file mode 100644index 00000000..5140c8c0Binary files /dev/null and b/site/public/cut/landing/mason-school.jpg differdiff --git a/site/public/cut/landing/mason-shot.jpg b/site/public/cut/landing/mason-shot.jpgnew file mode 100644index 00000000..cd7b8ed8Binary files /dev/null and b/site/public/cut/landing/mason-shot.jpg differdiff --git a/site/public/cut/landing/mason-soccer.jpg b/site/public/cut/landing/mason-soccer.jpgnew file mode 100644index 00000000..fb617a6bBinary files /dev/null and b/site/public/cut/landing/mason-soccer.jpg differdiff --git a/site/public/cut/landing/mason-strawberry.jpg b/site/public/cut/landing/mason-strawberry.jpgnew file mode 100644index 00000000..1dd98001Binary files /dev/null and b/site/public/cut/landing/mason-strawberry.jpg differdiff --git a/site/public/cut/landing/mason-swim.jpg b/site/public/cut/landing/mason-swim.jpgnew file mode 100644index 00000000..374d5d23Binary files /dev/null and b/site/public/cut/landing/mason-swim.jpg differdiff --git a/site/public/cut/landing/mason-taekwondo.jpg b/site/public/cut/landing/mason-taekwondo.jpgnew file mode 100644index 00000000..e649dd91Binary files /dev/null and b/site/public/cut/landing/mason-taekwondo.jpg differdiff --git a/site/public/cut/landing/mason-walk.jpg b/site/public/cut/landing/mason-walk.jpgnew file mode 100644index 00000000..0c779092Binary files /dev/null and b/site/public/cut/landing/mason-walk.jpg differdiff --git a/site/src/cut/components/editor-mock/mockData.ts b/site/src/cut/components/editor-mock/mockData.tsindex bab804a5..bd66dfb4 100644--- a/site/src/cut/components/editor-mock/mockData.ts+++ b/site/src/cut/components/editor-mock/mockData.ts@@ -208,3 +208,73 @@ export const MOCK_PROJECTS: MockProject[] = [],},];++// The mock the onboarding sequence shows: a real project a parent built from+// one voiceover of their son introducing himself, so the slide's subject — the+// assistant working the timeline mid-conversation — is what the frame shows.+const VOICEOVER =+ "AI voice — 안녕 내 이름은 메이슨이고 한국에 사는 꼬마 소년이야 나는 학교에 가는 걸 좋아해";+const SCENE_PROMPT =+ "Hand-drawn 2D cartoon animation with bold black outlines,…";++export const ONBOARDING_PROJECT: MockProject = {+ id: "mason",+ switcherLabel: "Mason",+ name: "MTest",+ aspect: "9:16",+ panel: {+ tab: "media",+ templates: [+ { name: "Template", duration: "0:03.9", items: 2 },+ { name: "Template", duration: "0:05.3", items: 2 },+ ],+ items: [+ { kind: "audio", handle: "a1", name: VOICEOVER, duration: "0:16.2" },+ { kind: "video", handle: "v1", name: SCENE_PROMPT, thumb: `${ASSETS}/mason-school.jpg`, duration: "0:10.0" },+ { kind: "video", handle: "v2", name: SCENE_PROMPT, thumb: `${ASSETS}/mason-fish.jpg`, duration: "0:10.0" },+ { kind: "image", handle: "i1", name: "Screenshot 2026-07-19 at 9.57.03 PM.png", thumb: `${ASSETS}/mason-shot.jpg` },+ { kind: "video", handle: "v3", name: SCENE_PROMPT, thumb: `${ASSETS}/mason-school.jpg`, duration: "0:10.0" },+ { kind: "video", handle: "v4", name: SCENE_PROMPT, thumb: `${ASSETS}/mason-fish.jpg`, duration: "0:10.0" },+ { kind: "video", handle: "v5", name: SCENE_PROMPT, thumb: `${ASSETS}/mason-school.jpg`, duration: "0:10.0" },+ { kind: "video", handle: "v6", name: SCENE_PROMPT, thumb: `${ASSETS}/mason-fish.jpg`, duration: "0:10.0" },+ ],+ },+ videoSrc: `${ASSETS}/mason-loop.mp4`,+ videoPoster: `${ASSETS}/mason-walk.jpg`,+ previewCaption: "",+ timelineSeconds: 16.28,+ clips: [+ { label: "Walking to school", thumb: `${ASSETS}/mason-walk.jpg`, seconds: 4.8, muted: true },+ { label: "School gates", thumb: `${ASSETS}/mason-school.jpg`, seconds: 3.2, muted: true },+ { label: "Fish tank", thumb: `${ASSETS}/mason-fish.jpg`, seconds: 2.2, muted: true },+ { label: "Strawberries", thumb: `${ASSETS}/mason-strawberry.jpg`, seconds: 2, muted: true },+ { label: "Soccer", thumb: `${ASSETS}/mason-soccer.jpg`, seconds: 1.3, muted: true },+ { label: "Taekwondo", thumb: `${ASSETS}/mason-taekwondo.jpg`, seconds: 1.3, muted: true },+ { label: "Swimming", thumb: `${ASSETS}/mason-swim.jpg`, seconds: 1.48, muted: true },+ ],+ captions: [],+ audioLabel: VOICEOVER,+ audioDuration: "16.3s",+ sfx: [],+ chat: [+ {+ role: "user",+ text: "@a1 is my son Mason introducing himself in Korean. Draw a scene for everything he mentions and cut it to the audio.",+ },+ {+ role: "assistant",+ tool: { name: "generate_video", count: 3 },+ text: "I've cleared the strawberry eating scene at the end of the timeline and started generating three brand new scenes matching Mason's favorite sports: soccer, taekwondo, and swimming!\n\nThey will render in the background and pop right onto your timeline starting at 9.5 seconds to match the audio perfectly. Let me know if Mason needs any more athletic training!",+ portrait: true,+ cards: [+ { src: `${ASSETS}/mason-soccer.jpg` },+ { src: `${ASSETS}/mason-taekwondo.jpg` },+ { src: `${ASSETS}/mason-swim.jpg` },+ ],+ },+ {+ role: "user",+ text: "he also likes strawberries. you need to match the audio",+ },+ ],+};diff --git a/site/src/cut/components/onboarding/slides/AiChat.tsx b/site/src/cut/components/onboarding/slides/AiChat.tsxindex d7af528a..7a743e76 100644--- a/site/src/cut/components/onboarding/slides/AiChat.tsx+++ b/site/src/cut/components/onboarding/slides/AiChat.tsx@@ -1,6 +1,7 @@"use client";import { EditorMock } from "@/cut/components/editor-mock/EditorMock";+import { ONBOARDING_PROJECT } from "@/cut/components/editor-mock/mockData";// The one slide that uses the whole window rather than the sequence's reading// column. The editor is the layout — the slide is exactly as tall as the mock,@@ -22,7 +23,12 @@ export function AiChatSlide() {past the bottom of the slide. */}<div className="relative mx-auto w-[min(100%,86vh)]"><div className="pointer-events-none [mask-image:linear-gradient(to_right,transparent_10%,black_70%)] [-webkit-mask-image:linear-gradient(to_right,transparent_10%,black_70%)]">- <EditorMock view="ai" showSwitcher={false} shadow={false} />+ <EditorMock+ project={ONBOARDING_PROJECT}+ view="ai"+ showSwitcher={false}+ shadow={false}+ /></div><div className="pointer-events-none absolute inset-y-0 left-0 w-[64%] bg-gradient-to-r from-cream via-cream/85 to-transparent" /><div className="absolute top-[15%] left-0 z-10 w-[48%] min-w-[320px]">diff --git a/site/src/cut/components/onboarding/slides/Welcome.tsx b/site/src/cut/components/onboarding/slides/Welcome.tsxindex 74b27175..d3e86360 100644--- a/site/src/cut/components/onboarding/slides/Welcome.tsx+++ b/site/src/cut/components/onboarding/slides/Welcome.tsx@@ -1,6 +1,7 @@"use client";import { EditorMock } from "@/cut/components/editor-mock/EditorMock";+import { ONBOARDING_PROJECT } from "@/cut/components/editor-mock/mockData";export function WelcomeSlide() {return (@@ -18,7 +19,12 @@ export function WelcomeSlide() {{/* Contained rather than width-driven: on a short window the mock givesup size instead of pushing the slide into a scroll. */}<div className="h-[min(56vh,640px)] w-full max-w-[1060px]">- <EditorMock fit="contain" showSwitcher={false} shadow={false} />+ <EditorMock+ project={ONBOARDING_PROJECT}+ fit="contain"+ showSwitcher={false}+ shadow={false}+ /></div></div>);