@@ -4,18 +4,34 @@ import Link from "next/link";
44import { ROUTES } from "../../data/routes.data" ;
55import background from "../../public/images/hero/pricing.jpg" ;
66
7- export default function PricingSection ( { unit_amount = 500 , addons = [ ] } ) {
7+ interface Addon {
8+ price : number ;
9+ name : string ;
10+ }
11+
12+ interface PricingSectionProps {
13+ unit_amount ?: number ;
14+ addons ?: Addon [ ] ;
15+ }
16+
17+ export default function PricingSection ( {
18+ unit_amount = 200 ,
19+ addons = [ ] ,
20+ } : PricingSectionProps ) {
21+ const priceInDollars = unit_amount / 100 ;
822 const features = [
9- "Custom domain + SSL" ,
1023 "Email notifications (add-on)" ,
11- "Post Scheduling" ,
12- "Audience Analytics" ,
13- "SEO Friendly" ,
14- "Embeddable Widget" ,
15- "Zapier Integration" ,
16- "White labeling" ,
17- "AI Assistant" ,
18- "Email & Slack Support" ,
24+ "Public roadmap with community voting" ,
25+ "Post scheduling, reactions & pinned posts" ,
26+ "Team collaboration & member invites" ,
27+ "Custom domain + SSL" ,
28+ "GitHub Changelog Agent" ,
29+ "Markdown editor with image uploads" ,
30+ "Audience analytics" ,
31+ "JSON API & RSS feed" ,
32+ "React SDK & embeddable widget" ,
33+ "Zapier & GitHub integration" ,
34+ "SEO friendly" ,
1935 ] ;
2036
2137 return (
@@ -36,7 +52,7 @@ export default function PricingSection({ unit_amount = 500, addons = [] }) {
3652 Simple Pricing
3753 </ h2 >
3854 < p className = "mt-2 text-4xl font-bold tracking-tight text-white hero" >
39- Everything you need for just ${ Number ( unit_amount ) / 100 || "5" } { " " }
55+ Everything you need for just ${ priceInDollars }
4056 </ p >
4157 </ div >
4258 </ div >
@@ -77,11 +93,11 @@ export default function PricingSection({ unit_amount = 500, addons = [] }) {
7793 </ p >
7894 </ div >
7995 < div className = "-mt-2 p-2 lg:mt-0 lg:w-full lg:max-w-md lg:flex-shrink-0" >
80- < div className = "rounded-2xl bg-gray-950 py-6 text-center ring-1 ring-inset ring-gray-900/5 lg:flex lg:flex-col lg:justify-center lg:py-16 " >
96+ < div className = "rounded-2xl bg-gray-950 py-6 text-center ring-1 ring-inset ring-gray-900/5 lg:flex lg:flex-col lg:justify-center lg:py-20 " >
8197 < div className = "mx-auto max-w-xs px-8" >
8298 < div className = "mt-6 flex items-baseline justify-center gap-x-2" >
8399 < p className = "hero mt-4 flex items-baseline text-5xl font-bold tracking-tight text-gray-100" >
84- ${ Number ( unit_amount / 100 ) }
100+ ${ priceInDollars }
85101 < span className = "text-lg font-semibold leading-8 tracking-normal text-gray-400" >
86102 /page /mo
87103 </ span >
@@ -116,6 +132,9 @@ export default function PricingSection({ unit_amount = 500, addons = [] }) {
116132 >
117133 Start free trial
118134 </ Link >
135+ < p className = "text-xs mt-2 text-gray-400" >
136+ 14-days free trial
137+ </ p >
119138 </ div >
120139 </ div >
121140 </ div >
0 commit comments