diff --git a/src/common/components/Faq.jsx b/src/common/components/Faq.jsx index 0067b71a8..e1d5db75d 100644 --- a/src/common/components/Faq.jsx +++ b/src/common/components/Faq.jsx @@ -14,8 +14,9 @@ import useStyle from '../hooks/useStyle'; function Faq({ items, hideLastBorder, headingStyle, highlightColor, acordionContainerStyle, ...rest }) { const { hexColor } = useStyle(); + return ( - + FAQ diff --git a/src/common/hooks/useStyle.js b/src/common/hooks/useStyle.js index 57d9a0183..8dbe58c0a 100644 --- a/src/common/hooks/useStyle.js +++ b/src/common/hooks/useStyle.js @@ -45,6 +45,7 @@ const useStyle = () => { backgroundColor: useColorModeValue('#ffffff', '#17202A'), featuredColor: useColorModeValue('#EEF9FE', '#283340'), featuredColor2: useColorModeValue('#F5F8FF', '#283340'), + featuredColor3: useColorModeValue('#F3FAFE', '#19202a'), lightColor: useColorModeValue('#F5F5F5', '#4A5568'), lightColor2: useColorModeValue('#F5F5F5', '#283340'), lightColor3: useColorModeValue('#F5F5F5', '#17202A'), @@ -52,6 +53,7 @@ const useStyle = () => { white2: useColorModeValue('#ffffff', '#283340'), danger: useColorModeValue('#CD0000', '#e26161'), blueDefault: '#0097CD', + blueLight: useColorModeValue('#E1F5FF', '#2b3340'), yellowDefault: '#FFB718', green: '#38A56A', greenLight: '#25BF6C', diff --git a/src/pages/pricing.jsx b/src/pages/pricing.jsx index dc34f2e32..1ecbfac44 100644 --- a/src/pages/pricing.jsx +++ b/src/pages/pricing.jsx @@ -45,7 +45,7 @@ function PricingView() { const [activeType, setActiveType] = useState('monthly'); const { isAuthenticated } = useAuth(); const [relatedSubscription, setRelatedSubscription] = useState({}); - const { hexColor, featuredColor } = useStyle(); + const { hexColor, modal } = useStyle(); const [isFetching, setIsFetching] = useState({ courses: true, selectedPlan: true, @@ -264,8 +264,10 @@ function PricingView() { const existentOptions = switcherInfo.filter((l) => l.exists); const existsSubscriptionMehtod = paymentTypePlans.hasSubscriptionMethod; + console.log(publicMktCourses); + return ( - <> + {isFetching.courses && ( )} @@ -273,34 +275,34 @@ function PricingView() { maxWidth="1280px" position="relative" margin="0 auto" - my="4rem" padding="0 10px" > - - {t('heading')} - - - {t('sub-heading')} - {!isAbleToShowPrices && ( - - {t('choose-your-career-path')} - + + + {t('heading')} + + + {t('choose-your-career-path')} + + + {t('sub-heading')} + + {publicMktCourses?.length > 0 && publicMktCourses.slice(0, 2).map((course) => ( - + @@ -310,6 +312,7 @@ function PricingView() { as="h3" lineHeight="normal" fontWeight="700" + color={course.color} > {course?.course_translation?.title} @@ -320,8 +323,25 @@ function PricingView() { {course?.course_translation?.description} + + {t('see-plans-and-prices')} + + {course?.course_translation?.landing_variables?.length > 0 && ( - + {course?.course_translation?.landing_variables.map((content) => { const isUrlImage = content?.icon?.includes('http'); return ( @@ -343,18 +363,6 @@ function PricingView() { })} )} - - {t('see-plans-and-prices')} - ))} @@ -493,7 +501,7 @@ function PricingView() { - + ); }