Skip to content

Open source CapCut alternative.

TypeScript

refactor(site): remove Donkey vs the rest section

David Le9540d263b293
diff --git a/site/src/app/_components/landing/DonkeyLanding.tsx b/site/src/app/_components/landing/DonkeyLanding.tsx
index ee1114e1..555288f0 100644
--- a/site/src/app/_components/landing/DonkeyLanding.tsx
+++ b/site/src/app/_components/landing/DonkeyLanding.tsx
@@ -10,7 +10,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 { VsThePast } from "@/app/_components/landing/VsThePast";
import { BG, BLACK } from "@/app/_components/landing/theme";
export default function DonkeyLanding() {
@@ -29,7 +28,6 @@ export default function DonkeyLanding() {
<TrustedBy />
<Solutions />
<Demo />
- <VsThePast />
<OpenSource />
<Pricing />
<DonkeyVisionCTA />
diff --git a/site/src/app/_components/landing/VsThePast.tsx b/site/src/app/_components/landing/VsThePast.tsx
deleted file mode 100644
index fece2053..00000000
--- a/site/src/app/_components/landing/VsThePast.tsx
+++ /dev/null
@@ -1,188 +0,0 @@
-"use client";
-
-import { Check, X } from "lucide-react";
-
-import { Headline } from "@/app/_components/landing/LandingPrimitives";
-import { comparisonRows } from "@/app/_components/landing/data";
-import { useMediaQuery } from "@/app/_components/landing/useMediaQuery";
-import { BLACK, CARD, CORAL } from "@/app/_components/landing/theme";
-
-type ComparisonCellProps = {
- ok: boolean;
-};
-
-function ComparisonCell({ ok }: ComparisonCellProps) {
- return (
- <div style={{ display: "flex", justifyContent: "center" }}>
- <div
- style={{
- width: 32,
- height: 32,
- borderRadius: 999,
- border: `2px solid ${BLACK}`,
- background: ok ? CARD.mint : CORAL,
- display: "flex",
- alignItems: "center",
- justifyContent: "center",
- }}
- >
- {ok ? <Check size={16} strokeWidth={3} /> : <X size={16} strokeWidth={3} />}
- </div>
- </div>
- );
-}
-
-export function VsThePast() {
- const isDesktop = useMediaQuery("(min-width: 768px)");
- const isComfortable = useMediaQuery("(min-width: 480px)");
- const colWidths = isDesktop
- ? "minmax(260px, 1.6fr) repeat(3, minmax(120px, 0.9fr))"
- : "minmax(0, 1.65fr) repeat(3, minmax(0, 0.7fr))";
- const headerCellPadding = isDesktop
- ? "24px 12px"
- : isComfortable
- ? "16px 8px"
- : "14px 3px";
- const rowCellPadding = isDesktop
- ? "20px 12px"
- : isComfortable
- ? "14px 8px"
- : "12px 3px";
- const comparisonHeaderFontSize = isDesktop ? 18 : isComfortable ? 14 : 10;
-
- return (
- <section
- style={{
- padding: isDesktop ? "96px 48px" : "80px 24px",
- maxWidth: 1400,
- margin: "0 auto",
- }}
- >
- <Headline>
- Donkey vs <span style={{ fontStyle: "italic" }}>the rest.</span>
- </Headline>
- <p
- style={{
- marginTop: 24,
- fontSize: 17,
- lineHeight: 1.55,
- maxWidth: 600,
- color: "#454545",
- }}
- >
- You have been choosing between cloud chatbots that cannot touch your
- files and human assistants who cannot scale past 9-5. Donkey is the
- third option.
- </p>
- <div style={{ marginTop: 48, overflowX: "auto", paddingRight: 6, paddingBottom: 6 }}>
- <div
- style={{
- position: "relative",
- width: "100%",
- minWidth: 0,
- }}
- >
- <div
- style={{
- position: "absolute",
- inset: 0,
- transform: "translate(6px, 6px)",
- borderRadius: 16,
- background: BLACK,
- }}
- />
- <div
- style={{
- position: "relative",
- width: "100%",
- borderRadius: 16,
- border: `2px solid ${BLACK}`,
- background: "#fff",
- overflow: "hidden",
- }}
- >
- <div
- style={{
- display: "grid",
- gridTemplateColumns: colWidths,
- borderBottom: `2px solid ${BLACK}`,
- }}
- >
- <div style={{ padding: isDesktop ? "24px" : "16px 12px" }}>
- <div style={{ fontWeight: 600, fontSize: isDesktop ? 20 : 15 }}>
- What you need
- </div>
- </div>
- {["ChatGPT", "Donkey", "Humans"].map((label) => (
- <div
- key={label}
- style={{
- padding: headerCellPadding,
- borderLeft: `2px solid ${BLACK}`,
- textAlign: "center",
- background: label === "Donkey" ? CORAL : "#fff",
- }}
- >
- <div
- style={{
- fontWeight: 600,
- fontSize: comparisonHeaderFontSize,
- lineHeight: 1.1,
- }}
- >
- {label}
- </div>
- </div>
- ))}
- </div>
- {comparisonRows.map((row) => (
- <div
- key={row.label}
- style={{
- display: "grid",
- gridTemplateColumns: colWidths,
- borderBottom: "1px solid rgba(0,0,0,0.1)",
- }}
- >
- <div
- style={{
- padding: isDesktop ? "20px 24px" : "14px 12px",
- fontWeight: 600,
- fontSize: isDesktop ? 15 : 13,
- }}
- >
- {row.label}
- </div>
- <div
- style={{
- padding: rowCellPadding,
- borderLeft: `2px solid ${BLACK}`,
- }}
- >
- <ComparisonCell ok={row.gpts} />
- </div>
- <div
- style={{
- padding: rowCellPadding,
- borderLeft: `2px solid ${BLACK}`,
- background: "rgba(236,120,104,0.1)",
- }}
- >
- <ComparisonCell ok={row.donkey} />
- </div>
- <div
- style={{
- padding: rowCellPadding,
- borderLeft: `2px solid ${BLACK}`,
- }}
- >
- <ComparisonCell ok={row.humans} />
- </div>
- </div>
- ))}
- </div>
- </div>
- </div>
- </section>
- );
-}