UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
🐛 fix: update pricing page and skeleton
Dillion Verma930f44e56524
diff --git a/app/(marketing)/pricing/page.tsx b/app/(marketing)/pricing/page.tsxindex a143d2d7..686c80e0 100644--- a/app/(marketing)/pricing/page.tsx+++ b/app/(marketing)/pricing/page.tsx@@ -34,6 +34,13 @@ export default function Buy() {</p></FadeIn></div>+ <div+ className={`absolute inset-0 z-0 m-auto h-full max-h-[800px] w-full max-w-[800px] rounded-full opacity-20 blur-[150px]`}+ style={{+ background:+ "linear-gradient(180deg, #9E7AFF 0%,#FE8BBB 33.33%,#FFBD7A 66.67%,#F8EAC3 100%)",+ }}+ ></div><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="h-fit max-w-[400px]" />diff --git a/components/landing/faq.tsx b/components/landing/faq.tsxindex 1b01e637..6f05ac12 100644--- a/components/landing/faq.tsx+++ b/components/landing/faq.tsx@@ -1,3 +1,5 @@+"use client";+import {Accordion,AccordionContent,diff --git a/components/main-nav.tsx b/components/main-nav.tsxindex 7b02fd95..f64d29e0 100644--- a/components/main-nav.tsx+++ b/components/main-nav.tsx@@ -15,12 +15,12 @@ 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 lg:inline-block">+ <span className="hidden font-bold md:inline-block">{siteConfig.name}</span><Badge variant="secondary">Beta</Badge></Link>- <nav className="flex items-center space-x-6 text-sm font-medium">+ <nav className="hidden items-center space-x-6 text-sm font-medium xl:flex">{docsConfig.mainNav.map((item) => (<Linkkey={item.href}diff --git a/components/price-card.tsx b/components/price-card.tsxindex a318b9e4..8eaa9ff6 100644--- a/components/price-card.tsx+++ b/components/price-card.tsx@@ -3,9 +3,9 @@import { Icons } from "@/components/icons";import { buttonVariants } from "@/components/ui/button";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 { ArrowRightIcon, CheckIcon } from "@radix-ui/react-icons";import Link from "next/link";export const PriceCard = ({@@ -16,7 +16,7 @@ export const PriceCard = ({className?: string;}) => {return (- <FadeIn delay={0.3} className={className}>+ <FadeIn delay={0.3} className={cn("relative", 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 text-black dark:text-white"@@ -42,6 +42,9 @@ export const PriceCard = ({one-time payment</span> */}+ <p className="text-sm font-normal tracking-tight text-foreground">+ {item.desc}+ </p><Linkhref={item.href}target="_blank"@@ -54,32 +57,23 @@ export const PriceCard = ({<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>}+ {!hasApplePay() && <p>Get Unlimited Access</p>}+ {!hasApplePay() && (+ <ArrowRightIcon className="h-4 w-4 transition-all duration-300 ease-out group-hover:translate-x-1" />+ )}</Link>- <p className="text-base font-medium tracking-tight text-foreground">- {item.desc}- </p>++ <hr className="m-0 h-px w-full border-none bg-gradient-to-r from-neutral-200/0 via-neutral-200/30 to-neutral-200/0" />{item.features.length > 0 && (<div>- <p className="pb-2 font-medium text-foreground">Features</p>+ <p className="pb-2 font-medium text-foreground">Includes:</p><ul className="flex flex-col gap-2 font-normal">{item.features.map((featureItem: any, idx: any) => (<likey={idx}- className="flex items-center gap-2 text-sm text-foreground"+ className="flex items-center gap-3 text-sm font-semibold 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>+ <CheckIcon className="h-5 w-5 text-green-400" />{featureItem}</li>))}@@ -91,7 +85,7 @@ export const PriceCard = ({{/* <Meteors /> */}{/* <div className="absolute inset-[1px] rounded-2xl bg-[radial-gradient(164.75%_100%_at_50%_0%,#334155_0%,#0F172A_48.73%)]" /> */}- <DotPattern+ {/* <DotPatternwidth={20}height={20}x={-10}@@ -103,7 +97,7 @@ export const PriceCard = ({"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)]",)}- />+ /> */}</MagicCard></FadeIn>);diff --git a/registry/components/magicui/magic-card.tsx b/registry/components/magicui/magic-card.tsxindex e5cb377b..a1b0eb9d 100644--- a/registry/components/magicui/magic-card.tsx+++ b/registry/components/magicui/magic-card.tsx@@ -225,7 +225,7 @@ const MagicCard: React.FC<MagicCardProps> = ({{/* Background */}<divclassName={- "absolute inset-[1px] -z-20 rounded-2xl bg-white dark:bg-background"+ "absolute inset-[1px] -z-20 rounded-2xl bg-white dark:bg-background/95"}/></div>