|
1 |
| -import { PricingPlan } from "./pricing-plan"; |
| 1 | +"use client"; |
2 | 2 |
|
3 |
| -export default function Pricing() { |
| 3 | +import React from "react"; |
| 4 | +import { CallToAction } from "./cta"; |
| 5 | +import { FAQ } from "./faq"; |
| 6 | +import { PricingComparaison } from "./pricing-comparaison"; |
| 7 | +import type { Plan } from "./types"; |
| 8 | + |
| 9 | +const headline = "Simple pricing"; |
| 10 | +const subheadline = "Use rCopy for free. Upgrade to enable to access premium templates."; |
| 11 | +const pricingPlans: Plan[] = [ |
| 12 | + { |
| 13 | + name: "Free", |
| 14 | + description: "Use rCopy for free", |
| 15 | + featured: false, |
| 16 | + price: { |
| 17 | + monthly: "$0", |
| 18 | + yearly: "$0", |
| 19 | + }, |
| 20 | + features: [ |
| 21 | + "Free hosting on 'turbocharger.cc'", |
| 22 | + "Optimized SEO", |
| 23 | + "Has 'Built with Turbocharger' branding", |
| 24 | + ], |
| 25 | + cta: { |
| 26 | + label: "Get started", |
| 27 | + href: "#", |
| 28 | + }, |
| 29 | + }, |
| 30 | + { |
| 31 | + name: "Pro", |
| 32 | + featured: true, |
| 33 | + price: { monthly: "$19", yearly: "$190" }, |
| 34 | + description: "Perfect for small / medium sized businesses.", |
| 35 | + features: [ |
| 36 | + "Everything in Free.", |
| 37 | + "Basic analytics", |
| 38 | + "Remove 'Built with Turbocharger' branding", |
| 39 | + ], |
| 40 | + cta: { |
| 41 | + label: "Get started", |
| 42 | + href: "#", |
| 43 | + }, |
| 44 | + }, |
| 45 | + { |
| 46 | + name: "Entreprise", |
| 47 | + price: { monthly: "$39", yearly: "$390" }, |
| 48 | + description: "For even the biggest enterprise companies.", |
| 49 | + featured: false, |
| 50 | + features: ["Everything in Personal site.", "Advanced analytics", "Priority support"], |
| 51 | + cta: { |
| 52 | + label: "Get started", |
| 53 | + href: "#", |
| 54 | + }, |
| 55 | + }, |
| 56 | +]; |
| 57 | +const questions = [ |
| 58 | + { |
| 59 | + question: "How does turbocharger works?", |
| 60 | + answer: |
| 61 | + "Turbocharger is a monorepo starter that comes with Next.js, Tailwind CSS, Shadcn-ui, Server components, and more. It's a great way to start your next project.", |
| 62 | + }, |
| 63 | + { |
| 64 | + question: "How do I create a website with turbocharger?", |
| 65 | + answer: "You can create a website with turbocharger by following the documentation.", |
| 66 | + }, |
| 67 | + { |
| 68 | + question: "How much does turbocharger cost?", |
| 69 | + answer: "It's free to use turbocharger", |
| 70 | + }, |
| 71 | + { |
| 72 | + question: "Can I use turbocharger for free?", |
| 73 | + answer: "Yes, you can use turbocharger for free.", |
| 74 | + }, |
| 75 | +]; |
| 76 | +const cta = { |
| 77 | + headline: "Get started today", |
| 78 | + subheadline: "Start creating your own react project today.", |
| 79 | + cta: { |
| 80 | + label: "Get started", |
| 81 | + href: "#", |
| 82 | + }, |
| 83 | +}; |
| 84 | + |
| 85 | +export default function PricingPage() { |
4 | 86 | return (
|
5 |
| - <div className="min-h-screen"> |
6 |
| - <h1>Pricing</h1> |
7 |
| - <p> |
8 |
| - This is a simple example of a Next.js app with a custom routing solution that uses |
9 |
| - the file system to define routes. |
10 |
| - </p> |
11 |
| - <PricingPlan /> |
| 87 | + <div className="container py-24"> |
| 88 | + <h2 className="text-center font-display text-5xl font-bold tracking-tight"> |
| 89 | + {headline} |
| 90 | + </h2> |
| 91 | + <p className="mt-2 text-center text-lg text-muted-foreground">{subheadline}</p> |
| 92 | + <PricingComparaison plans={pricingPlans} className="mt-8" /> |
| 93 | + <FAQ questions={questions} className="mt-32" /> |
| 94 | + <CallToAction |
| 95 | + headline={cta.headline} |
| 96 | + subheadline={cta.subheadline} |
| 97 | + cta={cta.cta} |
| 98 | + className="mt-32" |
| 99 | + /> |
12 | 100 | </div>
|
13 | 101 | );
|
14 | 102 | }
|
0 commit comments