Skip to content

Commit

Permalink
Add Pricing Element & FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
dev129 committed Nov 1, 2024
1 parent 63366a7 commit 5da8295
Show file tree
Hide file tree
Showing 4 changed files with 160 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { BackgroundBeams } from "@/components/ui/background-beams";
import PublicHeader from "@/components/public-header";
import PublicFooter from "@/components/public-footer";
import FaqPage from "@/components/ui/faq";

import Pricing from "@/components/ui/pricing";
const words = [
{
text: "AI-Powered",
Expand Down Expand Up @@ -278,6 +278,7 @@ export default function LandingPage() {
</section>
</main>
<FaqPage/>
<Pricing/>
<PublicFooter />
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion components/ui/faq.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ const FaqPage: React.FC = () => {
};

return (
<div className={`min-h-screen bg-[#06090F] text-gray-900`}>
<div className={`min-h-screen bg-[#080C14] text-gray-900`}>
<header className="w-full"></header>

<section className="w-full py-12 px-4 mt-16">
Expand Down
131 changes: 131 additions & 0 deletions components/ui/pricing.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
'use client';
import Link from 'next/link';
import React from 'react';
import { Check } from 'lucide-react';

const Pricing = () => {
const planDetails = [
{
name: 'Free',
basePrice: 0,
backgroundColor: 'bg-gray-900',
borderColor: 'border-gray-700',
features: [
'2 prompts daily',
'7 day refund',
'24/7 Customer support',
'All widget access'
]
},
{
name: 'Content Creator',
basePrice: 20,
backgroundColor: 'bg-gray-800',
borderColor: 'border-indigo-600',
isMostPopular: true,
features: [
'Instagram Post Generator',
'Instagram Hashtag Generator',
'Instagram Post Idea',
'Youtube SEO suggestion',
'and many more'
]
},
{
name: 'Career Pack',
basePrice: 18,
backgroundColor: 'bg-gray-900',
borderColor: 'border-gray-700',
features: [
'LinkedIn Post Generator',
'Resume Tailoring Tool',
'Cover Letter Design',
'Cold Mail Generator',

]
}
];

return (
<section className="py-16 bg-[#0B101B] text-white">
<div className="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<div className="mb-12 text-center">
<h2 className="text-4xl md:text-5xl font-bold mb-4 text-white">
Choose Your Perfect Plan
</h2>
<p className="text-gray-400 text-lg">
Start with a 7-day free trial. No credit card required.
</p>
</div>

<div className="grid md:grid-cols-3 gap-6">
{planDetails.map((plan, index) => (
<div
key={index}
className={`
${plan.backgroundColor}
${plan.borderColor}
border-2
rounded-2xl
p-6
flex
flex-col
transform
hover:scale-[1.02]
transition-transform
duration-300
${plan.isMostPopular ? 'ring-2 ring-indigo-600' : ''}
`}
>
{plan.isMostPopular && (
<div className="bg-indigo-600 text-white text-center py-2 rounded-t-xl -mx-6 -mt-6 mb-4">
MOST POPULAR
</div>
)}

<h3 className="text-2xl font-bold mb-4">{plan.name}</h3>

<div className="text-5xl font-bold mb-6">
${plan.basePrice}
<span className="text-base text-gray-400 block">per month</span>
</div>

<ul className="space-y-4 mb-8 flex-grow">
{plan.features.map((feature, featureIndex) => (
<li key={featureIndex} className="flex items-center">
<Check className="text-indigo-500 mr-3 w-5 h-5" />
<span className="text-gray-300">{feature}</span>
</li>
))}
</ul>

<Link
href="#"
className="
w-full
text-center
py-3
bg-indigo-600
hover:bg-indigo-700
rounded-lg
font-semibold
transition-colors
"
>
Buy Now!
</Link>
</div>
))}
</div>

<div className="text-center mt-12">
<p className="text-gray-400 text-lg">
Need more options? <Link href="#" className="text-indigo-400 hover:underline">See More Plans</Link>
</p>
</div>
</div>
</section>
);
}

export default Pricing;
26 changes: 26 additions & 0 deletions components/ui/test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import React from 'react';

type Item = [string, number, string[]]; // Define the type

const arr: Item = ["Product Title", 29.99, ["Feature 1", "Feature 2"]];

const ArrayRenderComponent: React.FC = () => {
return (
<div>
{/* Display Title */}
<h1>{arr[0]}</h1>

{/* Display Price */}
<p>Price: ${arr[1]}</p>

{/* Display Features */}
<ul>
{arr[2].map((feature, index) => (
<li key={index}>{feature}</li>
))}
</ul>
</div>
);
};

export default ArrayRenderComponent;

0 comments on commit 5da8295

Please sign in to comment.