mirror of
https://github.com/hex248/sprint.git
synced 2026-02-07 18:23:03 +00:00
Changed pricing section on Landing to simple /plans link
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
import { useState } from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { LoginModal } from "@/components/login-modal";
|
||||
import { PricingCard, pricingTiers } from "@/components/pricing-card";
|
||||
import { useSession } from "@/components/session-provider";
|
||||
import ThemeToggle from "@/components/theme-toggle";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import Icon from "@/components/ui/icon";
|
||||
import { Switch } from "@/components/ui/switch";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const faqs = [
|
||||
{
|
||||
@@ -32,7 +29,6 @@ const faqs = [
|
||||
|
||||
export default function Landing() {
|
||||
const { user, isLoading } = useSession();
|
||||
const [billingPeriod, setBillingPeriod] = useState<"monthly" | "annual">("annual");
|
||||
const [loginModalOpen, setLoginModalOpen] = useState(false);
|
||||
|
||||
return (
|
||||
@@ -221,99 +217,29 @@ export default function Landing() {
|
||||
</div>
|
||||
|
||||
{/* pricing section */}
|
||||
<div
|
||||
id="pricing"
|
||||
className="max-w-5xl mx-auto space-y-16 flex flex-col items-center border-t pt-24 scroll-mt-4"
|
||||
>
|
||||
<div id="pricing" className="max-w-5xl mx-auto space-y-12 scroll-mt-4 border-t pt-24">
|
||||
<div className="text-center space-y-6">
|
||||
<h2 className="text-5xl font-basteleur font-700">Simple, transparent pricing</h2>
|
||||
<p className="text-xl text-muted-foreground max-w-2xl mx-auto">
|
||||
Choose the plan that fits your team. Scale as you grow.
|
||||
</p>
|
||||
|
||||
{/* billing toggle */}
|
||||
<div className="flex items-center justify-center gap-4 pt-4">
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setBillingPeriod("monthly")}
|
||||
className={cn(
|
||||
"text-lg transition-colors",
|
||||
billingPeriod === "monthly" ? "text-foreground font-700" : "text-muted-foreground",
|
||||
)}
|
||||
>
|
||||
monthly
|
||||
</button>
|
||||
<Switch
|
||||
size="lg"
|
||||
checked={billingPeriod === "annual"}
|
||||
onCheckedChange={(checked) => setBillingPeriod(checked ? "annual" : "monthly")}
|
||||
className="bg-border data-[state=checked]:bg-border! data-[state=unchecked]:bg-border!"
|
||||
thumbClassName="bg-personality dark:bg-personality data-[state=checked]:bg-personality! data-[state=unchecked]:bg-personality!"
|
||||
aria-label="toggle billing period"
|
||||
/>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setBillingPeriod("annual")}
|
||||
className={cn(
|
||||
"text-lg transition-colors",
|
||||
billingPeriod === "annual" ? "text-foreground font-700" : "text-muted-foreground",
|
||||
)}
|
||||
>
|
||||
annual
|
||||
</button>
|
||||
<span className="text-sm px-3 py-1 bg-personality/10 text-personality rounded-full font-600">
|
||||
Save 17%
|
||||
</span>
|
||||
</div>
|
||||
<Button asChild variant="outline" size="lg" className="text-lg px-8 py-6">
|
||||
<Link to="/plans">View plans</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-8 w-full max-w-4xl">
|
||||
{pricingTiers.map((tier) => (
|
||||
<PricingCard
|
||||
key={tier.name}
|
||||
tier={tier}
|
||||
billingPeriod={billingPeriod}
|
||||
onCtaClick={() => setLoginModalOpen(true)}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
|
||||
{/* trust signals */}
|
||||
<div className="grid md:grid-cols-3 gap-8 w-full border-t pt-16 pb-8">
|
||||
<div className="flex flex-col items-center text-center gap-2">
|
||||
<Icon icon="eyeClosed" iconStyle={"pixel"} className="size-8" color="var(--personality)" />
|
||||
<p className="font-700">Secure & Encrypted</p>
|
||||
<p className="text-sm text-muted-foreground">Your data is safe with us</p>
|
||||
</div>
|
||||
<div className="flex flex-col items-center text-center gap-2">
|
||||
<Icon
|
||||
icon="creditCardDelete"
|
||||
iconStyle={"pixel"}
|
||||
className="size-8"
|
||||
color="var(--personality)"
|
||||
/>
|
||||
<p className="font-700">Free Starter Plan</p>
|
||||
<p className="text-sm text-muted-foreground">Get started instantly</p>
|
||||
</div>
|
||||
<div className="flex flex-col items-center text-center gap-2">
|
||||
<Icon icon="rotateCcw" iconStyle={"pixel"} className="size-8" color="var(--personality)" />
|
||||
<p className="font-700">Money Back Guarantee</p>
|
||||
<p className="text-sm text-muted-foreground">30-day no-risk policy</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* faq section */}
|
||||
<div className="w-full max-w-5xl flex justify-center border-t pt-24 scroll-mt-4" id="faq">
|
||||
<div className="w-full max-w-4xl flex flex-col items-center space-y-12">
|
||||
<h2 className="text-5xl font-basteleur font-700 text-center">Frequently Asked Questions</h2>
|
||||
<div className="grid gap-8 max-w-3xl">
|
||||
{faqs.map((faq) => (
|
||||
<div key={faq.question} className="space-y-2">
|
||||
<h4 className="text-lg font-700">{faq.question}</h4>
|
||||
<p className="text-muted-foreground">{faq.answer}</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
{/* faq section */}
|
||||
<div id="faq" className="w-full max-w-5xl flex justify-center scroll-mt-4 border-t pt-24">
|
||||
<div className="w-full max-w-4xl flex flex-col items-center space-y-12">
|
||||
<h2 className="text-5xl font-basteleur font-700 text-center">Frequently Asked Questions</h2>
|
||||
<div className="grid gap-8 max-w-3xl">
|
||||
{faqs.map((faq) => (
|
||||
<div key={faq.question} className="space-y-2">
|
||||
<h4 className="text-lg font-700">{faq.question}</h4>
|
||||
<p className="text-muted-foreground">{faq.answer}</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user