Skip to content

Open source CapCut alternative.

TypeScript

refactor(site): trim landing to the showcase and simplify copy

David Le683d231f52b9
diff --git a/site/src/app/_components/landing/DonkeyLanding.tsx b/site/src/app/_components/landing/DonkeyLanding.tsx
index 45531bbc..8f534bc8 100644
--- a/site/src/app/_components/landing/DonkeyLanding.tsx
+++ b/site/src/app/_components/landing/DonkeyLanding.tsx
@@ -11,7 +11,6 @@ import { Pricing } from "@/app/_components/landing/Pricing";
import { Solutions } from "@/app/_components/landing/Solutions";
import { TopNav } from "@/app/_components/landing/TopNav";
import { TrustedBy } from "@/app/_components/landing/TrustedBy";
-import { UseCasesOverview } from "@/app/_components/landing/UseCasesOverview";
import { BG, BLACK } from "@/app/_components/landing/theme";
export default function DonkeyLanding() {
@@ -30,12 +29,9 @@ export default function DonkeyLanding() {
<TrustedBy />
<Solutions />
<MediaShowcase
- blurb="Generate images and video with Gemini and Veo — then keep going with motion graphics, UGC, and more. Click any example to reveal its prompt and copy it straight into Donkey."
- heading="Media Donkey can make"
- limit={10}
- viewAllHref="/use-cases"
+ blurb="Generate images, video, motion graphics, UGC, and more. Click any example to reveal its prompt and copy it into Donkey."
+ heading="Donkey can make"
/>
- <UseCasesOverview />
<Demo />
<OpenSource />
<Pricing />
diff --git a/site/src/app/_components/landing/Solutions.tsx b/site/src/app/_components/landing/Solutions.tsx
index 0f4dc114..ac20cfa2 100644
--- a/site/src/app/_components/landing/Solutions.tsx
+++ b/site/src/app/_components/landing/Solutions.tsx
@@ -15,11 +15,7 @@ export function Solutions() {
margin: "0 auto",
}}
>
- <Headline>
- You hand off.
- <br />
- It hands back.
- </Headline>
+ <Headline>Donkey can do work</Headline>
<p
style={{
marginTop: 24,
diff --git a/site/src/app/_components/landing/UseCasesOverview.tsx b/site/src/app/_components/landing/UseCasesOverview.tsx
deleted file mode 100644
index a481a34c..00000000
--- a/site/src/app/_components/landing/UseCasesOverview.tsx
+++ /dev/null
@@ -1,98 +0,0 @@
-import Link from "next/link";
-import { ArrowRight } from "lucide-react";
-
-import {
- Headline,
- PillButton,
- TapedCard,
-} from "@/app/_components/landing/LandingPrimitives";
-import type { CardColor } from "@/app/_components/landing/theme";
-import {
- getUseCasesByCategory,
- useCaseCategories,
-} from "@/app/use-cases/useCases";
-
-const cardColors: CardColor[] = [
- "blue",
- "yellow",
- "pink",
- "mint",
- "purple",
- "coral",
-];
-
-// Homepage section that surfaces the full use-case library so the landing sells
-// everything Donkey does, not only media. Cards mirror the /use-cases page and
-// link into the detail pages.
-export function UseCasesOverview() {
- return (
- <section className="mx-auto w-full max-w-[1400px] px-6 py-16 md:px-12 md:py-24">
- <div className="flex flex-col gap-6 md:flex-row md:items-end md:justify-between">
- <div className="max-w-[720px]">
- <Headline size="lg">Everything Donkey does</Headline>
- <p className="mt-5 text-[17px] leading-[1.55] text-[#454545] md:text-[19px]">
- Media generation is one of many. Donkey runs real work across your
- files, apps, and browser — documents, data, and desktop automation.
- </p>
- </div>
- <PillButton href="/use-cases" variant="secondary">
- See all use cases
- <ArrowRight size={16} />
- </PillButton>
- </div>
-
- <div className="mt-12 flex flex-col gap-14">
- {useCaseCategories.map((category, categoryIndex) => {
- const categoryUseCases = getUseCasesByCategory(category);
-
- return (
- <div key={category}>
- <div className="mb-6">
- <h3 className="text-[22px] leading-[1.1] font-semibold md:text-[26px]">
- {category}
- </h3>
- </div>
- <div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
- {categoryUseCases.map((useCase, index) => {
- const Icon = useCase.icon;
- const color =
- cardColors[
- (categoryIndex * 2 + index) % cardColors.length
- ];
-
- return (
- <Link
- className="block h-full text-ink no-underline"
- href={`/use-cases/${useCase.slug}`}
- key={useCase.slug}
- >
- <TapedCard color={color} fill tapeColor="cream">
- <article className="flex h-full min-h-[240px] flex-col p-7">
- <div className="mb-5 flex items-center">
- <div className="flex h-12 w-12 items-center justify-center rounded-lg border-2 border-ink bg-white">
- <Icon size={22} />
- </div>
- </div>
- <h4 className="text-[22px] leading-[1.05] font-semibold">
- {useCase.title}
- </h4>
- <p className="mt-3 text-[15px] leading-[1.5] text-[#222]">
- {useCase.description}
- </p>
- <div className="mt-auto flex items-center justify-end gap-2 pt-6 text-[14px] font-semibold">
- <span>Open use case</span>
- <ArrowRight size={17} />
- </div>
- </article>
- </TapedCard>
- </Link>
- );
- })}
- </div>
- </div>
- );
- })}
- </div>
- </section>
- );
-}
diff --git a/site/src/app/use-cases/page.tsx b/site/src/app/use-cases/page.tsx
index a5e2b872..11804a5f 100644
--- a/site/src/app/use-cases/page.tsx
+++ b/site/src/app/use-cases/page.tsx
@@ -102,8 +102,8 @@ export default function UseCasesPage() {
</section>
<MediaShowcase
- blurb="Generate images and video with Gemini and Veo, plus motion graphics, UGC, and illustration. Click any example to reveal its prompt and copy it into Donkey."
- heading="Media Donkey can make"
+ blurb="Generate images, video, motion graphics, UGC, and illustration. Click any example to reveal its prompt and copy it into Donkey."
+ heading="Donkey can make"
/>
<section className="mx-auto w-full max-w-[1400px] px-6 pb-20 md:px-12 md:pb-28">