Skip to content

Commit d5216a2

Browse files
Stable
1 parent 97e9e54 commit d5216a2

File tree

6 files changed

+241
-241
lines changed

6 files changed

+241
-241
lines changed

.env.template

Lines changed: 0 additions & 18 deletions
This file was deleted.

app/(pages)/pricing/page.tsx

Lines changed: 17 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
"use client";
2-
31
import { AccordionComponent } from "@/components/homepage/accordion-component";
42
import Pricing from "@/components/homepage/pricing";
53
import PageWrapper from "@/components/wrapper/page-wrapper";
6-
import { motion } from "framer-motion";
4+
import { polar } from "@/lib/polar";
75
import { Check, DollarSign } from "lucide-react";
86

9-
export default function PricingPage() {
7+
export default async function PricingPage() {
108
const features = [
119
"Authentication & Authorization",
1210
"Payment Processing",
@@ -18,6 +16,10 @@ export default function PricingPage() {
1816
"API Integration",
1917
];
2018

19+
const { result } = await polar.products.list({
20+
organizationId: process.env.POLAR_ORGANIZATION_ID
21+
})
22+
2123
return (
2224
<PageWrapper>
2325
<div className="container mx-auto px-4">
@@ -29,49 +31,29 @@ export default function PricingPage() {
2931

3032
<div className="space-y-6 text-center">
3133
{/* Pill badge */}
32-
<motion.div
33-
initial={{ opacity: 0, y: -20 }}
34-
animate={{ opacity: 1, y: 0 }}
35-
transition={{ duration: 0.5 }}
36-
className="mx-auto w-fit rounded-full border border-blue-200 dark:border-blue-900 bg-blue-50 dark:bg-blue-900/30 px-4 py-1 mb-6"
37-
>
34+
<div className="mx-auto w-fit rounded-full border border-blue-200 dark:border-blue-900 bg-blue-50 dark:bg-blue-900/30 px-4 py-1 mb-6">
3835
<div className="flex items-center gap-2 text-sm font-medium text-blue-900 dark:text-blue-200">
3936
<DollarSign className="h-4 w-4" />
4037
<span>Simple, Transparent Pricing</span>
4138
</div>
42-
</motion.div>
39+
</div>
4340

4441
{/* Main heading */}
45-
<motion.h1
46-
initial={{ opacity: 0, y: 20 }}
47-
animate={{ opacity: 1, y: 0 }}
48-
transition={{ duration: 0.5, delay: 0.1 }}
49-
className="text-4xl md:text-6xl lg:text-7xl font-bold tracking-tight bg-clip-text text-transparent bg-gradient-to-r from-gray-900 via-blue-800 to-gray-900 dark:from-white dark:via-blue-300 dark:to-white animate-gradient-x pb-2"
50-
>
42+
<h1 className="text-4xl md:text-6xl lg:text-7xl font-bold tracking-tight bg-clip-text text-transparent bg-gradient-to-r from-gray-900 via-blue-800 to-gray-900 dark:from-white dark:via-blue-300 dark:to-white animate-gradient-x pb-2">
5143
Choose Your Perfect Plan
52-
</motion.h1>
44+
</h1>
5345

5446
{/* Subtitle */}
55-
<motion.p
56-
initial={{ opacity: 0, y: 20 }}
57-
animate={{ opacity: 1, y: 0 }}
58-
transition={{ duration: 0.5, delay: 0.2 }}
59-
className="text-lg md:text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto"
60-
>
47+
<p className="text-lg md:text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto">
6148
Get started with our powerful Next.js starter kit and build your
6249
next big idea faster than ever
63-
</motion.p>
50+
</p>
6451
</div>
6552
</section>
6653

6754
<section className="py-12">
6855
<div className="grid grid-cols-1 md:grid-cols-2 gap-12 items-center mb-16">
69-
<motion.div
70-
initial={{ opacity: 0, x: -20 }}
71-
animate={{ opacity: 1, x: 0 }}
72-
transition={{ duration: 0.5, delay: 0.3 }}
73-
className="space-y-4"
74-
>
56+
<div className="space-y-4">
7557
<h2 className="text-3xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-gray-900 via-blue-800 to-gray-900 dark:from-white dark:via-blue-300 dark:to-white">
7658
Everything You Need
7759
</h2>
@@ -80,13 +62,8 @@ export default function PricingPage() {
8062
need to build modern web applications. No more wasting time on
8163
repetitive setups.
8264
</p>
83-
</motion.div>
84-
<motion.div
85-
initial={{ opacity: 0, x: 20 }}
86-
animate={{ opacity: 1, x: 0 }}
87-
transition={{ duration: 0.5, delay: 0.4 }}
88-
className="grid grid-cols-1 sm:grid-cols-2 gap-4"
89-
>
65+
</div>
66+
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
9067
{features.map((feature, index) => (
9168
<div
9269
key={feature}
@@ -96,11 +73,11 @@ export default function PricingPage() {
9673
<span>{feature}</span>
9774
</div>
9875
))}
99-
</motion.div>
76+
</div>
10077
</div>
10178

10279
<div className="py-8">
103-
<Pricing />
80+
<Pricing result={result as any} />
10481
</div>
10582
</section>
10683

app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function Home() {
1313
</div>
1414
<SideBySide />
1515
<MarketingCards />
16-
<Pricing />
16+
{/* <Pricing /> */}
1717
<AccordionComponent />
1818
</PageWrapper>
1919
);

0 commit comments

Comments
 (0)