Open source CapCut alternative.
TypeScript
feat(site): media showcase with copyable prompts on landing and use-cases
David Le9623bae9b285
diff --git a/site/public/media-showcase/neon-koi-pond.webp b/site/public/media-showcase/neon-koi-pond.webpnew file mode 100644index 00000000..f540119dBinary files /dev/null and b/site/public/media-showcase/neon-koi-pond.webp differdiff --git a/site/src/app/_components/landing/DonkeyLanding.tsx b/site/src/app/_components/landing/DonkeyLanding.tsxindex 555288f0..45531bbc 100644--- a/site/src/app/_components/landing/DonkeyLanding.tsx+++ b/site/src/app/_components/landing/DonkeyLanding.tsx@@ -5,11 +5,13 @@ import { DonkeyVisionCTA } from "@/app/_components/landing/DonkeyVisionCTA";import { FinalCTA } from "@/app/_components/landing/FinalCTA";import { Footer } from "@/app/_components/landing/Footer";import { Hero } from "@/app/_components/landing/Hero";+import { MediaShowcase } from "@/app/_components/landing/media-showcase/MediaShowcase";import { OpenSource } from "@/app/_components/landing/OpenSource";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() {@@ -27,6 +29,13 @@ export default function DonkeyLanding() {<Hero /><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"+ />+ <UseCasesOverview /><Demo /><OpenSource /><Pricing />diff --git a/site/src/app/_components/landing/UseCasesOverview.tsx b/site/src/app/_components/landing/UseCasesOverview.tsxnew file mode 100644index 00000000..a481a34c--- /dev/null+++ b/site/src/app/_components/landing/UseCasesOverview.tsx@@ -0,0 +1,98 @@+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/_components/landing/media-showcase/CategoryChips.tsx b/site/src/app/_components/landing/media-showcase/CategoryChips.tsxnew file mode 100644index 00000000..035c767c--- /dev/null+++ b/site/src/app/_components/landing/media-showcase/CategoryChips.tsx@@ -0,0 +1,43 @@+"use client";++import { cn } from "@/lib/utils";+import {+ type MediaCategory,+ mediaCategories,+} from "@/app/_components/landing/media-showcase/data";++export type CategoryFilter = MediaCategory | "All";++type Props = {+ onSelect: (category: CategoryFilter) => void;+ selected: CategoryFilter;+};++const filters: CategoryFilter[] = ["All", ...mediaCategories];++// Horizontal row of brand pills that filter the media grid. Active pill fills+// coral; the rest sit on cream. Mirrors the active/idle chip feel of the+// DonkeySkills rail.+export function CategoryChips({ onSelect, selected }: Props) {+ return (+ <div className="flex flex-wrap gap-2.5">+ {filters.map((filter) => {+ const active = filter === selected;+ return (+ <button+ aria-pressed={active}+ className={cn(+ "rounded-full border-2 border-ink px-4 py-2 text-[14px] font-semibold transition-colors",+ active ? "bg-coral text-ink" : "bg-cream text-ink hover:bg-white",+ )}+ key={filter}+ onClick={() => onSelect(filter)}+ type="button"+ >+ {filter}+ </button>+ );+ })}+ </div>+ );+}diff --git a/site/src/app/_components/landing/media-showcase/CopyPromptButton.tsx b/site/src/app/_components/landing/media-showcase/CopyPromptButton.tsxnew file mode 100644index 00000000..5ea613d5--- /dev/null+++ b/site/src/app/_components/landing/media-showcase/CopyPromptButton.tsx@@ -0,0 +1,53 @@+"use client";++import { useCallback, useEffect, useRef, useState } from "react";+import { Check, Copy } from "lucide-react";++import { cn } from "@/lib/utils";++type Props = {+ className?: string;+ // Label shown in the idle state. Copied state always reads "Copied".+ label?: string;+ text: string;+};++// Copies prompt text to the clipboard and flips to a confirmed state for a+// beat. Shared by the media detail dialog and the use-case detail page.+export function CopyPromptButton({ className, label = "Copy prompt", text }: Props) {+ const [copied, setCopied] = useState(false);+ const timeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);++ useEffect(() => {+ return () => {+ if (timeoutRef.current) clearTimeout(timeoutRef.current);+ };+ }, []);++ const copy = useCallback(async () => {+ try {+ await navigator.clipboard.writeText(text);+ } catch {+ return;+ }+ setCopied(true);+ if (timeoutRef.current) clearTimeout(timeoutRef.current);+ timeoutRef.current = setTimeout(() => setCopied(false), 1500);+ }, [text]);++ return (+ <button+ aria-label={copied ? "Prompt copied" : label}+ className={cn(+ "inline-flex items-center justify-center gap-2 rounded-full border-2 border-ink px-4 py-2 text-[14px] font-semibold transition-colors",+ copied ? "bg-coral text-ink" : "bg-white text-ink hover:bg-cream",+ className,+ )}+ onClick={copy}+ type="button"+ >+ {copied ? <Check size={16} /> : <Copy size={16} />}+ {copied ? "Copied" : label}+ </button>+ );+}diff --git a/site/src/app/_components/landing/media-showcase/MediaCard.tsx b/site/src/app/_components/landing/media-showcase/MediaCard.tsxnew file mode 100644index 00000000..e8c11637--- /dev/null+++ b/site/src/app/_components/landing/media-showcase/MediaCard.tsx@@ -0,0 +1,57 @@+import Image from "next/image";+import { Film, ImageIcon, Maximize2 } from "lucide-react";++import { cn } from "@/lib/utils";+import {+ type MediaAspect,+ type MediaShowcaseItem,+} from "@/app/_components/landing/media-showcase/data";++export const aspectClass: Record<MediaAspect, string> = {+ portrait: "aspect-[3/4]",+ landscape: "aspect-[16/9]",+ square: "aspect-square",+};++type Props = {+ item: MediaShowcaseItem;+ onOpen: (item: MediaShowcaseItem) => void;+};++// One masonry tile showing the item's media. Clicking opens the prompt dialog.+export function MediaCard({ item, onOpen }: Props) {+ const isVideo = item.kind === "video";+ const KindIcon = isVideo ? Film : ImageIcon;++ return (+ <button+ className="group relative mb-5 block w-full break-inside-avoid overflow-hidden rounded-2xl border-2 border-ink text-left"+ onClick={() => onOpen(item)}+ type="button"+ >+ <div className={cn("relative w-full", aspectClass[item.aspect])}>+ <Image+ alt={item.title}+ className="h-full w-full object-cover transition-transform duration-300 group-hover:scale-[1.03]"+ fill+ sizes="(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"+ src={item.thumbnailSrc}+ />++ <span className="absolute top-3 left-3 inline-flex items-center gap-1.5 rounded-full border-2 border-ink bg-cream px-2.5 py-1 text-[11px] font-semibold tracking-[0.04em] uppercase">+ <KindIcon size={12} />+ {item.kind}+ </span>++ <div className="absolute inset-x-0 bottom-0 flex items-end justify-between gap-2 bg-gradient-to-t from-black/75 via-black/25 to-transparent p-3 pt-8">+ <span className="text-[14px] leading-tight font-semibold text-white">+ {item.title}+ </span>+ <span className="shrink-0 rounded-full bg-white/90 p-1.5 text-ink opacity-0 transition-opacity duration-200 group-hover:opacity-100">+ <Maximize2 size={14} />+ </span>+ </div>+ </div>+ </button>+ );+}diff --git a/site/src/app/_components/landing/media-showcase/MediaDetailDialog.tsx b/site/src/app/_components/landing/media-showcase/MediaDetailDialog.tsxnew file mode 100644index 00000000..6759cd14--- /dev/null+++ b/site/src/app/_components/landing/media-showcase/MediaDetailDialog.tsx@@ -0,0 +1,120 @@+"use client";++import Image from "next/image";+import { ArrowRight, Film, ImageIcon } from "lucide-react";++import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogTitle,+} from "@/components/ui/dialog";+import { PillButton } from "@/app/_components/landing/LandingPrimitives";+import { CopyPromptButton } from "@/app/_components/landing/media-showcase/CopyPromptButton";+import { type MediaShowcaseItem } from "@/app/_components/landing/media-showcase/data";++type Props = {+ item: MediaShowcaseItem | null;+ onClose: () => void;+};++// Reveals an item's media large alongside its generation prompt. The visitor+// copies the prompt and pastes it into Donkey — no remix.+export function MediaDetailDialog({ item, onClose }: Props) {+ const KindIcon = item?.kind === "video" ? Film : ImageIcon;++ return (+ <Dialog+ open={item !== null}+ onOpenChange={(open) => {+ if (!open) onClose();+ }}+ >+ <DialogContent className="flex h-dvh w-screen max-w-none flex-col overflow-hidden rounded-none border-0 bg-cream p-0 text-ink ring-0 md:flex-row">+ {item ? (+ <>+ <div className="relative h-[45vh] w-full shrink-0 bg-ink md:h-auto md:w-[68%] md:flex-1">+ {item.kind === "video" ? (+ <video+ autoPlay+ className="absolute inset-0 h-full w-full object-contain"+ controls+ loop+ muted+ playsInline+ src={item.mediaSrc}+ />+ ) : (+ <Image+ alt={item.title}+ className="object-contain"+ fill+ sizes="(max-width: 768px) 100vw, 70vw"+ src={item.mediaSrc}+ />+ )}+ </div>++ <div className="flex w-full flex-1 flex-col gap-5 overflow-y-auto p-6 md:w-[420px] md:max-w-[420px] md:flex-none md:border-l-2 md:border-ink md:p-8 lg:w-[480px] lg:max-w-[480px]">+ <div>+ <span className="inline-flex items-center gap-1.5 rounded-full border-2 border-ink bg-white px-3 py-1 text-[11px] font-semibold tracking-[0.06em] uppercase">+ <KindIcon size={12} />+ {item.category}+ </span>+ <DialogTitle className="mt-3 text-[26px] leading-[1.05] font-semibold text-ink">+ {item.title}+ </DialogTitle>+ <DialogDescription className="sr-only">+ AI-generated {item.kind} example with a copyable prompt.+ </DialogDescription>+ </div>++ <div className="rounded-xl border-2 border-ink bg-white p-4">+ <div className="text-[12px] font-semibold tracking-[0.12em] text-[#666] uppercase">+ Prompt+ </div>+ <p className="mt-2 font-code text-[14px] leading-[1.55] text-ink">+ {item.prompt}+ </p>+ </div>++ <div>+ <CopyPromptButton text={item.prompt} />+ </div>++ {item.settings?.length ? (+ <div>+ <div className="text-[12px] font-semibold tracking-[0.12em] text-[#666] uppercase">+ Settings+ </div>+ <div className="mt-2 flex flex-wrap gap-2">+ {item.settings.map((setting) => (+ <span+ className="rounded-md border-2 border-ink bg-cream px-2.5 py-1 text-[12px] font-semibold"+ key={setting}+ >+ {setting}+ </span>+ ))}+ </div>+ </div>+ ) : null}++ <div className="mt-auto rounded-xl border-2 border-dashed border-ink/40 bg-white/70 p-4">+ <p className="text-[14px] leading-[1.5] text-[#333]">+ Paste this prompt into Donkey to generate your own.+ </p>+ <div className="mt-3">+ <PillButton href="/install" variant="dark" size="sm">+ Install Donkey+ <ArrowRight size={16} />+ </PillButton>+ </div>+ </div>+ </div>+ </>+ ) : null}+ </DialogContent>+ </Dialog>+ );+}diff --git a/site/src/app/_components/landing/media-showcase/MediaShowcase.tsx b/site/src/app/_components/landing/media-showcase/MediaShowcase.tsxnew file mode 100644index 00000000..43ff0d10--- /dev/null+++ b/site/src/app/_components/landing/media-showcase/MediaShowcase.tsx@@ -0,0 +1,74 @@+"use client";++import { useMemo, useState } from "react";+import { ArrowRight } from "lucide-react";++import { Headline, PillButton } from "@/app/_components/landing/LandingPrimitives";+import {+ CategoryChips,+ type CategoryFilter,+} from "@/app/_components/landing/media-showcase/CategoryChips";+import { MediaCard } from "@/app/_components/landing/media-showcase/MediaCard";+import { MediaDetailDialog } from "@/app/_components/landing/media-showcase/MediaDetailDialog";+import {+ getItemsByCategory,+ type MediaShowcaseItem,+} from "@/app/_components/landing/media-showcase/data";++type Props = {+ // Section heading, e.g. "Media Donkey can make".+ heading: string;+ blurb?: string;+ // Cap the number of tiles shown (homepage teaser). Omit to show all.+ limit?: number;+ // When set, renders a "See all" pill (homepage → /use-cases).+ viewAllHref?: string;+};++// Media-generation showcase: filterable grid of example images/videos. Clicking+// a tile reveals its prompt in a dialog with a copy-to-clipboard action.+export function MediaShowcase({ blurb, heading, limit, viewAllHref }: Props) {+ const [category, setCategory] = useState<CategoryFilter>("All");+ const [selected, setSelected] = useState<MediaShowcaseItem | null>(null);++ const items = useMemo(() => {+ const filtered = getItemsByCategory(category);+ return limit ? filtered.slice(0, limit) : filtered;+ }, [category, limit]);++ return (+ <section className="w-full py-16 md:py-24">+ <div className="mx-auto w-full max-w-[1400px] px-6 md:px-12">+ <div className="flex flex-col gap-6 md:flex-row md:items-end md:justify-between">+ <div className="max-w-[720px]">+ <Headline size="lg">{heading}</Headline>+ {blurb ? (+ <p className="mt-5 text-[17px] leading-[1.55] text-[#454545] md:text-[19px]">+ {blurb}+ </p>+ ) : null}+ </div>+ {viewAllHref ? (+ <PillButton href={viewAllHref} variant="secondary">+ See all use cases+ <ArrowRight size={16} />+ </PillButton>+ ) : null}+ </div>++ <div className="mt-8">+ <CategoryChips onSelect={setCategory} selected={category} />+ </div>+ </div>++ {/* The grid alone bleeds to the viewport edge; heading and chips stay in the page container. */}+ <div className="mt-8 columns-1 gap-5 px-6 sm:columns-2 md:px-12 lg:columns-3 xl:columns-4 2xl:columns-5">+ {items.map((item) => (+ <MediaCard item={item} key={item.id} onOpen={setSelected} />+ ))}+ </div>++ <MediaDetailDialog item={selected} onClose={() => setSelected(null)} />+ </section>+ );+}diff --git a/site/src/app/_components/landing/media-showcase/data.ts b/site/src/app/_components/landing/media-showcase/data.tsnew file mode 100644index 00000000..b0e3f013--- /dev/null+++ b/site/src/app/_components/landing/media-showcase/data.ts@@ -0,0 +1,582 @@+// Static content for the media-generation showcase: example images and videos+// Donkey can make, grouped by creative category. Each item carries the exact+// generation prompt so a visitor can copy it and paste it into Donkey.+//+// Assets live under public/media-showcase/ and were generated from each item's+// prompt (Gemini image for images, Veo for videos); video tiles use an+// extracted poster frame as their thumbnail.++export type MediaKind = "image" | "video";++export type MediaCategory =+ | "Image"+ | "Video"+ | "Motion graphics"+ | "UGC & Ads"+ | "Animation & Illustration";++export type MediaAspect = "portrait" | "landscape" | "square";++export type MediaShowcaseItem = {+ id: string;+ title: string;+ kind: MediaKind;+ category: MediaCategory;+ // The copyable generation prompt.+ prompt: string;+ aspect: MediaAspect;+ // Short capability tags shown in the detail dialog (model, aspect, length…).+ settings?: string[];+ // Grid tile image (poster frame for videos).+ thumbnailSrc: string;+ // Full media revealed in the detail dialog.+ mediaSrc: string;+};++export const mediaCategories: MediaCategory[] = [+ "Image",+ "Video",+ "Motion graphics",+ "UGC & Ads",+ "Animation & Illustration",+];++export const mediaShowcaseItems: MediaShowcaseItem[] = [+ // ── Image ──────────────────────────────────────────────────────────────+ {+ id: "neon-koi-pond",+ title: "Neon koi pond, top-down",+ kind: "image",+ category: "Image",+ prompt:+ "A top-down view of koi fish gliding through a dark pond, bioluminescent neon fins, ripples catching moonlight, ultra-detailed, cinematic lighting.",+ aspect: "square",+ settings: ["Gemini image", "1:1"],+ thumbnailSrc: "/media-showcase/neon-koi-pond.webp",+ mediaSrc: "/media-showcase/neon-koi-pond.webp",+ },+ {+ id: "perfume-hero",+ title: "Perfume bottle product hero",+ kind: "image",+ category: "Image",+ prompt:+ "Studio product shot of a frosted glass perfume bottle on wet black stone, soft rim light, scattered dewdrops, luxury advertising aesthetic, 85mm lens.",+ aspect: "portrait",+ settings: ["Gemini image", "4:5"],+ thumbnailSrc: "/media-showcase/perfume-hero.webp",+ mediaSrc: "/media-showcase/perfume-hero.webp",+ },+ {+ id: "alpine-lake-dawn",+ title: "Alpine lake at dawn",+ kind: "image",+ category: "Image",+ prompt:+ "Long-shot scenic photograph of a mirror-still alpine lake at dawn, dramatic sky, wide-angle, HDR, vivid natural color, everything in razor-sharp focus.",+ aspect: "landscape",+ settings: ["Gemini image", "16:9"],+ thumbnailSrc: "/media-showcase/alpine-lake-dawn.webp",+ mediaSrc: "/media-showcase/alpine-lake-dawn.webp",+ },+ {+ id: "floating-sneaker-catalog",+ title: "Floating sneaker, catalog shot",+ kind: "image",+ category: "Image",+ prompt:+ "Professional product photo of a white leather sneaker floating midair, intricate stitching, seamless pale-grey backdrop, crisp studio lighting, front view.",+ aspect: "square",+ settings: ["Gemini image", "1:1"],+ thumbnailSrc: "/media-showcase/floating-sneaker-catalog.webp",+ mediaSrc: "/media-showcase/floating-sneaker-catalog.webp",+ },+ {+ id: "reading-nook-interior",+ title: "Cozy reading nook interior",+ kind: "image",+ category: "Image",+ prompt:+ "Interior design photo of a cozy reading nook with a worn leather armchair, floor-to-ceiling bookshelves, warm afternoon light through a bay window, architectural-digest style.",+ aspect: "landscape",+ settings: ["Gemini image", "3:2"],+ thumbnailSrc: "/media-showcase/reading-nook-interior.webp",+ mediaSrc: "/media-showcase/reading-nook-interior.webp",+ },+ {+ id: "fisherman-portrait",+ title: "Weathered fisherman portrait",+ kind: "image",+ category: "Image",+ prompt:+ "Close-up portrait of an older fisherman with a weathered face and kind eyes, soft window light, shallow depth of field, photorealistic, natural skin texture.",+ aspect: "portrait",+ settings: ["Gemini image", "4:5"],+ thumbnailSrc: "/media-showcase/fisherman-portrait.webp",+ mediaSrc: "/media-showcase/fisherman-portrait.webp",+ },+ {+ id: "ramen-overhead",+ title: "Steaming ramen, overhead",+ kind: "image",+ category: "Image",+ prompt:+ "Overhead food photograph of a steaming bowl of tonkotsu ramen, glossy broth, soft-boiled egg, chopsticks lifting noodles, moody dark table, appetizing studio light.",+ aspect: "square",+ settings: ["Gemini image", "1:1"],+ thumbnailSrc: "/media-showcase/ramen-overhead.webp",+ mediaSrc: "/media-showcase/ramen-overhead.webp",+ },+ {+ id: "cyberpunk-alley",+ title: "Cyberpunk alley in the rain",+ kind: "image",+ category: "Image",+ prompt:+ "Cyberpunk city alley at night, dense neon signage reflected in rain puddles, drifting steam, distant flying cars, cinematic teal-and-magenta grade, sharp focus.",+ aspect: "landscape",+ settings: ["Gemini image", "16:9"],+ thumbnailSrc: "/media-showcase/cyberpunk-alley.webp",+ mediaSrc: "/media-showcase/cyberpunk-alley.webp",+ },++ // ── Video ──────────────────────────────────────────────────────────────+ {+ id: "coastal-drone",+ title: "Drone over coastal cliffs",+ kind: "video",+ category: "Video",+ prompt:+ "Aerial drone shot sweeping over rugged coastal cliffs at golden hour, waves crashing far below, cinematic color grade, smooth continuous motion.",+ aspect: "landscape",+ settings: ["Veo", "16:9", "8s"],+ thumbnailSrc: "/media-showcase/coastal-drone-thumb.webp",+ mediaSrc: "/media-showcase/coastal-drone.mp4",+ },+ {+ id: "rainy-neon-push",+ title: "Rainy neon street, slow push-in",+ kind: "video",+ category: "Video",+ prompt:+ "Slow cinematic push-in down a rainy neon-lit Tokyo alley at night, reflections shimmering on wet pavement, shallow depth of field, moody atmosphere.",+ aspect: "landscape",+ settings: ["Veo", "16:9", "6s"],+ thumbnailSrc: "/media-showcase/rainy-neon-push-thumb.webp",+ mediaSrc: "/media-showcase/rainy-neon-push.mp4",+ },+ {+ id: "floating-islands-flythrough",+ title: "Floating islands flythrough",+ kind: "video",+ category: "Video",+ prompt:+ "Cinematic flythrough of floating fantasy islands with waterfalls cascading into clouds, golden magic-hour light, sweeping camera, epic sense of scale.",+ aspect: "landscape",+ settings: ["Veo", "16:9", "8s"],+ thumbnailSrc: "/media-showcase/floating-islands-flythrough-thumb.webp",+ mediaSrc: "/media-showcase/floating-islands-flythrough.mp4",+ },+ {+ id: "pourover-slowmo",+ title: "Pour-over coffee, slow motion",+ kind: "video",+ category: "Video",+ prompt:+ "Slow-motion close-up of a barista pouring a spiral of steaming water over a pour-over, rising steam, warm cafe bokeh, shallow depth of field.",+ aspect: "landscape",+ settings: ["Veo", "16:9", "5s"],+ thumbnailSrc: "/media-showcase/pourover-slowmo-thumb.webp",+ mediaSrc: "/media-showcase/pourover-slowmo.mp4",+ },+ {+ id: "forest-walk-pov",+ title: "Forest trail POV walk",+ kind: "video",+ category: "Video",+ prompt:+ "First-person walk along a mossy forest trail, dappled sunlight flickering through the canopy, gentle handheld motion, birds crossing the frame.",+ aspect: "landscape",+ settings: ["Veo", "16:9", "6s"],+ thumbnailSrc: "/media-showcase/forest-walk-pov-thumb.webp",+ mediaSrc: "/media-showcase/forest-walk-pov.mp4",+ },+ {+ id: "city-sunset-timelapse",+ title: "City sunset-to-night timelapse",+ kind: "video",+ category: "Video",+ prompt:+ "Timelapse of a city skyline shifting from sunset to night, clouds streaking overhead, windows lighting up one by one, smooth exposure ramp.",+ aspect: "landscape",+ settings: ["Veo", "16:9", "8s"],+ thumbnailSrc: "/media-showcase/city-sunset-timelapse-thumb.webp",+ mediaSrc: "/media-showcase/city-sunset-timelapse.mp4",+ },+ {+ id: "freediver-sunbeams",+ title: "Free-diver into sunbeams",+ kind: "video",+ category: "Video",+ prompt:+ "Underwater shot following a free-diver descending into shafts of sunlight, bubbles rising, deep blue gradient, serene slow motion.",+ aspect: "portrait",+ settings: ["Veo", "9:16", "6s"],+ thumbnailSrc: "/media-showcase/freediver-sunbeams-thumb.webp",+ mediaSrc: "/media-showcase/freediver-sunbeams.mp4",+ },+ {+ id: "desert-rally-chase",+ title: "Desert rally car chase",+ kind: "video",+ category: "Video",+ prompt:+ "Cinematic tracking shot of a rally car tearing across a desert flat, huge dust plume trailing, low sun flare, dynamic camera keeping pace.",+ aspect: "landscape",+ settings: ["Veo", "16:9", "8s"],+ thumbnailSrc: "/media-showcase/desert-rally-chase-thumb.webp",+ mediaSrc: "/media-showcase/desert-rally-chase.mp4",+ },++ // ── Motion graphics ──────────────────────────────────────────────────────+ {+ id: "logo-line-reveal",+ title: "Looping logo line reveal",+ kind: "video",+ category: "Motion graphics",+ prompt:+ "A minimal logo reveal: a coral mark draws on with a single continuous line while a soft gradient background morphs slowly, seamless loop, clean and modern.",+ aspect: "landscape",+ settings: ["Veo", "16:9", "Loop"],+ thumbnailSrc: "/media-showcase/logo-line-reveal-thumb.webp",+ mediaSrc: "/media-showcase/logo-line-reveal.mp4",+ },+ {+ id: "bars-count-up",+ title: "Data bars counting up",+ kind: "video",+ category: "Motion graphics",+ prompt:+ "Clean motion-graphics bar chart animating from zero to final values with a gentle ease, cream background, bold ink labels, three-second seamless loop.",+ aspect: "landscape",+ settings: ["Veo", "16:9", "Loop"],+ thumbnailSrc: "/media-showcase/bars-count-up-thumb.webp",+ mediaSrc: "/media-showcase/bars-count-up.mp4",+ },+ {+ id: "kinetic-typography-quote",+ title: "Kinetic typography quote",+ kind: "video",+ category: "Motion graphics",+ prompt:+ "Kinetic typography animating a short punchy quote, bold ink words snapping into place on a cream background, tight rhythmic timing, confident pacing.",+ aspect: "landscape",+ settings: ["Veo", "16:9", "6s"],+ thumbnailSrc: "/media-showcase/kinetic-typography-quote-thumb.webp",+ mediaSrc: "/media-showcase/kinetic-typography-quote.mp4",+ },+ {+ id: "gradient-blob-loop",+ title: "Morphing gradient blob",+ kind: "video",+ category: "Motion graphics",+ prompt:+ "Seamless loop of a soft gradient blob slowly morphing between organic shapes, coral-to-peach palette, smooth easing, minimal and calming.",+ aspect: "landscape",+ settings: ["Veo", "16:9", "Loop"],+ thumbnailSrc: "/media-showcase/gradient-blob-loop-thumb.webp",+ mediaSrc: "/media-showcase/gradient-blob-loop.mp4",+ },+ {+ id: "icon-system-build",+ title: "Icon set draws on",+ kind: "video",+ category: "Motion graphics",+ prompt:+ "Motion-graphics sequence where a row of line icons draws on one by one and settles into place, clean ink strokes on white, snappy staggered timing.",+ aspect: "landscape",+ settings: ["Veo", "16:9", "5s"],+ thumbnailSrc: "/media-showcase/icon-system-build-thumb.webp",+ mediaSrc: "/media-showcase/icon-system-build.mp4",+ },+ {+ id: "stat-counter-card",+ title: "Big number counter",+ kind: "video",+ category: "Motion graphics",+ prompt:+ "A stat card animating a big number counting up to one million with a subtle confetti burst on landing, bold typography, three-second loop.",+ aspect: "landscape",+ settings: ["Veo", "16:9", "Loop"],+ thumbnailSrc: "/media-showcase/stat-counter-card-thumb.webp",+ mediaSrc: "/media-showcase/stat-counter-card.mp4",+ },+ {+ id: "pie-chart-assemble",+ title: "Pie chart assembles",+ kind: "video",+ category: "Motion graphics",+ prompt:+ "Motion-graphics pie chart assembling wedge by wedge with a gentle pop, pastel segments, tidy ink labels, clean seamless loop.",+ aspect: "landscape",+ settings: ["Veo", "16:9", "Loop"],+ thumbnailSrc: "/media-showcase/pie-chart-assemble-thumb.webp",+ mediaSrc: "/media-showcase/pie-chart-assemble.mp4",+ },+ {+ id: "shape-wipe-transitions",+ title: "Shape-wipe transition pack",+ kind: "video",+ category: "Motion graphics",+ prompt:+ "A pack of smooth shape-wipe transitions revealing the next scene, coral shapes sliding across a cream frame, punchy modern rhythm.",+ aspect: "landscape",+ settings: ["Veo", "16:9", "5s"],+ thumbnailSrc: "/media-showcase/shape-wipe-transitions-thumb.webp",+ mediaSrc: "/media-showcase/shape-wipe-transitions.mp4",+ },++ // ── UGC & Ads ────────────────────────────────────────────────────────────+ {+ id: "unboxing-selfie",+ title: "Unboxing selfie clip",+ kind: "video",+ category: "UGC & Ads",+ prompt:+ "Vertical UGC-style selfie video of a creator unboxing a skincare product by a bright window, natural handheld motion, authentic and upbeat tone.",+ aspect: "portrait",+ settings: ["Veo", "9:16", "6s"],+ thumbnailSrc: "/media-showcase/unboxing-selfie-thumb.webp",+ mediaSrc: "/media-showcase/unboxing-selfie.mp4",+ },+ {+ id: "sneaker-hover-ad",+ title: "Sneaker hover, vertical ad",+ kind: "video",+ category: "UGC & Ads",+ prompt:+ "Vertical product ad: a running sneaker slowly rotating and hovering over concrete, drifting dust particles, punchy directional lighting, energetic quick cuts.",+ aspect: "portrait",+ settings: ["Veo", "9:16", "5s"],+ thumbnailSrc: "/media-showcase/sneaker-hover-ad-thumb.webp",+ mediaSrc: "/media-showcase/sneaker-hover-ad.mp4",+ },+ {+ id: "serum-testimonial",+ title: "Skincare testimonial",+ kind: "video",+ category: "UGC & Ads",+ prompt:+ "Vertical talking-head UGC clip of a creator raving about a serum at a bathroom counter, natural handheld feel, warm morning light, honest delivery.",+ aspect: "portrait",+ settings: ["Veo", "9:16", "8s"],+ thumbnailSrc: "/media-showcase/serum-testimonial-thumb.webp",+ mediaSrc: "/media-showcase/serum-testimonial.mp4",+ },+ {+ id: "grwm-morning",+ title: "Get-ready-with-me clip",+ kind: "video",+ category: "UGC & Ads",+ prompt:+ "Vertical GRWM-style clip of someone getting ready in a sunlit bedroom, quick natural jump cuts, phone-camera aesthetic, casual upbeat energy.",+ aspect: "portrait",+ settings: ["Veo", "9:16", "6s"],+ thumbnailSrc: "/media-showcase/grwm-morning-thumb.webp",+ mediaSrc: "/media-showcase/grwm-morning.mp4",+ },+ {+ id: "burger-hero-ad",+ title: "Burger build hero ad",+ kind: "video",+ category: "UGC & Ads",+ prompt:+ "Vertical product ad: a burger assembling in mid-air layer by layer, sesame bun landing on top, dramatic macro, punchy fast cuts, mouth-watering appeal.",+ aspect: "portrait",+ settings: ["Veo", "9:16", "5s"],+ thumbnailSrc: "/media-showcase/burger-hero-ad-thumb.webp",+ mediaSrc: "/media-showcase/burger-hero-ad.mp4",+ },+ {+ id: "app-demo-in-hand",+ title: "App demo, screen in hand",+ kind: "video",+ category: "UGC & Ads",+ prompt:+ "Vertical UGC clip of hands scrolling a mobile app in a cozy cafe, over-the-shoulder framing, tap interactions highlighted, natural ambient feel.",+ aspect: "portrait",+ settings: ["Veo", "9:16", "6s"],+ thumbnailSrc: "/media-showcase/app-demo-in-hand-thumb.webp",+ mediaSrc: "/media-showcase/app-demo-in-hand.mp4",+ },+ {+ id: "home-workout-ad",+ title: "Home workout energy ad",+ kind: "video",+ category: "UGC & Ads",+ prompt:+ "Vertical fitness ad with quick energetic cuts of a home workout, sweat and motion, bold on-screen callouts, motivating upbeat pacing.",+ aspect: "portrait",+ settings: ["Veo", "9:16", "6s"],+ thumbnailSrc: "/media-showcase/home-workout-ad-thumb.webp",+ mediaSrc: "/media-showcase/home-workout-ad.mp4",+ },+ {+ id: "candle-cozy-ad",+ title: "Candle cozy lifestyle ad",+ kind: "video",+ category: "UGC & Ads",+ prompt:+ "Vertical lifestyle ad for a scented candle: a match strike, the flame catching, a cozy blanket and book nearby, warm flickering light, calm intimate mood.",+ aspect: "portrait",+ settings: ["Veo", "9:16", "5s"],+ thumbnailSrc: "/media-showcase/candle-cozy-ad-thumb.webp",+ mediaSrc: "/media-showcase/candle-cozy-ad.mp4",+ },++ // ── Animation & Illustration ─────────────────────────────────────────────+ {+ id: "storybook-fox",+ title: "Storybook fox in autumn",+ kind: "image",+ category: "Animation & Illustration",+ prompt:+ "Children's storybook illustration of a small fox walking through an autumn forest, watercolor textures, warm palette, gentle paper grain.",+ aspect: "portrait",+ settings: ["Gemini image", "3:4"],+ thumbnailSrc: "/media-showcase/storybook-fox.webp",+ mediaSrc: "/media-showcase/storybook-fox.webp",+ },+ {+ id: "anime-rooftop",+ title: "Anime rooftop at dusk",+ kind: "image",+ category: "Animation & Illustration",+ prompt:+ "Anime-style key visual of a teenager standing on a city rooftop at dusk, dramatic clouds, warm lens flare, crisp cel shading, high detail.",+ aspect: "landscape",+ settings: ["Gemini image", "16:9"],+ thumbnailSrc: "/media-showcase/anime-rooftop.webp",+ mediaSrc: "/media-showcase/anime-rooftop.webp",+ },+ {+ id: "claymation-bee",+ title: "Claymation bee character",+ kind: "image",+ category: "Animation & Illustration",+ prompt:+ "Claymation-style character sheet of a friendly bumblebee mascot, soft studio lighting, tactile fingerprints in the clay, front and side views.",+ aspect: "square",+ settings: ["Gemini image", "1:1"],+ thumbnailSrc: "/media-showcase/claymation-bee.webp",+ mediaSrc: "/media-showcase/claymation-bee.webp",+ },+ {+ id: "watercolor-seaside-town",+ title: "Watercolor seaside town",+ kind: "image",+ category: "Animation & Illustration",+ prompt:+ "Loose watercolor painting of a pastel seaside town, wet-on-wet washes, soft blooms of color, gentle paper texture, tranquil and airy.",+ aspect: "portrait",+ settings: ["Gemini image", "3:4"],+ thumbnailSrc: "/media-showcase/watercolor-seaside-town.webp",+ mediaSrc: "/media-showcase/watercolor-seaside-town.webp",+ },+ {+ id: "pixel-forest-town",+ title: "Pixel-art forest town",+ kind: "image",+ category: "Animation & Illustration",+ prompt:+ "16-bit pixel-art scene of a cozy forest town at dusk, glowing lantern windows, layered parallax trees, retro game palette, crisp clean pixels.",+ aspect: "landscape",+ settings: ["Gemini image", "16:9"],+ thumbnailSrc: "/media-showcase/pixel-forest-town.webp",+ mediaSrc: "/media-showcase/pixel-forest-town.webp",+ },+ {+ id: "iso-coffee-shop",+ title: "Isometric coffee shop",+ kind: "image",+ category: "Animation & Illustration",+ prompt:+ "Isometric 3D render of a tiny cozy coffee-shop cutaway, warm interior glow, hand-props on every shelf, pastel palette, soft shadows, C4D style.",+ aspect: "square",+ settings: ["Gemini image", "1:1"],+ thumbnailSrc: "/media-showcase/iso-coffee-shop.webp",+ mediaSrc: "/media-showcase/iso-coffee-shop.webp",+ },+ {+ id: "ukiyoe-fox-bridge",+ title: "Ukiyo-e fox spirit",+ kind: "image",+ category: "Animation & Illustration",+ prompt:+ "Ukiyo-e woodblock print of a fox spirit crossing a moonlit bridge, traditional Japanese linework, muted indigo and cream, textured paper grain.",+ aspect: "landscape",+ settings: ["Gemini image", "16:9"],+ thumbnailSrc: "/media-showcase/ukiyoe-fox-bridge.webp",+ mediaSrc: "/media-showcase/ukiyoe-fox-bridge.webp",+ },+ {+ id: "lineart-monstera",+ title: "Single-line botanical",+ kind: "image",+ category: "Animation & Illustration",+ prompt:+ "Minimal single-line-art illustration of a monstera plant, one clean continuous ink stroke, generous negative space, elegant and modern, white background.",+ aspect: "portrait",+ settings: ["Gemini image", "3:4"],+ thumbnailSrc: "/media-showcase/lineart-monstera.webp",+ mediaSrc: "/media-showcase/lineart-monstera.webp",+ },+ {+ id: "popart-astronaut",+ title: "Pop-art comic panel",+ kind: "image",+ category: "Animation & Illustration",+ prompt:+ "Pop-art comic panel of a winking astronaut, bold Ben-Day dots, thick outlines, punchy primary colors, retro screen-print texture.",+ aspect: "square",+ settings: ["Gemini image", "1:1"],+ thumbnailSrc: "/media-showcase/popart-astronaut.webp",+ mediaSrc: "/media-showcase/popart-astronaut.webp",+ },+ {+ id: "pixel-knight-walk",+ title: "Pixel knight walk cycle",+ kind: "video",+ category: "Animation & Illustration",+ prompt:+ "Looping pixel-art walk cycle of a little knight strolling across the frame, retro game animation, crisp sprite work, seamless loop.",+ aspect: "landscape",+ settings: ["Veo", "16:9", "Loop"],+ thumbnailSrc: "/media-showcase/pixel-knight-walk-thumb.webp",+ mediaSrc: "/media-showcase/pixel-knight-walk.mp4",+ },+];++// Items in a single category keep their authored order. The "All" view+// round-robins across categories so a truncated homepage teaser still shows a+// spread of every category rather than one category's block.+export function getItemsByCategory(+ category: MediaCategory | "All",+): MediaShowcaseItem[] {+ if (category !== "All") {+ return mediaShowcaseItems.filter((item) => item.category === category);+ }++ const byCategory = mediaCategories.map((c) =>+ mediaShowcaseItems.filter((item) => item.category === c),+ );+ const interleaved: MediaShowcaseItem[] = [];+ const longest = Math.max(...byCategory.map((group) => group.length));+ for (let index = 0; index < longest; index += 1) {+ for (const group of byCategory) {+ const item = group[index];+ if (item) interleaved.push(item);+ }+ }+ return interleaved;+}diff --git a/site/src/app/use-cases/[slug]/page.tsx b/site/src/app/use-cases/[slug]/page.tsxindex ecf5d0b7..5b142e0b 100644--- a/site/src/app/use-cases/[slug]/page.tsx+++ b/site/src/app/use-cases/[slug]/page.tsx@@ -10,6 +10,7 @@ import {PillButton,TapedCard,} from "@/app/_components/landing/LandingPrimitives";+import { CopyPromptButton } from "@/app/_components/landing/media-showcase/CopyPromptButton";import { TopNav } from "@/app/_components/landing/TopNav";import { getUseCase, useCases } from "@/app/use-cases/useCases";@@ -153,8 +154,11 @@ export default async function UseCasePage({ params }: PageProps) {<TapedCard color="blue" tapeColor="cream"><div className="p-7 md:p-9"><div className="mb-7 rounded-xl border-2 border-ink bg-white p-5">- <div className="text-[12px] font-semibold tracking-[0.12em] uppercase text-[#666]">- Prompt+ <div className="flex items-center justify-between gap-3">+ <div className="text-[12px] font-semibold tracking-[0.12em] uppercase text-[#666]">+ Prompt+ </div>+ <CopyPromptButton className="py-1.5" text={useCase.prompt} /></div><p className="mt-2 font-code text-[15px] leading-[1.55] text-ink">{useCase.prompt}diff --git a/site/src/app/use-cases/page.tsx b/site/src/app/use-cases/page.tsxindex 72ce563f..a5e2b872 100644--- a/site/src/app/use-cases/page.tsx+++ b/site/src/app/use-cases/page.tsx@@ -8,6 +8,7 @@ import {PillButton,TapedCard,} from "@/app/_components/landing/LandingPrimitives";+import { MediaShowcase } from "@/app/_components/landing/media-showcase/MediaShowcase";import { TopNav } from "@/app/_components/landing/TopNav";import {getUseCasesByCategory,@@ -100,6 +101,11 @@ export default function UseCasesPage() {</div></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"+ />+<section className="mx-auto w-full max-w-[1400px] px-6 pb-20 md:px-12 md:pb-28"><div className="flex flex-col gap-14">{useCaseCategories.map((category, categoryIndex) => {