Open source CapCut alternative.
TypeScript
Refresh Donkey Vision proof section styling
David Le328c8c491af1
diff --git a/site/src/app/_components/landing/DonkeyVisionCTA.tsx b/site/src/app/_components/landing/DonkeyVisionCTA.tsxindex f6e5cdbb..c6998401 100644--- a/site/src/app/_components/landing/DonkeyVisionCTA.tsx+++ b/site/src/app/_components/landing/DonkeyVisionCTA.tsx@@ -47,7 +47,7 @@ export function DonkeyVisionCTA() {Explore Donkey Vision <ArrowRight size={18} /></PillButton><ContactSalesButton- className="inline-flex min-h-14 items-center justify-center gap-2 rounded-full bg-[#EC7868] px-7 py-4 text-base font-semibold text-[#0F0E0D] transition hover:-translate-y-0.5"+ className="inline-flex min-h-14 items-center justify-center gap-2 rounded-full bg-white px-7 py-4 text-base font-semibold text-[#0F0E0D] transition hover:-translate-y-0.5">Contact us</ContactSalesButton>diff --git a/site/src/app/donkeyvision/ProofSection.tsx b/site/src/app/donkeyvision/ProofSection.tsxindex 4c2bb6f1..f96cfd15 100644--- a/site/src/app/donkeyvision/ProofSection.tsx+++ b/site/src/app/donkeyvision/ProofSection.tsx@@ -1,19 +1,43 @@+import { ArrowUpRight } from "lucide-react";+import { stats } from "@/app/donkeyvision/data";+const cardStyles = [+ { bg: "bg-[#EC7868]", rotate: "-rotate-2", tape: "rotate-[-6deg]" },+ { bg: "bg-[#A8D5E8]", rotate: "rotate-2", tape: "rotate-[5deg]" },+];+export function ProofSection() {return (<section className="mx-auto w-full max-w-[1400px] px-6 pb-20 md:px-12">- <div className="grid gap-5 md:grid-cols-2">- {stats.map((stat) => (- <div className="rounded-lg border-2 border-[#0F0E0D] bg-white p-6" key={stat.label}>- <div className="text-4xl font-semibold tracking-tight md:text-5xl">- {stat.value}+ <div className="grid gap-8 sm:grid-cols-2 md:gap-10">+ {stats.map((stat, index) => {+ const style = cardStyles[index % cardStyles.length];++ return (+ <div+ className={`group relative rounded-2xl border-2 border-[#0F0E0D] ${style.bg} ${style.rotate} p-7 shadow-[6px_6px_0_0_#0F0E0D] transition duration-200 hover:-translate-y-1 hover:rotate-0 md:p-8`}+ key={stat.label}+ >+ <span+ aria-hidden="true"+ className={`absolute -top-3 left-1/2 h-6 w-20 -translate-x-1/2 ${style.tape} rounded-sm border-2 border-[#0F0E0D] bg-white/70`}+ />+ <div className="flex items-center gap-1.5 text-xs font-bold uppercase tracking-[0.12em] text-[#0F0E0D]">+ <ArrowUpRight size={14} aria-hidden="true" />+ {stat.eyebrow}+ </div>+ <div className="mt-4 text-5xl font-bold tracking-tight md:text-6xl">+ {stat.value}+ </div>+ <p className="mt-4 max-w-[34ch] text-sm font-medium leading-6 text-[#0F0E0D]/80">+ {stat.label}+ </p></div>- <div className="mt-3 text-sm leading-6 text-[#555]">{stat.label}</div>- </div>- ))}+ );+ })}</div>- <div className="mt-5 rounded-lg border-2 border-[#0F0E0D] bg-[#F5D875] p-5 text-sm leading-7 md:text-base">+ <div className="mt-8 rounded-lg border-2 border-[#0F0E0D] bg-[#F5D875] p-5 text-sm leading-7 shadow-[4px_4px_0_0_#0F0E0D] md:text-base">These are planning estimates for normal screenshot sizes. Large images,queueing, and the grounding step add time. For high-volume usage we tunethe endpoint to your target latency.diff --git a/site/src/app/donkeyvision/data.ts b/site/src/app/donkeyvision/data.tsindex 5280d753..bc0c439e 100644--- a/site/src/app/donkeyvision/data.ts+++ b/site/src/app/donkeyvision/data.ts@@ -13,10 +13,12 @@ import type { Feature, Stat } from "@/app/donkeyvision/types";export const stats: Stat[] = [{+ eyebrow: "Full parse",label: "Typical time to detect and return every element in a screenshot.",value: "~600ms",},{+ eyebrow: "Parse + ground",label:"Typical time to detect, then ground a natural-language instruction to one target.",value: "~1.2s",diff --git a/site/src/app/donkeyvision/types.ts b/site/src/app/donkeyvision/types.tsindex 7a76d479..455fa7fe 100644--- a/site/src/app/donkeyvision/types.ts+++ b/site/src/app/donkeyvision/types.ts@@ -1,6 +1,7 @@import type { LucideIcon } from "lucide-react";export type Stat = {+ eyebrow: string;label: string;value: string;};