Open source CapCut alternative.
TypeScript
feat(site): swap clip demo to the Korean-subtitles artifact
David Lef54607534a4b
diff --git a/site/src/app/_components/landing/donkey-skills/VideoStage.tsx b/site/src/app/_components/landing/donkey-skills/VideoStage.tsxindex e9a48b79..bf0e7d64 100644--- a/site/src/app/_components/landing/donkey-skills/VideoStage.tsx+++ b/site/src/app/_components/landing/donkey-skills/VideoStage.tsx@@ -3,7 +3,7 @@import { useEffect, useRef, useState } from "react";import { cn } from "@/lib/utils";-import { VID_CLIP_END, VID_CLIP_START, VID_CUES, VID_ID, VID_URL } from "./data";+import { VID_CLIP_END, VID_CLIP_START, VID_ID, VID_URL } from "./data";import { CAP, STAGE_WIDE } from "./shared";// Minimal shape of the YouTube IFrame Player API we depend on.@@ -172,11 +172,6 @@ export function VideoStage() {<div className="absolute z-[3] top-[5%] right-[4%] bg-coral text-ink font-code font-bold text-[2.6cqw] px-2 py-0.5 rounded-[5px]">{CLIP_LABEL} clip</div>- <div className="absolute z-[3] left-0 right-0 bottom-[15%] flex flex-col items-center gap-[3px] px-[6%]">- <div className="text-[3.4cqw] font-semibold text-white bg-[rgba(0,0,0,0.62)] px-[9px] py-0.5 rounded-[4px] text-center animate-[donkey-slide-in_0.25s_ease_both]">- {VID_CUES[0].s}- </div>- </div></>)}</div>diff --git a/site/src/app/_components/landing/donkey-skills/data.ts b/site/src/app/_components/landing/donkey-skills/data.tsindex a34f075e..561ae9a1 100644--- a/site/src/app/_components/landing/donkey-skills/data.ts+++ b/site/src/app/_components/landing/donkey-skills/data.ts@@ -8,7 +8,6 @@ export type Skill = { kind: SkillKind; name: string; promise: string };export type DocType = "sheet" | "word" | "pdf";export type DeckSlide = { label: string };-export type VideoCue = { at: number; s: string };// One field on the form: left/top/width/height as percentages of the page,// the value to drop in, alignment ("l"eft or "r"ight), and its label.@@ -76,16 +75,13 @@ export const DECK_SLIDES: DeckSlide[] = [{ label: "Get Donkey" },];-export const VID_ID = "_FBivfgOvuE";-export const VID_URL = "youtube.com/watch?v=_FBivfgOvuE";-export const VID_CUES: VideoCue[] = [- { at: 1.2, s: "But your first 10 customers" },- { at: 5.6, s: "almost never come from a tool." },-];-// Play the interesting clip (0:54–2:45), not the whole video. Bounds in seconds,-// fed to the YouTube embed's start/end params.-export const VID_CLIP_START = 54;-export const VID_CLIP_END = 165;+export const VID_ID = "KS571vrkKgQ";+export const VID_URL = "youtube.com/watch?v=KS571vrkKgQ";+// The finished clip: Donkey trimmed the source and burned in translated Korean+// subtitles, so the artifact carries its own captions. Play it whole — bounds in+// seconds, fed to the YouTube embed's start/end params.+export const VID_CLIP_START = 0;+export const VID_CLIP_END = 115;// The form image (a real IRS Form 1120 page 1) and its detected field boxes.export const PDF_DETECT_COUNT = 64;