@codecademy/brand 2.0.0-alpha.9eaf2316c2.0 → 2.0.0-alpha.a3eb12cdcb.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 (183) hide show
  1. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.js +7 -8
  2. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.js +2 -4
  3. package/dist/AppHeader/index.js +2 -5
  4. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.js +5 -7
  5. package/dist/FeatureList/index.js +5 -4
  6. package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.js +6 -9
  7. package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.js +1 -1
  8. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.js +3 -3
  9. package/dist/GlobalFooter/index.js +17 -25
  10. package/dist/GlobalHeader/GlobalHeaderVariants.js +33 -33
  11. package/dist/GlobalHeader/index.js +41 -49
  12. package/dist/LandingPage/PageFeaturesEnhanced.js +3 -0
  13. package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.js +55 -0
  14. package/dist/LearningOutcomeAssessmentScores/index.js +24 -0
  15. package/package.json +1 -1
  16. package/dist/LearningOutcomeCard/index.js +0 -143
  17. package/dist/LearningOutcomePopover/index.js +0 -125
  18. package/dist/LearningOutcomeTile/Tile.js +0 -79
  19. package/dist/LearningOutcomeTile/index.js +0 -116
  20. package/dist/LearningOutcomeTile/types.js +0 -11
  21. package/dist/ListSection/index.js +0 -64
  22. package/dist/Loading/index.js +0 -82
  23. package/dist/LoadingCurriculumCard/index.js +0 -82
  24. package/dist/Logo/CodecademyLogo.js +0 -19
  25. package/dist/Logo/CodecademyPremiumLogo.js +0 -35
  26. package/dist/Logo/CodecademyProAltLogo.js +0 -19
  27. package/dist/Logo/CodecademyProLockupLogo.js +0 -13
  28. package/dist/Logo/CodecademyProLogo.js +0 -21
  29. package/dist/Logo/CodecademyProMonoLogo.js +0 -22
  30. package/dist/Logo/CodecademyProgramLogo.js +0 -14
  31. package/dist/Logo/CodecademyTeamsLogo.js +0 -41
  32. package/dist/Logo/index.js +0 -30
  33. package/dist/LogoFromSkillsoft/index.js +0 -55
  34. package/dist/LogoLXStudio/index.js +0 -47
  35. package/dist/LogoProCutout/index.js +0 -31
  36. package/dist/LogoProCutoutTransparent/index.js +0 -31
  37. package/dist/MarketingToaster/index.js +0 -67
  38. package/dist/NotFoundContent/index.js +0 -55
  39. package/dist/NotificationList/EmptyNotification/emptyNotificationContents.js +0 -23
  40. package/dist/NotificationList/EmptyNotification/index.js +0 -38
  41. package/dist/NotificationList/NotificationItem.js +0 -151
  42. package/dist/NotificationList/index.js +0 -46
  43. package/dist/NotificationList/typings.js +0 -1
  44. package/dist/Notifications/NotificationBell.js +0 -72
  45. package/dist/Notifications/NotificationsContents.js +0 -85
  46. package/dist/Notifications/NotificationsDropdown.js +0 -25
  47. package/dist/Notifications/__fixtures__/NotificationTestComponent.js +0 -12
  48. package/dist/Notifications/__fixtures__/stubs.js +0 -8
  49. package/dist/Notifications/constants.js +0 -4
  50. package/dist/Notifications/elements.js +0 -21
  51. package/dist/Notifications/types.js +0 -1
  52. package/dist/Notifications/useHeaderNotifications.js +0 -37
  53. package/dist/Notifications/useNotificationButtons.js +0 -56
  54. package/dist/PageAlerts/PageAlerts.js +0 -75
  55. package/dist/PageAlerts/PageAlertsProvider.js +0 -34
  56. package/dist/PageAlerts/index.js +0 -3
  57. package/dist/PageAlerts/types.js +0 -1
  58. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.js +0 -53
  59. package/dist/PageLayoutWithSidebarMenu/index.js +0 -1
  60. package/dist/PageSection/index.js +0 -67
  61. package/dist/PastDue/PastDueModalContents/index.js +0 -30
  62. package/dist/PastDue/index.js +0 -2
  63. package/dist/PastDue/pastDueMessages.js +0 -48
  64. package/dist/PausableImage/BaseImage/index.js +0 -54
  65. package/dist/PausableImage/index.js +0 -37
  66. package/dist/PlanCard/PlanCardBanner.js +0 -28
  67. package/dist/PlanCard/PlanFeature.js +0 -83
  68. package/dist/PlanCard/PopularBadge.js +0 -13
  69. package/dist/PlanCard/PricingAmount.js +0 -117
  70. package/dist/PlanCard/RecommendedBadge.js +0 -24
  71. package/dist/PlanCard/consts.js +0 -135
  72. package/dist/PlanCard/index.js +0 -323
  73. package/dist/PlanCard/types.js +0 -62
  74. package/dist/PlanCardTeams/consts.js +0 -8
  75. package/dist/PlanCardTeams/index.js +0 -167
  76. package/dist/PricingSection/PlanFeature.js +0 -88
  77. package/dist/PricingSection/PricingCard/PricingAmount.js +0 -84
  78. package/dist/PricingSection/PricingCard/RecommendedBadge.js +0 -24
  79. package/dist/PricingSection/PricingCard/consts.js +0 -85
  80. package/dist/PricingSection/PricingCard/index.js +0 -241
  81. package/dist/PricingSection/ProductCTA.js +0 -44
  82. package/dist/PricingSection/Products.js +0 -74
  83. package/dist/PricingSection/config.js +0 -36
  84. package/dist/PricingSection/index.js +0 -58
  85. package/dist/PricingSection/types.js +0 -8
  86. package/dist/ProLabel/index.js +0 -59
  87. package/dist/ProLogo/index.js +0 -27
  88. package/dist/ProLogoAlt/index.js +0 -26
  89. package/dist/ProductFeatureShowcase/index.js +0 -120
  90. package/dist/QuizScore/index.js +0 -84
  91. package/dist/RatingsBar/index.js +0 -32
  92. package/dist/ResourceCard/index.js +0 -59
  93. package/dist/ScoreSummary/SubScores.js +0 -165
  94. package/dist/ScoreSummary/helpers.js +0 -20
  95. package/dist/ScoreSummary/index.js +0 -108
  96. package/dist/ScoreSummary/types.js +0 -1
  97. package/dist/SkillPathCard/index.js +0 -38
  98. package/dist/SocialMediaSharing/SocialShareIconLink.js +0 -49
  99. package/dist/SocialMediaSharing/index.js +0 -116
  100. package/dist/SocialMediaSharingDropdown/index.js +0 -111
  101. package/dist/Testimonial/index.js +0 -163
  102. package/dist/index.js +0 -87
  103. package/dist/lib/breakpointHooks/index.js +0 -60
  104. package/dist/lib/catalogList/index.js +0 -173
  105. package/dist/lib/resourcesList/index.js +0 -241
  106. package/dist/remoteAssets/components.js +0 -1
  107. package/dist/stories/Atoms/Avatar.stories.js +0 -16
  108. package/dist/stories/Atoms/BetaSticker.stories.js +0 -22
  109. package/dist/stories/Atoms/Logos/Logo.stories.js +0 -78
  110. package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.js +0 -15
  111. package/dist/stories/Atoms/Logos/LogoLXStudio.stories.js +0 -11
  112. package/dist/stories/Atoms/Logos/ProLabel.stories.js +0 -16
  113. package/dist/stories/Atoms/Logos/ProLogoAlt.stories.js +0 -24
  114. package/dist/stories/Atoms/RatingsBar.stories.js +0 -16
  115. package/dist/stories/Atoms/Subgrid.stories.js +0 -87
  116. package/dist/stories/Molecules/AppBar.stories.js +0 -32
  117. package/dist/stories/Molecules/AppHeader/AppHeader.stories.js +0 -84
  118. package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.js +0 -67
  119. package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.js +0 -52
  120. package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.js +0 -44
  121. package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.js +0 -34
  122. package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.js +0 -40
  123. package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.js +0 -25
  124. package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.js +0 -176
  125. package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.js +0 -84
  126. package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.js +0 -90
  127. package/dist/stories/Molecules/AvatarChooser.stories.js +0 -22
  128. package/dist/stories/Molecules/BackToTopAnchor.stories.js +0 -51
  129. package/dist/stories/Molecules/Banner.stories.js +0 -115
  130. package/dist/stories/Molecules/Carousel.stories.js +0 -47
  131. package/dist/stories/Molecules/ContentGroupBaseCard.stories.js +0 -173
  132. package/dist/stories/Molecules/CurriculumCard.stories.js +0 -208
  133. package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.js +0 -92
  134. package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.js +0 -65
  135. package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.js +0 -83
  136. package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.js +0 -20
  137. package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.js +0 -90
  138. package/dist/stories/Molecules/DropdownButton.stories.js +0 -207
  139. package/dist/stories/Molecules/EditorialImage.stories.js +0 -17
  140. package/dist/stories/Molecules/EmptySection.stories.js +0 -168
  141. package/dist/stories/Molecules/ErrorContents.stories.js +0 -19
  142. package/dist/stories/Molecules/GridCollapse.stories.js +0 -42
  143. package/dist/stories/Molecules/HorizontalScrollMenu.examples.js +0 -67
  144. package/dist/stories/Molecules/HorizontalScrollMenu.stories.js +0 -11
  145. package/dist/stories/Molecules/HubCard.stories.js +0 -28
  146. package/dist/stories/Molecules/InfoCard.stories.js +0 -30
  147. package/dist/stories/Molecules/LearningOutcomeCard.stories.js +0 -59
  148. package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.js +0 -20
  149. package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.js +0 -10
  150. package/dist/stories/Molecules/LearningOutcomePopover.stories.js +0 -39
  151. package/dist/stories/Molecules/LearningOutcomeTile.stories.js +0 -276
  152. package/dist/stories/Molecules/ListSection.stories.js +0 -97
  153. package/dist/stories/Molecules/Loading.stories.js +0 -10
  154. package/dist/stories/Molecules/NotificationList.stories.js +0 -100
  155. package/dist/stories/Molecules/PageSection.stories.js +0 -67
  156. package/dist/stories/Molecules/PastDueModalContents.stories.js +0 -62
  157. package/dist/stories/Molecules/PausableImage.stories.js +0 -16
  158. package/dist/stories/Molecules/ResourceCard.stories.js +0 -18
  159. package/dist/stories/Molecules/SocialMediaSharing.stories.js +0 -20
  160. package/dist/stories/Molecules/SocialMediaSharingDropdown.stories.js +0 -20
  161. package/dist/stories/Molecules/Testimonial.stories.js +0 -63
  162. package/dist/stories/Organisms/GlobalFooter.stories.js +0 -29
  163. package/dist/stories/Organisms/GlobalHeader/About.stories.js +0 -136
  164. package/dist/stories/Organisms/GlobalHeader/Anon.stories.js +0 -73
  165. package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.js +0 -32
  166. package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.js +0 -108
  167. package/dist/stories/Organisms/GlobalHeader/Free.stories.js +0 -133
  168. package/dist/stories/Organisms/GlobalHeader/Pro.stories.js +0 -199
  169. package/dist/stories/Organisms/GlobalHeader/Simple.stories.js +0 -31
  170. package/dist/stories/Organisms/GlobalPage.stories.js +0 -142
  171. package/dist/stories/Organisms/LayoutMenu.stories.js +0 -242
  172. package/dist/stories/Organisms/LayoutMenuVariant.stories.js +0 -224
  173. package/dist/stories/Organisms/PageAlerts.example.js +0 -42
  174. package/dist/stories/Organisms/PageAlerts.stories.js +0 -15
  175. package/dist/stories/Organisms/PageFeatures.stories.js +0 -183
  176. package/dist/stories/Organisms/PageHero.stories.js +0 -145
  177. package/dist/stories/Organisms/PageLayoutWithSidebarMenu.stories.js +0 -34
  178. package/dist/stories/Organisms/PagePrefooter.stories.js +0 -62
  179. package/dist/stories/Organisms/PageSingleFeature.stories.js +0 -158
  180. package/dist/stories/Organisms/PageVideoGallery.stories.js +0 -70
  181. package/dist/stories/Organisms/PlanCard.stories.js +0 -98
  182. package/dist/stories/Organisms/PlanCardTeams.stories.js +0 -27
  183. package/dist/stories/Organisms/ScoreSummary.stories.js +0 -299
@@ -1,224 +0,0 @@
1
- import { Box } from '@codecademy/gamut';
2
- import { LayoutMenuVariant } from '../../index';
3
- import { jsx as _jsx } from "react/jsx-runtime";
4
- const defaults = {
5
- href: '',
6
- onClick: () => {}
7
- };
8
- const meta = {
9
- component: LayoutMenuVariant.LayoutMenu,
10
- args: {
11
- sections: [{
12
- title: 'Languages',
13
- slug: 'language',
14
- items: [{
15
- title: 'HTML & CSS',
16
- slug: 'html-css',
17
- href: '/catalog/language/html-css',
18
- onClick: () => null
19
- }, {
20
- title: 'Python',
21
- slug: 'python',
22
- href: '/catalog/language/python',
23
- onClick: () => null
24
- }]
25
- }, {
26
- title: 'Subjects',
27
- slug: 'subject',
28
- items: [{
29
- title: 'Data Science',
30
- slug: 'data-science',
31
- href: '/catalog/subject/data-science',
32
- onClick: () => null
33
- }, {
34
- title: 'Computer Science',
35
- slug: 'computer-science',
36
- href: '/catalog/subject/computer-science',
37
- onClick: () => null
38
- }]
39
- }],
40
- onSectionToggle: slug => {
41
- // eslint-disable-next-line no-console
42
- console.log(`You could add event tracking here. You have access to the slug: ${slug}`);
43
- },
44
- mobileButtonText: 'Click Me'
45
- }
46
- };
47
- export default meta;
48
- export const Default = {
49
- render: args => /*#__PURE__*/_jsx(LayoutMenuVariant.LayoutMenu, {
50
- ...args
51
- }),
52
- name: 'LayoutMenu'
53
- };
54
- export const WithAdditionalLinks = {
55
- render: args => /*#__PURE__*/_jsx(LayoutMenuVariant.LayoutMenu, {
56
- ...args,
57
- children: /*#__PURE__*/_jsx(Box, {
58
- py: 16,
59
- children: /*#__PURE__*/_jsx(LayoutMenuVariant.SectionItemLink, {
60
- href: defaults.href,
61
- onClick: () => window.location.href = 'https://www.codecademy.com/explore/sorting-quiz',
62
- children: "Where do I begin?"
63
- })
64
- })
65
- }),
66
- name: 'With Additional Links'
67
- };
68
- export const WithAdditionalLinksOnTopAndBottom = {
69
- render: args => /*#__PURE__*/_jsx(LayoutMenuVariant.LayoutMenu, {
70
- ...args,
71
- topLinkSections: [{
72
- title: 'A top link!',
73
- slug: 'top-link',
74
- href: '/not-a-real-link',
75
- onClick: () => null
76
- }, {
77
- title: 'Another link!',
78
- slug: 'test-link-2',
79
- href: '/do-not-press-me',
80
- onClick: () => null
81
- }],
82
- children: /*#__PURE__*/_jsx(Box, {
83
- py: 16,
84
- children: /*#__PURE__*/_jsx(LayoutMenuVariant.SectionItemLink, {
85
- href: defaults.href,
86
- onClick: () => window.location.href = 'https://www.codecademy.com/explore/sorting-quiz',
87
- children: "Where do I begin?"
88
- })
89
- })
90
- }),
91
- name: 'With Additional Links on Top and Bottom'
92
- };
93
- export const WithSetMenuHeight = {
94
- render: args => /*#__PURE__*/_jsx(LayoutMenuVariant.LayoutMenu, {
95
- ...args,
96
- menuHeight: "sm",
97
- sections: [{
98
- title: 'Languages',
99
- slug: 'language',
100
- items: [{
101
- title: 'Python',
102
- slug: 'python',
103
- ...defaults
104
- }, {
105
- title: 'HTML & CSS',
106
- slug: 'html-css',
107
- ...defaults
108
- }, {
109
- title: 'JavaScript',
110
- slug: 'javascript',
111
- ...defaults
112
- }, {
113
- title: 'SQL',
114
- slug: 'sql',
115
- ...defaults
116
- }, {
117
- title: 'C++',
118
- slug: 'c-plus-plus',
119
- ...defaults
120
- }, {
121
- title: 'Java',
122
- slug: 'java',
123
- ...defaults
124
- }, {
125
- title: 'R',
126
- slug: 'r',
127
- ...defaults
128
- }, {
129
- title: 'Go',
130
- slug: 'go',
131
- ...defaults
132
- }, {
133
- title: 'C#',
134
- slug: 'c-sharp',
135
- ...defaults
136
- }, {
137
- title: 'PHP',
138
- slug: 'php',
139
- ...defaults
140
- }, {
141
- title: 'Ruby',
142
- slug: 'ruby',
143
- ...defaults
144
- }, {
145
- title: 'Swift',
146
- slug: 'swift',
147
- ...defaults
148
- }, {
149
- title: 'Bash/Shell',
150
- slug: 'bash',
151
- ...defaults
152
- }, {
153
- title: 'Kotlin',
154
- slug: 'kotlin',
155
- ...defaults
156
- }, {
157
- title: 'C',
158
- slug: 'c',
159
- ...defaults
160
- }]
161
- }, {
162
- title: 'Subjects',
163
- slug: 'subject',
164
- items: [{
165
- title: 'Computer Science',
166
- slug: 'computer-science',
167
- ...defaults
168
- }, {
169
- title: 'Machine Learning',
170
- slug: 'machine-learning',
171
- ...defaults
172
- }, {
173
- title: 'Data Visualization',
174
- slug: 'data-visualization',
175
- ...defaults
176
- }, {
177
- title: 'Web Development',
178
- slug: 'web-development',
179
- ...defaults
180
- }, {
181
- title: 'Web Design',
182
- slug: 'web-design',
183
- ...defaults
184
- }, {
185
- title: 'Data Science',
186
- slug: 'data-science',
187
- ...defaults
188
- }, {
189
- title: 'Mobile Development',
190
- slug: 'mobile-development',
191
- ...defaults
192
- }, {
193
- title: 'Developer Tools',
194
- slug: 'developer-tools',
195
- ...defaults
196
- }, {
197
- title: 'Code Foundations',
198
- slug: 'code-foundations',
199
- ...defaults
200
- }, {
201
- title: 'Game Development',
202
- slug: 'game-development',
203
- ...defaults
204
- }, {
205
- title: 'Interview Prep',
206
- slug: 'interview-prep',
207
- ...defaults
208
- }, {
209
- title: 'Cybersecurity',
210
- slug: 'cybersecurity',
211
- ...defaults
212
- }]
213
- }],
214
- children: /*#__PURE__*/_jsx(Box, {
215
- py: 16,
216
- children: /*#__PURE__*/_jsx(LayoutMenuVariant.SectionItemLink, {
217
- href: defaults.href,
218
- onClick: () => window.location.href = 'https://www.codecademy.com/explore/sorting-quiz',
219
- children: "Where do I begin?"
220
- })
221
- })
222
- }),
223
- name: 'With Set Menu Height'
224
- };
@@ -1,42 +0,0 @@
1
- import { FillButton, GridBox } from '@codecademy/gamut';
2
- import { useContext } from 'react';
3
- import * as React from 'react';
4
- import { PageAlerts, PageAlertsContext, PageAlertsProvider } from '../../index';
5
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
- export const PageAlertsExample = () => /*#__PURE__*/_jsxs(PageAlertsProvider, {
7
- children: [/*#__PURE__*/_jsx(Component, {}), /*#__PURE__*/_jsx(PageAlerts, {
8
- extra: [{
9
- type: 'success',
10
- message: '"extra" alert on page-load provided by the PageAlertProvider 😎'
11
- }]
12
- })]
13
- });
14
- const Component = () => {
15
- const {
16
- addAlert
17
- } = useContext(PageAlertsContext);
18
- const alerts = [{
19
- type: 'success',
20
- message: `This alert can appear multiple times in a row because the message is different each time: ${Math.random()}`
21
- }, {
22
- type: 'error',
23
- message: 'Error!'
24
- }, {
25
- type: 'general',
26
- message: 'General alert!'
27
- }, {
28
- type: 'notice',
29
- message: 'Notice!'
30
- }, {
31
- type: 'feature',
32
- message: 'Feature alert!'
33
- }];
34
- return /*#__PURE__*/_jsx(GridBox, {
35
- width: 300,
36
- rowGap: 16,
37
- children: alerts.map(alert => /*#__PURE__*/_jsx(FillButton, {
38
- onClick: () => addAlert(alert),
39
- children: `Trigger ${alert.type} alert`
40
- }, alert.type))
41
- });
42
- };
@@ -1,15 +0,0 @@
1
- import { PageAlerts } from '../../index';
2
- import { PageAlertsExample } from './PageAlerts.example';
3
- import { jsx as _jsx } from "react/jsx-runtime";
4
- const meta = {
5
- component: PageAlerts
6
- };
7
- export default meta;
8
- export const Default = {
9
- render: args => {
10
- return /*#__PURE__*/_jsx(PageAlertsExample, {
11
- ...args
12
- });
13
- },
14
- name: 'PageAlerts'
15
- };
@@ -1,183 +0,0 @@
1
- import { Background } from '@codecademy/gamut-styles';
2
- import { PageFeatures } from '../../index';
3
- import { jsx as _jsx } from "react/jsx-runtime";
4
- const ctaArgs = {
5
- text: 'Click Me',
6
- href: '#',
7
- onClick: () => {
8
- // eslint-disable-next-line no-console
9
- console.log('You could add event tracking here');
10
- }
11
- };
12
- const meta = {
13
- component: PageFeatures,
14
- args: {
15
- title: 'Welcome to Codecademy',
16
- desc: "**Lorem Ipsum** is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. Example link [here](#).",
17
- cta: {
18
- ...ctaArgs
19
- },
20
- features: [{
21
- imgSrc: 'https://content.codecademy.com/courses/free/boba.svg',
22
- imgAlt: 'Codey boba tea',
23
- statText: '45 mil.',
24
- title: 'Software Engineer',
25
- desc: '**Software Engineer**. Example link [here](#).'
26
- }, {
27
- imgSrc: 'https://content.codecademy.com/courses/free/boba.svg',
28
- imgAlt: 'Codey boba tea',
29
- statText: '170',
30
- title: 'Data Scientist',
31
- desc: '**Data Scientist**. Example link [here](#).'
32
- }, {
33
- imgSrc: 'https://content.codecademy.com/courses/free/boba.svg',
34
- imgAlt: 'Codey boba tea',
35
- statText: '200+',
36
- title: 'Product Manager',
37
- desc: '**Product Manager**. Example link [here](#).'
38
- }, {
39
- imgSrc: 'https://content.codecademy.com/courses/free/boba.svg',
40
- imgAlt: 'Codey boba tea',
41
- statText: '100%',
42
- title: 'Product Designer',
43
- desc: '**Product Designer**. Example link [here](#).'
44
- }]
45
- }
46
- };
47
- export default meta;
48
- export const FeaturedInfo = {
49
- render: args => /*#__PURE__*/_jsx(PageFeatures, {
50
- ...args
51
- }),
52
- name: 'Featured Info'
53
- };
54
- export const FeaturedImages = {
55
- render: args => /*#__PURE__*/_jsx(PageFeatures, {
56
- ...args
57
- }),
58
- name: 'Featured Images',
59
- args: {
60
- featuresMedia: 'image'
61
- }
62
- };
63
- export const FeaturedIcons = {
64
- render: args => /*#__PURE__*/_jsx(PageFeatures, {
65
- ...args
66
- }),
67
- name: 'Featured Icons',
68
- args: {
69
- featuresMedia: 'icon'
70
- }
71
- };
72
- export const FeaturedStats = {
73
- render: args => /*#__PURE__*/_jsx(PageFeatures, {
74
- ...args
75
- }),
76
- name: 'Featured Stats',
77
- args: {
78
- featuresMedia: 'stat',
79
- features: [{
80
- statText: '45 mil.',
81
- title: 'Software Engineer'
82
- }, {
83
- statText: '170',
84
- title: 'Data Scientist'
85
- }, {
86
- statText: '200+',
87
- title: 'Product Manager'
88
- }, {
89
- statText: '100%',
90
- title: 'Product Designer'
91
- }]
92
- }
93
- };
94
- export const FeaturesGrid = {
95
- render: args => /*#__PURE__*/_jsx(PageFeatures, {
96
- ...args
97
- }),
98
- name: 'Features Grid',
99
- args: {
100
- maxCols: 3,
101
- featuresMedia: 'icon'
102
- }
103
- };
104
- export const WithoutDescription = {
105
- render: args => /*#__PURE__*/_jsx(PageFeatures, {
106
- ...args
107
- }),
108
- name: 'Without Description',
109
- args: {
110
- featuresMedia: 'icon',
111
- desc: undefined,
112
- features: [{
113
- imgSrc: 'https://content.codecademy.com/courses/free/boba.svg',
114
- imgAlt: 'Codey boba tea',
115
- title: 'Software Engineer'
116
- }, {
117
- imgSrc: 'https://content.codecademy.com/courses/free/boba.svg',
118
- imgAlt: 'Codey boba tea',
119
- title: 'Data Scientist'
120
- }]
121
- }
122
- };
123
- export const RegularButton = {
124
- render: args => /*#__PURE__*/_jsx(PageFeatures, {
125
- ...args,
126
- features: args.features.slice(0, 3),
127
- cta: {
128
- ...ctaArgs,
129
- buttonType: 'fill'
130
- }
131
- }),
132
- name: 'Regular Button',
133
- args: {
134
- featuresMedia: 'image'
135
- }
136
- };
137
- export const DarkMode = {
138
- render: args => /*#__PURE__*/_jsx(Background, {
139
- bg: "navy",
140
- p: 16,
141
- children: /*#__PURE__*/_jsx(PageFeatures, {
142
- ...args
143
- })
144
- }),
145
- name: 'Dark Mode',
146
- args: {
147
- featuresMedia: 'icon'
148
- }
149
- };
150
- export const PausableImage = {
151
- render: args => /*#__PURE__*/_jsx(PageFeatures, {
152
- ...args
153
- }),
154
- name: 'PausableImage',
155
- args: {
156
- featuresMedia: 'image',
157
- features: [{
158
- imgSrc: '//images.ctfassets.net/go6kr6r0ykrq/2vjTCK9DmJ6BOd5NtFxNIG/e5ced4209aef5241cd581841fa6e2511/learn-css_box-model_06.16.gif',
159
- imgAlt: 'learning envuironment demonstration',
160
- statText: '45 mil.',
161
- title: 'Software Engineer',
162
- desc: '**Software Engineer**. Example link [here](#).'
163
- }, {
164
- imgSrc: '//images.ctfassets.net/go6kr6r0ykrq/2vjTCK9DmJ6BOd5NtFxNIG/e5ced4209aef5241cd581841fa6e2511/learn-css_box-model_06.16.gif',
165
- imgAlt: 'learning envuironment demonstration',
166
- statText: '170',
167
- title: 'Data Scientist',
168
- desc: '**Data Scientist**. Example link [here](#).'
169
- }, {
170
- imgSrc: '//images.ctfassets.net/go6kr6r0ykrq/2vjTCK9DmJ6BOd5NtFxNIG/e5ced4209aef5241cd581841fa6e2511/learn-css_box-model_06.16.gif',
171
- imgAlt: 'learning envuironment demonstration',
172
- statText: '200+',
173
- title: 'Product Manager',
174
- desc: '**Product Manager**. Example link [here](#).'
175
- }, {
176
- imgSrc: '//images.ctfassets.net/go6kr6r0ykrq/2vjTCK9DmJ6BOd5NtFxNIG/e5ced4209aef5241cd581841fa6e2511/learn-css_box-model_06.16.gif',
177
- imgAlt: 'learning envuironment demonstration',
178
- statText: '100%',
179
- title: 'Product Designer',
180
- desc: '**Product Designer**. Example link [here](#).'
181
- }]
182
- }
183
- };
@@ -1,145 +0,0 @@
1
- import { Background } from '@codecademy/gamut-styles';
2
- import { PageHero } from '../../index';
3
- import { jsx as _jsx } from "react/jsx-runtime";
4
- const ctaArgs = {
5
- text: 'Click Me',
6
- href: 'https://open.spotify.com/album/10aiDpdFGyfCFEcqpx6XTq?si=xR1nDqVqROK6KYM8J-l_rw'
7
- };
8
- const meta = {
9
- component: PageHero,
10
- args: {
11
- title: 'Welcome to Codecademy',
12
- desc: 'feat. [Rob Thomas of Matchbox Twenty](https://en.wikipedia.org/wiki/Rob_Thomas_(musician)) off the multi-platinum album',
13
- onAnchorClick: () =>
14
- // eslint-disable-next-line no-console
15
- console.log('You clicked me an anchor tag inside Markdown!'),
16
- cta: {
17
- ...ctaArgs,
18
- onClick: () => {
19
- // eslint-disable-next-line no-console
20
- console.log('You could add event tracking here');
21
- }
22
- },
23
- media: {
24
- type: 'image',
25
- src: 'https://cdn.mos.cms.futurecdn.net/wtqqnkYDYi2ifsWZVW2MT4-1200-80.jpg',
26
- alt: 'beach'
27
- },
28
- textLength: 'long'
29
- }
30
- };
31
- export default meta;
32
- export const Default = {
33
- render: args => /*#__PURE__*/_jsx(PageHero, {
34
- ...args
35
- }),
36
- name: 'Page Hero'
37
- };
38
- export const Video = {
39
- render: args => /*#__PURE__*/_jsx(PageHero, {
40
- ...args,
41
- media: {
42
- type: 'video',
43
- videoUrl: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
44
- videoTitle: 'Workout with Rick Sanchez',
45
- placeholderImage: 'https://placekitten.com/400/300',
46
- autoplay: true
47
- },
48
- title: "What's it like to be a Software Engineer"
49
- }),
50
- name: 'Video'
51
- };
52
- export const ShortText = {
53
- render: args => /*#__PURE__*/_jsx(PageHero, {
54
- ...args,
55
- textLength: "short"
56
- }),
57
- name: 'Short Text'
58
- };
59
- export const RegularButton = {
60
- render: args => /*#__PURE__*/_jsx(PageHero, {
61
- ...args,
62
- cta: {
63
- ...ctaArgs,
64
- buttonType: 'fill'
65
- }
66
- }),
67
- name: 'Regular Button'
68
- };
69
- export const WithoutButton = {
70
- render: args => /*#__PURE__*/_jsx(PageHero, {
71
- ...args,
72
- cta: undefined
73
- }),
74
- name: 'Without Button'
75
- };
76
- export const WithoutDescription = {
77
- render: args => /*#__PURE__*/_jsx(PageHero, {
78
- ...args,
79
- desc: undefined
80
- }),
81
- name: 'Without Description'
82
- };
83
- export const Eyebrow = {
84
- render: args => /*#__PURE__*/_jsx(PageHero, {
85
- ...args,
86
- eyebrow: {
87
- text: 'Hello there'
88
- },
89
- textLength: "short"
90
- }),
91
- name: 'Eyebrow'
92
- };
93
- export const AccentEyebrow = {
94
- render: args => /*#__PURE__*/_jsx(PageHero, {
95
- ...args,
96
- eyebrow: {
97
- text: 'Hello there',
98
- accent: true
99
- },
100
- textLength: "short"
101
- }),
102
- name: 'Accent Eyebrow'
103
- };
104
- export const ShowImageOnMobile = {
105
- render: args => /*#__PURE__*/_jsx(PageHero, {
106
- ...args,
107
- showImageOnMobile: true,
108
- textLength: "short"
109
- }),
110
- name: 'Show Image On Mobile'
111
- };
112
- export const WithoutMedia = {
113
- render: args => /*#__PURE__*/_jsx(PageHero, {
114
- ...args,
115
- media: undefined
116
- }),
117
- name: 'Without Media'
118
- };
119
- export const DarkMode = {
120
- render: args => /*#__PURE__*/_jsx(Background, {
121
- bg: "navy",
122
- p: 16,
123
- children: /*#__PURE__*/_jsx(PageHero, {
124
- ...args,
125
- eyebrow: {
126
- text: 'Hello there'
127
- }
128
- })
129
- }),
130
- name: 'Dark Mode'
131
- };
132
- export const PausableImage = {
133
- render: args => /*#__PURE__*/_jsx(PageHero, {
134
- ...args,
135
- media: {
136
- type: 'image',
137
- src: '//images.ctfassets.net/go6kr6r0ykrq/2vjTCK9DmJ6BOd5NtFxNIG/e5ced4209aef5241cd581841fa6e2511/learn-css_box-model_06.16.gif',
138
- alt: 'learning envuironment demonstration'
139
- },
140
- eyebrow: {
141
- text: 'Codecademy'
142
- }
143
- }),
144
- name: 'PausableImage'
145
- };
@@ -1,34 +0,0 @@
1
- import { PageLayoutWithSidebarMenu } from '../../index';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- const meta = {
4
- component: PageLayoutWithSidebarMenu,
5
- args: {
6
- pageName: 'myPage',
7
- leftSidebar: {
8
- content: /*#__PURE__*/_jsx("div", {
9
- children: "Menu goes here"
10
- }),
11
- cols: 3
12
- },
13
- trackUserClick: () => {},
14
- children: /*#__PURE__*/_jsx("div", {
15
- children: "Main page content goes here"
16
- })
17
- }
18
- };
19
- export default meta;
20
- export const Default = {
21
- render: args => /*#__PURE__*/_jsx(PageLayoutWithSidebarMenu, {
22
- ...args
23
- }),
24
- name: 'PageLayoutWithSidebarMenu'
25
- };
26
- export const HasBackToTop = {
27
- render: args => /*#__PURE__*/_jsx(PageLayoutWithSidebarMenu, {
28
- ...args
29
- }),
30
- name: 'Has Back to Top',
31
- args: {
32
- hasBackToTop: true
33
- }
34
- };
@@ -1,62 +0,0 @@
1
- import { Background } from '@codecademy/gamut-styles';
2
- import { PagePrefooter } from '../../index';
3
- import { jsx as _jsx } from "react/jsx-runtime";
4
- const ctaArgs = {
5
- text: 'Supernatural',
6
- href: 'https://open.spotify.com/album/10aiDpdFGyfCFEcqpx6XTq?si=xR1nDqVqROK6KYM8J-l_rw'
7
- };
8
- const meta = {
9
- component: PagePrefooter,
10
- args: {
11
- title: "I'd rather be listening to Grammy-Award winning 1999 hit Smooth by Santana",
12
- desc: 'feat. [Rob Thomas of Matchbox Twenty](https://en.wikipedia.org/wiki/Rob_Thomas_(musician)) off the multi-platinum album',
13
- cta: {
14
- ...ctaArgs,
15
- onClick: () => {
16
- // eslint-disable-next-line no-console
17
- console.log('You could add event tracking here');
18
- }
19
- }
20
- }
21
- };
22
- export default meta;
23
- export const Default = {
24
- render: args => /*#__PURE__*/_jsx(PagePrefooter, {
25
- ...args
26
- }),
27
- name: 'Prefooter'
28
- };
29
- export const RegularButton = {
30
- render: args => /*#__PURE__*/_jsx(PagePrefooter, {
31
- ...args,
32
- cta: {
33
- ...ctaArgs,
34
- buttonType: 'fill'
35
- }
36
- }),
37
- name: 'Regular Button'
38
- };
39
- export const WithoutButton = {
40
- render: args => /*#__PURE__*/_jsx(PagePrefooter, {
41
- ...args,
42
- cta: undefined
43
- }),
44
- name: 'Without Button'
45
- };
46
- export const WithoutDescription = {
47
- render: args => /*#__PURE__*/_jsx(PagePrefooter, {
48
- ...args,
49
- desc: undefined
50
- }),
51
- name: 'Without Description'
52
- };
53
- export const DarkMode = {
54
- render: args => /*#__PURE__*/_jsx(Background, {
55
- bg: "navy",
56
- p: 16,
57
- children: /*#__PURE__*/_jsx(PagePrefooter, {
58
- ...args
59
- })
60
- }),
61
- name: 'Dark Mode'
62
- };