1+ import React from 'react' ;
2+ import LandingPageCard from '../parts/landing-page-card' ;
3+ import { useHistory } from 'react-router-dom' ;
4+ import PricingCard from '../parts/pricing-card' ;
5+ import PrimaryButton from '../parts/landing-page-button-primary' ;
6+ import SecondaryButton from '../parts/landing-page-button-secondary' ;
7+ import { LINK_CHAT_WITH_FOUNDERS , LINK_GET_STARTED } from '@site/src/constants/landing-page-links-constants' ;
8+
9+ const FEATURES = [
10+ {
11+ title : "Byte Plan (free tier)" ,
12+ description : "Everything you need to get started with Dev-Docs" ,
13+ bulletPoints : [
14+ "No cc required" ,
15+ "Access to Dev-Docs' native web app features" ,
16+ "Use Dev-Docs in VS Code or GitHub Codespaces" ,
17+ "Generate the content you need from your codebase" ,
18+ "Leverage Dev-Docs Chrome Extension to generate step by step guides" ,
19+ "Get 2,000,000 input credits and 500,000 output credits to use as you see fit" ,
20+ ] ,
21+ buttonTitle : "Get started" ,
22+ href : "https://docs.dev/docs"
23+ } ,
24+ {
25+ title : "Megabyte Plan (pro tier)" ,
26+ description : "Get even more out of Dev-Docs" ,
27+ bulletPoints : [
28+ "Everything from the free plan" ,
29+ "Starting with 10,000,000 input credits and 2,000,000 output credits per month" ,
30+ "Integrate Dev-Docs into your CI/CD to fully automate the process" ,
31+ "Sync Dev-Docs up with your Confluence, Google Drive or Notion" ,
32+ "Dedicated support via a private slack channel"
33+ ] ,
34+ buttonTitle : "Get In Touch" ,
35+ href : "https://dub.sh/devdocs"
36+ }
37+ ] ;
38+
39+ const PricingCards = ( ) => {
40+ const isMobile = window . innerWidth < 869 ;
41+ const history = useHistory ( ) ;
42+
43+ return (
44+ < LandingPageCard
45+ className = { isMobile ? "" : "px-0 p-[2rem]" }
46+
47+ >
48+ < div
49+ className = { isMobile ? "font-extrabold text-[2rem] max-w-[24rem] text-center font-pixel" : "font-extrabold text-[3rem] max-w-[24rem] text-center font-pixel" }
50+ style = { {
51+ fontFeatureSettings : "'liga' off, 'clig' off" ,
52+ } }
53+ >
54+ Benefits built for your success
55+ </ div >
56+
57+ < div className = { `${ isMobile ? 'flex flex-col' : 'flex flex-row' } gap-[1em]` } style = { { alignItems : "stretch" } } >
58+ { FEATURES . map ( ( feature , idx ) => (
59+ < div
60+ key = { `landing-page-features-card-feature-card-${ idx } ` }
61+ className = { `${ isMobile ? 'w-full' : 'nothing-yo' } ` }
62+ style = { { "flexGrow" : 1 } }
63+ >
64+ < PricingCard
65+ title = { feature . title }
66+ description = { feature . description }
67+ bulletPoints = { feature . bulletPoints }
68+ href = { feature . href }
69+ buttonTitle = { feature . buttonTitle }
70+ />
71+ </ div >
72+ ) ) }
73+ </ div >
74+
75+ < div
76+ className = { isMobile ? "flex flex-col gap-[1rem] pt-[1.5rem]" : "flex gap-[1rem] pt-[2rem]" }
77+ >
78+ < PrimaryButton
79+ className = "inline-flex !w-auto px-[1.5rem] py-[0.75rem]"
80+ onClick = { ( ) => history . push ( LINK_GET_STARTED ) }
81+ >
82+ Get started
83+ </ PrimaryButton >
84+
85+ < SecondaryButton
86+ className = "inline-flex !w-auto px-[1.5rem] py-[0.75rem]"
87+ onClick = { ( ) => window . open ( LINK_CHAT_WITH_FOUNDERS , '_blank' ) }
88+ >
89+ Chat with us
90+ </ SecondaryButton >
91+ </ div >
92+ </ LandingPageCard >
93+ ) ;
94+ } ;
95+
96+ export default PricingCards ;
0 commit comments