From 3849f3f2aa537bbdbad1c10c9c7d53e3d959c5d3 Mon Sep 17 00:00:00 2001 From: "Jason R. Stevens, CFA" Date: Wed, 3 Jul 2024 12:52:43 -0500 Subject: [PATCH] :sparkles: add brand-color highlighting on hover for pricing plans --- src/components/Pricing.jsx | 141 +++++++++++++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 src/components/Pricing.jsx diff --git a/src/components/Pricing.jsx b/src/components/Pricing.jsx new file mode 100644 index 0000000..efb23ff --- /dev/null +++ b/src/components/Pricing.jsx @@ -0,0 +1,141 @@ +import clsx from 'clsx' + +import { ButtonLink } from '@/components/Button' +import { Container } from '@/components/Container' + +function SwirlyDoodle({ className }) { + return ( + + ) +} + +function CheckIcon({ className }) { + return ( + + ) +} + +function Plan({ name, price, description, href, features, featured = false }) { + return ( +
+

{name}

+

+ {description} +

+

+ {price} +

+ + + Get started + +
+ ) +} + +export function Pricing({ data }) { + if (!data) return null + const { titleDecorated, titleUndecorated, description, plans } = data + return ( +
+ +
+

+ + + {titleDecorated} + {' '} + {titleUndecorated} +

+

{description}

+
+
+ {plans.map( + ({ name, price, description, href, features, isFeatured }) => { + return ( + + ) + } + )} +
+
+
+ ) +}