@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,60 +0,0 @@
1
- import { breakpoints as originalBreakpoints } from '@codecademy/gamut-styles';
2
- import mapValues from 'lodash/mapValues';
3
- import { createBreakpoint } from 'react-use';
4
- export const breakpoints = mapValues({
5
- xxs: 0,
6
- ...originalBreakpoints
7
- }, value => parseInt(value, 10));
8
-
9
- /**
10
- * useBreakpoint will provide the current breakpoint to a React component.
11
- *
12
- * If you think you need this, make sure to think twice. It is really nice
13
- * to allow your styles layer to concern itself about the appearance of a
14
- * component at different screen sizes, and not have to maintain two different
15
- * components that could drift from eachother. That being said, sometimes
16
- * The content, layout, and/or functionality of a mobile page/component can
17
- * be so different that it is non-performant or difficult to maintain the
18
- * changes in only styles. For those cases where it is actually easier to maintain
19
- * two components or a programatic distinction of the breakpoint, this helper
20
- * exists.
21
- *
22
- * @deprecated
23
- * Use Box, LayoutGrid, or other responsive Gamut components instead.
24
- * JavaScript-time screen size checks are notorious for worsening page performance.
25
- * @see https://web.dev/cls
26
- */
27
- export const useBreakpoint = createBreakpoint(breakpoints);
28
-
29
- /**
30
- * @deprecated
31
- * Use Box, LayoutGrid, or other responsive Gamut components instead.
32
- * JavaScript-time screen size checks are notorious for worsening page performance.
33
- * @see https://web.dev/cls
34
- */
35
- export function useBreakpointAtOrAbove(breakpoint) {
36
- const currentBreakpoint = useBreakpoint();
37
- return breakpoints[currentBreakpoint] >= breakpoints[breakpoint];
38
- }
39
-
40
- /**
41
- * @deprecated
42
- * Use Box, LayoutGrid, or other responsive Gamut components instead.
43
- * JavaScript-time screen size checks are notorious for worsening page performance.
44
- * @see https://web.dev/cls
45
- */
46
- export function useBreakpointAt(breakpoint) {
47
- const currentBreakpoint = useBreakpoint();
48
- return breakpoints[currentBreakpoint] === breakpoints[breakpoint];
49
- }
50
-
51
- /**
52
- * @deprecated
53
- * Use Box, LayoutGrid, or other responsive Gamut components instead.
54
- * JavaScript-time screen size checks are notorious for worsening page performance.
55
- * @see https://web.dev/cls
56
- */
57
- export function useBreakpointAtOrBelow(breakpoint) {
58
- const currentBreakpoint = useBreakpoint();
59
- return breakpoints[currentBreakpoint] <= breakpoints[breakpoint];
60
- }
@@ -1,173 +0,0 @@
1
- import { renderNewBadge } from '../resourcesList';
2
- export const careerPaths = [{
3
- id: 'full-stack-engineer-career-path',
4
- href: '/learn/paths/full-stack-engineer-career-path',
5
- trackingTarget: 'topnav_catalog_career_full_stack_engineer',
6
- text: 'Full-Stack Engineer',
7
- type: 'link'
8
- }, {
9
- id: 'back-end-engineer-career-path',
10
- href: '/learn/paths/back-end-engineer-career-path',
11
- trackingTarget: 'topnav_catalog_career_back-end-engineer',
12
- text: 'Back-End Engineer',
13
- type: 'link'
14
- }, {
15
- id: 'ios-developer',
16
- href: '/learn/paths/ios-developer',
17
- trackingTarget: 'topnav_catalog_career_ios-developer',
18
- text: 'iOS Developer',
19
- type: 'link'
20
- }, {
21
- id: 'front-end-engineer-career-path',
22
- href: '/learn/paths/front-end-engineer-career-path',
23
- trackingTarget: 'topnav_catalog_career_front-end-engineer',
24
- text: 'Front-End Engineer',
25
- type: 'link'
26
- }, {
27
- id: 'computer-science',
28
- href: '/learn/paths/computer-science',
29
- trackingTarget: 'topnav_catalog_career_computer-science',
30
- text: 'Computer Science',
31
- type: 'link'
32
- }, {
33
- id: 'data-science',
34
- href: '/pages/data-science-career-specializations',
35
- trackingTarget: 'topnav_catalog_career_data_science',
36
- text: 'Data Scientist',
37
- type: 'link'
38
- }];
39
- export const liveLearningHubItems = {
40
- title: 'Live Learning',
41
- description: 'Build skills faster through live learning with expert instructors.',
42
- data: [{
43
- id: 'bootcamps',
44
- href: '/live-learning',
45
- text: 'Bootcamps',
46
- description: 'Learn live from industry experts',
47
- trackingTarget: 'topnav_catalog_live_learning_bootcamps',
48
- type: 'link',
49
- newTab: true,
50
- badge: renderNewBadge()
51
- }, {
52
- id: 'gk',
53
- href: '/live-learning#GKLiveLearning',
54
- text: 'GK x Codecademy',
55
- description: 'Instructor led courses, offered via our partner organization',
56
- trackingTarget: 'topnav_catalog_live_learning_gk_codecademy',
57
- type: 'link',
58
- newTab: true,
59
- badge: renderNewBadge()
60
- }]
61
- };
62
- export const topLanguages = [{
63
- id: 'python',
64
- href: '/catalog/language/python',
65
- trackingTarget: 'topnav_catalog_skill_python',
66
- text: 'Python',
67
- type: 'link'
68
- }, {
69
- id: 'javascript',
70
- href: '/catalog/language/javascript',
71
- trackingTarget: 'topnav_catalog_skill_javascript',
72
- text: 'JavaScript',
73
- type: 'link'
74
- }, {
75
- id: 'html-css',
76
- href: '/catalog/language/html-css',
77
- trackingTarget: 'topnav_catalog_skill_html-css',
78
- text: 'HTML & CSS',
79
- type: 'link'
80
- }, {
81
- id: 'sql',
82
- href: '/catalog/language/sql',
83
- trackingTarget: 'topnav_catalog_skill_sql',
84
- text: 'SQL',
85
- type: 'link'
86
- }, {
87
- id: 'java',
88
- href: '/catalog/language/java',
89
- trackingTarget: 'topnav_catalog_skill_java',
90
- text: 'Java',
91
- type: 'link'
92
- }, {
93
- id: 'c-plus-plus',
94
- href: '/catalog/language/c-plus-plus',
95
- trackingTarget: 'topnav_catalog_skill_c-plus-plus',
96
- text: 'C++',
97
- type: 'link'
98
- }, {
99
- id: 'c-sharp',
100
- href: '/catalog/language/c-sharp',
101
- trackingTarget: 'topnav_catalog_skill_c-sharp',
102
- text: 'C#',
103
- type: 'link'
104
- }, {
105
- id: 'c',
106
- href: '/catalog/language/c',
107
- trackingTarget: 'topnav_catalog_skill_c',
108
- text: 'C',
109
- type: 'link'
110
- }, {
111
- id: 'php',
112
- href: '/catalog/language/php',
113
- trackingTarget: 'topnav_catalog_skill_php',
114
- text: 'PHP',
115
- type: 'link'
116
- }, {
117
- id: 'r',
118
- href: '/catalog/language/r',
119
- trackingTarget: 'topnav_catalog_skill_r',
120
- text: 'R',
121
- type: 'link'
122
- }, {
123
- id: 'it',
124
- href: '/catalog/subject/information-technology',
125
- trackingTarget: 'topnav_catalog_skill_it',
126
- text: 'IT',
127
- type: 'link'
128
- }, {
129
- id: 'cybersecurity',
130
- href: '/catalog/subject/cybersecurity',
131
- trackingTarget: 'topnav_catalog_skill_cybersecurity',
132
- text: 'Cybersecurity',
133
- type: 'link'
134
- }];
135
- export const getTopSubjects = () => {
136
- return [{
137
- id: 'cloud-computing',
138
- href: '/catalog/subject/cloud-computing',
139
- trackingTarget: 'topnav_catalog_skill_cloud-computing',
140
- text: 'Cloud computing',
141
- type: 'link'
142
- }, {
143
- id: 'artificial-intelligence',
144
- href: '/catalog/subject/artificial-intelligence',
145
- trackingTarget: 'topnav_catalog_skill_ai',
146
- text: 'AI',
147
- type: 'link'
148
- }, {
149
- id: 'web-development',
150
- href: '/catalog/subject/web-development',
151
- trackingTarget: 'topnav_catalog_skill_web_development',
152
- text: 'Web development',
153
- type: 'link'
154
- }, {
155
- id: 'data-science',
156
- href: '/catalog/subject/data-science',
157
- trackingTarget: 'topnav_catalog_skill_data-science',
158
- text: 'Data science',
159
- type: 'link'
160
- }, {
161
- id: 'web-design',
162
- href: '/catalog/subject/web-design',
163
- trackingTarget: 'topnav_catalog_skill_web-design',
164
- text: 'Web design',
165
- type: 'link'
166
- }, {
167
- id: 'professional-skills',
168
- href: '/catalog/subject/professional-skills',
169
- trackingTarget: 'topnav_catalog_skill_professional-skills',
170
- text: 'Professional skills',
171
- type: 'link'
172
- }];
173
- };
@@ -1,241 +0,0 @@
1
- import { Badge } from '@codecademy/gamut';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- export const renderBadge = text => /*#__PURE__*/_jsx(Badge, {
4
- size: "sm",
5
- ml: 8,
6
- alignSelf: "center",
7
- children: text
8
- });
9
- export const renderNewBadge = (mt = 2) => /*#__PURE__*/_jsx(Badge, {
10
- size: "sm",
11
- mt: mt,
12
- ml: 8,
13
- alignSelf: "start",
14
- variant: "accent",
15
- children: "New"
16
- });
17
- export const footerResourcesList = [{
18
- id: 'articles',
19
- href: '/articles',
20
- trackingTarget: 'articles',
21
- text: 'Articles'
22
- }, {
23
- id: 'blog',
24
- href: 'https://codecademy.com/resources/blog',
25
- trackingTarget: 'blog',
26
- text: 'Blog',
27
- newTab: true
28
- }, {
29
- id: 'cheatsheets',
30
- href: '/resources/cheatsheets/all',
31
- trackingTarget: 'cheatsheets_home',
32
- text: 'Cheatsheets'
33
- }, {
34
- id: 'challenges',
35
- href: '/code-challenges',
36
- trackingTarget: 'challenges',
37
- text: 'Code challenges'
38
- }, {
39
- id: 'docs',
40
- href: '/resources/docs',
41
- trackingTarget: 'docs',
42
- text: 'Docs'
43
- }, {
44
- id: 'projects',
45
- href: '/projects',
46
- trackingTarget: 'projects',
47
- text: 'Projects'
48
- }, {
49
- id: 'videos',
50
- href: '/resources/videos',
51
- trackingTarget: 'videos_homepage',
52
- text: 'Videos'
53
- }, {
54
- id: 'workspaces',
55
- href: 'https://codecademy.com/pages/workspaces',
56
- trackingTarget: 'workspaces',
57
- text: 'Workspaces'
58
- }];
59
- export const getHeaderResourcesList = isLiveLearningHubEnabled => {
60
- const inspirationSection = {
61
- title: 'Inspiration & career',
62
- links: [{
63
- text: 'View all blog topics',
64
- href: '/resources/blog',
65
- id: 'view-all-inspiration',
66
- trackingTarget: 'topnav_resources_inspiration_all',
67
- type: 'link',
68
- newTab: true
69
- }],
70
- data: [{
71
- id: 'career-advice',
72
- href: '/resources/blog/category/career/',
73
- text: 'Career advice',
74
- description: 'Get answers to questions about coding careers.',
75
- trackingTarget: 'topnav_resources_inspiration_career_advice',
76
- type: 'link',
77
- newTab: true
78
- }, {
79
- id: 'learning-tips',
80
- href: '/resources/blog/category/learning-tips/',
81
- text: 'Learning tips',
82
- description: 'Learn where to start and how to stay motivated.',
83
- trackingTarget: 'topnav_resources_inspiration_learning_tips',
84
- type: 'link',
85
- newTab: true
86
- }, isLiveLearningHubEnabled ? {
87
- id: 'career-center',
88
- href: '/career-center',
89
- text: 'Career Center',
90
- description: 'Get tools to reach your tech career goals.',
91
- trackingTarget: 'topnav_resources_inspiration_career_center',
92
- type: 'link',
93
- newTab: true,
94
- badge: renderNewBadge()
95
- } : {
96
- id: 'job-readiness-check',
97
- href: '/job-readiness',
98
- text: 'Job-readiness checker',
99
- description: 'Analyze your compatibility with tech roles using AI.',
100
- trackingTarget: 'topnav_resources_inspiration_job_readiness_checker',
101
- type: 'link',
102
- newTab: true,
103
- badge: renderNewBadge()
104
- }]
105
- };
106
- return [{
107
- title: 'Docs',
108
- description: 'Find definitions, code syntax, and more -- or contribute your own code documentation.',
109
- links: [{
110
- text: 'View all docs',
111
- href: '/resources/docs',
112
- id: 'view-all-docs',
113
- trackingTarget: 'topnav_resources_docs_all',
114
- type: 'link'
115
- }, {
116
- text: 'Contribute to docs',
117
- href: '/pages/contribute-docs',
118
- id: 'contribute-to-docs',
119
- trackingTarget: 'topnav_resources_contribution_guide',
120
- type: 'link'
121
- }],
122
- data: [{
123
- id: 'c',
124
- href: '/resources/docs/c',
125
- trackingTarget: 'topnav_resources_docs_c',
126
- text: 'C',
127
- type: 'link'
128
- }, {
129
- id: 'html',
130
- href: '/resources/docs/html',
131
- trackingTarget: 'topnav_resources_docs_html',
132
- text: 'HTML',
133
- type: 'link'
134
- }, {
135
- id: 'python',
136
- href: '/resources/docs/python',
137
- trackingTarget: 'topnav_resources_docs_python',
138
- text: 'Python',
139
- type: 'link'
140
- }, {
141
- id: 'cpp',
142
- href: '/resources/docs/cpp',
143
- trackingTarget: 'topnav_resources_docs_cpp',
144
- text: 'C++',
145
- type: 'link'
146
- }, {
147
- id: 'java',
148
- href: '/resources/docs/java',
149
- trackingTarget: 'topnav_resources_docs_java',
150
- text: 'Java',
151
- type: 'link'
152
- }, {
153
- id: 'react',
154
- href: '/resources/docs/react',
155
- trackingTarget: 'topnav_resources_docs_react',
156
- text: 'React',
157
- type: 'link'
158
- }, {
159
- id: 'css',
160
- href: '/resources/docs/css',
161
- trackingTarget: 'topnav_resources_docs_css',
162
- text: 'CSS',
163
- type: 'link'
164
- }, {
165
- id: 'javascript',
166
- href: '/resources/docs/javascript',
167
- trackingTarget: 'topnav_resources_docs_javascript',
168
- text: 'JavaScript',
169
- type: 'link'
170
- }, {
171
- id: 'sql',
172
- href: '/resources/docs/sql',
173
- trackingTarget: 'topnav_resources_docs_sql',
174
- text: 'SQL',
175
- type: 'link'
176
- }, {
177
- id: 'git',
178
- href: '/resources/docs/git',
179
- trackingTarget: 'topnav_resources_docs_git',
180
- text: 'Git',
181
- type: 'link'
182
- }, {
183
- id: 'php',
184
- href: '/resources/docs/php',
185
- trackingTarget: 'topnav_resources_docs_php',
186
- text: 'PHP',
187
- type: 'link'
188
- }, {
189
- id: 'uiux',
190
- href: '/resources/docs/uiux',
191
- trackingTarget: 'topnav_resources_docs_uiux',
192
- text: 'UI/UX',
193
- type: 'link'
194
- }]
195
- }, {
196
- title: 'Learning & practice tools',
197
- data: [{
198
- id: 'articles',
199
- href: '/articles',
200
- text: 'Articles',
201
- description: 'Learn about technical concepts.',
202
- trackingTarget: 'topnav_resources_learning_articles',
203
- type: 'link'
204
- }, {
205
- id: 'cheatsheets',
206
- href: '/resources/cheatsheets/all',
207
- text: 'Cheatsheets',
208
- description: 'Review concepts from your courses.',
209
- trackingTarget: 'topnav_resources_learning_cheatsheets',
210
- type: 'link'
211
- }, {
212
- id: 'code-challenges',
213
- href: '/code-challenges',
214
- text: 'Code challenges',
215
- description: 'Test your knowledge and prep for interviews.',
216
- trackingTarget: 'topnav_resources_learning_code_challenges',
217
- type: 'link'
218
- }, {
219
- id: 'projects',
220
- href: '/projects',
221
- text: 'Projects',
222
- description: 'Practice and build your portfolio.',
223
- trackingTarget: 'topnav_resources_learning_projects',
224
- type: 'link'
225
- }, {
226
- id: 'videos',
227
- href: '/resources/videos',
228
- text: 'Videos',
229
- description: 'Watch tutorials, project walkthroughs, and more.',
230
- trackingTarget: 'topnav_resources_learning_videos',
231
- type: 'link'
232
- }, {
233
- id: 'workspaces',
234
- href: '/pages/workspaces',
235
- text: 'Workspaces',
236
- description: 'Build and share projects in your browser.',
237
- trackingTarget: 'topnav_resources_learning_workspaces',
238
- type: 'link'
239
- }]
240
- }, inspirationSection];
241
- };
@@ -1 +0,0 @@
1
- export const BASE_STATIC_ASSET_PATH = 'https://static-assets.codecademy.com/components';
@@ -1,16 +0,0 @@
1
- import { Avatar } from '../../index';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- const meta = {
4
- component: Avatar,
5
- args: {
6
- alt: 'The Codey character drinking Boba tea',
7
- src: 'https://content.codecademy.com/courses/free/boba.svg'
8
- }
9
- };
10
- export default meta;
11
- export const Default = {
12
- render: args => /*#__PURE__*/_jsx(Avatar, {
13
- ...args
14
- }),
15
- name: 'Avatar'
16
- };
@@ -1,22 +0,0 @@
1
- import { BetaSticker } from '../../index';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- const meta = {
4
- component: BetaSticker,
5
- args: {}
6
- };
7
- export default meta;
8
- export const Default = {
9
- render: args => /*#__PURE__*/_jsx(BetaSticker, {
10
- ...args
11
- }),
12
- name: 'BetaSticker'
13
- };
14
- export const Small = {
15
- render: args => /*#__PURE__*/_jsx(BetaSticker, {
16
- ...args
17
- }),
18
- name: 'Small',
19
- args: {
20
- size: 'small'
21
- }
22
- };
@@ -1,78 +0,0 @@
1
- import { Logo } from '../../../index';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- const meta = {
4
- component: Logo
5
- };
6
- export default meta;
7
- export const Default = {
8
- render: args => /*#__PURE__*/_jsx(Logo, {
9
- ...args
10
- }),
11
- name: 'Default',
12
- args: {
13
- type: 'default'
14
- }
15
- };
16
- export const Pro = {
17
- render: args => /*#__PURE__*/_jsx(Logo, {
18
- ...args
19
- }),
20
- name: 'Pro',
21
- args: {
22
- type: 'pro'
23
- }
24
- };
25
- export const ProAlt = {
26
- render: args => /*#__PURE__*/_jsx(Logo, {
27
- ...args
28
- }),
29
- name: 'Pro Alt',
30
- args: {
31
- type: 'proAlt'
32
- }
33
- };
34
- export const ProLockup = {
35
- render: args => /*#__PURE__*/_jsx(Logo, {
36
- ...args
37
- }),
38
- name: 'Pro Lockup',
39
- args: {
40
- type: 'proLockup'
41
- }
42
- };
43
- export const Program = {
44
- render: args => /*#__PURE__*/_jsx(Logo, {
45
- ...args
46
- }),
47
- name: 'Program',
48
- args: {
49
- type: 'program'
50
- }
51
- };
52
- export const ProMono = {
53
- render: args => /*#__PURE__*/_jsx(Logo, {
54
- ...args
55
- }),
56
- name: 'Pro Mono',
57
- args: {
58
- type: 'proMono'
59
- }
60
- };
61
- export const Premium = {
62
- render: args => /*#__PURE__*/_jsx(Logo, {
63
- ...args
64
- }),
65
- name: 'Premium',
66
- args: {
67
- type: 'premium'
68
- }
69
- };
70
- export const Teams = {
71
- render: args => /*#__PURE__*/_jsx(Logo, {
72
- ...args
73
- }),
74
- name: 'Teams',
75
- args: {
76
- type: 'teams'
77
- }
78
- };
@@ -1,15 +0,0 @@
1
- import { LogoFromSkillsoft } from '../../../index';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- const meta = {
4
- args: {
5
- height: 40
6
- },
7
- component: LogoFromSkillsoft
8
- };
9
- export default meta;
10
- export const Default = {
11
- render: args => /*#__PURE__*/_jsx(LogoFromSkillsoft, {
12
- ...args
13
- }),
14
- name: 'LogoFromSkillsoft'
15
- };
@@ -1,11 +0,0 @@
1
- import { LogoLXStudio } from '../../../index';
2
- const meta = {
3
- args: {
4
- height: 40
5
- },
6
- component: LogoLXStudio
7
- };
8
- export default meta;
9
- export const Default = {
10
- args: {}
11
- };
@@ -1,16 +0,0 @@
1
- import { ProLabel } from '../../../index';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- const meta = {
4
- component: ProLabel,
5
- args: {
6
- mode: 'light',
7
- height: 40
8
- }
9
- };
10
- export default meta;
11
- export const Default = {
12
- render: args => /*#__PURE__*/_jsx(ProLabel, {
13
- ...args
14
- }),
15
- name: 'ProLabel'
16
- };
@@ -1,24 +0,0 @@
1
- import { ProLogoAlt } from '../../../index';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- const meta = {
4
- component: ProLogoAlt,
5
- argTypes: {
6
- backgroundColor: {
7
- control: {
8
- type: 'select'
9
- }
10
- },
11
- textColor: {
12
- control: {
13
- type: 'select'
14
- }
15
- }
16
- }
17
- };
18
- export default meta;
19
- export const Default = {
20
- render: args => /*#__PURE__*/_jsx(ProLogoAlt, {
21
- ...args
22
- }),
23
- name: 'ProLogoAlt'
24
- };
@@ -1,16 +0,0 @@
1
- import { RatingsBar } from '../../index';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- const meta = {
4
- component: RatingsBar,
5
- args: {
6
- minimumPercent: 5,
7
- percent: 75
8
- }
9
- };
10
- export default meta;
11
- export const Default = {
12
- render: args => /*#__PURE__*/_jsx(RatingsBar, {
13
- ...args
14
- }),
15
- name: 'RatingsBar'
16
- };