UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
π fix: update pricing page, add team pricing
Dillion Verma3bd3bfcbfae4
diff --git a/app/(marketing)/pricing/page.tsx b/app/(marketing)/pricing/page.tsxindex 1183792a..a143d2d7 100644--- a/app/(marketing)/pricing/page.tsx+++ b/app/(marketing)/pricing/page.tsx@@ -27,16 +27,16 @@ export default function Buy() {</h2></FadeIn><FadeIn delay={0.2}>- <p className="mt-6 text-xl leading-8 text-foreground/60">+ <p className="mt-6 text-xl leading-8 text-foreground/80">Get <strong>lifetime access</strong> to all components andtemplates available today , plus any new ones we add in the futurefor a simple one-time price.</p></FadeIn></div>- <MagicContainer className="mx-auto mt-16 grid w-full grid-cols-1 place-items-center gap-8">+ <MagicContainer className="mx-auto mt-16 grid w-full max-w-screen-md justify-center gap-8 lg:grid-cols-2">{plans.map((item, idx) => (- <PriceCard key={idx} item={item} className="max-w-[400px]" />+ <PriceCard key={idx} item={item} className="h-fit max-w-[400px]" />))}</MagicContainer></div>diff --git a/app/layout.tsx b/app/layout.tsxindex 025be7d2..1b18bee4 100644--- a/app/layout.tsx+++ b/app/layout.tsx@@ -25,7 +25,7 @@ export default function RootLayout({<head /><bodyclassName={cn(- "relative flex min-h-screen w-full flex-col justify-center scroll-smooth bg-background font-sans antialiased",+ "relative flex min-h-screen w-full flex-col justify-center scroll-smooth bg-background antialiased",fontSans.className,)}>diff --git a/components/landing/hero.tsx b/components/landing/hero.tsxindex 6c1ffc80..5ecf5cb9 100644--- a/components/landing/hero.tsx+++ b/components/landing/hero.tsx@@ -66,13 +66,27 @@ export default function Hero() {<div className="flex flex-col gap-4 md:flex-row"><Linkhref="/pricing"- className={cn(buttonVariants({ size: "lg" }))}+ className={cn(+ buttonVariants({+ size: "lg",+ }),+ "hidden gap-2 whitespace-pre md:flex",+ "group relative w-full gap-1 overflow-hidden rounded-sm text-sm font-semibold tracking-tighter",+ "transform-gpu rounded-sm ring-offset-current transition-all duration-300 ease-out hover:ring-2 hover:ring-primary hover:ring-offset-2",+ )}>Buy Now</Link><Linkhref="/components"- className={cn(buttonVariants({ variant: "outline", size: "lg" }))}+ className={cn(+ buttonVariants({+ variant: "outline",+ size: "lg",+ }),+ "hidden gap-2 whitespace-pre md:flex",+ "group relative w-full gap-1 overflow-hidden rounded-sm text-sm font-semibold tracking-tighter",+ )}>Get Started</Link>diff --git a/components/main-nav.tsx b/components/main-nav.tsxindex fad6fbdb..5069c58b 100644--- a/components/main-nav.tsx+++ b/components/main-nav.tsx@@ -15,7 +15,7 @@ export function MainNav() {<div className="mr-4 hidden md:flex"><Link href="/" className="mr-6 flex items-center space-x-2"><Icons.logo className="h-6 w-6" />- <span className="hidden font-bold sm:inline-block">+ <span className="hidden font-bold lg:inline-block">{siteConfig.name}</span><Badge variant="secondary">Beta</Badge>diff --git a/components/preorder.tsx b/components/preorder.tsxindex cd177e35..da5fec24 100644--- a/components/preorder.tsx+++ b/components/preorder.tsx@@ -17,9 +17,9 @@ export default function PreOrder() {}return (- <MagicContainer className="not-prose max-w-[400px]">+ <MagicContainer className="not-prose mt-8 grid w-full max-w-screen-md justify-center gap-8 lg:grid-cols-2">{plans.map((item, idx) => (- <PriceCard key={idx} item={item} />+ <PriceCard key={idx} item={item} className="h-fit" />))}</MagicContainer>);diff --git a/components/price-card.tsx b/components/price-card.tsxindex 4940354a..a318b9e4 100644--- a/components/price-card.tsx+++ b/components/price-card.tsx@@ -2,41 +2,12 @@import { Icons } from "@/components/icons";import { buttonVariants } from "@/components/ui/button";-import { env } from "@/env.mjs";import { cn, hasApplePay } from "@/lib/utils";import DotPattern from "@/registry/components/magicui/dot-pattern";import FadeIn from "@/registry/components/magicui/fade-in";import { MagicCard } from "@/registry/components/magicui/magic-card";-import Meteors from "@/registry/components/magicui/meteors";import Link from "next/link";-const RegularButton = () => (- <Link- href={env.NEXT_PUBLIC_STRIPE_PAYMENT_LINK}- target="_blank"- className={cn(- buttonVariants({ variant: "default", size: "lg" }),- "w-full gap-1 text-lg",- )}- >- Get Lifetime Access- </Link>-);--const ApplePayButton = () => (- <Link- href={env.NEXT_PUBLIC_STRIPE_PAYMENT_LINK}- target="_blank"- className={cn(- buttonVariants({ variant: "default", size: "lg" }),- "w-full gap-1 text-xl",- )}- >- <Icons.apple className="ml-2 h-5 w-5" />- <p>Pay</p>- </Link>-);-export const PriceCard = ({item,className,@@ -48,54 +19,78 @@ export const PriceCard = ({<FadeIn delay={0.3} className={className}><MagicCardspotlight={false}- className="relative flex flex-col gap-8 overflow-hidden bg-[radial-gradient(var(--mask-size)_circle_at_var(--mouse-x)_var(--mouse-y),#ffaa40_0,#9c40ff_50%,transparent_100%)] p-8"+ className="relative flex flex-col gap-8 overflow-hidden bg-[radial-gradient(var(--mask-size)_circle_at_var(--mouse-x)_var(--mouse-y),#ffaa40_0,#9c40ff_50%,transparent_100%)] p-8 text-black dark:text-white">- <div className="z-10 flex flex-col space-y-4">- <span className="font-medium text-foreground">{item.name}</span>+ <div className="z-10 flex h-full w-full flex-col gap-4">+ <div className="flex items-center">+ <div>{item.Icon}</div>+ <div className="ml-4">+ <h2 className="text-base font-semibold leading-7">{item.name}</h2>+ <p className="text-sm leading-5 text-foreground/70">{item.sub}</p>+ </div>+ </div>+<div className="flex flex-row gap-2">- <span className="text-7xl font-semibold text-foreground">+ <span className="text-7xl font-bold text-foreground">${item.discountPrice}</span>- <span className="text-4xl font-normal text-gray-700 line-through">+ <span className="text-4xl font-bold text-gray-600 line-through dark:text-gray-400">${item.price}</span></div>- {/* <span className="text-xl text-foreground/20 font-semibold">+ {/* <span className="text-xl font-semibold text-foreground/20">one-time payment</span> */}- <p className="text-foreground">{item.desc}</p>- {!hasApplePay() && <RegularButton />}- {hasApplePay() && <ApplePayButton />}++ <Link+ href={item.href}+ target="_blank"+ className={cn(+ buttonVariants({ variant: "default", size: "lg" }),+ "group relative w-full gap-1 overflow-hidden rounded-sm text-lg font-semibold tracking-tighter",+ "transform-gpu rounded-sm ring-offset-current transition-all duration-300 ease-out hover:ring-2 hover:ring-primary hover:ring-offset-2",+ )}+ >+ <span className="absolute right-0 -mt-12 h-32 w-8 translate-x-12 rotate-12 transform-gpu bg-white opacity-10 transition-all duration-1000 ease-out group-hover:-translate-x-96 dark:bg-black" />+ {hasApplePay() && <Icons.apple className="ml-2 h-5 w-5" />}+ {hasApplePay() && <p>Pay</p>}+ {!hasApplePay() && <p>Get Lifetime Access</p>}+ </Link>+ <p className="text-base font-medium tracking-tight text-foreground">+ {item.desc}+ </p>+ {item.features.length > 0 && (+ <div>+ <p className="pb-2 font-medium text-foreground">Features</p>+ <ul className="flex flex-col gap-2 font-normal">+ {item.features.map((featureItem: any, idx: any) => (+ <li+ key={idx}+ className="flex items-center gap-2 text-sm text-foreground"+ >+ <svg+ xmlns="http://www.w3.org/2000/svg"+ className="h-5 w-5 text-foreground"+ viewBox="0 0 20 20"+ fill="currentColor"+ >+ <path+ fillRule="evenodd"+ d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"+ clipRule="evenodd"+ ></path>+ </svg>+ {featureItem}+ </li>+ ))}+ </ul>+ </div>+ )}</div>- {item.features.length > 0 && (- <ul className="z-10 space-y-3">- <li className="pb-2 font-medium text-foreground">- <p>Features</p>- </li>- {item.features.map((featureItem: any, idx: any) => (- <li- key={idx}- className="flex items-center gap-5 text-sm text-foreground"- >- <svg- xmlns="http://www.w3.org/2000/svg"- className="h-5 w-5 text-foreground"- viewBox="0 0 20 20"- fill="currentColor"- >- <path- fillRule="evenodd"- d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"- clipRule="evenodd"- ></path>- </svg>- {featureItem}- </li>- ))}- </ul>- )}- <Meteors />+ {/* <Meteors /> */}+ {/* <div className="absolute inset-[1px] rounded-2xl bg-[radial-gradient(164.75%_100%_at_50%_0%,#334155_0%,#0F172A_48.73%)]" /> */}+<DotPatternwidth={20}height={20}@@ -105,7 +100,7 @@ export const PriceCard = ({cy={1}cr={1}className={cn(- "absolute inset-0 h-full w-full fill-white/20",+ "absolute inset-0 h-full w-full fill-black/[0.2] dark:fill-white/[0.2]","[mask-image:linear-gradient(to_top_left,white,transparent,transparent)]",)}/>diff --git a/components/site-header.tsx b/components/site-header.tsxindex b2fffb2d..27a13a8c 100644--- a/components/site-header.tsx+++ b/components/site-header.tsx@@ -85,9 +85,12 @@ export function SiteHeader({ user }: SiteHeaderProps) {</Link><LinkclassName={cn(- buttonVariants(),+ buttonVariants({+ size: "sm",+ }),"hidden gap-2 whitespace-pre md:flex",- "group relative w-full max-w-fit justify-center gap-2 overflow-hidden rounded-sm transition-all duration-300 ease-out hover:ring-2 hover:ring-primary hover:ring-offset-2",+ "group relative w-full gap-1 overflow-hidden rounded-sm text-sm font-semibold tracking-tighter",+ "transform-gpu rounded-sm ring-offset-current transition-all duration-300 ease-out hover:ring-2 hover:ring-primary hover:ring-offset-2",)}href={env.NEXT_PUBLIC_STRIPE_PAYMENT_LINK}>diff --git a/config/pricing.ts b/config/pricing.tsdeleted file mode 100644index 2c523ea2..00000000--- a/config/pricing.ts+++ /dev/null@@ -1,26 +0,0 @@-export const plans = [- {- name: "Magic UI Personal",- desc: "Beautifully crafted React + Tailwind CSS + Framer Motion components and templates for your next web project.",- discountPrice: 79,- price: 149,- isMostPop: false,- features: [- "100+ components (coming soon)",- "50+ building blocks (coming soon)",- "5+ full templates (coming soon)",- "Lifetime Access",- "Lifetime Updates",- ],- },- // {- // name: "Magic UI Team",- // desc: "Get access for your entire team - up to 25 people to accommodate even the largest teams at your company.",- // discountPrice: 499,- // price: 2499,- // isMostPop: false,- // features: [- // // "Get access for your entire team β team licenses include access for up to 25 people to accommodate even the largest teams at your company.",- // ],- // },-];diff --git a/config/pricing.tsx b/config/pricing.tsxnew file mode 100644index 00000000..29ac8cd2--- /dev/null+++ b/config/pricing.tsx@@ -0,0 +1,37 @@+import { env } from "@/env.mjs";+import { User2Icon, Users2Icon } from "lucide-react";++export const plans = [+ {+ Icon: <User2Icon className="flex h-10 w-10 rounded-full stroke-white/40" />,+ name: "Personal",+ sub: "For individual projects.",+ desc: "Beautifully crafted React + Tailwind CSS + Framer Motion components and templates for your next web project.",+ discountPrice: 79,+ price: 149,+ isMostPop: false,+ href: env.NEXT_PUBLIC_STRIPE_PAYMENT_LINK,+ features: [+ "100+ components (coming soon)",+ "50+ building blocks (coming soon)",+ "5+ full templates (coming soon)",+ "Lifetime Access",+ "Lifetime Updates",+ ],+ },+ {+ Icon: (+ <Users2Icon className="flex h-10 w-10 rounded-full stroke-white/40" />+ ),+ name: "Teams",+ sub: "For product teams and agencies.",+ desc: "Get access for your entire team - up to 25 people to accommodate even the largest teams at your company.",+ discountPrice: 349,+ price: 999,+ isMostPop: false,+ href: "https://buy.stripe.com/bIY4jr87G8zQ4JW003?prefilled_promo_code=EARLYBIRDPROMO",+ features: [+ // "Get access for your entire team β team licenses include access for up to 25 people to accommodate even the largest teams at your company.",+ ],+ },+];