Open source CapCut alternative.
TypeScript
feat(site): donkeycut.com landing with a two-project editor showcase
David Leb73215a16ca8
diff --git a/site/public/cut/landing/chase-1.jpg b/site/public/cut/landing/chase-1.jpgnew file mode 100644index 00000000..02c936cbBinary files /dev/null and b/site/public/cut/landing/chase-1.jpg differdiff --git a/site/public/cut/landing/chase-2.jpg b/site/public/cut/landing/chase-2.jpgnew file mode 100644index 00000000..589dc6f3Binary files /dev/null and b/site/public/cut/landing/chase-2.jpg differdiff --git a/site/public/cut/landing/chase-3.jpg b/site/public/cut/landing/chase-3.jpgnew file mode 100644index 00000000..96c4b998Binary files /dev/null and b/site/public/cut/landing/chase-3.jpg differdiff --git a/site/public/cut/landing/og.png b/site/public/cut/landing/og.pngnew file mode 100644index 00000000..eab05215Binary files /dev/null and b/site/public/cut/landing/og.png differdiff --git a/site/public/cut/landing/poster-newyork.jpg b/site/public/cut/landing/poster-newyork.jpgnew file mode 100644index 00000000..1d0d69bcBinary files /dev/null and b/site/public/cut/landing/poster-newyork.jpg differdiff --git a/site/public/cut/landing/poster-paris.jpg b/site/public/cut/landing/poster-paris.jpgnew file mode 100644index 00000000..eeb0c6e4Binary files /dev/null and b/site/public/cut/landing/poster-paris.jpg differdiff --git a/site/public/cut/landing/railway-loop.mp4 b/site/public/cut/landing/railway-loop.mp4new file mode 100644index 00000000..8dfcba46Binary files /dev/null and b/site/public/cut/landing/railway-loop.mp4 differdiff --git a/site/public/cut/landing/travel-loop.mp4 b/site/public/cut/landing/travel-loop.mp4new file mode 100644index 00000000..65f76b4eBinary files /dev/null and b/site/public/cut/landing/travel-loop.mp4 differdiff --git a/site/src/app/cut/_components/landing/CutFinalCTA.tsx b/site/src/app/cut/_components/landing/CutFinalCTA.tsxnew file mode 100644index 00000000..2a4a7474--- /dev/null+++ b/site/src/app/cut/_components/landing/CutFinalCTA.tsx@@ -0,0 +1,38 @@+"use client";++import { ArrowRight } from "lucide-react";++import { PillButton } from "@/app/_components/landing/LandingPrimitives";+import { DONKEY_INSTALL_URL } from "@/app/_components/landing/data";++export function CutFinalCTA({ root }: { root: string }) {+ return (+ <section+ id="download"+ className="mx-auto w-full max-w-[1400px] px-6 pt-12 pb-20 md:px-12 md:pt-16 md:pb-[120px]"+ >+ <div className="relative">+ <div className="absolute inset-0 translate-x-2 translate-y-2 rounded-3xl bg-coral" />+ <div className="relative rounded-3xl border-2 border-ink bg-ink px-6 py-10 text-center text-white md:px-12 md:py-20">+ <div className="absolute -top-[10px] left-1/2 h-[18px] w-20 -translate-x-1/2 -rotate-2 rounded-[3px] border-2 border-ink bg-coral" />+ <h2 className="mb-4 text-[clamp(36px,5.5vw,64px)] leading-[0.95] font-semibold">+ Cut your next video+ <br />+ on your Mac.+ </h2>+ <p className="mx-auto mb-8 max-w-[480px] text-base text-[rgba(255,255,255,0.7)] md:text-lg">+ Installs in 90 seconds.+ </p>+ <div className="flex flex-wrap justify-center gap-3">+ <PillButton href={DONKEY_INSTALL_URL} variant="primary" size="lg">+ Download for Mac <ArrowRight size={18} />+ </PillButton>+ <PillButton href={`${root}/app`} variant="secondary" size="lg">+ Open the editor+ </PillButton>+ </div>+ </div>+ </div>+ </section>+ );+}diff --git a/site/src/app/cut/_components/landing/CutFooter.tsx b/site/src/app/cut/_components/landing/CutFooter.tsxnew file mode 100644index 00000000..9865cf5d--- /dev/null+++ b/site/src/app/cut/_components/landing/CutFooter.tsx@@ -0,0 +1,62 @@+"use client";++import Link from "next/link";++import { GITHUB_REPO_URL } from "@/app/_components/landing/data";++// Cut's own footer: the shared landing Footer links routes that don't exist on+// donkeycut.com (/sign-in, /use-cases, /donkeyvision), so this one carries only+// links that resolve on both hosts.+export function CutFooter() {+ const links = [+ { href: GITHUB_REPO_URL, label: "GitHub" },+ { href: "https://donkeyuse.com", label: "Donkey" },+ { href: "/privacy", label: "Privacy Policy" },+ { href: "/terms", label: "Terms of Use" },+ ];++ return (+ <footer className="w-full border-t-2 border-ink py-16 md:py-[80px]">+ <div className="mx-auto flex max-w-[1400px] flex-col gap-10 px-6 md:flex-row md:items-start md:justify-between md:px-12">+ <div className="max-w-sm">+ <div className="text-[40px] font-semibold text-ink md:text-[48px]">+ Donkey Cut+ </div>+ <p className="mt-4 text-[15px] font-semibold text-ink">+ Need help? Email us at{" "}+ <a+ href="mailto:[email protected]"+ className="underline underline-offset-2"+ >+ </a>+ </p>+ <p className="mt-6 text-[13px] text-[#666]">+ 2026 Donkey, Inc. Made for Macs.+ </p>+ </div>+ <div className="flex flex-col gap-3">+ {links.map((link) =>+ link.href.startsWith("/") ? (+ <Link+ key={link.label}+ href={link.href}+ className="text-[15px] text-[#666] no-underline transition-colors hover:text-ink"+ >+ {link.label}+ </Link>+ ) : (+ <a+ key={link.label}+ href={link.href}+ className="text-[15px] text-[#666] no-underline transition-colors hover:text-ink"+ >+ {link.label}+ </a>+ ),+ )}+ </div>+ </div>+ </footer>+ );+}diff --git a/site/src/app/cut/_components/landing/CutHero.tsx b/site/src/app/cut/_components/landing/CutHero.tsxnew file mode 100644index 00000000..93237dde--- /dev/null+++ b/site/src/app/cut/_components/landing/CutHero.tsx@@ -0,0 +1,38 @@+"use client";++import { ArrowRight } from "lucide-react";++import { PillButton } from "@/app/_components/landing/LandingPrimitives";+import { DONKEY_INSTALL_URL } from "@/app/_components/landing/data";+import { EditorMock } from "@/app/cut/_components/landing/editor-mock/EditorMock";++export function CutHero({ root }: { root: string }) {+ return (+ <section+ id="top"+ className="mx-auto max-w-[1400px] px-6 pt-8 pb-20 md:px-12 md:pt-16 md:pb-[120px]"+ >+ <h1 className="text-[clamp(45px,8vw,110px)] leading-[0.88] font-semibold tracking-[-0.03em]">+ Cut video with AI.+ <br />+ <span className="italic">On your Mac.</span>+ </h1>+ <p className="mt-8 max-w-[640px] text-[18px] leading-[1.55] text-[#454545] md:max-w-[900px] md:text-[20px]">+ Donkey Cut is a video editor with generation built into the timeline:+ images, clips, voiceover, and music appear where you ask for them.+ Editing and export run on your own Mac.+ </p>+ <div className="mt-9 flex flex-wrap gap-3">+ <PillButton href={DONKEY_INSTALL_URL} variant="primary" size="lg">+ Download for Mac <ArrowRight size={18} />+ </PillButton>+ <PillButton href={`${root}/app`} variant="secondary" size="lg">+ Open the editor+ </PillButton>+ </div>+ <div className="mt-14 md:mt-20">+ <EditorMock />+ </div>+ </section>+ );+}diff --git a/site/src/app/cut/_components/landing/CutLanding.tsx b/site/src/app/cut/_components/landing/CutLanding.tsxnew file mode 100644index 00000000..696b2296--- /dev/null+++ b/site/src/app/cut/_components/landing/CutLanding.tsx@@ -0,0 +1,36 @@+"use client";++import { TopNav } from "@/app/_components/landing/TopNav";+import { BG, BLACK } from "@/app/_components/landing/theme";+import { CutFinalCTA } from "@/app/cut/_components/landing/CutFinalCTA";+import { CutFooter } from "@/app/cut/_components/landing/CutFooter";+import { CutHero } from "@/app/cut/_components/landing/CutHero";+import { CutOpenSource } from "@/app/cut/_components/landing/CutOpenSource";+import { CutPricing } from "@/app/cut/_components/landing/CutPricing";++// The donkeycut.com marketing page: the Donkey landing's cream visual system+// with Cut-only content. `root` is "" on donkeycut.com and "/cut" in dev, so+// links into the app resolve on either host. Auth links are hidden: /sign-in+// does not exist on donkeycut.com — sign-in happens through the app's own+// entry points — while the signed-in Dashboard pill (→ /app) lands on the Cut+// projects home there.+export function CutLanding({ root }: { root: string }) {+ return (+ <main+ style={{+ minHeight: "100vh",+ background: BG,+ color: BLACK,+ fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',+ WebkitFontSmoothing: "antialiased",+ }}+ >+ <TopNav homeHref={root || "/"} wordmark="Donkey Cut" showAuthLinks={false} />+ <CutHero root={root} />+ <CutPricing />+ <CutOpenSource />+ <CutFinalCTA root={root} />+ <CutFooter />+ </main>+ );+}diff --git a/site/src/app/cut/_components/landing/CutOpenSource.tsx b/site/src/app/cut/_components/landing/CutOpenSource.tsxnew file mode 100644index 00000000..ffa57a36--- /dev/null+++ b/site/src/app/cut/_components/landing/CutOpenSource.tsx@@ -0,0 +1,55 @@+"use client";++import {+ Headline,+ PillButton,+ TapedCard,+} from "@/app/_components/landing/LandingPrimitives";+import { GITHUB_REPO_URL } from "@/app/_components/landing/data";++export function CutOpenSource() {+ return (+ <section className="mx-auto max-w-[1400px] px-6 py-20 md:px-12 md:py-24">+ <Headline size="lg">+ Donkey Cut is <span className="italic">open source.</span>+ </Headline>+ <p className="mt-6 max-w-[900px] text-[17px] leading-[1.55] text-[#454545]">+ The editor and its render engine are built in the open. Read the+ source, run it yourself, contribute and make it better.+ </p>++ <div className="mt-8">+ <TapedCard color="cream" shadowColor="coral" tapeColor="coral">+ <div className="p-6 md:p-10">+ <div className="overflow-x-auto rounded-xl bg-ink px-[18px] py-5 font-code text-[13px] text-white md:p-6 md:text-[15px]">+ <div className="mb-4 flex items-center gap-2 text-[#888]">+ <span className="h-[10px] w-[10px] rounded-full bg-[#FF5F57]" />+ <span className="h-[10px] w-[10px] rounded-full bg-[#FEBC2E]" />+ <span className="h-[10px] w-[10px] rounded-full bg-[#28C840]" />+ <span className="ml-2 text-xs">~/ - DonkeyUseCorp/Donkey</span>+ </div>+ <div className="whitespace-nowrap text-[#b7b7b7]">+ <span className="text-[#5FFFB9]">$</span> git clone{" "}+ {GITHUB_REPO_URL}+ </div>+ <div className="mt-3 text-[#6f6f6f]"># Run the editor locally</div>+ <div className="mt-1 whitespace-nowrap text-[#b7b7b7]">+ <span className="text-[#5FFFB9]">$</span> cd Donkey/site && npm+ install && npm run dev+ </div>+ <div className="mt-3 text-[#5FFFB9]">+ Editor running - http://localhost:3000/cut+ </div>+ </div>++ <div className="mt-6 flex flex-wrap items-center gap-3">+ <PillButton href={GITHUB_REPO_URL} variant="secondary" size="md">+ Star on GitHub+ </PillButton>+ </div>+ </div>+ </TapedCard>+ </div>+ </section>+ );+}diff --git a/site/src/app/cut/_components/landing/CutPricing.tsx b/site/src/app/cut/_components/landing/CutPricing.tsxnew file mode 100644index 00000000..3904b5a0--- /dev/null+++ b/site/src/app/cut/_components/landing/CutPricing.tsx@@ -0,0 +1,44 @@+"use client";++import { Headline } from "@/app/_components/landing/LandingPrimitives";+import { PricingPlanCard } from "@/app/_components/landing/PricingPlanCard";+import { useMediaQuery } from "@/app/_components/landing/useMediaQuery";+import { cutPricingPlans } from "@/app/cut/_components/landing/cutPricingPlans";++export function CutPricing() {+ const isDesktop = useMediaQuery("(min-width: 768px)");++ return (+ <section+ id="pricing"+ style={{+ boxSizing: "border-box",+ padding: isDesktop ? "96px 48px" : "80px 24px",+ maxWidth: 1400,+ margin: "0 auto",+ width: "100%",+ }}+ >+ <Headline size="lg">+ Simple <span style={{ fontStyle: "italic" }}>pricing</span>+ </Headline>+ <p className="mt-6 max-w-[900px] text-[17px] leading-[1.55] text-[#454545]">+ The editor is free. Pay only for the AI that generates media for your+ timeline.+ </p>+ <div+ style={{+ marginTop: 48,+ display: "grid",+ gridTemplateColumns: isDesktop ? "1fr 1fr" : "1fr",+ alignItems: "stretch",+ gap: 24,+ }}+ >+ {cutPricingPlans.map((plan) => (+ <PricingPlanCard key={plan.name} plan={plan} />+ ))}+ </div>+ </section>+ );+}diff --git a/site/src/app/cut/_components/landing/cutPricingPlans.ts b/site/src/app/cut/_components/landing/cutPricingPlans.tsnew file mode 100644index 00000000..cef75f8b--- /dev/null+++ b/site/src/app/cut/_components/landing/cutPricingPlans.ts@@ -0,0 +1,44 @@+import type { PricingPlan } from "@/app/_components/landing/pricingPlans";++// Cut's pricing preview: editing is free and local; the paid plan covers the+// hosted AI generation that runs on Donkey credits. Actions avoid /sign-up —+// that route does not exist on donkeycut.com; the download carries onboarding.+export const cutPricingPlans = [+ {+ action: {+ href: "/install",+ kind: "link",+ label: "Download for Mac",+ },+ body: "Editing, timeline, and export are free and run entirely on your Mac. Pro covers the AI: image, video, voiceover, and music generation in the editor.",+ color: "cream",+ detail: "For individuals",+ features: [+ "Unlimited local editing and export",+ "AI generation credits every month",+ "Prioritized support and feature requests",+ ],+ name: "Pro",+ price: "$20/month",+ tapeColor: "coral",+ },+ {+ action: {+ href: "mailto:[email protected]",+ kind: "contact",+ label: "Contact us",+ },+ body: "Cutting video across a team? Reach out and we will figure out what makes sense.",+ color: "coral",+ detail: "built around your team",+ features: [+ "Team rollout planning",+ "Security and deployment review",+ "Custom support around your stack",+ ],+ name: "Enterprise",+ price: "Let's talk",+ tapeColor: "yellow",+ tapePosition: "right",+ },+] satisfies PricingPlan[];diff --git a/site/src/app/cut/_components/landing/editor-mock/EditorMock.tsx b/site/src/app/cut/_components/landing/editor-mock/EditorMock.tsxnew file mode 100644index 00000000..4f983e14--- /dev/null+++ b/site/src/app/cut/_components/landing/editor-mock/EditorMock.tsx@@ -0,0 +1,97 @@+"use client";++import { useEffect, useRef, useState } from "react";++import "./editor-mock.css";++import { MockAiPanel } from "@/app/cut/_components/landing/editor-mock/MockAiPanel";+import { MockPreview } from "@/app/cut/_components/landing/editor-mock/MockPreview";+import { MockSidePanel } from "@/app/cut/_components/landing/editor-mock/MockSidePanel";+import { MockTimeline } from "@/app/cut/_components/landing/editor-mock/MockTimeline";+import { MockTopBar } from "@/app/cut/_components/landing/editor-mock/MockTopBar";+import { MOCK_PROJECTS } from "@/app/cut/_components/landing/editor-mock/mockData";+import { cn } from "@/lib/utils";++// The mock is authored at a fixed design size and scaled to the hero's width,+// so its internals never reflow — it behaves like a live screenshot.+const DESIGN_W = 1200;+const DESIGN_H = 660;++// A hand-built, display-only replica of the Cut editor showing two finished+// projects. The panels copy the real components' chrome (see the Mock*+// siblings) over hardcoded data — no stores, no engine. The dots below switch+// projects; nothing auto-advances.+export function EditorMock() {+ const [active, setActive] = useState(0);+ const frameRef = useRef<HTMLDivElement>(null);+ const [scale, setScale] = useState(1);++ useEffect(() => {+ const el = frameRef.current;+ if (!el) return;+ const ro = new ResizeObserver(([entry]) => {+ setScale(Math.min(1, entry.contentRect.width / DESIGN_W));+ });+ ro.observe(el);+ return () => ro.disconnect();+ }, []);++ return (+ <figure className="m-0">+ <div ref={frameRef} className="w-full">+ <div style={{ height: Math.round(DESIGN_H * scale) }}>+ <div+ aria-hidden+ className="pointer-events-none relative origin-top-left overflow-hidden rounded-2xl bg-card font-system text-foreground antialiased shadow-[0_0_0_1px_rgba(0,0,0,0.08),0_24px_64px_rgba(15,14,13,0.25)] select-none"+ style={{ width: DESIGN_W, height: DESIGN_H, transform: `scale(${scale})` }}+ >+ {MOCK_PROJECTS.map((project, i) => (+ <div+ key={project.id}+ className={cn(+ "absolute inset-0 grid grid-rows-[46px_minmax(0,1fr)_auto] bg-card transition-opacity duration-300",+ i === active ? "opacity-100" : "opacity-0",+ )}+ >+ <MockTopBar project={project} />+ <div className="grid min-h-0 grid-cols-[auto_minmax(0,1fr)_340px]">+ <MockSidePanel project={project} />+ <MockPreview project={project} active={i === active} />+ <MockAiPanel project={project} />+ </div>+ <MockTimeline project={project} />+ </div>+ ))}+ </div>+ </div>+ </div>+ <figcaption className="sr-only">+ The Donkey Cut editor with a finished project open: generated media in+ the side panel, clips and music on the timeline, and the AI chat that+ assembled them.+ </figcaption>+ <div className="mt-6 flex justify-center gap-2">+ {MOCK_PROJECTS.map((project, i) => (+ <button+ key={project.id}+ type="button"+ onClick={() => setActive(i)}+ aria-pressed={i === active}+ className={cn(+ "flex items-center gap-2 rounded-full border-2 border-ink px-4 py-1.5 text-sm font-semibold transition-colors",+ i === active ? "bg-ink text-white" : "bg-white text-ink hover:bg-ink/5",+ )}+ >+ <span+ className={cn(+ "size-2 rounded-full",+ i === active ? "bg-coral" : "bg-ink/25",+ )}+ />+ {project.switcherLabel}+ </button>+ ))}+ </div>+ </figure>+ );+}diff --git a/site/src/app/cut/_components/landing/editor-mock/MockAiPanel.tsx b/site/src/app/cut/_components/landing/editor-mock/MockAiPanel.tsxnew file mode 100644index 00000000..f0789489--- /dev/null+++ b/site/src/app/cut/_components/landing/editor-mock/MockAiPanel.tsx@@ -0,0 +1,127 @@+"use client";++import { ArrowUp, ChevronDown, Mic, Sparkles, X } from "lucide-react";+import { cn } from "@/lib/utils";+import type {+ MockChatMessage,+ MockProject,+} from "@/app/cut/_components/landing/editor-mock/mockData";++/** Static replica of the Cut editor's AI chat panel for the landing mock.+ * Mirrors AiPanel's structure and Tailwind styling with hardcoded content. */+export function MockAiPanel({ project }: { project: MockProject }) {+ return (+ <aside className="relative flex h-full w-[340px] shrink-0 flex-col overflow-hidden border-l border-border bg-card">+ <div className="flex h-[46px] shrink-0 items-center gap-1.5 border-b border-border pr-2 pl-3.5">+ <Sparkles className="size-3.5 text-muted-foreground" />+ <span className="text-sm font-semibold tracking-tight">Chat</span>+ <div className="flex-1" />+ <span className="grid size-7 place-items-center rounded-md text-muted-foreground">+ <X className="size-4" />+ </span>+ </div>++ <div className="flex min-h-0 flex-1 flex-col justify-end overflow-hidden px-3.5 py-3">+ {project.chat.map((message, index) => (+ <MockMessage key={index} message={message} index={index} />+ ))}+ <div+ className="mock-chat-msg mb-1 flex items-center gap-1 py-1"+ style={{ animationDelay: `${project.chat.length * 120}ms` }}+ >+ {[0, 150, 300].map((delay) => (+ <span+ key={delay}+ className="mock-typing-dot size-1.5 rounded-full bg-muted-foreground/60"+ style={{ animationDelay: `${delay}ms` }}+ />+ ))}+ </div>+ </div>++ <div className="shrink-0 px-2.5 pb-2.5">+ <div className="rounded-xl border border-input bg-background">+ <div className="min-h-9 px-3 pt-2 text-[12.5px] leading-relaxed text-muted-foreground/70">+ Ask about your video, or tell me what to change… @ references media+ </div>+ <div className="flex items-center gap-1 px-1.5 pb-1.5">+ <span className="flex items-center gap-1 rounded-md px-1.5 py-1 text-[11px] font-medium text-muted-foreground">+ <Sparkles className="size-3" />+ Fable+ <ChevronDown className="size-3" />+ </span>+ <div className="flex-1" />+ <span className="grid size-7 place-items-center rounded-md text-muted-foreground">+ <Mic className="size-3.5" />+ </span>+ <span className="grid size-7 place-items-center rounded-md bg-primary text-primary-foreground">+ <ArrowUp className="size-3.5" />+ </span>+ </div>+ </div>+ </div>+ </aside>+ );+}++function MockMessage({+ message,+ index,+}: {+ message: MockChatMessage;+ index: number;+}) {+ const delay = { animationDelay: `${index * 120}ms` };+ if (message.role === "user") {+ return (+ <div+ className="mock-chat-msg mb-3 flex flex-col items-end gap-1"+ style={delay}+ >+ <div className="max-w-[85%] rounded-2xl rounded-br-md bg-neutral-900 px-3 py-2 text-[12.5px] leading-relaxed break-words whitespace-pre-wrap text-white">+ {message.text}+ </div>+ </div>+ );+ }+ return (+ <div className="mock-chat-msg mb-3 flex flex-col gap-1.5" style={delay}>+ <div className="max-w-full text-[12.5px] leading-relaxed">+ {message.text}+ </div>+ {message.cards && (+ <div+ className={cn(+ "grid gap-1.5",+ message.cards.length > 2 ? "grid-cols-3" : "grid-cols-2",+ )}+ >+ {message.cards.map((card) => (+ <div key={card.label} className="flex flex-col gap-1">+ <div+ className={cn(+ "relative overflow-hidden rounded-md border border-border",+ card.duration ? "aspect-video" : "aspect-[3/4]",+ )}+ >+ <img+ src={card.src}+ alt=""+ className="absolute inset-0 h-full w-full object-cover"+ />+ {card.duration && (+ <span className="absolute right-1 bottom-1 rounded bg-black/65 px-1 font-mono text-[10px] text-white">+ {card.duration}+ </span>+ )}+ </div>+ <span className="w-full truncate text-[10px] text-muted-foreground">+ {card.label}+ </span>+ </div>+ ))}+ </div>+ )}+ </div>+ );+}diff --git a/site/src/app/cut/_components/landing/editor-mock/MockPreview.tsx b/site/src/app/cut/_components/landing/editor-mock/MockPreview.tsxnew file mode 100644index 00000000..067a4904--- /dev/null+++ b/site/src/app/cut/_components/landing/editor-mock/MockPreview.tsx@@ -0,0 +1,56 @@+"use client";++import { useEffect, useRef } from "react";++import type { MockProject } from "@/app/cut/_components/landing/editor-mock/mockData";++// Static replica of the editor's preview stage (src/cut/components/Preview.tsx):+// the black rounded canvas on the muted backdrop, here playing a looping muted+// clip. Only the active slide's video runs so the two slides don't decode+// concurrently forever.+export function MockPreview({ project, active }: { project: MockProject; active: boolean }) {+ const videoRef = useRef<HTMLVideoElement>(null);++ useEffect(() => {+ const video = videoRef.current;+ if (!video) return;+ if (active) {+ // Autoplay can reject before any user gesture; the poster covers that.+ void video.play().catch(() => {});+ } else {+ video.pause();+ }+ }, [active]);++ const stage =+ project.aspect === "9:16"+ ? { width: 214, height: 380 }+ : { width: 480, height: 270 };++ return (+ <div className="flex min-w-0 items-center justify-center bg-muted/40 px-6">+ <div+ className="relative overflow-hidden rounded-xl bg-black shadow-[0_0_0_1px_rgba(0,0,0,0.08),0_12px_36px_rgba(0,0,0,0.18)]"+ style={stage}+ >+ <video+ ref={videoRef}+ className="h-full w-full object-cover"+ src={project.videoSrc}+ poster={project.videoPoster}+ muted+ loop+ playsInline+ preload="metadata"+ />+ {project.previewCaption ? (+ <div className="absolute inset-x-0 bottom-5 flex justify-center">+ <span className="px-3 text-center text-[17px] leading-tight font-bold text-white [text-shadow:0_1px_3px_rgba(0,0,0,0.85)]">+ {project.previewCaption}+ </span>+ </div>+ ) : null}+ </div>+ </div>+ );+}diff --git a/site/src/app/cut/_components/landing/editor-mock/MockSidePanel.tsx b/site/src/app/cut/_components/landing/editor-mock/MockSidePanel.tsxnew file mode 100644index 00000000..2c7a609a--- /dev/null+++ b/site/src/app/cut/_components/landing/editor-mock/MockSidePanel.tsx@@ -0,0 +1,175 @@+"use client";++import {+ Captions,+ ChevronDown,+ Clapperboard,+ ClipboardList,+ Film,+ FolderOpen,+ Image as ImageIcon,+ Music,+ Sparkles,+} from "lucide-react";+import { cn } from "@/lib/utils";+import type {+ MockPanelTab,+ MockProject,+} from "@/app/cut/_components/landing/editor-mock/mockData";++// Static replica of the editor's left side panel for the landing mock: the+// icon rail plus the open generation panel, populated from hardcoded slide+// data. Class strings mirror SidePanel/ImageGenPanel/GeneratePanel so it is+// indistinguishable from the real editor at a glance.++const TABS: { id: MockPanelTab; label: string; icon: typeof Film }[] = [+ { id: "media", label: "Media", icon: Clapperboard },+ { id: "library", label: "Library", icon: FolderOpen },+ { id: "video", label: "Video", icon: Film },+ { id: "image", label: "Image", icon: ImageIcon },+ { id: "audio", label: "Audio", icon: Music },+ { id: "subtitles", label: "Subtitles", icon: Captions },+ { id: "details", label: "Details", icon: ClipboardList },+];++/** The rounded pill-select chrome, closed. */+function Pill({ label, className }: { label: string; className?: string }) {+ return (+ <span+ className={cn(+ "relative flex items-center rounded-full border border-input py-1.5 pr-2.5 pl-3.5",+ className+ )}+ >+ <span className="min-w-0 flex-1 truncate text-[12.5px] text-foreground">{label}</span>+ <ChevronDown className="ml-1 size-3.5 shrink-0 text-muted-foreground" />+ </span>+ );+}++export function MockSidePanel({ project }: { project: MockProject }) {+ const isImage = project.panelTab === "image";++ return (+ <div className="flex h-full min-h-0 overflow-hidden border-r border-border bg-card">+ {/* Icon rail */}+ <div className="flex min-h-0 w-[68px] shrink-0 flex-col items-center gap-1 overflow-hidden border-r border-border py-3">+ {TABS.map(({ id, label, icon: Icon }) => [+ // Soft breaks between the file tabs, the AI-generate tabs, and the finishing tabs.+ id === "video" || id === "subtitles" ? (+ <div key={`${id}-break`} aria-hidden className="my-1 h-px w-8 shrink-0 bg-border" />+ ) : null,+ <div+ key={id}+ className="flex shrink-0 flex-col items-center gap-1 rounded-lg px-2 py-1.5 text-muted-foreground"+ >+ <span+ className={cn(+ "relative grid size-9 place-items-center rounded-lg",+ project.panelTab === id && "bg-muted text-foreground"+ )}+ >+ <Icon className="size-4.5" />+ </span>+ <span+ className={cn(+ "text-[10px] font-medium",+ project.panelTab === id && "text-foreground"+ )}+ >+ {label}+ </span>+ </div>,+ ])}+ </div>++ {/* Open generation panel */}+ <div className="flex w-[252px] min-h-0 shrink-0 flex-col">+ <div className="flex h-12 shrink-0 items-center pr-2.5 pl-4">+ <span className="text-sm font-semibold tracking-tight">+ {isImage ? "Generate image" : "Generate video"}+ </span>+ </div>++ <div className="flex min-h-0 flex-1 flex-col gap-3 overflow-hidden px-3.5 pb-4">+ {/* Composer, filled with the slide's prompt */}+ <div className="relative flex shrink-0 flex-col rounded-lg border border-input">+ <div className="min-h-[88px] w-full px-2.5 py-2 pr-9 text-[12.5px] leading-relaxed">+ {project.panelPrompt}+ </div>+ </div>++ {isImage ? (+ <div className="flex shrink-0 items-center gap-2">+ <Pill+ className="min-w-0 flex-1"+ label={project.aspect === "9:16" ? "Portrait" : "Landscape"}+ />+ <Pill label="2K" />+ </div>+ ) : (+ <>+ <Pill className="h-7 shrink-0" label="Omni Flash" />+ <Pill+ className="h-7 shrink-0"+ label={project.aspect === "9:16" ? "Portrait" : "Landscape"}+ />+ </>+ )}++ <div className="flex h-8 w-full shrink-0 items-center justify-center gap-1.5 rounded-lg border border-transparent bg-primary pr-2.5 pl-2 text-sm font-medium whitespace-nowrap text-primary-foreground">+ <Sparkles className="size-4 shrink-0" />+ {isImage ? "Generate image" : "Generate video"}+ </div>++ {!isImage && (+ <p className="shrink-0 text-[11px] leading-relaxed text-muted-foreground">+ Renders take a minute or two. Keep editing while it runs.+ </p>+ )}++ {isImage && <div className="text-xs font-semibold text-muted-foreground">Generated</div>}++ {isImage ? (+ <div className="grid shrink-0 grid-cols-2 content-start gap-2.5">+ {project.panelResults.map((r) => (+ <div key={r.label} className="flex flex-col gap-1.5">+ <div+ className={cn(+ "relative aspect-[3/4] overflow-hidden rounded-lg border border-border bg-muted",+ r.selected && "ring-2 ring-[#0a84ff]"+ )}+ >+ {/* eslint-disable-next-line @next/next/no-img-element -- static landing asset */}+ <img src={r.src} alt="" className="size-full object-cover" />+ </div>+ <span className="truncate text-[11px] text-muted-foreground">{r.label}</span>+ </div>+ ))}+ </div>+ ) : (+ <div className="grid shrink-0 grid-cols-2 content-start gap-2.5">+ {project.panelResults.map((r) => (+ <div+ key={r.label}+ className={cn(+ "relative aspect-video overflow-hidden rounded-lg border border-border bg-muted",+ r.selected && "ring-2 ring-[#0a84ff]"+ )}+ >+ {/* eslint-disable-next-line @next/next/no-img-element -- static landing asset */}+ <img src={r.src} alt="" className="size-full object-cover" />+ {r.duration && (+ <span className="absolute right-1 bottom-1 rounded bg-black/65 px-1 font-mono text-[10px] text-white">+ {r.duration}+ </span>+ )}+ </div>+ ))}+ </div>+ )}+ </div>+ </div>+ </div>+ );+}diff --git a/site/src/app/cut/_components/landing/editor-mock/MockTimeline.tsx b/site/src/app/cut/_components/landing/editor-mock/MockTimeline.tsxnew file mode 100644index 00000000..7e85f134--- /dev/null+++ b/site/src/app/cut/_components/landing/editor-mock/MockTimeline.tsx@@ -0,0 +1,163 @@+"use client";++// Static replica of the Cut editor timeline for the landing page. Pure+// presentation: geometry and chrome copied from src/cut/components/Timeline.tsx.++import type { CSSProperties } from "react";+import { cn } from "@/lib/utils";+import type { MockProject } from "@/app/cut/_components/landing/editor-mock/mockData";++const TRACK_W = 1000;+const CLIP_GAP = 4;+const RULER_H = 26;+const VIDEO_H = 56;+const AUDIO_H = 40;+const SUB_H = 18;+const SFX_H = 20;++/** Deterministic waveform silhouette, tiled across the audio bar. */+const WAVE = [+ 38, 62, 45, 80, 55, 92, 40, 68, 74, 50, 88, 34, 58, 76, 44, 95, 60, 30, 70,+ 52, 84, 46, 66, 90, 36, 72, 56, 82, 42, 64,+];++export function MockTimeline({ project }: { project: MockProject }) {+ const pxPerSec = TRACK_W / project.timelineSeconds;+ const ticks = Array.from({ length: project.timelineSeconds }, (_, i) => i);++ // Clips butt up against each other; each starts where the previous ended.+ const clips = project.clips.map((c, i) => ({+ ...c,+ left:+ project.clips.slice(0, i).reduce((sec, prev) => sec + prev.seconds, 0) *+ pxPerSec,+ width: Math.max(10, c.seconds * pxPerSec - CLIP_GAP),+ }));++ return (+ <div className="relative shrink-0 overflow-hidden border-t border-border bg-muted select-none" style={{ height: 170 }}>+ {/* Ruler strip runs edge to edge like the editor's card-backed ruler. */}+ <div className="absolute inset-x-0 top-0 border-b border-border bg-card" style={{ height: RULER_H }} />++ <div className="relative mx-auto" style={{ width: TRACK_W }}>+ {/* Time ruler */}+ <div className="relative" style={{ height: RULER_H }}>+ {ticks.map((t) => (+ <div+ key={t}+ className="absolute top-0 bottom-0 border-l border-foreground/15 pl-1.5"+ style={{ left: t * pxPerSec }}+ >+ <span className="font-mono text-[10px] leading-6 tabular-nums text-muted-foreground">+ {t}s+ </span>+ </div>+ ))}+ </div>++ {/* Video track */}+ <div className="relative mt-1.5" style={{ height: VIDEO_H }}>+ <div className="pointer-events-none absolute h-px bg-border" style={{ top: VIDEO_H - 2, left: -20, right: -20 }} />+ {clips.map((c) => (+ <div+ key={c.label}+ className={cn(+ "absolute top-0.5 overflow-hidden rounded-lg bg-neutral-200 bg-cover bg-center shadow-[inset_0_0_0_1px_rgba(0,0,0,0.12)]",+ c.selected && "z-10 ring-2 ring-[#0a84ff]"+ )}+ style={{+ left: c.left,+ width: c.width,+ height: VIDEO_H - 4,+ backgroundImage: `url(${c.thumb})`,+ }}+ >+ <span className="absolute top-1 left-1 max-w-[80%] truncate rounded-[5px] bg-black/65 px-1.5 py-px text-[10px] text-white">+ {c.label}+ </span>+ <span className="absolute right-1 bottom-1 rounded px-1 py-px font-mono text-[10px] tabular-nums text-white bg-black/65">+ {c.seconds.toFixed(1)}s+ </span>+ </div>+ ))}+ </div>++ {/* Caption cues */}+ {project.captions.length > 0 && (+ <div className="relative mt-1.5" style={{ height: SUB_H }}>+ <div className="pointer-events-none absolute h-px bg-border" style={{ top: SUB_H - 1, left: -20, right: -20 }} />+ {project.captions.map((cue) => (+ <div+ key={cue.text}+ className="absolute top-0 flex items-center overflow-hidden rounded-[5px] bg-gradient-to-b from-amber-300 to-amber-400 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.12)]"+ style={{+ left: cue.at * pxPerSec,+ width: Math.max(8, cue.seconds * pxPerSec - CLIP_GAP),+ height: SUB_H - 2,+ }}+ >+ <span className="truncate px-1.5 text-[9.5px] font-medium text-amber-950/90">+ {cue.text}+ </span>+ </div>+ ))}+ </div>+ )}++ {/* SFX chips */}+ {project.sfx.length > 0 && (+ <div className="relative mt-1.5" style={{ height: SFX_H }}>+ <div className="pointer-events-none absolute h-px bg-border" style={{ top: SFX_H - 1, left: -20, right: -20 }} />+ {project.sfx.map((fx) => (+ <div+ key={fx.text}+ className="absolute top-0 flex items-center overflow-hidden rounded-[5px] bg-gradient-to-b from-emerald-500 to-emerald-600 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.1)]"+ style={{+ left: fx.at * pxPerSec,+ width: Math.max(8, fx.seconds * pxPerSec - CLIP_GAP),+ height: SFX_H - 2,+ }}+ >+ <span className="truncate px-1.5 text-[9.5px] whitespace-nowrap text-white/90 [text-shadow:0_1px_2px_rgba(0,0,0,0.35)]">+ {fx.text}+ </span>+ </div>+ ))}+ </div>+ )}++ {/* Audio track */}+ <div className="relative mt-1.5" style={{ height: AUDIO_H }}>+ <div+ className="absolute top-0 overflow-hidden rounded-[7px] bg-gradient-to-b from-emerald-500 to-emerald-600 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.1)]"+ style={{ width: TRACK_W - CLIP_GAP, height: AUDIO_H - 4 }}+ >+ <div className="absolute inset-x-2 inset-y-1 flex items-center justify-between">+ {Array.from({ length: 60 }, (_, i) => (+ <span+ key={i}+ className="w-[2px] rounded-full bg-white/85"+ style={{ height: `${WAVE[i % WAVE.length]}%` }}+ />+ ))}+ </div>+ <span className="absolute top-[3px] left-2 text-[9.5px] whitespace-nowrap text-white/90 [text-shadow:0_1px_2px_rgba(0,0,0,0.35)]">+ {project.audioLabel}+ </span>+ <span className="absolute right-1 bottom-1 rounded px-1 py-px font-mono text-[10px] tabular-nums text-white bg-black/65">+ {project.audioDuration}+ </span>+ </div>+ </div>++ {/* Playhead: swept externally via the mock-playhead keyframes. */}+ <div+ className="mock-playhead pointer-events-none absolute top-0 bottom-0 left-0 z-30 w-px bg-[#ff2d55]"+ style={{ "--track-w": TRACK_W + "px", "--sweep-s": project.timelineSeconds + "s" } as CSSProperties}+ >+ <div className="absolute -top-0 -left-[4.5px] mx-auto h-3 w-2.5 rounded-t-[3px] bg-[#ff2d55] [clip-path:polygon(0_0,100%_0,100%_58%,50%_100%,0_58%)]" />+ </div>+ </div>+ </div>+ );+}diff --git a/site/src/app/cut/_components/landing/editor-mock/MockTopBar.tsx b/site/src/app/cut/_components/landing/editor-mock/MockTopBar.tsxnew file mode 100644index 00000000..ccc0dba0--- /dev/null+++ b/site/src/app/cut/_components/landing/editor-mock/MockTopBar.tsx@@ -0,0 +1,62 @@+"use client";++import {+ Check,+ ChevronDown,+ ChevronLeft,+ Monitor,+ Smartphone,+ Sparkles,+ Upload,+} from "lucide-react";++import type { MockProject } from "@/app/cut/_components/landing/editor-mock/mockData";++// Static replica of src/cut/components/TopBar.tsx — same chrome, no store.+export function MockTopBar({ project }: { project: MockProject }) {+ const AspectIcon = project.aspect === "9:16" ? Smartphone : Monitor;+ return (+ <header className="relative flex items-center justify-between border-b border-border bg-card pr-3 pl-2">+ <div className="absolute left-1/2 flex -translate-x-1/2 items-center gap-2">+ <span className="flex items-center gap-1.5 rounded-full border border-border bg-card px-3 py-1.5 text-xs font-medium text-muted-foreground shadow-xs">+ <AspectIcon className="size-3.5" />+ {project.aspectLabel}+ <ChevronDown className="size-3" />+ </span>+ <span className="flex items-center gap-1.5 rounded-full border border-border bg-card px-3 py-1.5 text-xs font-medium text-muted-foreground shadow-xs">+ <span className="size-2 rounded-full bg-red-500" aria-hidden />+ Record+ <ChevronDown className="size-3" />+ </span>+ </div>+ <div className="flex min-w-0 items-center gap-1">+ <span className="grid size-7 place-items-center rounded-md text-muted-foreground">+ <ChevronLeft className="size-4" />+ </span>+ <span className="grid size-[22px] shrink-0 place-items-center">+ <img+ src="/donkey-logo.svg"+ alt=""+ width={22}+ height={22}+ className="block h-full w-full object-contain"+ />+ </span>+ <span className="ml-1.5 max-w-64 truncate rounded-md px-2 py-1 text-sm font-medium tracking-tight">+ {project.name}+ </span>+ <span className="ml-2 flex items-center gap-1 text-[11px] text-muted-foreground opacity-60">+ <Check className="size-3" /> Saved+ </span>+ </div>+ <div className="flex items-center gap-2">+ <span className="flex h-8 items-center gap-1.5 rounded-md px-3 text-xs font-medium text-foreground">+ <Sparkles className="size-3.5" /> Chat+ </span>+ <span className="flex h-8 items-center gap-1.5 rounded-md bg-primary px-3 text-xs font-medium text-primary-foreground shadow-xs">+ <Upload className="size-3.5" /> Export+ </span>+ </div>+ </header>+ );+}diff --git a/site/src/app/cut/_components/landing/editor-mock/editor-mock.css b/site/src/app/cut/_components/landing/editor-mock/editor-mock.cssnew file mode 100644index 00000000..109cebf7--- /dev/null+++ b/site/src/app/cut/_components/landing/editor-mock/editor-mock.css@@ -0,0 +1,55 @@+/* Animations for the landing page's static editor replica. Decorative only —+ every one of them stops under prefers-reduced-motion. */++@keyframes mock-sweep {+ from {+ transform: translateX(0);+ }+ to {+ transform: translateX(var(--track-w));+ }+}++.mock-playhead {+ animation: mock-sweep var(--sweep-s) linear infinite;+}++@keyframes mock-msg-in {+ from {+ opacity: 0;+ transform: translateY(6px);+ }+ to {+ opacity: 1;+ transform: none;+ }+}++.mock-chat-msg {+ animation: mock-msg-in 420ms both;+}++@keyframes mock-typing {+ 0%,+ 60%,+ 100% {+ opacity: 0.25;+ transform: none;+ }+ 30% {+ opacity: 1;+ transform: translateY(-2px);+ }+}++.mock-typing-dot {+ animation: mock-typing 1.2s infinite;+}++@media (prefers-reduced-motion: reduce) {+ .mock-playhead,+ .mock-chat-msg,+ .mock-typing-dot {+ animation: none;+ }+}diff --git a/site/src/app/cut/_components/landing/editor-mock/mockData.ts b/site/src/app/cut/_components/landing/editor-mock/mockData.tsnew file mode 100644index 00000000..665f2639--- /dev/null+++ b/site/src/app/cut/_components/landing/editor-mock/mockData.ts@@ -0,0 +1,173 @@+// Everything the landing's static editor replica shows, hardcoded per slide.+// The mock components render exactly this — no stores, no engine.++export type MockAspect = "9:16" | "16:9";++export type MockPanelTab =+ | "media"+ | "library"+ | "video"+ | "image"+ | "audio"+ | "subtitles"+ | "details";++export interface MockResultCard {+ src: string;+ label: string;+ /** Duration chip on video results ("4.0s"); omitted on images. */+ duration?: string;+ selected?: boolean;+}++export interface MockChatMessage {+ role: "user" | "assistant";+ text: string;+ /** Result cards rendered under the message text. */+ cards?: MockResultCard[];+}++export interface MockClip {+ label: string;+ thumb: string;+ seconds: number;+ selected?: boolean;+}++export interface MockCue {+ text: string;+ /** Start position in timeline seconds. */+ at: number;+ seconds: number;+}++export interface MockProject {+ id: string;+ /** Label on the slide switcher dot. */+ switcherLabel: string;+ name: string;+ aspect: MockAspect;+ aspectLabel: string;+ panelTab: MockPanelTab;+ /** Generation prompt shown in the open side panel. */+ panelPrompt: string;+ panelResults: MockResultCard[];+ videoSrc: string;+ videoPoster: string;+ previewCaption: string;+ /** Total timeline length driving ruler ticks and the playhead sweep. */+ timelineSeconds: number;+ clips: MockClip[];+ captions: MockCue[];+ audioLabel: string;+ audioDuration: string;+ sfx: MockCue[];+ chat: MockChatMessage[];+}++const ASSETS = "/cut/landing";++export const MOCK_PROJECTS: MockProject[] = [+ {+ id: "posters",+ switcherLabel: "Travel posters",+ name: "City poster series",+ aspect: "9:16",+ aspectLabel: "9:16 · Portrait",+ panelTab: "image",+ panelPrompt:+ "Hand-painted travel poster, PARIS — woman in a trench coat crossing the street, Eiffel Tower behind, café awnings, 'Live the romance' in red script",+ panelResults: [+ { src: `${ASSETS}/poster-paris.jpg`, label: "Paris", selected: true },+ { src: `${ASSETS}/poster-newyork.jpg`, label: "New York" },+ ],+ videoSrc: `${ASSETS}/travel-loop.mp4`,+ videoPoster: `${ASSETS}/poster-paris.jpg`,+ previewCaption: "Live the romance",+ timelineSeconds: 8,+ clips: [+ { label: "Paris — Live the romance", thumb: `${ASSETS}/poster-paris.jpg`, seconds: 4, selected: true },+ { label: "New York — Rise above the city", thumb: `${ASSETS}/poster-newyork.jpg`, seconds: 4 },+ ],+ captions: [+ { text: "Live the romance", at: 0.4, seconds: 3.2 },+ { text: "Rise above the city", at: 4.4, seconds: 3.2 },+ ],+ audioLabel: "Parisian waltz.mp3",+ audioDuration: "8.0s",+ sfx: [],+ chat: [+ {+ role: "user",+ text: "Make two hand-painted travel posters — Paris and New York, same woman crossing the street in both.",+ },+ {+ role: "assistant",+ text: "Here are the two posters, matched palette and typography:",+ cards: [+ { src: `${ASSETS}/poster-paris.jpg`, label: "Paris" },+ { src: `${ASSETS}/poster-newyork.jpg`, label: "New York" },+ ],+ },+ {+ role: "user",+ text: "Animate them — she walks, slow camera drift, keep the painted texture. Then cut them together with captions and music.",+ },+ {+ role: "assistant",+ text: "Rendered two 4s clips and assembled the timeline with captions and a waltz. Want a different track?",+ },+ ],+ },+ {+ id: "railway",+ switcherLabel: "The Railway Mystery",+ name: "The Railway Mystery",+ aspect: "16:9",+ aspectLabel: "16:9 · Landscape",+ panelTab: "video",+ panelPrompt:+ "Franco-Belgian comic style, early-1900s animation with film grain: a steam train races a cliffside railway through a mountain canyon; a cloaked figure rides the carriage roof; a boy on a bicycle gives chase",+ panelResults: [+ { src: `${ASSETS}/chase-1.jpg`, label: "Canyon run", duration: "3.2s", selected: true },+ { src: `${ASSETS}/chase-2.jpg`, label: "On the roof", duration: "2.8s" },+ { src: `${ASSETS}/chase-3.jpg`, label: "Bicycle chase", duration: "4.0s" },+ ],+ videoSrc: `${ASSETS}/railway-loop.mp4`,+ videoPoster: `${ASSETS}/chase-1.jpg`,+ previewCaption: "",+ timelineSeconds: 10,+ clips: [+ { label: "Canyon run", thumb: `${ASSETS}/chase-1.jpg`, seconds: 3.2 },+ { label: "On the roof", thumb: `${ASSETS}/chase-2.jpg`, seconds: 2.8, selected: true },+ { label: "Bicycle chase", thumb: `${ASSETS}/chase-3.jpg`, seconds: 4 },+ ],+ captions: [],+ audioLabel: "Steam & Strings.mp3",+ audioDuration: "10.0s",+ sfx: [+ { text: "train whistle", at: 0.6, seconds: 1.4 },+ { text: "wheels on gravel", at: 6.4, seconds: 2.2 },+ ],+ chat: [+ {+ role: "user",+ text: "Storyboard a 1920s comic-style chase: a mysterious figure on a steam train, a kid chasing on a bicycle through a canyon.",+ },+ {+ role: "assistant",+ text: "Three shots: 1) the train threading the canyon, 2) the cloaked figure steadying himself on the roof, 3) the boy pedaling hard beside the tracks.",+ },+ { role: "user", text: "Animate all three in that ligne-claire style." },+ {+ role: "assistant",+ text: "Rendered the three shots and cut them with a brass-and-strings score:",+ cards: [+ { src: `${ASSETS}/chase-1.jpg`, label: "Shot 1", duration: "3.2s" },+ { src: `${ASSETS}/chase-2.jpg`, label: "Shot 2", duration: "2.8s" },+ { src: `${ASSETS}/chase-3.jpg`, label: "Shot 3", duration: "4.0s" },+ ],+ },+ ],+ },+];diff --git a/site/src/app/cut/page.tsx b/site/src/app/cut/page.tsxnew file mode 100644index 00000000..72773c32--- /dev/null+++ b/site/src/app/cut/page.tsx@@ -0,0 +1,35 @@+import type { Metadata } from "next";+import { headers } from "next/headers";++import { CutLanding } from "@/app/cut/_components/landing/CutLanding";+import { DONKEYCUT_CANONICAL, isDonkeycutHost } from "@/cut/lib/hosts";++export const metadata: Metadata = {+ title: "Donkey Cut — the AI video editor on your Mac",+ description:+ "Cut video with AI on your own Mac. Generate images, clips, voiceover, and music in the timeline; every edit and export renders locally.",+ alternates: { canonical: `${DONKEYCUT_CANONICAL}/` },+ openGraph: {+ title: "Donkey Cut — the AI video editor on your Mac",+ description:+ "Cut video with AI on your own Mac. Generation in the timeline, editing and export fully local.",+ url: `${DONKEYCUT_CANONICAL}/`,+ siteName: "Donkey Cut",+ type: "website",+ images: [{ url: "/cut/landing/og.png", width: 1200, height: 630 }],+ },+ twitter: {+ card: "summary_large_image",+ title: "Donkey Cut — the AI video editor on your Mac",+ description:+ "Cut video with AI on your own Mac. Generation in the timeline, editing and export fully local.",+ images: ["/cut/landing/og.png"],+ },+};++// The Cut marketing landing: "/" on donkeycut.com, /cut in dev. `root` prefixes+// in-page links to the app so they resolve on either host.+export default async function CutLandingPage() {+ const root = isDonkeycutHost((await headers()).get("host")) ? "" : "/cut";+ return <CutLanding root={root} />;+}diff --git a/site/src/app/cut/sitemap.ts b/site/src/app/cut/sitemap.tsnew file mode 100644index 00000000..1a1b79d5--- /dev/null+++ b/site/src/app/cut/sitemap.ts@@ -0,0 +1,15 @@+import type { MetadataRoute } from "next";++import { DONKEYCUT_CANONICAL } from "@/cut/lib/hosts";++// Served at donkeycut.com/sitemap.xml via the proxy rewrite (src/proxy.ts);+// the apex keeps its own sitemap at src/app/sitemap.ts.+export default function sitemap(): MetadataRoute.Sitemap {+ return [+ {+ url: `${DONKEYCUT_CANONICAL}/`,+ changeFrequency: "weekly",+ priority: 1,+ },+ ];+}