Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 108x 108x 108x 108x 108x 108x 108x 108x 27x 27x 27x 27x 108x 108x 108x 108x 108x 108x 108x 108x 108x 108x 108x 108x 108x 1080x 1080x 1080x 1080x 108x 108x 108x 28x 28x 7x 7x 7x 7x 7x 7x 21x 3x 3x 18x 14x 4x 4x 28x 108x 108x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x | 'use client';
import { Check, Shield } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
import { PricingCheckout } from '@/components/pricing/PricingCheckout';
import { PublicHeader } from '@/components/layout/PublicHeader';
import { PublicFooter } from '@/components/layout/PublicFooter';
interface PricingContentProps {
isLoggedIn: boolean;
currentTier: string;
}
type PlanTier = 'free' | 'basic' | 'pro' | 'premium';
interface Plan {
tier: PlanTier;
price: number;
featureKeys: string[];
popular: boolean;
}
const planFeatures: Record<string, string> = {
workSamples1: '1 Work Sample',
workSamples5: '5 Work Samples',
workSamples15: '15 Work Samples',
unlimitedWorkSamples: 'Unlimited Work Samples',
packages1: '1 Service Package',
packages3: '3 Service Packages',
packages10: '10 Service Packages',
unlimitedPackages: 'Unlimited Packages',
experience1: '1 Work Experience',
experience3: '3 Work Experiences',
experience10: '10 Work Experiences',
unlimitedExperience: 'Unlimited Experiences',
testimonialRequests10: '10 Testimonial Requests',
testimonialRequests30: '30 Testimonial Requests',
unlimitedTestimonialRequests: 'Unlimited Testimonial Requests',
basicProfile: 'Basic Profile',
identityCode: 'ProofID Identity Code',
whatsappButton: 'WhatsApp Contact Button',
testimonials3: '3 Testimonials',
testimonials10: '10 Testimonials',
unlimitedTestimonials: 'Unlimited Testimonials',
basicAnalytics: 'Basic Analytics',
advancedAnalytics: 'Advanced Analytics',
growthInsights: 'Growth & Trend Insights',
visitorRetention: 'Visitor Retention & Peak Hours',
fullAnalytics: 'Full Analytics Suite',
conversionFunnel: 'Conversion Funnel Analytics',
contentPerformance: 'Content Performance Tracking',
emailSupport: 'Email Support',
prioritySupport: 'Priority Support',
customUrl: 'Custom Profile URL',
removeBranding: 'Remove ProofID Branding',
seoOptimization: 'SEO Optimization',
verifiedBadge: 'Verified Badge',
featuredDirectory: 'Featured in Directory',
apiAccess: 'API & Developer Tools',
referrals: 'Referral System',
connections: 'Professional Connections',
};
const planNames: Record<PlanTier, string> = {
free: 'Free',
basic: 'Basic',
pro: 'Pro',
premium: 'Premium',
};
const planDescriptions: Record<PlanTier, string> = {
free: 'Get started with your proof-of-work identity',
basic: 'Perfect for freelancers starting out',
pro: 'For professionals who want to stand out',
premium: 'For established professionals and agencies',
};
const planCtas: Record<PlanTier, string> = {
free: 'Current Plan',
basic: 'Upgrade to Basic',
pro: 'Upgrade to Pro',
premium: 'Upgrade to Premium',
};
const plans: Plan[] = [
{
tier: 'free',
price: 0,
featureKeys: [
'workSamples1',
'packages1',
'experience1',
'basicProfile',
'identityCode',
'whatsappButton',
'referrals',
'connections',
],
popular: false,
},
{
tier: 'basic',
price: 299,
featureKeys: [
'workSamples5',
'testimonials3',
'packages3',
'experience3',
'testimonialRequests10',
'basicAnalytics',
'whatsappButton',
'emailSupport',
],
popular: false,
},
{
tier: 'pro',
price: 499,
featureKeys: [
'workSamples15',
'testimonials10',
'packages10',
'experience10',
'testimonialRequests30',
'advancedAnalytics',
'growthInsights',
'visitorRetention',
'customUrl',
'removeBranding',
'seoOptimization',
'prioritySupport',
],
popular: true,
},
{
tier: 'premium',
price: 999,
featureKeys: [
'unlimitedWorkSamples',
'unlimitedTestimonials',
'unlimitedPackages',
'unlimitedExperience',
'unlimitedTestimonialRequests',
'fullAnalytics',
'conversionFunnel',
'contentPerformance',
'verifiedBadge',
'featuredDirectory',
'apiAccess',
'prioritySupport',
],
popular: false,
},
];
const tierOrder: Record<PlanTier, number> = { free: 0, basic: 1, pro: 2, premium: 3 };
export function PricingContent({ isLoggedIn, currentTier }: PricingContentProps) {
return (
<div className="min-h-screen bg-background">
<PublicHeader isLoggedIn={isLoggedIn} />
<main className="container py-16">
{/* Hero */}
<div className="mx-auto max-w-3xl text-center">
<h1 className="mb-4 text-4xl font-bold tracking-tight sm:text-5xl">
Simple, transparent pricing
</h1>
<p className="text-lg text-muted-foreground">
Choose the plan that fits your needs. All plans include your unique ProofID identity
code. Upgrade or downgrade anytime.
</p>
</div>
{/* Pricing Cards */}
<div className="mt-16 grid gap-8 md:grid-cols-2 lg:grid-cols-4">
{plans.map((plan) => {
const isCurrentPlan = currentTier === plan.tier;
const canUpgrade = tierOrder[plan.tier] > tierOrder[currentTier as PlanTier];
const planName = planNames[plan.tier];
return (
<Card
key={plan.tier}
className={`relative flex flex-col ${plan.popular ? 'border-primary shadow-lg' : ''}`}
>
{plan.popular && (
<div className="absolute -top-3 left-1/2 -translate-x-1/2">
<span className="rounded-full bg-primary px-3 py-1 text-xs font-medium text-primary-foreground">
Most Popular
</span>
</div>
)}
<CardHeader>
<CardTitle>{planName}</CardTitle>
<CardDescription>{planDescriptions[plan.tier]}</CardDescription>
<div className="mt-4">
<span className="text-4xl font-bold">
{plan.price === 0 ? 'Free' : `\u20B9${plan.price}`}
</span>
{plan.price > 0 && <span className="text-muted-foreground">/year</span>}
</div>
</CardHeader>
<CardContent className="flex flex-1 flex-col">
<ul className="mb-8 flex-1 space-y-3">
{plan.featureKeys.map((featureKey) => (
<li key={featureKey} className="flex items-start gap-2">
<Check className="mt-0.5 h-4 w-4 shrink-0 text-primary" />
<span className="text-sm">{planFeatures[featureKey]}</span>
</li>
))}
</ul>
{isLoggedIn && (
<>
{plan.tier === 'free' ? (
<Button
variant={isCurrentPlan ? 'secondary' : 'outline'}
className="w-full"
disabled={isCurrentPlan}
>
{isCurrentPlan ? 'Current Plan' : 'Free Forever'}
</Button>
) : isCurrentPlan ? (
<Button variant="secondary" className="w-full" disabled>
Current Plan
</Button>
) : canUpgrade ? (
<PricingCheckout tier={plan.tier} planName={planName} />
) : (
<Button variant="outline" className="w-full" disabled>
Included in your plan
</Button>
)}
</>
)}
</CardContent>
</Card>
);
})}
</div>
{/* Trust Score Discount Callout */}
<div className="mx-auto mt-12 max-w-2xl">
<Card className="border-primary/30 bg-primary/5">
<CardContent className="flex items-center gap-4 p-6">
<div className="flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-primary/10">
<Shield className="h-6 w-6 text-primary" />
</div>
<div>
<h3 className="font-semibold">Earn 50% Off with Trust Score</h3>
<p className="mt-1 text-sm text-muted-foreground">
Reach 80% Trust Score by verifying your identity, adding work samples, and
collecting testimonials. When eligible, 50% off is automatically applied at
checkout.
</p>
</div>
</CardContent>
</Card>
</div>
{/* FAQ */}
<div className="mx-auto mt-24 max-w-3xl">
<h2 className="mb-8 text-center text-2xl font-bold">Frequently Asked Questions</h2>
<div className="space-y-6">
<div>
<h3 className="mb-2 font-semibold">Can I upgrade or downgrade anytime?</h3>
<p className="text-muted-foreground">
Yes! You can upgrade your plan anytime. When you upgrade, you'll only pay the
difference for the remaining period.
</p>
</div>
<div>
<h3 className="mb-2 font-semibold">What payment methods do you accept?</h3>
<p className="text-muted-foreground">
We accept all major payment methods including UPI, credit/debit cards, net banking,
and wallets through Razorpay.
</p>
</div>
<div>
<h3 className="mb-2 font-semibold">Is my payment secure?</h3>
<p className="text-muted-foreground">
All payments are processed securely through Razorpay, India's leading payment
gateway. We never store your card details.
</p>
</div>
<div>
<h3 className="mb-2 font-semibold">What happens when my subscription expires?</h3>
<p className="text-muted-foreground">
Your profile remains active, but you'll be downgraded to the free plan.
You'll keep your identity code and basic profile features.
</p>
</div>
<div>
<h3 className="mb-2 font-semibold">How does the Trust Score discount work?</h3>
<p className="text-muted-foreground">
When your Trust Score reaches 80% or above, you automatically get 50% off your next
subscription upgrade. The discount is applied at checkout based on your current
score.
</p>
</div>
</div>
</div>
</main>
<PublicFooter />
</div>
);
}
|