Skip to content

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 add black friday banner

Dillion Verma888ebd2edd7b
diff --git a/app/(docs)/layout.tsx b/app/(docs)/layout.tsx
index 28892095..6222e6e9 100644
--- a/app/(docs)/layout.tsx
+++ b/app/(docs)/layout.tsx
@@ -14,7 +14,7 @@ export default async function MarketingLayout({
const user = await getCurrentUser();
return (
- <div className="relative flex min-h-screen flex-col">
+ <>
<SiteHeader user={user} />
<main className="flex-1">{children}</main>
<SiteFooter />
@@ -42,6 +42,6 @@ export default async function MarketingLayout({
to="rgba(0,0,0,0.0)"
direction="bottom right"
/> */}
- </div>
+ </>
);
}
diff --git a/app/(marketing)/layout.tsx b/app/(marketing)/layout.tsx
index 97075bab..6c3eeba8 100644
--- a/app/(marketing)/layout.tsx
+++ b/app/(marketing)/layout.tsx
@@ -1,3 +1,4 @@
+import { SiteBanner } from "@/components/site-banner";
import { SiteFooter } from "@/components/site-footer";
import { SiteHeader } from "@/components/site-header";
import { getCurrentUser } from "@/lib/session";
@@ -15,6 +16,7 @@ export default async function MarketingLayout({
return (
<>
+ <SiteBanner />
{/* // <div className="relative flex min-h-screen flex-col"> */}
<SiteHeader user={user} />
<main className="flex-1">{children}</main>
diff --git a/app/(marketing)/pricing/page.tsx b/app/(marketing)/pricing/page.tsx
index 686c80e0..bd46c133 100644
--- a/app/(marketing)/pricing/page.tsx
+++ b/app/(marketing)/pricing/page.tsx
@@ -1,4 +1,6 @@
import { PriceCard } from "@/components/price-card";
+import Faq from "@/components/pricing/faq";
+import Testimonials from "@/components/pricing/testimonials";
import { plans } from "@/config/pricing";
import { absoluteUrl, constructMetadata } from "@/lib/utils";
import FadeIn from "@/registry/components/magicui/fade-in";
@@ -13,40 +15,48 @@ export const metadata = constructMetadata({
export default function Buy() {
return (
- <section className="py-14">
- <div className="mx-auto max-w-screen-xl px-4 md:px-8">
- <div className="mx-auto max-w-2xl text-center">
- <FadeIn>
- <h4 className="text-xl font-bold tracking-tight text-foreground">
- Magic UI
- </h4>
- </FadeIn>
- <FadeIn delay={0.1}>
- <h2 className="text-5xl font-bold tracking-tight text-foreground sm:text-7xl">
- Lifetime Access
- </h2>
- </FadeIn>
- <FadeIn delay={0.2}>
- <p className="mt-6 text-xl leading-8 text-foreground/80">
- Get <strong>lifetime access</strong> to all components and
- templates available today , plus any new ones we add in the future
- for a simple one-time price.
- </p>
- </FadeIn>
+ <>
+ <section id="pricing" className="py-14">
+ <div className="mx-auto max-w-screen-xl px-4 md:px-8">
+ <div className="mx-auto max-w-2xl text-center">
+ <FadeIn>
+ <h4 className="text-xl font-bold tracking-tight text-foreground">
+ Magic UI
+ </h4>
+ </FadeIn>
+ <FadeIn delay={0.1}>
+ <h2 className="text-5xl font-bold tracking-tight text-foreground sm:text-7xl">
+ Lifetime Access
+ </h2>
+ </FadeIn>
+ <FadeIn delay={0.2}>
+ <p className="mt-6 text-xl leading-8 text-foreground/80">
+ Get <strong>lifetime access</strong> to all components and
+ templates available today , plus any new ones we add in the
+ future for a simple one-time price.
+ </p>
+ </FadeIn>
+ </div>
+ <div
+ className={`absolute inset-0 -z-10 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]"
+ />
+ ))}
+ </MagicContainer>
</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]" />
- ))}
- </MagicContainer>
- </div>
- </section>
+ </section>
+ <Testimonials />
+ <Faq />
+ </>
);
}
diff --git a/components/landing/faq.tsx b/components/landing/faq.tsx
deleted file mode 100644
index 6f05ac12..00000000
--- a/components/landing/faq.tsx
+++ /dev/null
@@ -1,44 +0,0 @@
-"use client";
-
-import {
- Accordion,
- AccordionContent,
- AccordionItem,
- AccordionTrigger,
-} from "@/components/ui/accordion";
-
-const faqs = [
- {
- question: "Is it accessible?",
- answer: "Yes. It adheres to the WAI-ARIA design pattern.",
- },
- {
- question: "Is it accessiblely",
- answer: "Yes. It adheres to the WAI-ARIA design pattern.",
- },
- {
- question: "Is it accessibleata?",
- answer: "Yes. It adheres to the WAI-ARIA design pattern.",
- },
-];
-
-const Faq = () => {
- return (
- <section id="faq" className="w-full px-4 sm:px-6 lg:px-8">
- <Accordion
- type="single"
- collapsible
- className="max-w-container flex w-full flex-col items-center justify-center"
- >
- {faqs.map((faq, idx) => (
- <AccordionItem value={faq.question} className="min-w-[600px]">
- <AccordionTrigger>{faq.question}</AccordionTrigger>
- <AccordionContent>{faq.answer}</AccordionContent>
- </AccordionItem>
- ))}
- </Accordion>
- </section>
- );
-};
-
-export default Faq;
diff --git a/components/landing/testimonials.tsx b/components/landing/testimonials.tsx
index d7092d60..1795c3f7 100644
--- a/components/landing/testimonials.tsx
+++ b/components/landing/testimonials.tsx
@@ -32,7 +32,7 @@ export default async function Testimonials() {
const secondRow = tweets.slice(tweets.length / 2);
return (
- <section className="relative flex flex-col gap-4 pb-8 pt-20 md:pb-12">
+ <section id="testimonials" className="flex flex-col gap-4 pb-8 pt-20">
<Marquee className="max-w-screen [--duration:120s]" pauseOnHover>
{firstRow.map((id, idx) => (
<FadeIn delay={0.06 + idx * 0.04} key={idx}>
diff --git a/components/price-card.tsx b/components/price-card.tsx
index 8eaa9ff6..835b6e92 100644
--- a/components/price-card.tsx
+++ b/components/price-card.tsx
@@ -21,6 +21,11 @@ export const PriceCard = ({
spotlight={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"
>
+ {item.banner && (
+ <div className="absolute right-10 top-10 z-10 w-full translate-x-1/2 rotate-45 rounded-md bg-green-600 text-center font-bold">
+ {item.banner}
+ </div>
+ )}
<div className="z-10 flex h-full w-full flex-col gap-4">
<div className="flex items-center">
<div>{item.Icon}</div>
@@ -57,7 +62,7 @@ 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 Unlimited Access</p>}
+ {!hasApplePay() && <p>Get Lifetime Access</p>}
{!hasApplePay() && (
<ArrowRightIcon className="h-4 w-4 transition-all duration-300 ease-out group-hover:translate-x-1" />
)}
@@ -66,7 +71,9 @@ export const PriceCard = ({
<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">Includes:</p>
+ <p className="pb-2 font-medium text-foreground">
+ {item.featureHeader}
+ </p>
<ul className="flex flex-col gap-2 font-normal">
{item.features.map((featureItem: any, idx: any) => (
<li
diff --git a/components/pricing/faq.tsx b/components/pricing/faq.tsx
new file mode 100644
index 00000000..fdcaa0d1
--- /dev/null
+++ b/components/pricing/faq.tsx
@@ -0,0 +1,129 @@
+"use client";
+
+import {
+ Accordion,
+ AccordionContent,
+ AccordionItem,
+ AccordionTrigger,
+} from "@/components/ui/accordion";
+
+const faqs = [
+ {
+ section: "General",
+ qa: [
+ {
+ question: 'What does "lifetime access" mean?',
+ answer: (
+ <span>
+ It means you get access to all current and future components and
+ templates for a{" "}
+ <strong>
+ one-time payment. No recurring fees. No subscription.
+ </strong>
+ </span>
+ ),
+ },
+ {
+ question: 'What does "lifetime updates" mean?',
+ answer: (
+ <span>
+ It means you get access to all current components and templates,
+ plus any new ones we add in the future at{" "}
+ <strong>no additional cost.</strong>
+ </span>
+ ),
+ },
+ {
+ question: "How do I get access once I've paid?",
+ answer: (
+ <span>
+ Once you purchase through stripe, use the same email to login to the
+ website{" "}
+ <a href="https://magicui.design/login" className="underline">
+ here
+ </a>{" "}
+ and you will have access to all components and templates. Components
+ have to be copy + pasted into your project individually.
+ </span>
+ ),
+ },
+ {
+ question: "Do you offer refunds?",
+ answer: (
+ <span>
+ Due to the nature of digital products, we do not offer refunds. If
+ you have any questions, please contact us at{" "}
+ <a href="mailto:[email protected]" className="underline">
+ </a>
+ </span>
+ ),
+ },
+ ],
+ },
+ {
+ section: "Support",
+ qa: [
+ {
+ question: "Do you offer technical support?",
+ answer: (
+ <span>
+ Magic UI is a <strong>self-serve</strong> product. We do not offer
+ technical support. However, if you have a bug to report, please open
+ an issue{" "}
+ <a href="https://magicui.featurebase.app/" className="underline">
+ here
+ </a>{" "}
+ and we will fix it as soon as possible.
+ </span>
+ ),
+ },
+ ],
+ },
+];
+
+const Faq = () => {
+ return (
+ <section id="faq" className="py-14">
+ <h2 className="mb-4 text-center text-5xl font-bold tracking-tight text-foreground">
+ Frequently Asked Questions
+ </h2>
+ <h4 className="mb-8 text-center text-lg font-medium tracking-tight text-foreground/80">
+ Need help with something? Here are some of the most common questions we
+ get.
+ </h4>
+ <div className="container mx-auto my-12 max-w-[600px] space-y-12">
+ {faqs.map((faq, idx) => (
+ <section key={idx} id={"faq-" + faq.section}>
+ <h2 className="mb-4 text-left text-base font-semibold tracking-tight text-foreground/60">
+ {faq.section}
+ </h2>
+ <Accordion
+ type="single"
+ collapsible
+ className="flex w-full flex-col items-center justify-center"
+ >
+ {faq.qa.map((faq) => (
+ <AccordionItem
+ value={faq.question}
+ className="w-full max-w-[600px]"
+ >
+ <AccordionTrigger>{faq.question}</AccordionTrigger>
+ <AccordionContent>{faq.answer}</AccordionContent>
+ </AccordionItem>
+ ))}
+ </Accordion>
+ </section>
+ ))}
+ </div>
+ <h4 className="mb-12 text-center text-sm font-medium tracking-tight text-foreground/80">
+ Still have questions? Email us at{" "}
+ <a href="mailto:[email protected]" className="underline">
+ </a>
+ </h4>
+ </section>
+ );
+};
+
+export default Faq;
diff --git a/components/pricing/testimonials.tsx b/components/pricing/testimonials.tsx
new file mode 100644
index 00000000..a03ee63f
--- /dev/null
+++ b/components/pricing/testimonials.tsx
@@ -0,0 +1,71 @@
+import FadeIn from "@/registry/components/magicui/fade-in";
+import Marquee from "@/registry/components/magicui/marquee";
+import TweetCard from "@/registry/components/magicui/tweet-card";
+
+const tweets = [
+ "https://x.com/pkp_io/status/1684561895481802753",
+ "https://x.com/devcagatay/status/1684573935466328065",
+ "https://x.com/KanishkKhurana_/status/1684613797984800768",
+ "https://x.com/WhopIO/status/1722690049374830639",
+ "https://x.com/steventey/status/1722659583464968612",
+ "https://x.com/AwesomAmri/status/1668432554842619906",
+ "https://x.com/taishik_/status/1668510585926066176",
+ "https://x.com/SullyOmarr/status/1668506160620769280",
+ "https://x.com/sup_nim/status/1668525144409624578",
+ "https://x.com/JakeDuth/status/1668442365625790465",
+ "https://x.com/0xRaduan/status/1668557577985179648",
+ "https://x.com/yazinsai/status/1668617800934641672",
+
+ "https://x.com/wes_walke/status/1668612106696941570",
+ "https://x.com/DevAlien/status/1668618017528479745",
+ "https://x.com/fredmaiaarantes/status/1684676668445622272",
+ "https://x.com/DesignSumu/status/1668559314272022528",
+ "https://x.com/commandodev/status/1668640878225764354",
+ "https://x.com/SandBoxSo/status/1668570645741948930",
+ "https://x.com/sxndrao/status/1668634137547399168",
+ "https://x.com/jordienr/status/1681389309037772820",
+ "https://x.com/beneverman/status/1681477151042797568",
+].map((t) => t.split("/").slice(-1)[0]);
+
+export default async function Testimonials() {
+ const firstRow = tweets.slice(0, tweets.length / 2);
+ const secondRow = tweets.slice(tweets.length / 2);
+
+ return (
+ <section id="testimonials" className="py-14">
+ <h2 className="mb-4 text-center text-5xl font-bold tracking-tight text-foreground">
+ What People Are Saying
+ </h2>
+ <h4 className="mb-8 text-center text-lg font-medium tracking-tight text-foreground/80">
+ Don't just take our word for it. Here's what{" "}
+ <strong>real people</strong> are saying about Magic UI on Twitter.
+ </h4>
+ <div className="flex flex-col gap-4">
+ <Marquee className="max-w-screen [--duration:120s]" pauseOnHover>
+ {firstRow.map((id, idx) => (
+ <FadeIn delay={0.06 + idx * 0.04} key={idx}>
+ <TweetCard
+ id={id}
+ className="max-h-32 w-72 min-w-[18rem] bg-background"
+ />
+ </FadeIn>
+ ))}
+ </Marquee>
+ <Marquee
+ className="max-w-screen [--duration:120s]"
+ reverse
+ pauseOnHover
+ >
+ {secondRow.map((id, idx) => (
+ <FadeIn delay={0.06 + 0.04 * (secondRow.length - idx)} key={idx}>
+ <TweetCard
+ id={id}
+ className="max-h-32 w-72 min-w-[18rem] bg-background"
+ />
+ </FadeIn>
+ ))}
+ </Marquee>
+ </div>
+ </section>
+ );
+}
diff --git a/components/site-banner.tsx b/components/site-banner.tsx
new file mode 100644
index 00000000..1e61d7c2
--- /dev/null
+++ b/components/site-banner.tsx
@@ -0,0 +1,26 @@
+import Link from "next/link";
+
+export function SiteBanner() {
+ return (
+ <div className="relative top-0 bg-background py-3 md:py-0">
+ <div className="container flex flex-col items-center justify-center gap-4 md:h-12 md:flex-row">
+ <Link
+ href="/pricing"
+ className="text-center text-sm leading-loose text-muted-foreground"
+ >
+ ✨<span className="font-bold text-white"> Black Friday Sale - </span>{" "}
+ Get{" "}
+ <span className="font-bold text-white">
+ 50% off Friday November 24th ONLY
+ </span>{" "}
+ with code{" "}
+ <span className="rounded-md bg-green-600 p-1 font-bold text-white">
+ ONEDAYSPECIAL
+ </span>{" "}
+ ✨
+ </Link>
+ </div>
+ <hr className="absolute bottom-0 m-0 h-px w-full bg-neutral-200/30" />
+ </div>
+ );
+}
diff --git a/config/pricing.tsx b/config/pricing.tsx
index 29ac8cd2..5bacd5c3 100644
--- a/config/pricing.tsx
+++ b/config/pricing.tsx
@@ -5,18 +5,23 @@ export const plans = [
{
Icon: <User2Icon className="flex h-10 w-10 rounded-full stroke-white/40" />,
name: "Personal",
- sub: "For individual projects.",
+ sub: "For individual developers and freelancers.",
desc: "Beautifully crafted React + Tailwind CSS + Framer Motion components and templates for your next web project.",
discountPrice: 79,
price: 149,
- isMostPop: false,
+ isMostPop: true,
+ banner: "50% OFF",
href: env.NEXT_PUBLIC_STRIPE_PAYMENT_LINK,
+ featureHeader: "What's included:",
features: [
"100+ components (coming soon)",
"50+ building blocks (coming soon)",
"5+ full templates (coming soon)",
- "Lifetime Access",
- "Lifetime Updates",
+ "Dark mode support",
+ "Lifetime access",
+ "Free lifetime updates",
+ "Use on unlimited projects",
+ "Single developer license",
],
},
{
@@ -24,14 +29,14 @@ export const plans = [
<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.",
+ sub: "For product teams, agencies and startups.",
+ desc: "Beautifully crafted React + Tailwind CSS + Framer Motion components and templates for your next web project.",
discountPrice: 349,
price: 999,
isMostPop: false,
+ banner: "65% OFF",
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.",
- ],
+ featureHeader: "Everything in Personal, plus:",
+ features: ["10 developer licenses"],
},
];
diff --git a/registry/components/example/retro-grid-demo.tsx b/registry/components/example/retro-grid-demo.tsx
index 449d2fa6..de5b9525 100644
--- a/registry/components/example/retro-grid-demo.tsx
+++ b/registry/components/example/retro-grid-demo.tsx
@@ -2,7 +2,7 @@
import RetroGrid from "@/registry/components/magicui/retro-grid";
-const RippleDemo = () => {
+const RetroGridDemo = () => {
return (
<div className="relative flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 shadow-2xl">
<span className="pointer-events-none z-10 whitespace-pre-wrap bg-gradient-to-b from-[#ffd319] via-[#ff2975] to-[#8c1eff] bg-clip-text text-center text-7xl font-bold leading-none tracking-tighter text-transparent">
@@ -14,4 +14,4 @@ const RippleDemo = () => {
);
};
-export default RippleDemo;
+export default RetroGridDemo;