Check out our affordable pricing plans
Plus
For personal use
$19Billed $228 anually
Pro
For professionals
$49Billed $588 anually
Everything in Plus, and:
'use client';
import { ArrowRight, CircleCheck } from 'lucide-react';
import { useState } from 'react';
import { Button } from '@/components/ui/button';
import {
Card,
CardContent,
CardFooter,
CardHeader,
CardTitle,
} from '@/components/ui/card';
import { Separator } from '@/components/ui/separator';
import { Switch } from '@/components/ui/switch';
const Pricing2 = () => {
const [isYearly, setIsYearly] = useState(false);
return (
<section className="py-32">
<div className="container">
<div className="mx-auto flex max-w-5xl flex-col items-center gap-6 text-center">
<h2 className="text-pretty text-4xl font-bold lg:text-6xl">
Pricing
</h2>
<p className="text-muted-foreground lg:text-xl">
Check out our affordable pricing plans
</p>
<div className="flex items-center gap-3 text-lg">
Monthly
<Switch
onCheckedChange={() => setIsYearly(!isYearly)}
checked={isYearly}
/>
Yearly
</div>
<div className="flex flex-col items-stretch gap-6 md:flex-row">
<Card className="flex w-80 flex-col justify-between text-left">
<CardHeader>
<CardTitle>
<p>Plus</p>
</CardTitle>
<p className="text-sm text-muted-foreground">
For personal use
</p>
<span className="text-4xl font-bold">
{isYearly ? '$15' : '$19'}
</span>
<p className="text-muted-foreground">
Billed {isYearly ? '$180' : '$228'} anually
</p>
</CardHeader>
<CardContent>
<Separator className="mb-6" />
<ul className="space-y-4">
<li className="flex items-center gap-2">
<CircleCheck className="size-4" />
<span>Lorem ipsum dolor sit.</span>
</li>
<li className="flex items-center gap-2">
<CircleCheck className="size-4" />
<span>Lorem ipsum dolor sit.</span>
</li>
<li className="flex items-center gap-2">
<CircleCheck className="size-4" />
<span>Lorem ipsum dolor sit.</span>
</li>
<li className="flex items-center gap-2">
<CircleCheck className="size-4" />
<span>Lorem ipsum dolor sit.</span>
</li>
</ul>
</CardContent>
<CardFooter className="mt-auto">
<Button className="w-full">
Get Started
<ArrowRight className="ml-2 size-4" />
</Button>
</CardFooter>
</Card>
<Card className="flex w-80 flex-col justify-between text-left">
<CardHeader>
<CardTitle>
<p>Pro</p>
</CardTitle>
<p className="text-sm text-muted-foreground">
For professionals
</p>
<span className="text-4xl font-bold">
{isYearly ? '$35' : '$49'}
</span>
<p className="text-muted-foreground">
Billed {isYearly ? '$420' : '$588'} anually
</p>
</CardHeader>
<CardContent>
<Separator className="mb-6" />
<p className="mb-3 text-lg font-semibold">
Everything in Plus, and:
</p>
<ul className="space-y-4">
<li className="flex items-center gap-2">
<CircleCheck className="size-4" />
<span>Lorem ipsum dolor sit.</span>
</li>
<li className="flex items-center gap-2">
<CircleCheck className="size-4" />
<span>Lorem ipsum dolor sit.</span>
</li>
<li className="flex items-center gap-2">
<CircleCheck className="size-4" />
<span>Lorem ipsum dolor sit.</span>
</li>
<li className="flex items-center gap-2">
<CircleCheck className="size-4" />
<span>Lorem ipsum dolor sit.</span>
</li>
</ul>
</CardContent>
<CardFooter className="mt-auto">
<Button className="w-full">
Get Started
<ArrowRight className="ml-2 size-4" />
</Button>
</CardFooter>
</Card>
</div>
</div>
</div>
</section>
);
};
export default Pricing2;