Open source CapCut alternative.
TypeScript
fix(site): shrink Donkey Cut hero image switcher buttons below CTA size (#9)
David Le5d0709b58aff
diff --git a/site/src/app/cut/_components/landing/CutFooter.tsx b/site/src/app/cut/_components/landing/CutFooter.tsxindex beb1c885..d1551486 100644--- a/site/src/app/cut/_components/landing/CutFooter.tsx+++ b/site/src/app/cut/_components/landing/CutFooter.tsx@@ -7,6 +7,8 @@ import { GITHUB_REPO_URL } from "@/app/_components/landing/data";type FooterLink = { href: string; label: string };type FooterColumn = { title: string; links: FooterLink[] };+const DISCORD_URL = "https://discord.gg/CPQu5XXmw";+// Cut's own footer, in the shared landing Footer's grouped-column design. The// shared Footer links routes that don't exist on donkeycut.com (/sign-in,// /use-cases, /donkeyvision), so this one carries only links that resolve on@@ -16,9 +18,8 @@ export function CutFooter() {{title: "Product",links: [- { href: "https://donkeyuse.com", label: "Donkey" },{ href: GITHUB_REPO_URL, label: "GitHub" },- { href: "https://discord.gg/CPQu5XXmw", label: "Discord" },+ { href: DISCORD_URL, label: "Discord" },],},{@@ -42,12 +43,12 @@ export function CutFooter() {Donkey Cut</Link><p className="mt-6 text-[15px] font-semibold text-ink">- Need help? Email us at{" "}+ Need help? Join us on{" "}<a- href="mailto:[email protected]"+ href={DISCORD_URL}className="underline underline-offset-2">+ Discord</a></p><p className="mt-6 text-[13px] text-[#666]">diff --git a/site/src/app/cut/_components/landing/CutWorksWith.tsx b/site/src/app/cut/_components/landing/CutWorksWith.tsxindex 61069112..73ba26c0 100644--- a/site/src/app/cut/_components/landing/CutWorksWith.tsx+++ b/site/src/app/cut/_components/landing/CutWorksWith.tsx@@ -15,11 +15,11 @@ export function CutWorksWith() {<Headline size="lg">Works <span className="italic">with</span></Headline>- <div className="mt-12 flex flex-wrap items-center justify-center gap-x-16 gap-y-8 md:gap-x-24">+ <div className="mt-12 flex items-center justify-center gap-x-6 md:gap-x-24">{PROVIDERS.map((provider) => (- <div key={provider.name} className="flex items-center gap-4">- <img src={provider.logo} alt="" className="size-11 md:size-12" />- <span className="text-[clamp(28px,3.5vw,44px)] font-semibold tracking-tight">+ <div key={provider.name} className="flex items-center gap-2 md:gap-4">+ <img src={provider.logo} alt="" className="size-9 md:size-12" />+ <span className="text-[clamp(20px,6vw,44px)] font-semibold tracking-tight">{provider.name}</span></div>diff --git a/site/src/app/cut/_components/landing/editor-mock/EditorMock.tsx b/site/src/app/cut/_components/landing/editor-mock/EditorMock.tsxindex 8df21956..2eb7f93b 100644--- a/site/src/app/cut/_components/landing/editor-mock/EditorMock.tsx+++ b/site/src/app/cut/_components/landing/editor-mock/EditorMock.tsx@@ -74,7 +74,7 @@ export function EditorMock() {the side panel, clips and music on the timeline, and the AI chat thatassembled them.</figcaption>- <div className="mt-6 flex justify-center gap-2">+ <div className="mt-6 flex flex-wrap justify-center gap-1.5">{MOCK_PROJECTS.map((project, i) => (<buttonkey={project.id}@@ -82,13 +82,13 @@ export function EditorMock() {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",+ "flex items-center gap-1.5 rounded-full border border-ink px-2.5 py-0.5 text-xs font-medium transition-colors",i === active ? "bg-ink text-white" : "bg-white text-ink hover:bg-ink/5",)}><spanclassName={cn(- "size-2 rounded-full",+ "size-1.5 rounded-full",i === active ? "bg-coral" : "bg-ink/25",)}/>diff --git a/site/src/app/cut/_components/landing/editor-mock/mockData.ts b/site/src/app/cut/_components/landing/editor-mock/mockData.tsindex 5a521930..07bd9a47 100644--- a/site/src/app/cut/_components/landing/editor-mock/mockData.ts+++ b/site/src/app/cut/_components/landing/editor-mock/mockData.ts@@ -121,7 +121,7 @@ export const MOCK_PROJECTS: MockProject[] = [},{id: "railway",- switcherLabel: "The Railway Mystery",+ switcherLabel: "Railway mystery",name: "The Railway Mystery",aspect: "16:9",aspectLabel: "16:9 · Landscape",