Skip to content

Open source CapCut alternative.

TypeScript

feat(site): slim the pricing cards

David Le2519ddf0368a
diff --git a/site/src/app/[locale]/cut/_components/landing/CutPricing.tsx b/site/src/app/[locale]/cut/_components/landing/CutPricing.tsx
index c6f4a511..75ac0615 100644
--- a/site/src/app/[locale]/cut/_components/landing/CutPricing.tsx
+++ b/site/src/app/[locale]/cut/_components/landing/CutPricing.tsx
@@ -4,21 +4,13 @@ import { useTranslations } from "next-intl";
import { Headline } from "@/app/_components/landing/LandingPrimitives";
import { PricingPlanCard } from "@/app/_components/landing/PricingPlanCard";
-import { useAppEntryHref } from "@/app/_components/landing/useAppEntryHref";
import { useMediaQuery } from "@/app/_components/landing/useMediaQuery";
import { useCutPricingPlans } from "@/app/[locale]/cut/_components/landing/cutPricingPlans";
export function CutPricing() {
const isDesktop = useMediaQuery("(min-width: 768px)");
- const appHref = useAppEntryHref();
const t = useTranslations("landing.pricing");
-
- // Every plan CTA enters the app, so gate them the same way as the hero: a
- // signed-out click lands on sign-in first, then returns to the app target.
- const plans = useCutPricingPlans().map((plan) => ({
- ...plan,
- action: { ...plan.action, href: appHref(plan.action.href) },
- }));
+ const plans = useCutPricingPlans();
return (
<section
@@ -37,19 +29,44 @@ export function CutPricing() {
<p className="mt-6 max-w-[900px] text-[17px] leading-[1.55] text-foreground/70">
{t("body")}
</p>
- <div
- style={{
- marginTop: 48,
- display: "grid",
- gridTemplateColumns: isDesktop ? "repeat(auto-fit, minmax(260px, 1fr))" : "1fr",
- alignItems: "stretch",
- gap: 24,
- }}
- >
- {plans.map((plan) => (
- <PricingPlanCard key={plan.name} plan={plan} />
- ))}
- </div>
+ {isDesktop ? (
+ <div
+ style={{
+ marginTop: 48,
+ display: "grid",
+ gridTemplateColumns: "repeat(auto-fit, minmax(260px, 1fr))",
+ alignItems: "stretch",
+ gap: 24,
+ }}
+ >
+ {plans.map((plan) => (
+ <PricingPlanCard key={plan.name} plan={plan} />
+ ))}
+ </div>
+ ) : (
+ // Phones scroll the cards sideways. The row bleeds past the section
+ // gutter to the screen edge, so the next card peeks in on the right;
+ // the top padding keeps each card's tape and the bottom its shadow.
+ <div
+ className="[scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
+ style={{
+ marginTop: 36,
+ marginInline: -24,
+ display: "flex",
+ gap: 16,
+ overflowX: "auto",
+ padding: "12px 24px 12px",
+ scrollPaddingInline: 24,
+ scrollSnapType: "x mandatory",
+ }}
+ >
+ {plans.map((plan) => (
+ <div key={plan.name} style={{ flex: "0 0 80%", scrollSnapAlign: "start" }}>
+ <PricingPlanCard plan={plan} />
+ </div>
+ ))}
+ </div>
+ )}
</section>
);
}
diff --git a/site/src/app/[locale]/cut/_components/landing/cutPricingPlans.ts b/site/src/app/[locale]/cut/_components/landing/cutPricingPlans.ts
index 42de7ec8..eb7ebb8d 100644
--- a/site/src/app/[locale]/cut/_components/landing/cutPricingPlans.ts
+++ b/site/src/app/[locale]/cut/_components/landing/cutPricingPlans.ts
@@ -91,14 +91,8 @@ export function useCutPricingPlans(): PricingPlan[] {
const plans = useCutPlans();
return [
{
- action: {
- href: "/app",
- kind: "link",
- label: t("free.cta"),
- },
body: t("free.body"),
color: "cream",
- detail: t("free.detail"),
features: [
t("free.editor"),
t("free.storage", { mb: FREE_STORAGE_MB }),
@@ -110,14 +104,8 @@ export function useCutPricingPlans(): PricingPlan[] {
tapeColor: "coral",
},
...plans.map((copy, i): PricingPlan => ({
- action: {
- href: "/app/settings",
- kind: "link",
- label: t("paid.cta", { plan: copy.name }),
- },
body: copy.body,
...PLAN_COLORS[copy.plan],
- detail: t("paid.detail", { plan: copy.plan }),
// The first plan names what it adds to Free after its credits, the way
// each higher plan names the one under it.
features: [
@@ -126,8 +114,7 @@ export function useCutPricingPlans(): PricingPlan[] {
...copy.features.slice(1).map((feature) => feature.text),
],
name: copy.name,
- price: copy.amount,
- cadence: copy.cadence,
+ price: copy.price,
...(copy.plan === RECOMMENDED_PLAN ? { tapePosition: "right" as const } : {}),
})),
];
diff --git a/site/src/app/_components/landing/PricingPlanCard.tsx b/site/src/app/_components/landing/PricingPlanCard.tsx
index 4e68557b..fa3c9807 100644
--- a/site/src/app/_components/landing/PricingPlanCard.tsx
+++ b/site/src/app/_components/landing/PricingPlanCard.tsx
@@ -2,10 +2,7 @@
import { Check } from "lucide-react";
-import {
- PillButton,
- TapedCard,
-} from "@/app/_components/landing/LandingPrimitives";
+import { TapedCard } from "@/app/_components/landing/LandingPrimitives";
import type { PricingPlan } from "@/app/_components/landing/pricingPlans";
import { useMediaQuery } from "@/app/_components/landing/useMediaQuery";
@@ -15,13 +12,6 @@ type Props = {
export function PricingPlanCard({ plan }: Props) {
const isDesktop = useMediaQuery("(min-width: 768px)");
- const action = plan.action;
-
- const button = (
- <PillButton href={action.href} variant="dark" width="full">
- {action.label}
- </PillButton>
- );
return (
<TapedCard
@@ -39,35 +29,17 @@ export function PricingPlanCard({ plan }: Props) {
padding: isDesktop ? 36 : 28,
}}
>
- <div style={{ fontWeight: 600, fontSize: 22, marginBottom: 18 }}>
- {plan.name}
- </div>
- <div style={{ display: "flex", alignItems: "baseline", gap: 8 }}>
- <span
- style={{
- fontWeight: 600,
- fontSize: isDesktop ? 54 : 42,
- lineHeight: 0.95,
- }}
- >
- {plan.price}
- </span>
- {plan.cadence ? (
- <span style={{ fontWeight: 600, fontSize: 16, opacity: 0.7 }}>
- {plan.cadence}
- </span>
- ) : null}
- </div>
+ <div style={{ fontWeight: 600, fontSize: 26 }}>{plan.name}</div>
<div
style={{
- fontSize: 13,
+ fontSize: 15,
fontWeight: 600,
color: plan.color === "coral" ? "#201715" : "#444",
- marginBottom: 24,
- marginTop: 10,
+ marginBottom: 20,
+ marginTop: 4,
}}
>
- {plan.detail}
+ {plan.price}
</div>
<p
style={{
@@ -83,7 +55,6 @@ export function PricingPlanCard({ plan }: Props) {
style={{
display: "grid",
gap: 10,
- marginBottom: 28,
}}
>
{plan.features.map((feature) => (
@@ -116,7 +87,6 @@ export function PricingPlanCard({ plan }: Props) {
</div>
))}
</div>
- <div style={{ marginTop: "auto" }}>{button}</div>
</div>
</TapedCard>
);
diff --git a/site/src/app/_components/landing/pricingPlans.ts b/site/src/app/_components/landing/pricingPlans.ts
index f1510cc2..1814ddbf 100644
--- a/site/src/app/_components/landing/pricingPlans.ts
+++ b/site/src/app/_components/landing/pricingPlans.ts
@@ -2,23 +2,14 @@ import type { CardColor } from "@/app/_components/landing/theme";
// The shape pricing cards render from. Donkey Use no longer sells through the
// site, so plans exist only where a product still lists them (Cut's landing —
-// see cutPricingPlans.ts); every action is a plain link.
-export type PricingPlanAction = {
- href: string;
- kind: "contact" | "link";
- label: string;
-};
-
+// see cutPricingPlans.ts).
export type PricingPlan = {
- action: PricingPlanAction;
body: string;
color: CardColor;
- detail: string;
features: string[];
name: string;
- // The figure, large ("$20"), and what it is per, small beside it ("/month").
+ // The price line under the name ("$20/month").
price: string;
- cadence?: string;
tapeColor: CardColor;
tapePosition?: "left" | "right" | "center";
};
diff --git a/site/src/i18n/messages/.source-lock.json b/site/src/i18n/messages/.source-lock.json
index f4c8fdb9..32792893 100644
--- a/site/src/i18n/messages/.source-lock.json
+++ b/site/src/i18n/messages/.source-lock.json
@@ -2094,15 +2094,11 @@
"pricing.title": "5cb23e5648fb",
"pricing.body": "e0d25a257d31",
"plans.free.name": "75f527181b57",
- "plans.free.detail": "7ccd8cfc31fd",
"plans.free.body": "e2f7606c3f63",
- "plans.free.cta": "bc37399d5d6a",
"plans.free.editor": "3c551eeb20e4",
"plans.free.storage": "f335e7a25f8f",
"plans.free.tools": "21e7962cf954",
"plans.free.subscriptions": "5d318bd27003",
- "plans.paid.detail": "588d1e6cd282",
- "plans.paid.cta": "36572be917c8",
"plans.paid.everythingInFree": "b6017dd40013",
"local.title": "3345a1fc0d10",
"local.body": "02b546b1aaf5",
@@ -5124,15 +5120,11 @@
"pricing.title": "5cb23e5648fb",
"pricing.body": "e0d25a257d31",
"plans.free.name": "75f527181b57",
- "plans.free.detail": "7ccd8cfc31fd",
"plans.free.body": "e2f7606c3f63",
- "plans.free.cta": "bc37399d5d6a",
"plans.free.editor": "3c551eeb20e4",
"plans.free.storage": "f335e7a25f8f",
"plans.free.tools": "21e7962cf954",
"plans.free.subscriptions": "5d318bd27003",
- "plans.paid.detail": "588d1e6cd282",
- "plans.paid.cta": "36572be917c8",
"plans.paid.everythingInFree": "b6017dd40013",
"local.title": "3345a1fc0d10",
"local.body": "02b546b1aaf5",
@@ -8154,15 +8146,11 @@
"pricing.title": "5cb23e5648fb",
"pricing.body": "e0d25a257d31",
"plans.free.name": "75f527181b57",
- "plans.free.detail": "7ccd8cfc31fd",
"plans.free.body": "e2f7606c3f63",
- "plans.free.cta": "bc37399d5d6a",
"plans.free.editor": "3c551eeb20e4",
"plans.free.storage": "f335e7a25f8f",
"plans.free.tools": "21e7962cf954",
"plans.free.subscriptions": "5d318bd27003",
- "plans.paid.detail": "588d1e6cd282",
- "plans.paid.cta": "36572be917c8",
"plans.paid.everythingInFree": "b6017dd40013",
"local.title": "3345a1fc0d10",
"local.body": "02b546b1aaf5",
@@ -11184,15 +11172,11 @@
"pricing.title": "5cb23e5648fb",
"pricing.body": "e0d25a257d31",
"plans.free.name": "75f527181b57",
- "plans.free.detail": "7ccd8cfc31fd",
"plans.free.body": "e2f7606c3f63",
- "plans.free.cta": "bc37399d5d6a",
"plans.free.editor": "3c551eeb20e4",
"plans.free.storage": "f335e7a25f8f",
"plans.free.tools": "21e7962cf954",
"plans.free.subscriptions": "5d318bd27003",
- "plans.paid.detail": "588d1e6cd282",
- "plans.paid.cta": "36572be917c8",
"plans.paid.everythingInFree": "b6017dd40013",
"local.title": "3345a1fc0d10",
"local.body": "02b546b1aaf5",
@@ -14214,15 +14198,11 @@
"pricing.title": "5cb23e5648fb",
"pricing.body": "e0d25a257d31",
"plans.free.name": "75f527181b57",
- "plans.free.detail": "7ccd8cfc31fd",
"plans.free.body": "e2f7606c3f63",
- "plans.free.cta": "bc37399d5d6a",
"plans.free.editor": "3c551eeb20e4",
"plans.free.storage": "f335e7a25f8f",
"plans.free.tools": "21e7962cf954",
"plans.free.subscriptions": "5d318bd27003",
- "plans.paid.detail": "588d1e6cd282",
- "plans.paid.cta": "36572be917c8",
"plans.paid.everythingInFree": "b6017dd40013",
"local.title": "3345a1fc0d10",
"local.body": "02b546b1aaf5",
@@ -17244,15 +17224,11 @@
"pricing.title": "5cb23e5648fb",
"pricing.body": "e0d25a257d31",
"plans.free.name": "75f527181b57",
- "plans.free.detail": "7ccd8cfc31fd",
"plans.free.body": "e2f7606c3f63",
- "plans.free.cta": "bc37399d5d6a",
"plans.free.editor": "3c551eeb20e4",
"plans.free.storage": "f335e7a25f8f",
"plans.free.tools": "21e7962cf954",
"plans.free.subscriptions": "5d318bd27003",
- "plans.paid.detail": "588d1e6cd282",
- "plans.paid.cta": "36572be917c8",
"plans.paid.everythingInFree": "b6017dd40013",
"local.title": "3345a1fc0d10",
"local.body": "02b546b1aaf5",
@@ -20274,15 +20250,11 @@
"pricing.title": "5cb23e5648fb",
"pricing.body": "e0d25a257d31",
"plans.free.name": "75f527181b57",
- "plans.free.detail": "7ccd8cfc31fd",
"plans.free.body": "e2f7606c3f63",
- "plans.free.cta": "bc37399d5d6a",
"plans.free.editor": "3c551eeb20e4",
"plans.free.storage": "f335e7a25f8f",
"plans.free.tools": "21e7962cf954",
"plans.free.subscriptions": "5d318bd27003",
- "plans.paid.detail": "588d1e6cd282",
- "plans.paid.cta": "36572be917c8",
"plans.paid.everythingInFree": "b6017dd40013",
"local.title": "3345a1fc0d10",
"local.body": "02b546b1aaf5",
diff --git a/site/src/i18n/messages/de/landing.json b/site/src/i18n/messages/de/landing.json
index 35e82340..bc53fd31 100644
--- a/site/src/i18n/messages/de/landing.json
+++ b/site/src/i18n/messages/de/landing.json
@@ -25,17 +25,13 @@
"plans": {
"free": {
"name": "Free",
- "detail": "Für alle",
"body": "Der gesamte Editor, in der Cloud oder auf deinem Mac.",
- "cta": "Neues Projekt starten",
"editor": "Voller Zugriff auf den Video-Editor",
"storage": "{mb, number} MB Cloud-Speicher",
"tools": "Import, Export und lokale Transkription",
"subscriptions": "Verbinde dein Claude- oder Codex-Abo"
},
"paid": {
- "detail": "{plan, select, plus {Zum Einstieg} pro {Bester Wert} other {Für intensives Generieren}}",
- "cta": "{plan} holen",
"everythingInFree": "Alles aus Free"
}
},
diff --git a/site/src/i18n/messages/en/landing.json b/site/src/i18n/messages/en/landing.json
index 1d58c6d4..20b22e83 100644
--- a/site/src/i18n/messages/en/landing.json
+++ b/site/src/i18n/messages/en/landing.json
@@ -25,17 +25,13 @@
"plans": {
"free": {
"name": "Free",
- "detail": "For everyone",
"body": "The whole editor, in the cloud or on your own Mac.",
- "cta": "Start a new project",
"editor": "Full access to the video editor",
"storage": "{mb, number} MB of cloud storage",
"tools": "Import, export, and local transcription",
"subscriptions": "Connect your Claude or Codex subscription"
},
"paid": {
- "detail": "{plan, select, plus {To get started} pro {Best value} other {For heavy generation}}",
- "cta": "Get {plan}",
"everythingInFree": "Everything in Free"
}
},
diff --git a/site/src/i18n/messages/es/landing.json b/site/src/i18n/messages/es/landing.json
index b19670f1..d35aac4d 100644
--- a/site/src/i18n/messages/es/landing.json
+++ b/site/src/i18n/messages/es/landing.json
@@ -25,17 +25,13 @@
"plans": {
"free": {
"name": "Gratis",
- "detail": "Para todos",
"body": "Todo el editor, en la nube o en tu propia Mac.",
- "cta": "Comienza un nuevo proyecto",
"editor": "Acceso total al editor de video",
"storage": "{mb, number} MB de almacenamiento en la nube",
"tools": "Importación, exportación y transcripción local",
"subscriptions": "Conecta tu suscripción a Claude o Codex"
},
"paid": {
- "detail": "{plan, select, plus {Para empezar} pro {La mejor opción} other {Para generación intensiva}}",
- "cta": "Obtén {plan}",
"everythingInFree": "Todo lo incluido en Free"
}
},
diff --git a/site/src/i18n/messages/fr/landing.json b/site/src/i18n/messages/fr/landing.json
index faebb09b..6b3ad3fd 100644
--- a/site/src/i18n/messages/fr/landing.json
+++ b/site/src/i18n/messages/fr/landing.json
@@ -25,17 +25,13 @@
"plans": {
"free": {
"name": "Gratuit",
- "detail": "Pour tout le monde",
"body": "L'ensemble de l'éditeur, dans le cloud ou sur votre Mac.",
- "cta": "Commencer un nouveau projet",
"editor": "Accès complet à l'éditeur vidéo",
"storage": "{mb, number} MB de stockage cloud",
"tools": "Import, export et transcription locale",
"subscriptions": "Connectez votre abonnement Claude ou Codex"
},
"paid": {
- "detail": "{plan, select, plus {Pour commencer} pro {Meilleur rapport qualité-prix} other {Pour une génération intensive}}",
- "cta": "Obtenir {plan}",
"everythingInFree": "Tout ce qui est inclus dans Gratuit"
}
},
diff --git a/site/src/i18n/messages/ja/landing.json b/site/src/i18n/messages/ja/landing.json
index a74ed17d..b5988191 100644
--- a/site/src/i18n/messages/ja/landing.json
+++ b/site/src/i18n/messages/ja/landing.json
@@ -25,17 +25,13 @@
"plans": {
"free": {
"name": "Free",
- "detail": "すべてのユーザー向け",
"body": "クラウドでも、お使いのMacでも、すべてのエディター機能を利用可能。",
- "cta": "新規プロジェクトを開始",
"editor": "動画エディターへのフルアクセス",
"storage": "{mb, number} MBのクラウドストレージ",
"tools": "インポート、書き出し、ローカル文字起こし",
"subscriptions": "ClaudeやCodexのサブスクリプションと連携"
},
"paid": {
- "detail": "{plan, select, plus {まずはここから} pro {最もお得} other {大量の生成向け}}",
- "cta": "{plan}を入手",
"everythingInFree": "Freeプランの全機能"
}
},
diff --git a/site/src/i18n/messages/ko/landing.json b/site/src/i18n/messages/ko/landing.json
index a61e43ed..73221292 100644
--- a/site/src/i18n/messages/ko/landing.json
+++ b/site/src/i18n/messages/ko/landing.json
@@ -25,17 +25,13 @@
"plans": {
"free": {
"name": "Free",
- "detail": "모두를 위한 플랜",
"body": "클라우드나 Mac에서 편집기 전체 기능을 무료로 이용하세요.",
- "cta": "새 프로젝트 시작하기",
"editor": "동영상 편집기 전체 기능 이용",
"storage": "클라우드 스토리지 {mb, number} MB",
"tools": "가져오기, 내보내기 및 온디바이스 텍스트 변환",
"subscriptions": "보유한 Claude 또는 Codex 구독 연동"
},
"paid": {
- "detail": "{plan, select, plus {시작하기에 적합} pro {최고의 가성비} other {대량 생성용}}",
- "cta": "{plan} 시작하기",
"everythingInFree": "Free 플랜의 모든 기능"
}
},
diff --git a/site/src/i18n/messages/pt-BR/landing.json b/site/src/i18n/messages/pt-BR/landing.json
index 203b2095..831b6abb 100644
--- a/site/src/i18n/messages/pt-BR/landing.json
+++ b/site/src/i18n/messages/pt-BR/landing.json
@@ -25,17 +25,13 @@
"plans": {
"free": {
"name": "Gratuito",
- "detail": "Para todos",
"body": "O editor completo, na nuvem ou no seu próprio Mac.",
- "cta": "Começar um novo projeto",
"editor": "Acesso completo ao editor de vídeo",
"storage": "{mb, number} MB de armazenamento na nuvem",
"tools": "Importação, exportação e transcrição local",
"subscriptions": "Conecte sua assinatura do Claude ou Codex"
},
"paid": {
- "detail": "{plan, select, plus {Para começar} pro {Melhor custo-benefício} other {Para geração intensa}}",
- "cta": "Obter {plan}",
"everythingInFree": "Tudo do plano Gratuito"
}
},
diff --git a/site/src/i18n/messages/zh-CN/landing.json b/site/src/i18n/messages/zh-CN/landing.json
index 3390b5a2..f9a96af9 100644
--- a/site/src/i18n/messages/zh-CN/landing.json
+++ b/site/src/i18n/messages/zh-CN/landing.json
@@ -25,17 +25,13 @@
"plans": {
"free": {
"name": "免费版",
- "detail": "面向所有人",
"body": "完整的编辑器功能,支持云端或在你的 Mac 本地运行。",
- "cta": "新建项目",
"editor": "完整使用视频编辑器",
"storage": "{mb, number} MB 云存储空间",
"tools": "导入、导出及本地转录",
"subscriptions": "关联你的 Claude 或 Codex 订阅"
},
"paid": {
- "detail": "{plan, select, plus {新手入门} pro {超值首选} other {适合高频生成}}",
- "cta": "获取 {plan}",
"everythingInFree": "包含免费版的所有功能"
}
},