| 1 | /** biome-ignore-all lint/correctness/useUniqueElementIds: anchor ids for in-page nav */ |
| 2 | |
| 3 | 'use client' |
| 4 | import { ArrowDown, ArrowRight |
| 5 | import Link from 'next/link |
| 6 | import { GitHub } |
| 7 | import { SaturnLogo } |
| 8 | import { buttonVariants } |
| 9 | import { |
| 10 | comparison, |
| 11 | faq, |
| 12 | freePlanFeatures, |
| 13 | howItWorks, |
| 14 | modules, |
| 15 | proPlanFeatures, |
| 16 | } from './_landing/data' |
| 17 | import { LandingNav } |
| 18 | import { MockAppUI } |
| 19 | import { MockExpenseCard } |
| 20 | import { MockInvoiceCard } |
| 21 | import { MockProposalCard } |
| 22 | import { MockRequirementCard } |
| 23 | import { MockTimer } |
| 24 | import { MockTimesheetCard } |
| 25 | |
| 26 | export default function LandingPageClient |
| 27 | githubStars, |
| 28 | }: { |
| 29 | githubStars: number |
| 30 | }) { |
| 31 | return ( |
| 32 | <div className='min-h-svh w-full bg-background text-foreground |
| 33 | <LandingNav githubStars={ |
| 34 | |
| 35 | <section className='relative overflow-hidden border-border/60 border-b |
| 36 | <div className='relative mx-auto max-w-6xl px-6 pt-24 pb-10 sm:pt-32 |
| 37 | <div className='max-w-3xl |
| 38 | <div className='mb-6 inline-flex items-center gap-2 font-mono text-[11px] text-muted-foreground uppercase tracking-[0.18em] |
| 39 | <span className='h-px w-6 bg-muted-foreground/40 |
| 40 | Saturn — for freelancers, agencies & solo builders |
| 41 | </div> |
| 42 | <h1 className='font-semibold text-5xl text-foreground leading-[0.98] tracking-[-0.04em] sm:text-6xl |
| 43 | Run your projects |
| 44 | <br /> |
| 45 | <span className='text-muted-foreground/80 italic |
| 46 | from one tab. |
| 47 | </span> |
| 48 | </h1> |
| 49 | <p className='mt-8 max-w-xl text-muted-foreground text-xl leading-relaxed |
| 50 | Projects, proposals, time, timesheets, expenses, and invoices — |
| 51 | one login instead of seven subscriptions. |
| 52 | </p> |
| 53 | <div className='mt-10 flex items-center gap-3 |
| 54 | <Link |
| 55 | className={buttonVariants({ |
| 56 | href='/auth/sign-up' |
| 57 | > |
| 58 | Start for free |
| 59 | <ArrowRight className=' |
| 60 | </Link> |
| 61 | <Link |
| 62 | className='inline-flex items-center gap-1.5 text-foreground/80 text-sm hover:text-foreground' |
| 63 | href='#features' |
| 64 | > |
| 65 | Features |
| 66 | <ArrowDown className=' |
| 67 | </Link> |
| 68 | </div> |
| 69 | |
| 70 | <div className='mt-12 flex flex-wrap items-center gap-x-2 gap-y-2 font-mono text-[11px] text-muted-foreground uppercase tracking-[0.14em] |
| 71 | {[ |
| 72 | 'Projects', |
| 73 | 'Clients', |
| 74 | 'Team', |
| 75 | 'Proposals', |
| 76 | 'Time', |
| 77 | 'Timesheets', |
| 78 | 'Expenses', |
| 79 | 'Invoices', |
| 80 | ].map((chip |
| 81 | <span className='flex items-center gap-2 |
| 82 | {i > 0 |
| 83 | <span className='h-1 w-1 rounded-full bg-muted-foreground/40 |
| 84 | )} |
| 85 | {chip} |
| 86 | </span> |
| 87 | ))} |
| 88 | </div> |
| 89 | </div> |
| 90 | </div> |
| 91 | |
| 92 | <div className='relative mx-auto max-w-6xl px-6 pb-0 |
| 93 | <div className='relative |
| 94 | <div |
| 95 | aria-hidden |
| 96 | className='pointer-events-none absolute top-10 left-1/2 -z-10 h-64 w-[90%] -translate-x-1/2 rounded-full bg-primary/20 blur-3xl' |
| 97 | /> |
| 98 | <MockAppUI /> |
| 99 | <div |
| 100 | aria-hidden |
| 101 | className='pointer-events-none absolute inset-x-0 bottom-0 h-32 bg-gradient-to-b from-transparent to-background' |
| 102 | /> |
| 103 | </div> |
| 104 | </div> |
| 105 | </section> |
| 106 | |
| 107 | <section className='border-border/60 border-b |
| 108 | <div className='mx-auto max-w-6xl px-6 py-20 sm:py-24 |
| 109 | <div className='mb-12 max-w-2xl |
| 110 | <div className='font-mono text-[11px] text-muted-foreground uppercase tracking-[0.18em] |
| 111 | / everything inside |
| 112 | </div> |
| 113 | <h2 className='mt-3 font-semibold text-4xl leading-[1.02] tracking-[-0.03em] sm:text-5xl |
| 114 | Eight modules.{' '} |
| 115 | <span className='text-muted-foreground/70 |
| 116 | </h2> |
| 117 | </div> |
| 118 | <div className='grid grid-cols-1 gap-x-8 gap-y-6 sm:grid-cols-2 lg:grid-cols-4 |
| 119 | {modules.map(( |
| 120 | <div |
| 121 | className='flex flex-col gap-2 border-border/60 border-t pt-5' |
| 122 | key={m.name |
| 123 | > |
| 124 | <m.icon className=' |
| 125 | <div className='mt-1 font-medium text-base text-foreground tracking-tight |
| 126 | {m.name} |
| 127 | </div> |
| 128 | <p className='text-base text-muted-foreground leading-relaxed |
| 129 | {m.blurb} |
| 130 | </p> |
| 131 | </div> |
| 132 | ))} |
| 133 | </div> |
| 134 | </div> |
| 135 | </section> |
| 136 | |
| 137 | <section |
| 138 | className='mx-auto max-w-6xl px-6 pt-24 pb-24 sm:pt-32' |
| 139 | id='features' |
| 140 | > |
| 141 | <div className='mb-20 max-w-3xl |
| 142 | <div className='font-mono text-[11px] text-muted-foreground uppercase tracking-[0.18em] |
| 143 | / a closer look |
| 144 | </div> |
| 145 | <h2 className='mt-3 font-semibold text-4xl text-foreground leading-[1.02] tracking-[-0.03em] sm:text-5xl |
| 146 | A tab each for the work |
| 147 | <br /> |
| 148 | <span className='text-muted-foreground/70 italic |
| 149 | you used to do in seven. |
| 150 | </span> |
| 151 | </h2> |
| 152 | </div> |
| 153 | |
| 154 | <div className='flex flex-col |
| 155 | <FeatureRow |
| 156 | description='Draft proposals inside Saturn, send them to clients, and collect signatures without a separate DocuSign tab. Status updates land in the project, not your inbox.' |
| 157 | label='01 — Proposals' |
| 158 | title='Write it. Send it.' |
| 159 | titleAccent='Get it signed.' |
| 160 | > |
| 161 | <MockProposalCard /> |
| 162 | </FeatureRow> |
| 163 | |
| 164 | <FeatureRow |
| 165 | description='Time tracked inside the platform, auto-attached to the right project. No separate Toggl tab to forget about.' |
| 166 | label='02 — Time tracking' |
| 167 | reverse |
| 168 | title='Press record.' |
| 169 | titleAccent='Stop when done.' |
| 170 | > |
| 171 | <MockTimer /> |
| 172 | </FeatureRow> |
| 173 | |
| 174 | <FeatureRow |
| 175 | description='Lock scope with clients. Capture feedback inline, track change requests, and keep the brief in one place — not buried in email threads.' |
| 176 | label='03 — Requirements' |
| 177 | title='Scope locked.' |
| 178 | titleAccent='Changes tracked.' |
| 179 | > |
| 180 | <MockRequirementCard /> |
| 181 | </FeatureRow> |
| 182 | |
| 183 | <FeatureRow |
| 184 | description='Log weekly or let the timer do it. Export reports when clients ask. Hours flow into invoices in one click.' |
| 185 | label='04 — Timesheets' |
| 186 | reverse |
| 187 | title='Hours that become' |
| 188 | titleAccent='invoice lines.' |
| 189 | > |
| 190 | <MockTimesheetCard /> |
| 191 | </FeatureRow> |
| 192 | |
| 193 | <FeatureRow |
| 194 | description='Log what you spent, tag it billable, and attach it to the next invoice. Receipts, software, lunches — all in one place.' |
| 195 | label='05 — Expenses' |
| 196 | title='Expenses that' |
| 197 | titleAccent='bill themselves.' |
| 198 | > |
| 199 | <MockExpenseCard /> |
| 200 | </FeatureRow> |
| 201 | |
| 202 | <FeatureRow |
| 203 | description='Lines pull from timesheets and expenses. Export PDF. Track paid status. The last step that finally feels like the first.' |
| 204 | label='06 — Invoices' |
| 205 | reverse |
| 206 | title='One click from' |
| 207 | titleAccent='hours to paid.' |
| 208 | > |
| 209 | <MockInvoiceCard /> |
| 210 | </FeatureRow> |
| 211 | </div> |
| 212 | </section> |
| 213 | |
| 214 | <section className='border-border/60 border-t |
| 215 | <div className='mx-auto max-w-6xl px-6 py-24 sm:py-28 |
| 216 | <div className='grid grid-cols-1 items-center gap-12 lg:grid-cols-2 |
| 217 | <div className='max-w-xl |
| 218 | <div className='font-mono text-[11px] text-muted-foreground uppercase tracking-[0.18em] |
| 219 | / clients optional |
| 220 | </div> |
| 221 | <h2 className='mt-3 font-semibold text-4xl leading-[1.02] tracking-[-0.03em] sm:text-5xl |
| 222 | Working solo?{' '} |
| 223 | <span className='text-muted-foreground/70 italic |
| 224 | Toggle clients off. |
| 225 | </span> |
| 226 | </h2> |
| 227 | <p className='mt-6 text-muted-foreground text-xl leading-relaxed |
| 228 | Saturn works just as well for personal projects as it does for |
| 229 | client work. Decide per workspace which modules involve clients |
| 230 | — or turn them off entirely and keep the projects, time |
| 231 | tracking, and invoices for yourself. |
| 232 | </p> |
| 233 | </div> |
| 234 | <div className='rounded-2xl border border-border/60 bg-card p-6 sm:p-8 |
| 235 | <div className='mb-4 flex items-center justify-between font-mono text-[11px] text-muted-foreground uppercase tracking-[0.14em] |
| 236 | <span>Client involvement</span> |
| 237 | <span>Per project/workspace</span> |
| 238 | </div> |
| 239 | <div className='divide-y divide-border/60 |
| 240 | {[ |
| 241 | ['Proposals', true], |
| 242 | ['Requirements', true], |
| 243 | ['Milestones', false], |
| 244 | ['Timesheets', true], |
| 245 | ['Expenses', false], |
| 246 | ['Invoices', true], |
| 247 | ].map(([label |
| 248 | <div |
| 249 | className='flex items-center justify-between py-3' |
| 250 | key={label as |
| 251 | > |
| 252 | <span className='font-medium text-base text-foreground |
| 253 | {label} |
| 254 | </span> |
| 255 | <span |
| 256 | className={`rounded-full px-2.5 py-0.5 font-mono text-[10px] uppercase tracking-wider ${ |
| 257 | on |
| 258 | ? 'bg-primary/10 text-primary' |
| 259 | : 'bg-muted/60 text-muted-foreground' |
| 260 | }`} |
| 261 | > |
| 262 | {on ? 'on |
| 263 | </span> |
| 264 | </div> |
| 265 | ))} |
| 266 | </div> |
| 267 | </div> |
| 268 | </div> |
| 269 | </div> |
| 270 | </section> |
| 271 | |
| 272 | <section className='border-border/60 border-y bg-secondary/20 |
| 273 | <div className='mx-auto max-w-6xl px-6 py-24 sm:py-28 |
| 274 | <div className='mb-14 max-w-2xl |
| 275 | <div className='font-mono text-[11px] text-muted-foreground uppercase tracking-[0.18em] |
| 276 | / how it works |
| 277 | </div> |
| 278 | <h2 className='mt-3 font-semibold text-4xl leading-[1.02] tracking-[-0.03em] sm:text-5xl |
| 279 | Three steps,{' '} |
| 280 | <span className='text-muted-foreground/70 italic |
| 281 | start to paid. |
| 282 | </span> |
| 283 | </h2> |
| 284 | </div> |
| 285 | <div className='grid grid-cols-1 gap-3 md:grid-cols-3 |
| 286 | {howItWorks.map(( |
| 287 | <div |
| 288 | className='flex flex-col rounded-2xl border border-border/60 bg-card p-6' |
| 289 | key={s.step |
| 290 | > |
| 291 | <div className='flex items-center gap-3 |
| 292 | <div className='flex size-9 items-center justify-center rounded-full border border-border/60 bg-background |
| 293 | <s.icon |
| 294 | className='size-4 text-primary' |
| 295 | strokeWidth={1.75} |
| 296 | /> |
| 297 | </div> |
| 298 | <span className='font-mono text-[11px] text-muted-foreground uppercase tracking-[0.18em] |
| 299 | Step {s.step} |
| 300 | </span> |
| 301 | </div> |
| 302 | <h3 className='mt-5 font-semibold text-2xl text-foreground tracking-[-0.02em] |
| 303 | {s.title} |
| 304 | </h3> |
| 305 | <p className='mt-2 text-base text-muted-foreground leading-relaxed |
| 306 | {s.body} |
| 307 | </p> |
| 308 | <ul className='mt-5 space-y-2 |
| 309 | {s.highlights.map |
| 310 | <li |
| 311 | className='flex items-center gap-2 text-foreground/80 text-sm' |
| 312 | key={h} |
| 313 | > |
| 314 | <Check className=' |
| 315 | {h} |
| 316 | </li> |
| 317 | ))} |
| 318 | </ul> |
| 319 | </div> |
| 320 | ))} |
| 321 | </div> |
| 322 | </div> |
| 323 | </section> |
| 324 | |
| 325 | <section className='mx-auto max-w-5xl px-6 py-24 sm:py-28 |
| 326 | <div className='mb-12 max-w-2xl |
| 327 | <div className='font-mono text-[11px] text-muted-foreground uppercase tracking-[0.18em] |
| 328 | / vs. the stack |
| 329 | </div> |
| 330 | <h2 className='mt-3 font-semibold text-4xl leading-[1.02] tracking-[-0.03em] sm:text-5xl |
| 331 | Seven tools,{' '} |
| 332 | <span className='text-muted-foreground/70 italic |
| 333 | or just this one. |
| 334 | </span> |
| 335 | </h2> |
| 336 | </div> |
| 337 | <div className='overflow-hidden rounded-2xl border border-border/60 |
| 338 | <div className='grid grid-cols-[1.2fr_1fr_1fr] items-center bg-muted/30 px-5 py-3 font-mono text-[11px] text-muted-foreground uppercase tracking-[0.14em] |
| 339 | <span>What you need</span> |
| 340 | <span className='flex items-center gap-1.5 |
| 341 | <Minus className=' |
| 342 | Stitching it together |
| 343 | </span> |
| 344 | <span className='flex items-center gap-1.5 text-primary |
| 345 | <SaturnLogo className=' |
| 346 | Saturn |
| 347 | </span> |
| 348 | </div> |
| 349 | {comparison.map(( |
| 350 | <div |
| 351 | className={`grid grid-cols-[1.2fr_1fr_1fr] items-center px-5 py-4 text-base ${ |
| 352 | i === comparison. |
| 353 | }`} |
| 354 | key={row.need |
| 355 | > |
| 356 | <span className='font-medium text-foreground |
| 357 | <span className='text-muted-foreground |
| 358 | <span className='flex items-center gap-1.5 text-foreground |
| 359 | <Check className=' |
| 360 | {row.saturn} |
| 361 | </span> |
| 362 | </div> |
| 363 | ))} |
| 364 | </div> |
| 365 | </section> |
| 366 | |
| 367 | <section |
| 368 | className='relative border-border/60 border-y bg-secondary/20' |
| 369 | id='pricing' |
| 370 | > |
| 371 | <div className='mx-auto max-w-5xl px-6 py-24 sm:py-28 |
| 372 | <div className='mb-14 max-w-xl |
| 373 | <div className='font-mono text-[11px] text-muted-foreground uppercase tracking-[0.18em] |
| 374 | / pricing |
| 375 | </div> |
| 376 | <h2 className='mt-3 font-semibold text-4xl leading-[1.02] tracking-[-0.03em] sm:text-5xl |
| 377 | Three dollars, no seats. |
| 378 | </h2> |
| 379 | <p className='mt-4 text-muted-foreground text-xl |
| 380 | Every feature works on Free. Pro removes the limits. |
| 381 | </p> |
| 382 | </div> |
| 383 | <div className='grid gap-3 sm:grid-cols-2 |
| 384 | <PricingCard |
| 385 | cta='Get started' |
| 386 | ctaVariant='outline' |
| 387 | description='Enough to run a small practice.' |
| 388 | features={freePlanFeatures} |
| 389 | name='Free' |
| 390 | price='$0' |
| 391 | suffix='forever' |
| 392 | /> |
| 393 | <PricingCard |
| 394 | badge='Recommended' |
| 395 | cta='Start with Pro' |
| 396 | description='For when projects and clients start stacking up.' |
| 397 | features={proPlanFeatures} |
| 398 | name='Pro' |
| 399 | price='$3' |
| 400 | suffix='/ month + taxes' |
| 401 | /> |
| 402 | </div> |
| 403 | <p className='mt-6 font-mono text-[11px] text-muted-foreground uppercase tracking-[0.18em] |
| 404 | No credit card required |
| 405 | </p> |
| 406 | </div> |
| 407 | </section> |
| 408 | |
| 409 | <section className='mx-auto max-w-3xl px-6 py-24 sm:py-28 |
| 410 | <div className='mb-12 |
| 411 | <div className='font-mono text-[11px] text-muted-foreground uppercase tracking-[0.18em] |
| 412 | / faq |
| 413 | </div> |
| 414 | <h2 className='mt-3 font-semibold text-4xl leading-[1.02] tracking-[-0.03em] sm:text-5xl |
| 415 | Questions,{' '} |
| 416 | <span className='text-muted-foreground/70 italic |
| 417 | </h2> |
| 418 | </div> |
| 419 | <div className='divide-y divide-border/60 border-border/60 border-y |
| 420 | {faq.map(( |
| 421 | <details className='group py-5 |
| 422 | <summary className='flex cursor-pointer items-center justify-between gap-6 font-medium text-foreground text-lg tracking-tight |
| 423 | {item.q} |
| 424 | <span className='font-mono text-muted-foreground text-sm transition-transform group-open:rotate-45 |
| 425 | + |
| 426 | </span> |
| 427 | </summary> |
| 428 | <p className='mt-3 text-base text-muted-foreground leading-relaxed |
| 429 | {item.a} |
| 430 | </p> |
| 431 | </details> |
| 432 | ))} |
| 433 | </div> |
| 434 | </section> |
| 435 | |
| 436 | <footer className='border-border/60 border-t bg-secondary/10 |
| 437 | <div className='mx-auto max-w-6xl px-6 py-16 sm:py-20 |
| 438 | <div className='grid grid-cols-1 gap-12 lg:grid-cols-[1.4fr_1fr_1fr_1fr] |
| 439 | <div className='max-w-sm |
| 440 | <div className='flex items-center gap-2.5 |
| 441 | <SaturnLogo className=' |
| 442 | <span className='font-semibold text-foreground text-xl tracking-tight |
| 443 | Saturn |
| 444 | </span> |
| 445 | </div> |
| 446 | <p className='mt-5 text-base text-muted-foreground leading-relaxed |
| 447 | Projects, proposals, time, timesheets, expenses, and invoices — |
| 448 | one login instead of seven subscriptions. |
| 449 | </p> |
| 450 | <Link |
| 451 | className={`${buttonVariants |
| 452 | href='/auth/sign-up' |
| 453 | > |
| 454 | Start for free |
| 455 | <ArrowRight className=' |
| 456 | </Link> |
| 457 | </div> |
| 458 | |
| 459 | <div> |
| 460 | <div className='font-mono text-[11px] text-muted-foreground uppercase tracking-[0.18em] |
| 461 | / Product |
| 462 | </div> |
| 463 | <ul className='mt-5 space-y-3 |
| 464 | <li> |
| 465 | <Link |
| 466 | className='text-base text-foreground/80 transition-colors hover:text-foreground' |
| 467 | href='#features' |
| 468 | > |
| 469 | Features |
| 470 | </Link> |
| 471 | </li> |
| 472 | <li> |
| 473 | <Link |
| 474 | className='text-base text-foreground/80 transition-colors hover:text-foreground' |
| 475 | href='#pricing' |
| 476 | > |
| 477 | Pricing |
| 478 | </Link> |
| 479 | </li> |
| 480 | <li> |
| 481 | <Link |
| 482 | className='text-base text-foreground/80 transition-colors hover:text-foreground' |
| 483 | href='#faq' |
| 484 | > |
| 485 | FAQ |
| 486 | </Link> |
| 487 | </li> |
| 488 | <li> |
| 489 | <Link |
| 490 | className='text-base text-foreground/80 transition-colors hover:text-foreground' |
| 491 | href='/changelogs' |
| 492 | > |
| 493 | Changelogs |
| 494 | </Link> |
| 495 | </li> |
| 496 | </ul> |
| 497 | </div> |
| 498 | |
| 499 | <div> |
| 500 | <div className='font-mono text-[11px] text-muted-foreground uppercase tracking-[0.18em] |
| 501 | / Legal |
| 502 | </div> |
| 503 | <ul className='mt-5 space-y-3 |
| 504 | <li> |
| 505 | <Link |
| 506 | className='text-base text-foreground/80 transition-colors hover:text-foreground' |
| 507 | href='/terms' |
| 508 | > |
| 509 | Terms |
| 510 | </Link> |
| 511 | </li> |
| 512 | <li> |
| 513 | <Link |
| 514 | className='text-base text-foreground/80 transition-colors hover:text-foreground' |
| 515 | href='/privacy' |
| 516 | > |
| 517 | Privacy |
| 518 | </Link> |
| 519 | </li> |
| 520 | </ul> |
| 521 | </div> |
| 522 | |
| 523 | <div> |
| 524 | <div className='font-mono text-[11px] text-muted-foreground uppercase tracking-[0.18em] |
| 525 | / Social |
| 526 | </div> |
| 527 | <ul className='mt-5 space-y-3 |
| 528 | <li> |
| 529 | <a |
| 530 | className='inline-flex items-center gap-2 text-base text-foreground/80 transition-colors hover:text-foreground' |
| 531 | href='https://github.com/phantomknight287/saturn' |
| 532 | rel='noreferrer noopener' |
| 533 | target='_blank' |
| 534 | > |
| 535 | <GitHub className=' |
| 536 | GitHub |
| 537 | </a> |
| 538 | </li> |
| 539 | <li> |
| 540 | <a |
| 541 | className='inline-flex items-center gap-2 text-base text-foreground/80 transition-colors hover:text-foreground' |
| 542 | href='https://twitter.com/gurpalsingh287' |
| 543 | rel='noreferrer noopener' |
| 544 | target='_blank' |
| 545 | > |
| 546 | <svg |
| 547 | aria-hidden |
| 548 | className='size-3.5' |
| 549 | fill='currentColor' |
| 550 | viewBox='0 0 1200 1227' |
| 551 | xmlns='http://www.w3.org/2000/svg' |
| 552 | > |
| 553 | <path d='M714.163 519.284 1160.89 0h-105.86L667.137 450.887 357.328 0H0l468.492 681.821L0 1226.37h105.866l409.625-476.152 327.181 476.152H1200L714.137 519.284h.026ZM569.165 687.828l-47.468-67.894-377.686-540.24h162.604l304.797 435.991 47.468 67.894 396.2 566.721H892.476L569.165 687.854v-.026Z |
| 554 | </svg> |
| 555 | @gurpalsingh287 |
| 556 | </a> |
| 557 | </li> |
| 558 | </ul> |
| 559 | </div> |
| 560 | </div> |
| 561 | |
| 562 | <div className='mt-14 flex flex-col items-start justify-between gap-4 border-border/60 border-t pt-8 sm:flex-row sm:items-center |
| 563 | <p className='font-mono text-[11px] text-muted-foreground uppercase tracking-[0.18em] |
| 564 | © {new |
| 565 | </p> |
| 566 | <p className='font-mono text-[11px] text-muted-foreground uppercase tracking-[0.18em] |
| 567 | Made by{' '} |
| 568 | <a |
| 569 | className='text-foreground transition-colors hover:text-primary' |
| 570 | href='https://twitter.com/gurpalsingh287' |
| 571 | rel='noreferrer noopener' |
| 572 | target='_blank' |
| 573 | > |
| 574 | Gurpal Singh |
| 575 | </a> |
| 576 | </p> |
| 577 | </div> |
| 578 | </div> |
| 579 | </footer> |
| 580 | </div> |
| 581 | ) |
| 582 | } |
| 583 | |
| 584 | function FeatureRow({ |
| 585 | label, |
| 586 | title, |
| 587 | titleAccent, |
| 588 | description, |
| 589 | reverse = false, |
| 590 | children, |
| 591 | }: { |
| 592 | label: string |
| 593 | title: string |
| 594 | titleAccent: string |
| 595 | description: string |
| 596 | reverse?: boolean |
| 597 | children: React |
| 598 | }) { |
| 599 | return ( |
| 600 | <div className='grid grid-cols-1 items-center gap-10 border-border/60 border-t py-16 first:border-t-0 first:pt-0 sm:py-20 lg:grid-cols-2 lg:gap-16 |
| 601 | <div className={reverse |
| 602 | <div className='font-mono text-[11px] text-muted-foreground uppercase tracking-[0.18em] |
| 603 | / {label} |
| 604 | </div> |
| 605 | <h3 className='mt-4 font-semibold text-3xl text-foreground leading-[1.05] tracking-[-0.03em] sm:text-4xl |
| 606 | {title}{' '} |
| 607 | <span className='text-muted-foreground/70 italic |
| 608 | </h3> |
| 609 | <p className='mt-5 text-base text-muted-foreground leading-relaxed sm:text-lg |
| 610 | {description} |
| 611 | </p> |
| 612 | </div> |
| 613 | <div className={reverse |
| 614 | <div className='relative overflow-hidden rounded-2xl border border-border/60 bg-card p-7 sm:p-8 |
| 615 | <div |
| 616 | aria-hidden |
| 617 | className='pointer-events-none absolute inset-x-0 top-0 -z-10 h-32 bg-primary/5 blur-3xl' |
| 618 | /> |
| 619 | {children} |
| 620 | </div> |
| 621 | </div> |
| 622 | </div> |
| 623 | ) |
| 624 | } |
| 625 | |
| 626 | function PricingCard({ |
| 627 | name, |
| 628 | price, |
| 629 | suffix, |
| 630 | description, |
| 631 | features, |
| 632 | cta, |
| 633 | ctaVariant = 'default' |
| 634 | badge, |
| 635 | }: { |
| 636 | name: string |
| 637 | price: string |
| 638 | suffix: string |
| 639 | description: string |
| 640 | features: readonly |
| 641 | cta: string |
| 642 | ctaVariant?: ' |
| 643 | badge?: string |
| 644 | }) { |
| 645 | return ( |
| 646 | <div className='flex flex-col rounded-2xl border border-border/60 bg-card p-7 |
| 647 | <div className='flex items-center gap-2 |
| 648 | <span className='font-medium text-lg tracking-tight |
| 649 | {badge && ( |
| 650 | <span className='rounded-full bg-primary/10 px-2 py-0.5 font-mono text-[10px] text-primary uppercase tracking-wider |
| 651 | {badge} |
| 652 | </span> |
| 653 | )} |
| 654 | </div> |
| 655 | <div className='mt-4 flex items-baseline gap-1.5 |
| 656 | <span className='font-semibold text-5xl tracking-[-0.04em] |
| 657 | {price} |
| 658 | </span> |
| 659 | <span className='text-base text-muted-foreground |
| 660 | </div> |
| 661 | <p className='mt-3 text-base text-muted-foreground |
| 662 | <div className='mt-6 space-y-2.5 border-border/60 border-t pt-6 |
| 663 | {features.map(( |
| 664 | <div |
| 665 | className='flex items-center gap-2.5 text-base text-foreground/80' |
| 666 | key={f} |
| 667 | > |
| 668 | <Check className=' |
| 669 | {f} |
| 670 | </div> |
| 671 | ))} |
| 672 | </div> |
| 673 | <div className='mt-8 |
| 674 | <Link |
| 675 | className={buttonVariants({ |
| 676 | variant: ctaVariant, |
| 677 | className: 'w-full', |
| 678 | })} |
| 679 | href='/auth/sign-up' |
| 680 | > |
| 681 | {cta} |
| 682 | </Link> |
| 683 | </div> |
| 684 | </div> |
| 685 | ) |
| 686 | } |