@codecademy/brand 1.23.0-alpha.daf4fd9739.0 → 1.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.d.ts +0 -1
  2. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.js +2 -4
  3. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.d.ts +0 -1
  4. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.js +4 -91
  5. package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.ts +0 -4
  6. package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.js +4 -7
  7. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.ts +0 -1
  8. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.js +2 -3
  9. package/dist/AppHeader/index.js +2 -5
  10. package/dist/AppHeader/shared/utils.d.ts +1 -2
  11. package/dist/AppHeader/shared/utils.js +4 -8
  12. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.js +5 -8
  13. package/dist/FeatureList/index.d.ts +11 -0
  14. package/dist/FeatureList/index.js +40 -0
  15. package/dist/GlobalHeader/GlobalHeaderItems.d.ts +0 -1
  16. package/dist/GlobalHeader/GlobalHeaderItems.js +1 -12
  17. package/dist/GlobalHeader/GlobalHeaderVariants.d.ts +14 -14
  18. package/dist/GlobalHeader/GlobalHeaderVariants.js +33 -33
  19. package/dist/GlobalHeader/index.d.ts +0 -1
  20. package/dist/GlobalHeader/index.js +40 -45
  21. package/dist/GlobalHeader/types.d.ts +0 -1
  22. package/dist/LandingPage/CTA.d.ts +1 -0
  23. package/dist/LandingPage/Feature.d.ts +9 -1
  24. package/dist/LandingPage/Feature.js +15 -7
  25. package/dist/LandingPage/LiveLearning/PageFeatures.d.ts +10 -0
  26. package/dist/LandingPage/LiveLearning/PageFeatures.js +167 -0
  27. package/dist/LandingPage/PageFAQs.d.ts +10 -0
  28. package/dist/LandingPage/PageFAQs.js +41 -0
  29. package/dist/LandingPage/PageFeaturedLiveCourse.d.ts +8 -0
  30. package/dist/LandingPage/PageFeaturedLiveCourse.js +105 -0
  31. package/dist/LandingPage/PageFeaturesWithReferences.d.ts +19 -0
  32. package/dist/LandingPage/PageFeaturesWithReferences.js +144 -0
  33. package/dist/LandingPage/PageLiveLearningCourses.d.ts +40 -0
  34. package/dist/LandingPage/PageLiveLearningCourses.js +243 -0
  35. package/dist/LandingPage/PageSingleFeature.d.ts +5 -0
  36. package/dist/LandingPage/PageSingleFeature.js +6 -1
  37. package/dist/LandingPage/PageTestimonials.d.ts +21 -0
  38. package/dist/LandingPage/PageTestimonials.js +115 -0
  39. package/dist/LandingPage/TitleWithEyebrow.d.ts +3 -0
  40. package/dist/LandingPage/TitleWithEyebrow.js +5 -1
  41. package/dist/LandingPage/index.d.ts +7 -0
  42. package/dist/LandingPage/index.js +8 -1
  43. package/dist/lib/catalogList/index.d.ts +1 -2
  44. package/dist/lib/catalogList/index.js +0 -26
  45. package/dist/lib/resourcesList/index.d.ts +2 -2
  46. package/dist/lib/resourcesList/index.js +5 -14
  47. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { addPayment, bootcampCta, businessSolutions, careerCenter, catalogDropdown, communityDropdown, enterpriseLogo, freeProfile, liveLearningHub, loading, login, logo, myHome, myPercipioHome, pricingDropdown, proProfile, resourcesDropdown, signUp, simpleResourcesDropdown, tryProForFree, unpausePro, upgradePlan, upgradeToPro } from './GlobalHeaderItems';
1
+ import { addPayment, bootcampCta, businessSolutions, careerCenter, catalogDropdown, communityDropdown, enterpriseLogo, freeProfile, loading, login, logo, myHome, myPercipioHome, pricingDropdown, proProfile, resourcesDropdown, signUp, simpleResourcesDropdown, tryProForFree, unpausePro, upgradePlan, upgradeToPro } from './GlobalHeaderItems';
2
2
  const transformSimpleResourcesDropdownlabels = resourcesLabel => ({
3
3
  ...simpleResourcesDropdown,
4
4
  text: resourcesLabel?.title || simpleResourcesDropdown.text,
@@ -7,12 +7,12 @@ const transformSimpleResourcesDropdownlabels = resourcesLabel => ({
7
7
  text: resourcesLabel?.[item.id] || item.text
8
8
  }))
9
9
  });
10
- const anonHeaderItems = (renderLogin, renderSignUp, hidePricing, user, isLiveLearningHubEnabled) => {
10
+ const anonHeaderItems = (renderLogin, renderSignUp, hidePricing, user) => {
11
11
  const specialLogo = {
12
12
  ...logo,
13
13
  checkMini: true
14
14
  };
15
- const leftItems = [specialLogo, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(hidePricing ? [] : [pricingDropdown]), ...(isLiveLearningHubEnabled ? [liveLearningHub()] : [careerCenter]), businessSolutions];
15
+ const leftItems = [specialLogo, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(hidePricing ? [] : [pricingDropdown]), careerCenter, businessSolutions];
16
16
  const rightItems = [];
17
17
  if (renderLogin) {
18
18
  rightItems.push(login);
@@ -25,7 +25,7 @@ const anonHeaderItems = (renderLogin, renderSignUp, hidePricing, user, isLiveLea
25
25
  right: rightItems
26
26
  };
27
27
  };
28
- const anonMobileHeaderItems = (renderLogin, renderSignUp, hidePricing, user, isLiveLearningHubEnabled) => {
28
+ const anonMobileHeaderItems = (renderLogin, renderSignUp, hidePricing, user) => {
29
29
  const specialLogo = {
30
30
  ...logo,
31
31
  checkMini: true
@@ -38,43 +38,43 @@ const anonMobileHeaderItems = (renderLogin, renderSignUp, hidePricing, user, isL
38
38
  if (renderSignUp) {
39
39
  rightItems.push(signUp);
40
40
  }
41
- const mainMenuItems = [catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(hidePricing ? [] : [pricingDropdown]), ...(isLiveLearningHubEnabled ? [liveLearningHub()] : [careerCenter]), businessSolutions];
41
+ const mainMenuItems = [catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(hidePricing ? [] : [pricingDropdown]), careerCenter, businessSolutions];
42
42
  return {
43
43
  left: leftItems,
44
44
  right: rightItems,
45
45
  mainMenu: mainMenuItems
46
46
  };
47
47
  };
48
- export const anonDefaultHeaderItems = (hidePricing, user, isLiveLearningHubEnabled) => {
49
- return anonHeaderItems(true, true, hidePricing, user, isLiveLearningHubEnabled);
48
+ export const anonDefaultHeaderItems = (hidePricing, user) => {
49
+ return anonHeaderItems(true, true, hidePricing, user);
50
50
  };
51
- export const anonDefaultMobileHeaderItems = (hidePricing, user, isLiveLearningHubEnabled) => {
52
- return anonMobileHeaderItems(true, true, hidePricing, user, isLiveLearningHubEnabled);
51
+ export const anonDefaultMobileHeaderItems = (hidePricing, user) => {
52
+ return anonMobileHeaderItems(true, true, hidePricing, user);
53
53
  };
54
- export const anonLandingHeaderItems = (hidePricing, user, isLiveLearningHubEnabled) => {
55
- return anonHeaderItems(true, false, hidePricing, user, isLiveLearningHubEnabled);
54
+ export const anonLandingHeaderItems = (hidePricing, user) => {
55
+ return anonHeaderItems(true, false, hidePricing, user);
56
56
  };
57
- export const anonLandingMobileHeaderItems = (hidePricing, user, isLiveLearningHubEnabled) => {
58
- return anonMobileHeaderItems(true, false, hidePricing, user, isLiveLearningHubEnabled);
57
+ export const anonLandingMobileHeaderItems = (hidePricing, user) => {
58
+ return anonMobileHeaderItems(true, false, hidePricing, user);
59
59
  };
60
- export const anonLoginHeaderItems = (hidePricing, user, isLiveLearningHubEnabled) => {
61
- return anonHeaderItems(false, true, hidePricing, user, isLiveLearningHubEnabled);
60
+ export const anonLoginHeaderItems = (hidePricing, user) => {
61
+ return anonHeaderItems(false, true, hidePricing, user);
62
62
  };
63
- export const anonLoginMobileHeaderItems = (hidePricing, user, isLiveLearningHubEnabled) => {
64
- return anonMobileHeaderItems(false, true, hidePricing, user, isLiveLearningHubEnabled);
63
+ export const anonLoginMobileHeaderItems = (hidePricing, user) => {
64
+ return anonMobileHeaderItems(false, true, hidePricing, user);
65
65
  };
66
- export const anonSignupHeaderItems = (hidePricing, user, isLiveLearningHubEnabled) => {
67
- return anonHeaderItems(true, false, hidePricing, user, isLiveLearningHubEnabled);
66
+ export const anonSignupHeaderItems = (hidePricing, user) => {
67
+ return anonHeaderItems(true, false, hidePricing, user);
68
68
  };
69
- export const anonSignupMobileHeaderItems = (hidePricing, user, isLiveLearningHubEnabled) => {
70
- return anonMobileHeaderItems(true, false, hidePricing, user, isLiveLearningHubEnabled);
69
+ export const anonSignupMobileHeaderItems = (hidePricing, user) => {
70
+ return anonMobileHeaderItems(true, false, hidePricing, user);
71
71
  };
72
- export const freeHeaderItems = (user, hidePricing, isLiveLearningHubEnabled) => {
72
+ export const freeHeaderItems = (user, hidePricing) => {
73
73
  const specialLogo = {
74
74
  ...logo,
75
75
  checkMini: true
76
76
  };
77
- const leftItems = [specialLogo, myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(hidePricing ? [] : [pricingDropdown]), ...(isLiveLearningHubEnabled ? [liveLearningHub()] : [careerCenter]), businessSolutions];
77
+ const leftItems = [specialLogo, myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(hidePricing ? [] : [pricingDropdown]), careerCenter, businessSolutions];
78
78
  const upgradeButton = upgradeToPro(user.proCheckoutUrl);
79
79
  const rightItems = [];
80
80
  rightItems.push(freeProfile(user));
@@ -84,7 +84,7 @@ export const freeHeaderItems = (user, hidePricing, isLiveLearningHubEnabled) =>
84
84
  right: rightItems
85
85
  };
86
86
  };
87
- export const freeMobileHeaderItems = (user, hidePricing, isLiveLearningHubEnabled) => {
87
+ export const freeMobileHeaderItems = (user, hidePricing) => {
88
88
  const specialLogo = {
89
89
  ...logo,
90
90
  checkMini: true
@@ -92,7 +92,7 @@ export const freeMobileHeaderItems = (user, hidePricing, isLiveLearningHubEnable
92
92
  const leftItems = [specialLogo];
93
93
  const rightItems = [];
94
94
  const upgradeButton = upgradeToPro(user.proCheckoutUrl);
95
- const mainMenuItems = [myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(hidePricing ? [] : [pricingDropdown]), ...(isLiveLearningHubEnabled ? [liveLearningHub()] : [careerCenter]), businessSolutions, freeProfile(user, true), user.showProUpgrade ? upgradeButton : tryProForFree(user.proCheckoutUrl)];
95
+ const mainMenuItems = [myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(hidePricing ? [] : [pricingDropdown]), careerCenter, businessSolutions, freeProfile(user, true), user.showProUpgrade ? upgradeButton : tryProForFree(user.proCheckoutUrl)];
96
96
  return {
97
97
  left: leftItems,
98
98
  right: rightItems,
@@ -112,8 +112,8 @@ export const enterpriseHeaderItems = (user, props) => {
112
112
  right: []
113
113
  };
114
114
  };
115
- export const proHeaderItems = (user, isLiveLearningHubEnabled) => {
116
- const leftItems = [logo, myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(user.isPlusUser ? [upgradePlan] : []), ...(isLiveLearningHubEnabled ? [liveLearningHub()] : [careerCenter]), businessSolutions];
115
+ export const proHeaderItems = user => {
116
+ const leftItems = [logo, myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(user.isPlusUser ? [upgradePlan] : []), careerCenter, businessSolutions];
117
117
  const rightItems = [];
118
118
  rightItems.push(proProfile(user));
119
119
  if (user.isPaused) {
@@ -124,8 +124,8 @@ export const proHeaderItems = (user, isLiveLearningHubEnabled) => {
124
124
  right: rightItems
125
125
  };
126
126
  };
127
- export const teamsHeaderItems = (user, isLiveLearningHubEnabled) => {
128
- const leftItems = [logo, myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(isLiveLearningHubEnabled ? [liveLearningHub()] : [careerCenter])];
127
+ export const teamsHeaderItems = user => {
128
+ const leftItems = [logo, myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), careerCenter];
129
129
  const rightItems = [];
130
130
  if (user.isAccountManager && user.inBusinessTrial && !user.hasBusinessSubscription) {
131
131
  rightItems.push(addPayment);
@@ -152,10 +152,10 @@ export const enterpriseMobileHeaderItems = (user, props) => {
152
152
  mainMenu: mainMenuItems
153
153
  };
154
154
  };
155
- export const proMobileHeaderItems = (user, isLiveLearningHubEnabled) => {
155
+ export const proMobileHeaderItems = user => {
156
156
  const leftItems = [logo];
157
157
  const rightItems = [];
158
- const mainMenuItems = [myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(user.isPlusUser ? [upgradePlan] : []), ...(isLiveLearningHubEnabled ? [liveLearningHub()] : [careerCenter]), businessSolutions, proProfile(user)];
158
+ const mainMenuItems = [myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(user.isPlusUser ? [upgradePlan] : []), careerCenter, businessSolutions, proProfile(user)];
159
159
  if (user.isPaused) {
160
160
  mainMenuItems.push(unpausePro);
161
161
  }
@@ -165,10 +165,10 @@ export const proMobileHeaderItems = (user, isLiveLearningHubEnabled) => {
165
165
  mainMenu: mainMenuItems
166
166
  };
167
167
  };
168
- export const teamsMobileHeaderItems = (user, isLiveLearningHubEnabled) => {
168
+ export const teamsMobileHeaderItems = user => {
169
169
  const leftItems = [logo];
170
170
  const rightItems = [];
171
- const mainMenuItems = [myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(isLiveLearningHubEnabled ? [liveLearningHub()] : [careerCenter]), proProfile(user)];
171
+ const mainMenuItems = [myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), careerCenter, proProfile(user)];
172
172
  if (user.isAccountManager && user.inBusinessTrial && !user.hasBusinessSubscription) {
173
173
  mainMenuItems.push(addPayment);
174
174
  }
@@ -2,7 +2,6 @@ import * as React from 'react';
2
2
  import { AnonHeader, EnterpriseHeader, FreeHeader, LoadingHeader, ProHeader, SimpleBootcampHeader, SimpleHeader, TeamsHeader } from './types';
3
3
  export * from './types';
4
4
  export type GlobalHeaderProps = AnonHeader | FreeHeader | ProHeader | EnterpriseHeader | TeamsHeader | LoadingHeader | SimpleHeader | SimpleBootcampHeader;
5
- export declare const LiveLearningHubContext: React.Context<boolean>;
6
5
  export declare const HeaderQuizContext: React.Context<{
7
6
  showOnboardingQuiz?: boolean;
8
7
  showSortingQuiz?: boolean;
@@ -11,29 +11,28 @@ export * from './types';
11
11
 
12
12
  function getAppHeaderItems(props, mobile) {
13
13
  const {
14
- hidePricing,
15
- isLiveLearningHubEnabled
14
+ hidePricing
16
15
  } = props;
17
16
  switch (props.type) {
18
17
  case 'anon':
19
18
  switch (props.variant) {
20
19
  case 'landing':
21
- return mobile ? anonLandingMobileHeaderItems(hidePricing, props.user, isLiveLearningHubEnabled) : anonLandingHeaderItems(hidePricing, props.user, isLiveLearningHubEnabled);
20
+ return mobile ? anonLandingMobileHeaderItems(hidePricing, props.user) : anonLandingHeaderItems(hidePricing, props.user);
22
21
  case 'login':
23
- return mobile ? anonLoginMobileHeaderItems(hidePricing, props.user, isLiveLearningHubEnabled) : anonLoginHeaderItems(hidePricing, props.user, isLiveLearningHubEnabled);
22
+ return mobile ? anonLoginMobileHeaderItems(hidePricing, props.user) : anonLoginHeaderItems(hidePricing, props.user);
24
23
  case 'signup':
25
- return mobile ? anonSignupMobileHeaderItems(hidePricing, props.user, isLiveLearningHubEnabled) : anonSignupHeaderItems(hidePricing, props.user, isLiveLearningHubEnabled);
24
+ return mobile ? anonSignupMobileHeaderItems(hidePricing, props.user) : anonSignupHeaderItems(hidePricing, props.user);
26
25
  default:
27
- return mobile ? anonDefaultMobileHeaderItems(hidePricing, props.user, isLiveLearningHubEnabled) : anonDefaultHeaderItems(hidePricing, props.user, isLiveLearningHubEnabled);
26
+ return mobile ? anonDefaultMobileHeaderItems(hidePricing, props.user) : anonDefaultHeaderItems(hidePricing, props.user);
28
27
  }
29
28
  case 'enterprise':
30
29
  return mobile ? enterpriseMobileHeaderItems(props.user, props) : enterpriseHeaderItems(props.user, props);
31
30
  case 'free':
32
- return mobile ? freeMobileHeaderItems(props.user, hidePricing, isLiveLearningHubEnabled) : freeHeaderItems(props.user, hidePricing, isLiveLearningHubEnabled);
31
+ return mobile ? freeMobileHeaderItems(props.user, hidePricing) : freeHeaderItems(props.user, hidePricing);
33
32
  case 'pro':
34
- return mobile ? proMobileHeaderItems(props.user, isLiveLearningHubEnabled) : proHeaderItems(props.user, isLiveLearningHubEnabled);
33
+ return mobile ? proMobileHeaderItems(props.user) : proHeaderItems(props.user);
35
34
  case 'teams':
36
- return mobile ? teamsMobileHeaderItems(props.user, isLiveLearningHubEnabled) : teamsHeaderItems(props.user, isLiveLearningHubEnabled);
35
+ return mobile ? teamsMobileHeaderItems(props.user) : teamsHeaderItems(props.user);
37
36
  case 'simple':
38
37
  return mobile ? simpleMobileHeaderItems : simpleHeaderItems;
39
38
  case 'bootcamp':
@@ -42,7 +41,6 @@ function getAppHeaderItems(props, mobile) {
42
41
  return mobile ? loadingMobileHeaderItems : loadingHeaderItems;
43
42
  }
44
43
  }
45
- export const LiveLearningHubContext = /*#__PURE__*/React.createContext(false);
46
44
  export const HeaderQuizContext = /*#__PURE__*/React.createContext({
47
45
  showOnboardingQuiz: false,
48
46
  showSortingQuiz: false
@@ -65,41 +63,38 @@ export const GlobalHeader = props => {
65
63
  showOnboardingQuiz,
66
64
  showSortingQuiz
67
65
  },
68
- children: /*#__PURE__*/_jsx(LiveLearningHubContext.Provider, {
69
- value: !!props.isLiveLearningHubEnabled,
70
- children: /*#__PURE__*/_jsxs(Box, {
71
- as: "header",
72
- position: "sticky",
73
- top: 0,
74
- zIndex: theme.elements.headerZ,
75
- children: [/*#__PURE__*/_jsx(AppHeader, {
76
- action: combinedAction,
77
- items: getAppHeaderItems(props, false),
78
- search: props.search,
79
- ...(props.type === 'anon' ? {
80
- redirectParam: props.redirectParam
81
- } : hideNotification ? {} : {
82
- notifications: props.notifications
83
- }),
84
- hideRightButtonDefaults: hideNotification,
85
- isAnon: props.type === 'anon',
86
- isTeams: props.type === 'teams',
87
- type: hideNotification ? 'enterprise' : 'standard'
88
- }), /*#__PURE__*/_jsx(AppHeaderMobile, {
89
- action: combinedAction,
90
- items: getAppHeaderItems(props, true),
91
- ...(props.type === 'anon' || hideNotification ? {} : {
92
- notifications: props.notifications
93
- }),
94
- search: props.search,
95
- redirectParam: props.type === 'anon' ? props.redirectParam : undefined,
96
- isEnterprise: props.type === 'enterprise',
97
- isAnon: props.type === 'anon',
98
- isSimple: props.type === 'simple',
99
- hideRightMenuButton: props.type === 'simple' || props.type === 'loading',
100
- navigationMenuFormattedLabel: props?.localizedLabels?.navigationMenuFormattedLabel
101
- }), props.children]
102
- })
66
+ children: /*#__PURE__*/_jsxs(Box, {
67
+ as: "header",
68
+ position: "sticky",
69
+ top: 0,
70
+ zIndex: theme.elements.headerZ,
71
+ children: [/*#__PURE__*/_jsx(AppHeader, {
72
+ action: combinedAction,
73
+ items: getAppHeaderItems(props, false),
74
+ search: props.search,
75
+ ...(props.type === 'anon' ? {
76
+ redirectParam: props.redirectParam
77
+ } : hideNotification ? {} : {
78
+ notifications: props.notifications
79
+ }),
80
+ hideRightButtonDefaults: hideNotification,
81
+ isAnon: props.type === 'anon',
82
+ isTeams: props.type === 'teams',
83
+ type: hideNotification ? 'enterprise' : 'standard'
84
+ }), /*#__PURE__*/_jsx(AppHeaderMobile, {
85
+ action: combinedAction,
86
+ items: getAppHeaderItems(props, true),
87
+ ...(props.type === 'anon' || hideNotification ? {} : {
88
+ notifications: props.notifications
89
+ }),
90
+ search: props.search,
91
+ redirectParam: props.type === 'anon' ? props.redirectParam : undefined,
92
+ isEnterprise: props.type === 'enterprise',
93
+ isAnon: props.type === 'anon',
94
+ isSimple: props.type === 'simple',
95
+ hideRightMenuButton: props.type === 'simple' || props.type === 'loading',
96
+ navigationMenuFormattedLabel: props?.localizedLabels?.navigationMenuFormattedLabel
97
+ }), props.children]
103
98
  })
104
99
  });
105
100
  };
@@ -30,7 +30,6 @@ interface BaseHeader extends WithChildrenProp, AppHeaderAction {
30
30
  hideEnterpriseHeader?: boolean;
31
31
  localizedLabels?: localizedLabels;
32
32
  search: AppHeaderSearch;
33
- isLiveLearningHubEnabled?: boolean;
34
33
  }
35
34
  export type User = {
36
35
  avatar: string;
@@ -4,5 +4,6 @@ export interface CTAProps extends Pick<ButtonProps, 'children'> {
4
4
  href: string;
5
5
  onClick?: React.MouseEventHandler;
6
6
  buttonType?: 'cta' | 'fill';
7
+ mode?: 'light' | 'dark';
7
8
  }
8
9
  export declare const CTA: React.FC<CTAProps>;
@@ -1,6 +1,10 @@
1
- import { WithChildrenProp } from '@codecademy/gamut';
1
+ import { BoxProps, WithChildrenProp } from '@codecademy/gamut';
2
2
  import * as React from 'react';
3
3
  import { LandingPageBaseProps } from './types';
4
+ declare const Image: import("@emotion/styled").StyledComponent<{
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
7
+ } & BoxProps, React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
4
8
  export type FeaturedImageProps = {
5
9
  src: string;
6
10
  alt: string;
@@ -9,16 +13,20 @@ export declare const FeaturedImage: React.FC<FeaturedImageProps>;
9
13
  export type FeaturedIconProps = {
10
14
  src: string;
11
15
  alt: string;
16
+ style?: Omit<React.ComponentProps<typeof Image>, 'src' | 'alt' | 'data-testid' | 'width' | 'height'>;
12
17
  };
13
18
  export declare const FeaturedIcon: React.FC<FeaturedIconProps>;
14
19
  export declare const FeaturedStat: React.FC<WithChildrenProp>;
15
20
  export interface FeaturedTitleProps extends WithChildrenProp {
16
21
  as: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
22
+ style?: Omit<BoxProps, 'as' | 'children'>;
17
23
  }
18
24
  export declare const FeaturedTitle: React.FC<FeaturedTitleProps>;
19
25
  export type FeaturedDescriptionProps = Pick<LandingPageBaseProps, 'desc' | 'onAnchorClick'>;
20
26
  export declare const FeaturedDescription: React.FC<FeaturedDescriptionProps>;
21
27
  export interface FeatureProps extends WithChildrenProp {
22
28
  testId?: string;
29
+ style?: Omit<BoxProps, 'as' | 'children'>;
23
30
  }
24
31
  export declare const Feature: React.FC<FeatureProps>;
32
+ export {};
@@ -23,13 +23,15 @@ export const FeaturedImage = ({
23
23
  });
24
24
  export const FeaturedIcon = ({
25
25
  src,
26
- alt
26
+ alt,
27
+ style
27
28
  }) => /*#__PURE__*/_jsx(Image, {
28
29
  alt: alt,
29
30
  src: src,
30
31
  mb: 32,
31
32
  width: "64px",
32
- "data-testid": "feature-icon"
33
+ "data-testid": "feature-icon",
34
+ ...style
33
35
  });
34
36
  export const FeaturedStat = ({
35
37
  children
@@ -45,7 +47,8 @@ export const FeaturedStat = ({
45
47
  });
46
48
  export const FeaturedTitle = ({
47
49
  as,
48
- children
50
+ children,
51
+ style
49
52
  }) => /*#__PURE__*/_jsx(Text, {
50
53
  as: as,
51
54
  fontSize: {
@@ -54,6 +57,7 @@ export const FeaturedTitle = ({
54
57
  },
55
58
  fontWeight: "title",
56
59
  lineHeight: "spacedTitle",
60
+ ...style,
57
61
  children: children
58
62
  });
59
63
  const StyledMarkdown = /*#__PURE__*/_styled(Markdown, {
@@ -64,7 +68,7 @@ const StyledMarkdown = /*#__PURE__*/_styled(Markdown, {
64
68
  styles: "ul,ol{padding:0;list-style-position:inside;}"
65
69
  } : {
66
70
  name: "c1p463",
67
- styles: "ul,ol{padding:0;list-style-position:inside;}/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9MYW5kaW5nUGFnZS9GZWF0dXJlLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF3RHVDIiwiZmlsZSI6Ii4uLy4uL3NyYy9MYW5kaW5nUGFnZS9GZWF0dXJlLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJveCwg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TGFuZGluZ1BhZ2VCYXNlUHJvcHMsXG4gICdkZXNjJyB8ICdvbkFuY2hvckNsaWNrJ1xuPjtcbmV4cG9ydCBjb25zdCBGZWF0dXJlZERlc2NyaXB0aW9uOiBSZWFjdC5GQzxGZWF0dXJlZERlc2NyaXB0aW9uUHJvcHM+ID0gKHtcbiAgZGVzYyxcbiAgb25BbmNob3JDbGljayxcbn0pID0+IChcbiAgPFN0eWxlZE1hcmtkb3duIHRleHQ9e2Rlc2N9IHNwYWNpbmc9XCJub25lXCIgb25BbmNob3JDbGljaz17b25BbmNob3JDbGlja30gLz5cbik7XG5cbmNvbnN0IEZlYXR1cmVCbG9jayA9IHN0eWxlZC5kaXZgXG4gIGZsZXg6IDE7XG4gIG1hcmdpbi10b3A6IDJyZW07XG4gICR7bWVkaWFRdWVyaWVzLnNtfSB7XG4gICAgJjpub3QoOmxhc3Qtb2YtdHlwZSkge1xuICAgICAgbWFyZ2luLXJpZ2h0OiAxcmVtO1xuXG4gICAgICAke21lZGlhUXVlcmllcy5sZ30ge1xuICAgICAgICBtYXJnaW4tcmlnaHQ6IDJyZW07XG4gICAgICB9XG4gICAgfVxuICB9XG5gO1xuXG5leHBvcnQgaW50ZXJmYWNlIEZlYXR1cmVQcm9wcyBleHRlbmRzIFdpdGhDaGlsZHJlblByb3Age1xuICB0ZXN0SWQ/OiBzdHJpbmc7XG59XG5cbmV4cG9ydCBjb25zdCBGZWF0dXJlOiBSZWFjdC5GQzxGZWF0dXJlUHJvcHM+ID0gKHsgdGVzdElkLCBjaGlsZHJlbiB9KSA9PiAoXG4gIDxGZWF0dXJlQmxvY2sgZGF0YS10ZXN0aWQ9e3Rlc3RJZH0+e2NoaWxkcmVufTwvRmVhdHVyZUJsb2NrPlxuKTtcbiJdfQ== */",
71
+ styles: "ul,ol{padding:0;list-style-position:inside;}/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9MYW5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gICAgICAke21lZGlhUXVlcmllcy5sZ30ge1xuICAgICAgICBtYXJnaW4tcmlnaHQ6IDJyZW07XG4gICAgICB9XG4gICAgfVxuICB9XG5gO1xuXG5leHBvcnQgaW50ZXJmYWNlIEZlYXR1cmVQcm9wcyBleHRlbmRzIFdpdGhDaGlsZHJlblByb3Age1xuICB0ZXN0SWQ/OiBzdHJpbmc7XG4gIHN0eWxlPzogT21pdDxCb3hQcm9wcywgJ2FzJyB8ICdjaGlsZHJlbic+O1xufVxuZXhwb3J0IGNvbnN0IEZlYXR1cmU6IFJlYWN0LkZDPEZlYXR1cmVQcm9wcz4gPSAoe1xuICB0ZXN0SWQsXG4gIGNoaWxkcmVuLFxuICBzdHlsZSxcbn0pID0+IChcbiAgPEZlYXR1cmVCbG9jayBhcz1cImRpdlwiIG10PXszMn0gZGF0YS10ZXN0aWQ9e3Rlc3RJZH0gey4uLnN0eWxlfT5cbiAgICB7Y2hpbGRyZW59XG4gIDwvRmVhdHVyZUJsb2NrPlxuKTtcbiJdfQ== */",
68
72
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
69
73
  });
70
74
  export const FeaturedDescription = ({
@@ -75,14 +79,18 @@ export const FeaturedDescription = ({
75
79
  spacing: "none",
76
80
  onAnchorClick: onAnchorClick
77
81
  });
78
- const FeatureBlock = /*#__PURE__*/_styled("div", {
82
+ const FeatureBlock = /*#__PURE__*/_styled(Box, {
79
83
  target: "e16ecq900",
80
84
  label: "FeatureBlock"
81
- })("flex:1;margin-top:2rem;", mediaQueries.sm, "{&:not(:last-of-type){margin-right:1rem;", mediaQueries.lg, "{margin-right:2rem;}}}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9MYW5kaW5nUGFnZS9GZWF0dXJlLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEwRStCIiwiZmlsZSI6Ii4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not(:last-of-type){margin-right:1rem;", mediaQueries.lg, "{margin-right:2rem;}}}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9MYW5kaW5nUGFnZS9GZWF0dXJlLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFrR2dDIiwiZmlsZSI6Ii4uLy4uL3NyYy9MYW5kaW5nUGFnZS9GZWF0dXJlLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7XG4gIEJveCxcbiAgQm94UHJvcHMsXG4gIE1hcmtkb3duLFxuICBUZXh0LFxuICBXaXRoQ2hpbGRyZW5Qcm9wLFxufSBmcm9tICdAY29kZWNhZGVteS9nYW11dCc7XG5pbXBvcnQgeyBtZWRpYVF1ZXJpZXMgfSBmcm9tICdAY29kZWNhZGVteS9nYW11dC1zdHlsZXMnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0ICogYXMgUmVhY3QgZnJvbSAncmVhY3QnO1xuXG5pbXBvcnQgeyBQYXVzYWJsZUltYWdlIH0gZnJvbSAnLi4vUGF1c2FibGVJbWFnZSc7XG5pbXBvcnQgeyBMYW5kaW5nUGFnZUJhc2VQcm9wcyB9IGZyb20gJy4vdHlwZXMnO1xuXG5jb25zdCBJbWFnZSA9IEJveC53aXRoQ29tcG9uZW50KCdpbWcnKTtcblxuZXhwb3J0IHR5cGUgRmVhdHVyZWRJbWFnZVByb3BzID0ge1xuICBzcmM6IHN0cmluZztcbiAgYWx0OiBzdHJpbmc7XG59O1xuZXhwb3J0IGNvbnN0IEZlYXR1cmVkSW1hZ2U6IFJlYWN0LkZDPEZlYXR1cmVkSW1hZ2VQcm9wcz4gPSAoeyBzcmMsIGFsdCB9KSA9PiAoXG4gIDxCb3ggd2lkdGg9ezF9IG1iPXszMn0+XG4gICAgPFBh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ZUJsb2NrID0gc3R5bGVkKEJveClgXG4gIGZsZXg6IDE7XG4gICR7bWVkaWFRdWVyaWVzLnNtfSB7XG4gICAgJjpub3QoOmxhc3Qtb2YtdHlwZSkge1xuICAgICAgbWFyZ2luLXJpZ2h0OiAxcmVtO1xuXG4gICAgICAke21lZGlhUXVlcmllcy5sZ30ge1xuICAgICAgICBtYXJnaW4tcmlnaHQ6IDJyZW07XG4gICAgICB9XG4gICAgfVxuICB9XG5gO1xuXG5leHBvcnQgaW50ZXJmYWNlIEZlYXR1cmVQcm9wcyBleHRlbmRzIFdpdGhDaGlsZHJlblByb3Age1xuICB0ZXN0SWQ/OiBzdHJpbmc7XG4gIHN0eWxlPzogT21pdDxCb3hQcm9wcywgJ2FzJyB8ICdjaGlsZHJlbic+O1xufVxuZXhwb3J0IGNvbnN0IEZlYXR1cmU6IFJlYWN0LkZDPEZlYXR1cmVQcm9wcz4gPSAoe1xuICB0ZXN0SWQsXG4gIGNoaWxkcmVuLFxuICBzdHlsZSxcbn0pID0+IChcbiAgPEZlYXR1cmVCbG9jayBhcz1cImRpdlwiIG10PXszMn0gZGF0YS10ZXN0aWQ9e3Rlc3RJZH0gey4uLnN0eWxlfT5cbiAgICB7Y2hpbGRyZW59XG4gIDwvRmVhdHVyZUJsb2NrPlxuKTtcbiJdfQ== */"));
82
86
  export const Feature = ({
83
87
  testId,
84
- children
88
+ children,
89
+ style
85
90
  }) => /*#__PURE__*/_jsx(FeatureBlock, {
91
+ as: "div",
92
+ mt: 32,
86
93
  "data-testid": testId,
94
+ ...style,
87
95
  children: children
88
96
  });
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { PageFeaturesProps } from '../PageFeatures';
3
+ import { Eyebrow } from '../PageSingleFeature';
4
+ type SectionBackgroundColor = 'navy' | 'hyper' | 'yellow' | 'navy-200' | 'navy-600';
5
+ export interface LiveLearningPageFeaturesProps extends PageFeaturesProps {
6
+ eyebrow?: Eyebrow;
7
+ sectionBackgroundColor?: SectionBackgroundColor;
8
+ }
9
+ export declare const LiveLearningPageFeatures: React.FC<LiveLearningPageFeaturesProps>;
10
+ export {};
@@ -0,0 +1,167 @@
1
+ import { Box, Column, FlexBox, LayoutGrid } from '@codecademy/gamut';
2
+ import * as React from 'react';
3
+ import { CTA } from '../CTA';
4
+ import { Description } from '../Description';
5
+ import { Feature, FeaturedDescription, FeaturedIcon, FeaturedImage, FeaturedStat, FeaturedTitle } from '../Feature';
6
+ import { Title } from '../Title';
7
+ import { TitleWithEyebrow } from '../TitleWithEyebrow';
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
+ const rowRenderEach = (items, itemRenderer) => {
10
+ return /*#__PURE__*/_jsx(FlexBox, {
11
+ flexDirection: {
12
+ _: 'column',
13
+ sm: 'row'
14
+ },
15
+ as: "ul",
16
+ pl: 0,
17
+ gap: {
18
+ sm: 32
19
+ },
20
+ children: items.map(item => /*#__PURE__*/_jsx(FlexBox, {
21
+ as: "li",
22
+ flex: 1,
23
+ children: itemRenderer(item)
24
+ }, item.title))
25
+ });
26
+ };
27
+ const gridRenderEach = (maxCols, items, itemRenderer, sectionBackgroundColor) => {
28
+ const size = {
29
+ _: 12,
30
+ sm: 6,
31
+ md: 16 / maxCols,
32
+ lg: 14 / maxCols,
33
+ xl: 12 / maxCols
34
+ };
35
+ return /*#__PURE__*/_jsx(LayoutGrid, {
36
+ columnGap: {
37
+ _: 8,
38
+ sm: 32
39
+ },
40
+ rowGap: {
41
+ _: 8,
42
+ sm: 32,
43
+ md: 32,
44
+ lg: 8
45
+ },
46
+ as: "ul",
47
+ pl: 0,
48
+ children: items.map(item => /*#__PURE__*/_jsx(Column, {
49
+ size: size,
50
+ as: "li",
51
+ children: /*#__PURE__*/_jsx(Box, {
52
+ bg: sectionBackgroundColor,
53
+ px: 16,
54
+ borderRadius: "lg",
55
+ children: itemRenderer(item)
56
+ }, item.title)
57
+ }, item.title))
58
+ });
59
+ };
60
+ const renderEach = (maxCols, items, itemRenderer, sectionBackgroundColor) => {
61
+ if (maxCols === undefined) {
62
+ return rowRenderEach(items, itemRenderer);
63
+ }
64
+ if (maxCols > 0 && maxCols <= 4) {
65
+ return gridRenderEach(maxCols, items, itemRenderer, sectionBackgroundColor);
66
+ }
67
+ return null;
68
+ };
69
+ export const LiveLearningPageFeatures = ({
70
+ eyebrow,
71
+ title,
72
+ desc,
73
+ cta,
74
+ maxCols,
75
+ features,
76
+ featuresMedia,
77
+ testId,
78
+ onAnchorClick,
79
+ sectionBackgroundColor
80
+ }) => {
81
+ return /*#__PURE__*/_jsxs("div", {
82
+ "data-testid": testId,
83
+ children: [/*#__PURE__*/_jsxs("div", {
84
+ children: [title && /*#__PURE__*/_jsx(FlexBox, {
85
+ justifyContent: "center",
86
+ textAlign: "center",
87
+ children: eyebrow ? /*#__PURE__*/_jsx(TitleWithEyebrow, {
88
+ title: title,
89
+ eyebrow: eyebrow,
90
+ isPageHeading: false,
91
+ titleStyle: {
92
+ fontWeight: 700,
93
+ fontSize: {
94
+ _: 44,
95
+ sm: 44
96
+ }
97
+ },
98
+ eyebrowStyle: {
99
+ fontWeight: 'lighter',
100
+ fontSize: {
101
+ _: 16,
102
+ sm: 16
103
+ }
104
+ }
105
+ }) : /*#__PURE__*/_jsx(Title, {
106
+ isPageHeading: false,
107
+ children: title
108
+ })
109
+ }), desc && /*#__PURE__*/_jsx(FlexBox, {
110
+ justifyContent: "center",
111
+ textAlign: "center",
112
+ children: /*#__PURE__*/_jsx(Description, {
113
+ text: desc,
114
+ onAnchorClick: onAnchorClick
115
+ })
116
+ }), cta && /*#__PURE__*/_jsx(Box, {
117
+ mt: 32,
118
+ children: /*#__PURE__*/_jsx(CTA, {
119
+ href: cta.href,
120
+ onClick: cta.onClick,
121
+ buttonType: cta.buttonType,
122
+ children: cta.text
123
+ })
124
+ })]
125
+ }), /*#__PURE__*/_jsx(Box, {
126
+ mt: 16,
127
+ children: renderEach(maxCols, features, ({
128
+ testId,
129
+ imgSrc,
130
+ imgAlt,
131
+ statText,
132
+ title: featTitle,
133
+ desc
134
+ }) => /*#__PURE__*/_jsxs(Feature, {
135
+ testId: testId,
136
+ style: {
137
+ mt: 24
138
+ },
139
+ children: [featuresMedia === 'image' && imgSrc && /*#__PURE__*/_jsx(FeaturedImage, {
140
+ src: imgSrc,
141
+ alt: imgAlt ?? ''
142
+ }), featuresMedia === 'icon' && imgSrc && /*#__PURE__*/_jsx(FeaturedIcon, {
143
+ src: imgSrc,
144
+ alt: imgAlt ?? '',
145
+ style: {
146
+ mb: 16
147
+ }
148
+ }), featuresMedia === 'stat' && /*#__PURE__*/_jsx(FeaturedStat, {
149
+ children: statText
150
+ }), featTitle && /*#__PURE__*/_jsx(FeaturedTitle, {
151
+ as: desc ? title ? 'h3' : 'h2' : 'div',
152
+ style: {
153
+ fontSize: {
154
+ _: 20,
155
+ lg: 20
156
+ },
157
+ mb: 16
158
+ },
159
+ children: featTitle
160
+ }), desc && /*#__PURE__*/_jsx(FeaturedDescription, {
161
+ desc: desc,
162
+ onAnchorClick: onAnchorClick
163
+ })]
164
+ }), sectionBackgroundColor)
165
+ })]
166
+ });
167
+ };
@@ -0,0 +1,10 @@
1
+ import { WithChildrenProp } from '@codecademy/gamut';
2
+ import * as React from 'react';
3
+ import { LandingPageBaseProps } from './types';
4
+ export interface PageFaqsProps extends LandingPageBaseProps, WithChildrenProp {
5
+ faqs?: {
6
+ question: string;
7
+ answer: string;
8
+ }[];
9
+ }
10
+ export declare const PageFaqs: React.FC<PageFaqsProps>;