Open source CapCut alternative.
TypeScript
fix(site): hero mock chat matches the real panel; single hero CTA
David Le49b0b6839278
diff --git a/site/src/app/cut/_components/landing/CutHero.tsx b/site/src/app/cut/_components/landing/CutHero.tsxindex e11e72c8..07eacfa0 100644--- a/site/src/app/cut/_components/landing/CutHero.tsx+++ b/site/src/app/cut/_components/landing/CutHero.tsx@@ -3,36 +3,32 @@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 (<sectionid="top"- className="mx-auto max-w-[1400px] px-6 pt-4 pb-20 md:px-12 md:pt-6 md:pb-[120px]"+ className="mx-auto max-w-[1400px] px-6 pt-10 pb-20 md:px-12 md:pt-16 md:pb-[120px]">- <div className="flex flex-col items-start gap-5 md:flex-row md:items-end md:justify-between md:gap-8">+ <div className="flex flex-col items-start gap-6 md:flex-row md:items-end md:justify-between md:gap-10"><div><h1 className="text-[clamp(32px,3.6vw,52px)] leading-[0.95] font-semibold tracking-[-0.02em]">Cut video with AI. <span className="italic">On your Mac.</span></h1>- <p className="mt-4 max-w-[720px] text-[16px] leading-[1.5] text-[#454545] md:text-[17px]">+ <p className="mt-5 max-w-[720px] text-[16px] leading-[1.55] text-[#454545] md:text-[17px]">A video editor with generation built into the timeline: images,clips, voiceover, and music appear where you ask for them. Editingand export run on your own Mac.</p></div>- <div className="flex shrink-0 flex-wrap gap-3">- <PillButton href={DONKEY_INSTALL_URL} variant="primary" size="md">- Download for Mac <ArrowRight size={16} />- </PillButton>- <PillButton href={`${root}/app`} variant="secondary" size="md">- Open the editor+ <div className="shrink-0">+ <PillButton href={`${root}/app`} variant="primary" size="lg">+ Start a new project <ArrowRight size={18} /></PillButton></div></div>- <div className="mt-8 md:mt-10">+ <div className="mt-12 md:mt-16"><EditorMock /></div></section>diff --git a/site/src/app/cut/_components/landing/editor-mock/MockAiPanel.tsx b/site/src/app/cut/_components/landing/editor-mock/MockAiPanel.tsxindex f0789489..cabfef0d 100644--- a/site/src/app/cut/_components/landing/editor-mock/MockAiPanel.tsx+++ b/site/src/app/cut/_components/landing/editor-mock/MockAiPanel.tsx@@ -1,6 +1,15 @@"use client";-import { ArrowUp, ChevronDown, Mic, Sparkles, X } from "lucide-react";+import {+ ArrowUp,+ ChevronDown,+ CircleDashed,+ History,+ Mic,+ Plus,+ Sparkles,+ X,+} from "lucide-react";import { cn } from "@/lib/utils";import type {MockChatMessage,@@ -13,10 +22,14 @@ 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">+ <span className="grid size-8 place-items-center rounded-md text-muted-foreground">+ <History className="size-4" />+ </span>+ <span className="grid size-8 place-items-center rounded-md text-muted-foreground">+ <Plus className="size-4" />+ </span>+ <span className="grid size-8 place-items-center rounded-md text-muted-foreground"><X className="size-4" /></span></div>@@ -26,16 +39,10 @@ export function MockAiPanel({ project }: { project: MockProject }) {<MockMessage key={index} message={message} index={index} />))}<div- className="mock-chat-msg mb-1 flex items-center gap-1 py-1"+ className="mock-chat-msg mt-1 flex items-center gap-1.5 text-[11.5px] text-muted-foreground"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` }}- />- ))}+ <CircleDashed className="size-3 animate-spin" /> Working… 3s</div></div>@@ -47,14 +54,14 @@ export function MockAiPanel({ project }: { project: MockProject }) {<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+ Fable 5<ChevronDown className="size-3" /></span><div className="flex-1" />- <span className="grid size-7 place-items-center rounded-md text-muted-foreground">+ <span className="grid h-8 place-items-center rounded-md px-2.5 text-muted-foreground"><Mic className="size-3.5" /></span>- <span className="grid size-7 place-items-center rounded-md bg-primary text-primary-foreground">+ <span className="grid h-8 place-items-center rounded-md bg-primary px-3 text-primary-foreground shadow-xs"><ArrowUp className="size-3.5" /></span></div>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.cssindex 109cebf7..1e0e0eac 100644--- a/site/src/app/cut/_components/landing/editor-mock/editor-mock.css+++ b/site/src/app/cut/_components/landing/editor-mock/editor-mock.css@@ -29,27 +29,9 @@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 {+ .mock-chat-msg {animation: none;}}