Skip to content

Commit ab30a79

Browse files
sweep: Create app/Pricing.tsx
1 parent 5194d6e commit ab30a79

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

app/Pricing.tsx

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import React from 'react';
2+
3+
const Pricing = () => {
4+
const pricingOptions = [
5+
{ title: 'Basic', price: '$10', features: ['Feature 1', 'Feature 2', 'Feature 3'] },
6+
{ title: 'Premium', price: '$20', features: ['Feature 1', 'Feature 2', 'Feature 3', 'Feature 4'] },
7+
{ title: 'Pro', price: '$30', features: ['Feature 1', 'Feature 2', 'Feature 3', 'Feature 4', 'Feature 5'] },
8+
];
9+
10+
return (
11+
<div className="container mx-auto py-10">
12+
<h2 className="text-4xl font-bold text-center mb-10">Pricing</h2>
13+
<div className="flex justify-around">
14+
{pricingOptions.map((option, index) => (
15+
<PricingOption key={index} option={option} />
16+
))}
17+
</div>
18+
</div>
19+
);
20+
};
21+
22+
const PricingOption = ({ option }) => {
23+
return (
24+
<div className="border rounded-lg p-5">
25+
<h3 className="text-2xl font-bold text-center mb-5">{option.title}</h3>
26+
<p className="text-xl text-center mb-5">{option.price}</p>
27+
<ul>
28+
{option.features.map((feature, index) => (
29+
<li key={index} className="mb-2">{feature}</li>
30+
))}
31+
</ul>
32+
</div>
33+
);
34+
};
35+
36+
export default Pricing;

0 commit comments

Comments
 (0)