Skip to content

Open source CapCut alternative.

TypeScript

Polish Donkey Vision contact CTAs

David Le588c5159195f
diff --git a/site/src/app/_components/landing/ContactSalesButton.tsx b/site/src/app/_components/landing/ContactSalesButton.tsx
new file mode 100644
index 00000000..64a4474d
--- /dev/null
+++ b/site/src/app/_components/landing/ContactSalesButton.tsx
@@ -0,0 +1,32 @@
+"use client";
+
+import type { ReactNode } from "react";
+
+type Props = {
+ children: ReactNode;
+ className: string;
+};
+
+const contactEmail = "[email protected]";
+const contactSubject = "Donkey Vision API";
+
+export function ContactSalesButton({ children, className }: Props) {
+ const handleClick = () => {
+ const gmailURL = new URL("https://mail.google.com/mail/");
+ gmailURL.searchParams.set("view", "cm");
+ gmailURL.searchParams.set("fs", "1");
+ gmailURL.searchParams.set("to", contactEmail);
+ gmailURL.searchParams.set("su", contactSubject);
+
+ const opened = window.open(gmailURL.toString(), "_blank", "noopener,noreferrer");
+ if (!opened) {
+ window.location.href = `mailto:${contactEmail}?subject=${encodeURIComponent(contactSubject)}`;
+ }
+ };
+
+ return (
+ <button className={className} onClick={handleClick} type="button">
+ {children}
+ </button>
+ );
+}
diff --git a/site/src/app/_components/landing/DonkeyVisionCTA.tsx b/site/src/app/_components/landing/DonkeyVisionCTA.tsx
index aa7a84f8..3f708c71 100644
--- a/site/src/app/_components/landing/DonkeyVisionCTA.tsx
+++ b/site/src/app/_components/landing/DonkeyVisionCTA.tsx
@@ -6,6 +6,7 @@ import {
Headline,
PillButton,
} from "@/app/_components/landing/LandingPrimitives";
+import { ContactSalesButton } from "@/app/_components/landing/ContactSalesButton";
const points = [
{
@@ -45,13 +46,11 @@ export function DonkeyVisionCTA() {
<PillButton href="/donkeyvision" variant="primary" size="lg">
Explore Donkey Vision <ArrowRight size={18} />
</PillButton>
- <PillButton
- href="mailto:[email protected]?subject=Donkey%20Vision%20API"
- variant="secondary"
- size="lg"
+ <ContactSalesButton
+ className="inline-flex min-h-14 items-center justify-center gap-2 rounded-full border-2 border-[#0F0E0D] bg-[#EC7868] px-7 py-4 text-base font-semibold text-[#0F0E0D] transition hover:-translate-y-0.5"
>
Contact us
- </PillButton>
+ </ContactSalesButton>
</div>
</div>
<div className="grid content-center gap-4">
diff --git a/site/src/app/donkeyvision/ApiSection.tsx b/site/src/app/donkeyvision/ApiSection.tsx
index d02dbb43..918b4afc 100644
--- a/site/src/app/donkeyvision/ApiSection.tsx
+++ b/site/src/app/donkeyvision/ApiSection.tsx
@@ -31,7 +31,7 @@ export function ApiSection() {
One endpoint, two jobs.
</h2>
<p className="mt-6 max-w-2xl text-lg leading-8 text-[#454545]">
- Donkey Vision first runs OmniParser to produce element IDs, labels,
+ Donkey Vision first detects UI elements and returns IDs, labels,
boxes, center points, and interactivity. If you include an instruction,
the LLM only receives that compact element catalog and picks the best
target. Coordinates come from the parser output, not the LLM.
diff --git a/site/src/app/donkeyvision/HeroSection.tsx b/site/src/app/donkeyvision/HeroSection.tsx
index aba366f2..44762df3 100644
--- a/site/src/app/donkeyvision/HeroSection.tsx
+++ b/site/src/app/donkeyvision/HeroSection.tsx
@@ -1,5 +1,6 @@
import { ArrowRight, Braces } from "lucide-react";
+import { ContactSalesButton } from "@/app/_components/landing/ContactSalesButton";
import { VisionPreview } from "@/app/donkeyvision/VisionPreview";
export function HeroSection() {
@@ -13,15 +14,15 @@ export function HeroSection() {
Detect every interactable UI element in a screenshot, then optionally ask
natural-language questions like find the play button or find the next
button. It works across software because it reads the screen, not a
- private app integration.
+ private app integration. It is the same screen-understanding layer we
+ now use inside Donkey to map app windows while building our Mac agent.
</p>
<div className="mt-9 flex max-w-full flex-wrap gap-3">
- <a
+ <ContactSalesButton
className="inline-flex min-h-14 items-center justify-center gap-2 rounded-full border-2 border-[#0F0E0D] bg-[#EC7868] px-7 text-base font-semibold text-[#0F0E0D] transition hover:-translate-y-0.5"
- href="#contact"
>
Contact us <ArrowRight size={18} aria-hidden="true" />
- </a>
+ </ContactSalesButton>
<a
className="inline-flex min-h-14 items-center justify-center gap-2 rounded-full border-2 border-[#0F0E0D] bg-white px-7 text-base font-semibold text-[#0F0E0D] transition hover:-translate-y-0.5"
href="#api"
diff --git a/site/src/app/donkeyvision/PricingSection.tsx b/site/src/app/donkeyvision/PricingSection.tsx
index a900cbab..f85aefa2 100644
--- a/site/src/app/donkeyvision/PricingSection.tsx
+++ b/site/src/app/donkeyvision/PricingSection.tsx
@@ -1,5 +1,7 @@
import { Mail } from "lucide-react";
+import { ContactSalesButton } from "@/app/_components/landing/ContactSalesButton";
+
export function PricingSection() {
return (
<section className="mx-auto w-full max-w-[1400px] px-6 py-20 md:px-12" id="contact">
@@ -16,12 +18,11 @@ export function PricingSection() {
</p>
</div>
<div className="flex items-center md:justify-end">
- <a
+ <ContactSalesButton
className="inline-flex min-h-14 items-center justify-center gap-2 rounded-full border-2 border-white bg-[#EC7868] px-7 text-base font-semibold text-[#0F0E0D] transition hover:-translate-y-0.5"
- href="mailto:[email protected]?subject=Donkey%20Vision%20API"
>
Contact us <Mail size={18} aria-hidden="true" />
- </a>
+ </ContactSalesButton>
</div>
</div>
</div>