From 2657469964e24ffbeb905024532120395f6e797c Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Sun, 30 Jun 2024 18:55:39 -0400 Subject: move to Donetick Org, First commit frontend --- src/views/Landing/PricingSection.jsx | 179 +++++++++++++++++++++++++++++++++++ 1 file changed, 179 insertions(+) create mode 100644 src/views/Landing/PricingSection.jsx (limited to 'src/views/Landing/PricingSection.jsx') diff --git a/src/views/Landing/PricingSection.jsx b/src/views/Landing/PricingSection.jsx new file mode 100644 index 0000000..634cf7d --- /dev/null +++ b/src/views/Landing/PricingSection.jsx @@ -0,0 +1,179 @@ +/* eslint-disable react/jsx-key */ +import { CheckRounded } from '@mui/icons-material' +import { Box, Button, Card, Container, Typography } from '@mui/joy' +import React from 'react' +import { useNavigate } from 'react-router-dom' + +const PricingSection = () => { + const navigate = useNavigate() + const FEATURES_FREE = [ + ['Create Tasks and Chores', ], + ['Limited Task History', ], + ['Circle up to two members', ], + ] + const FEATURES_PREMIUM = [ + ['All Basic Features', ], + ['Hosted on DoneTick servers', ], + ['Up to 8 Circle Members', ], + [ + 'Notification through Telegram (Discord coming soon)', + , + ], + ['Unlimited History', ], + [ + 'All circle members get the same features as the owner', + , + ], + ] + const FEATURES_YEARLY = [ + // ['All Basic Features', ], + // ['Up to 8 Circle Members', ], + ['Notification through Telegram bot', ], + ['Custom Webhook/API Integration', ], + ['Unlimited History', ], + + ['Priority Support', ], + ] + const PRICEITEMS = [ + { + title: 'Basic', + description: + 'Hosted on Donetick servers, supports up to 2 circle members and includes all the features of the free plan.', + price: 0, + previousPrice: 0, + interval: 'month', + discount: false, + features: FEATURES_FREE, + }, + + { + title: 'Plus', + description: + // 'Supports up to 8 circle members and includes all the features of the Basic plan.', + 'Hosted on Donetick servers, supports up to 8 circle members and includes all the features of the Basic plan.', + price: 30.0, + // previousPrice: 76.89, + interval: 'year', + // discount: true, + features: FEATURES_YEARLY, + }, + ] + return ( + + + Pricing + + + + + Choose the plan that works best for you. + + + +
+ {PRICEITEMS.map((pi, index) => ( + + + {pi.title} + {pi.description} + + + + {pi.discount && ( + + ${pi.previousPrice}  + + )} + + ${pi.price} + + + / {pi.interval} + + + + Features + {pi.features.map(feature => ( + + {feature[0]} + + ))} + + {/* Here start the test */} +
+ + +
+
+
+ ))} +
+ + {/* Here start the test */} +
+ ) +} + +export default PricingSection -- cgit