Skip to content

Commit 30d3216

Browse files
committed
Add more detail to subscription page
1 parent d7f211b commit 30d3216

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

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

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
import { env } from '@codebuff/common/env'
1010
import { loadStripe } from '@stripe/stripe-js'
1111
import { motion } from 'framer-motion'
12-
import { Gift, Shield, Loader2 } from 'lucide-react'
12+
import { Gift, Shield, Loader2, HelpCircle } from 'lucide-react'
1313
import { usePathname, useRouter } from 'next/navigation'
1414
import { useSession } from 'next-auth/react'
1515
import { useState } from 'react'
@@ -20,6 +20,12 @@ import { Section } from '@/components/ui/section'
2020
import { SECTION_THEMES } from '@/components/ui/landing/constants'
2121
import { FeatureSection } from '@/components/ui/landing/feature'
2222
import { toast } from '@/components/ui/use-toast'
23+
import {
24+
Tooltip,
25+
TooltipContent,
26+
TooltipProvider,
27+
TooltipTrigger,
28+
} from '@/components/ui/tooltip'
2329
import { cn } from '@/lib/utils'
2430

2531
import type { SubscriptionResponse } from '@codebuff/common/types/subscription'
@@ -325,7 +331,7 @@ export function StrongHeroSection({ compact }: { compact?: boolean }) {
325331
</motion.div>
326332

327333
{/* Foreground content */}
328-
<div className="codebuff-container min-h-dvh flex flex-col items-center justify-center relative z-10 py-8">
334+
<div className="codebuff-container min-h-dvh flex flex-col items-center justify-center relative z-10 pb-12">
329335
<div className="flex flex-col items-center text-center max-w-4xl w-full space-y-12">
330336
<motion.h1
331337
className="text-4xl sm:text-5xl md:text-5xl font-bold text-white tracking-tight"
@@ -342,7 +348,22 @@ export function StrongHeroSection({ compact }: { compact?: boolean }) {
342348
animate={{ opacity: 1, y: 0 }}
343349
transition={{ duration: 0.5, delay: 0.9 }}
344350
>
345-
Subscribe for higher usage limits
351+
Subscribe to use all modes with higher usage limits
352+
<TooltipProvider delayDuration={200}>
353+
<Tooltip>
354+
<TooltipTrigger asChild>
355+
<span tabIndex={0} className="inline-flex items-center ml-1.5 cursor-help align-middle">
356+
<HelpCircle className="h-4 w-4 text-white/40 hover:text-white/70 transition-colors" />
357+
</span>
358+
</TooltipTrigger>
359+
<TooltipContent
360+
side="bottom"
361+
className="bg-black/90 border-white/10 text-white/80 text-sm max-w-xs"
362+
>
363+
Includes 5-hour sessions with weekly limits
364+
</TooltipContent>
365+
</Tooltip>
366+
</TooltipProvider>
346367
</motion.p>
347368

348369
{/* Pricing cards grid with decorative blocks */}

0 commit comments

Comments
 (0)