Open source CapCut alternative.
TypeScript
fix(site): group the Cut footer into titled link columns
David Lec7c5361cae4b
diff --git a/site/src/app/cut/_components/landing/CutFooter.tsx b/site/src/app/cut/_components/landing/CutFooter.tsxindex ceaa16d6..beb1c885 100644--- a/site/src/app/cut/_components/landing/CutFooter.tsx+++ b/site/src/app/cut/_components/landing/CutFooter.tsx@@ -4,26 +4,44 @@ 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.+type FooterLink = { href: string; label: string };+type FooterColumn = { title: string; links: FooterLink[] };++// 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+// both hosts.export function CutFooter() {- const links = [- { href: GITHUB_REPO_URL, label: "GitHub" },- { href: "https://discord.gg/CPQu5XXmw", label: "Discord" },- { href: "https://donkeyuse.com", label: "Donkey" },- { href: "/privacy", label: "Privacy Policy" },- { href: "/terms", label: "Terms of Use" },+ const linkGroups: FooterColumn[] = [+ {+ title: "Product",+ links: [+ { href: "https://donkeyuse.com", label: "Donkey" },+ { href: GITHUB_REPO_URL, label: "GitHub" },+ { href: "https://discord.gg/CPQu5XXmw", label: "Discord" },+ ],+ },+ {+ title: "Legal",+ links: [+ { 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]">+ <div className="mx-auto flex max-w-[1400px] flex-col gap-12 px-6 md:flex-row md:flex-wrap md:gap-x-24 md:px-12">+ <div className="min-w-[240px] max-w-sm flex-1">+ <Link+ href="/"+ aria-label="Donkey Cut home"+ className="text-[40px] font-semibold text-ink no-underline md:text-[48px]"+ >Donkey Cut- </div>- <p className="mt-4 text-[15px] font-semibold text-ink">+ </Link>+ <p className="mt-6 text-[15px] font-semibold text-ink">Need help? Email us at{" "}<ahref="mailto:[email protected]"@@ -36,26 +54,25 @@ export function CutFooter() {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 className="flex flex-1 flex-col gap-10 sm:flex-row sm:flex-wrap sm:gap-x-16 sm:gap-y-12 md:gap-x-20">+ {linkGroups.map((group) => (+ <div key={group.title} className="flex min-w-[140px] flex-col gap-4">+ <div className="text-[15px] font-semibold text-ink">+ {group.title}+ </div>+ <div className="flex flex-col gap-3">+ {group.links.map((link) => (+ <Link+ key={link.href}+ href={link.href}+ className="text-[15px] text-[#666] no-underline transition-colors hover:text-ink"+ >+ {link.label}+ </Link>+ ))}+ </div>+ </div>+ ))}</div></div></footer>