From 6dcc841391d898122d1384305ae95b60611418c7 Mon Sep 17 00:00:00 2001 From: Nick Grato Date: Fri, 22 Dec 2023 14:29:41 -0800 Subject: [PATCH] adding callouts --- .../BasePlanCard/BasePlanCard.module.scss | 9 ++++-- .../Subscribe/BasePlanCard/BasePlanCard.tsx | 2 +- .../components/shared/Subscribe/Subscribe.tsx | 7 +++-- .../components/shared/Subscribe/plan.const.ts | 29 ++++++++++++------- marketing/styles/core/variables.scss | 1 + marketing/util/utilities.ts | 10 +++++-- 6 files changed, 39 insertions(+), 19 deletions(-) diff --git a/marketing/components/shared/Subscribe/BasePlanCard/BasePlanCard.module.scss b/marketing/components/shared/Subscribe/BasePlanCard/BasePlanCard.module.scss index 2b49ab8b..2eee973e 100644 --- a/marketing/components/shared/Subscribe/BasePlanCard/BasePlanCard.module.scss +++ b/marketing/components/shared/Subscribe/BasePlanCard/BasePlanCard.module.scss @@ -31,15 +31,18 @@ } .highlight { + &_silver { + background: $color-background-subtle-callout; + } &_warm { background: $gradient-warm; } - &_cool { - background: $gradient-cool; - } &_rainbow { background: $gradient-rainbow; } + &_tree { + background: $gradient-tree; + } } .price { diff --git a/marketing/components/shared/Subscribe/BasePlanCard/BasePlanCard.tsx b/marketing/components/shared/Subscribe/BasePlanCard/BasePlanCard.tsx index 123f12d4..07e5dc3c 100644 --- a/marketing/components/shared/Subscribe/BasePlanCard/BasePlanCard.tsx +++ b/marketing/components/shared/Subscribe/BasePlanCard/BasePlanCard.tsx @@ -58,7 +58,7 @@ type BasePlanCardPropsT = { additionalContent?: ReactNode; confirmButton: ReactNode; footerClassProp?: string; - color: 'cool' | 'warm' | 'rainbow'; + color: 'silver' | 'warm' | 'rainbow' | 'tree'; features?: FeaturesT | null; }; diff --git a/marketing/components/shared/Subscribe/Subscribe.tsx b/marketing/components/shared/Subscribe/Subscribe.tsx index 88b7c4ea..37e9c84f 100644 --- a/marketing/components/shared/Subscribe/Subscribe.tsx +++ b/marketing/components/shared/Subscribe/Subscribe.tsx @@ -156,9 +156,10 @@ const Subscribe = ({ classProp = '' }: SubscribePropsT) => { classProp={styles.plan_1} title={STARTER_COPY.title} subtitle={STARTER_COPY.subtitle} - color="warm" + color="silver" price={} valueProps={STARTER_COPY.valueProps} + features={STARTER_COPY.features} additionalContent={ } @@ -180,7 +181,7 @@ const Subscribe = ({ classProp = '' }: SubscribePropsT) => { classProp={styles.plan_2} title={PERSONAL_COPY.title} subtitle={PERSONAL_COPY.subtitle} - color="cool" + color="warm" price={ { classProp={styles.plan_3} title={BUSINESS_COPY.title} subtitle={BUSINESS_COPY.subtitle} - color="rainbow" + color="tree" price={ { const PersonalProdId = 'prod_Mo4tS8uH9y3Mj5'; const ProfessionalProdId = 'prod_OGWdlewqBfGPy0'; - const prodID = plan === PlansE.PERSONAL ? PersonalProdId : ProfessionalProdId; - const BASE_URL = `https://subscriptions.firefox.com/checkout/${prodID}`; + const BusinessProdId = 'prod_Mo4tS8uH9y3Mj5'; + const ProductIds = { + [PlansE.PERSONAL]: PersonalProdId, + [PlansE.PROFESSIONAL]: ProfessionalProdId, + [PlansE.BUSINESS]: BusinessProdId, + }; + + const BASE_URL = `https://subscriptions.firefox.com/checkout/${ProductIds[plan]}`; // If not accepted region or no region default to US plan let planUrl = `${BASE_URL}?plan=${PLAN_ID_MAP.US[plan][billingPeriod].planId}`;