Skip to content

Commit 2678045

Browse files
committed
Add section on pricing to connect your Claude subscription
1 parent 714123b commit 2678045

File tree

1 file changed

+75
-1
lines changed

1 file changed

+75
-1
lines changed

web/src/app/pricing/pricing-client.tsx

Lines changed: 75 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client'
22

33
import { DEFAULT_FREE_CREDITS_GRANT } from '@codebuff/common/old-constants'
4-
import { Gift, Shield } from 'lucide-react'
4+
import { Gift, Shield, Link2, Zap, Terminal } from 'lucide-react'
55
import { useSession } from 'next-auth/react'
66

77
import { BlockColor } from '@/components/ui/decorative-blocks'
@@ -62,6 +62,66 @@ function PricingCard() {
6262
)
6363
}
6464

65+
function ClaudeSubscriptionIllustration() {
66+
return (
67+
<div className="flex flex-col items-center text-center">
68+
<div className="flex flex-col items-center space-y-6 w-full max-w-md">
69+
{/* Connection visual */}
70+
<div className="flex items-center justify-center gap-4 w-full">
71+
{/* Claude card */}
72+
<div className="bg-gradient-to-br from-orange-500 to-orange-600 rounded-lg p-4 shadow-lg border border-orange-400/30">
73+
<div className="text-white font-bold text-sm">Claude</div>
74+
<div className="text-white/80 text-xs mt-1">Pro / Max</div>
75+
</div>
76+
77+
{/* Connection arrow */}
78+
<div className="flex items-center">
79+
<div className="w-8 h-0.5 bg-gradient-to-r from-orange-400 to-green-400"></div>
80+
<Link2 className="h-5 w-5 text-green-400 mx-1" />
81+
<div className="w-8 h-0.5 bg-gradient-to-r from-green-400 to-green-500"></div>
82+
</div>
83+
84+
{/* Codebuff card */}
85+
<div className="bg-gradient-to-br from-green-600 to-green-700 rounded-lg p-4 shadow-lg border border-green-400/30">
86+
<div className="text-white font-bold text-sm">Codebuff</div>
87+
<div className="text-white/80 text-xs mt-1">CLI</div>
88+
</div>
89+
</div>
90+
91+
{/* Benefits grid */}
92+
<div className="grid grid-cols-1 gap-3 w-full mt-4">
93+
<div className="flex items-center gap-3 bg-black/30 rounded-lg p-3 border border-white/10">
94+
<div className="p-2 rounded-full bg-green-500/20">
95+
<Zap className="h-4 w-4 text-green-400" />
96+
</div>
97+
<div className="text-left">
98+
<div className="text-sm font-medium text-white">Save on credits</div>
99+
<div className="text-xs text-white/60">Use your subscription for Claude model requests</div>
100+
</div>
101+
</div>
102+
103+
<div className="flex items-center gap-3 bg-black/30 rounded-lg p-3 border border-white/10">
104+
<div className="p-2 rounded-full bg-blue-500/20">
105+
<Terminal className="h-4 w-4 text-blue-400" />
106+
</div>
107+
<div className="text-left">
108+
<div className="text-sm font-medium text-white">Simple CLI setup</div>
109+
<div className="text-xs text-white/60">Connect with one command</div>
110+
</div>
111+
</div>
112+
</div>
113+
114+
{/* Code snippet */}
115+
<div className="w-full mt-2 bg-black/50 rounded-lg p-3 border border-white/10 font-mono text-left">
116+
<div className="text-green-400 text-xs">$ codebuff</div>
117+
<div className="text-white/70 text-xs mt-1">{'>'} /connect:claude</div>
118+
<div className="text-green-400/80 text-xs mt-1">✓ Connected to Claude subscription</div>
119+
</div>
120+
</div>
121+
</div>
122+
)
123+
}
124+
65125
function TeamPlanIllustration() {
66126
return (
67127
<div className="grid grid-cols-1 md:grid-cols-2 gap-4 sm:gap-6 w-full max-w-screen-lg mx-auto">
@@ -163,6 +223,20 @@ export default function PricingClient() {
163223
learnMoreLink={status === 'authenticated' ? '/usage' : '/login'}
164224
/>
165225

226+
<FeatureSection
227+
title={<span>Connect Your Claude Subscription</span>}
228+
description="Already have a Claude Pro or Max subscription? Connect it to Codebuff and use your existing subscription for Claude model requests. Save credits while enjoying the full power of Claude through Codebuff's intelligent orchestration."
229+
backdropColor={BlockColor.DarkForestGreen}
230+
decorativeColors={[BlockColor.CRTAmber, BlockColor.BetweenGreen]}
231+
textColor="text-white"
232+
tagline="BRING YOUR OWN SUBSCRIPTION"
233+
highlightText="Use your Claude Pro or Max subscription"
234+
illustration={<ClaudeSubscriptionIllustration />}
235+
learnMoreText="View Documentation"
236+
learnMoreLink="/docs"
237+
imagePosition="left"
238+
/>
239+
166240
<FeatureSection
167241
title={<span>Working with others</span>}
168242
description="Collaborate with your team more closely using Codebuff by pooling credits and seeing usage analytics."

0 commit comments

Comments
 (0)