@codecademy/brand 2.0.0-alpha.a3eb12cdcb.0 → 2.0.0-alpha.bee3da4278.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.
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.js +8 -7
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.js +4 -2
- package/dist/AppHeader/index.js +5 -2
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.js +7 -5
- package/dist/FeatureList/index.js +4 -5
- package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.js +9 -6
- package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.js +1 -1
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.js +3 -3
- package/dist/GlobalFooter/index.js +25 -17
- package/dist/GlobalHeader/GlobalHeaderVariants.js +33 -33
- package/dist/GlobalHeader/index.js +49 -41
- package/dist/LandingPage/PageFeaturesEnhanced.js +0 -3
- package/dist/LearningOutcomeCard/index.js +143 -0
- package/dist/LearningOutcomePopover/index.js +125 -0
- package/dist/LearningOutcomeTile/Tile.js +79 -0
- package/dist/LearningOutcomeTile/index.js +116 -0
- package/dist/LearningOutcomeTile/types.js +11 -0
- package/dist/ListSection/index.js +64 -0
- package/dist/Loading/index.js +82 -0
- package/dist/LoadingCurriculumCard/index.js +82 -0
- package/dist/Logo/CodecademyLogo.js +19 -0
- package/dist/Logo/CodecademyPremiumLogo.js +35 -0
- package/dist/Logo/CodecademyProAltLogo.js +19 -0
- package/dist/Logo/CodecademyProLockupLogo.js +13 -0
- package/dist/Logo/CodecademyProLogo.js +21 -0
- package/dist/Logo/CodecademyProMonoLogo.js +22 -0
- package/dist/Logo/CodecademyProgramLogo.js +14 -0
- package/dist/Logo/CodecademyTeamsLogo.js +41 -0
- package/dist/Logo/index.js +30 -0
- package/dist/LogoFromSkillsoft/index.js +55 -0
- package/dist/LogoLXStudio/index.js +47 -0
- package/dist/LogoProCutout/index.js +31 -0
- package/dist/LogoProCutoutTransparent/index.js +31 -0
- package/dist/MarketingToaster/index.js +67 -0
- package/dist/NotFoundContent/index.js +55 -0
- package/dist/NotificationList/EmptyNotification/emptyNotificationContents.js +23 -0
- package/dist/NotificationList/EmptyNotification/index.js +38 -0
- package/dist/NotificationList/NotificationItem.js +151 -0
- package/dist/NotificationList/index.js +46 -0
- package/dist/NotificationList/typings.js +1 -0
- package/dist/Notifications/NotificationBell.js +72 -0
- package/dist/Notifications/NotificationsContents.js +85 -0
- package/dist/Notifications/NotificationsDropdown.js +25 -0
- package/dist/Notifications/__fixtures__/NotificationTestComponent.js +12 -0
- package/dist/Notifications/__fixtures__/stubs.js +8 -0
- package/dist/Notifications/constants.js +4 -0
- package/dist/Notifications/elements.js +21 -0
- package/dist/Notifications/types.js +1 -0
- package/dist/Notifications/useHeaderNotifications.js +37 -0
- package/dist/Notifications/useNotificationButtons.js +56 -0
- package/dist/PageAlerts/PageAlerts.js +75 -0
- package/dist/PageAlerts/PageAlertsProvider.js +34 -0
- package/dist/PageAlerts/index.js +3 -0
- package/dist/PageAlerts/types.js +1 -0
- package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.js +53 -0
- package/dist/PageLayoutWithSidebarMenu/index.js +1 -0
- package/dist/PageSection/index.js +67 -0
- package/dist/PastDue/PastDueModalContents/index.js +30 -0
- package/dist/PastDue/index.js +2 -0
- package/dist/PastDue/pastDueMessages.js +48 -0
- package/dist/PausableImage/BaseImage/index.js +54 -0
- package/dist/PausableImage/index.js +37 -0
- package/dist/PlanCard/PlanCardBanner.js +28 -0
- package/dist/PlanCard/PlanFeature.js +83 -0
- package/dist/PlanCard/PopularBadge.js +13 -0
- package/dist/PlanCard/PricingAmount.js +117 -0
- package/dist/PlanCard/RecommendedBadge.js +24 -0
- package/dist/PlanCard/consts.js +135 -0
- package/dist/PlanCard/index.js +323 -0
- package/dist/PlanCard/types.js +62 -0
- package/dist/PlanCardTeams/consts.js +8 -0
- package/dist/PlanCardTeams/index.js +167 -0
- package/dist/PricingSection/PlanFeature.js +88 -0
- package/dist/PricingSection/PricingCard/PricingAmount.js +84 -0
- package/dist/PricingSection/PricingCard/RecommendedBadge.js +24 -0
- package/dist/PricingSection/PricingCard/consts.js +85 -0
- package/dist/PricingSection/PricingCard/index.js +241 -0
- package/dist/PricingSection/ProductCTA.js +44 -0
- package/dist/PricingSection/Products.js +74 -0
- package/dist/PricingSection/config.js +36 -0
- package/dist/PricingSection/index.js +58 -0
- package/dist/PricingSection/types.js +8 -0
- package/dist/ProLabel/index.js +59 -0
- package/dist/ProLogo/index.js +27 -0
- package/dist/ProLogoAlt/index.js +26 -0
- package/dist/ProductFeatureShowcase/index.js +120 -0
- package/dist/QuizScore/index.js +84 -0
- package/dist/RatingsBar/index.js +32 -0
- package/dist/ResourceCard/index.js +59 -0
- package/dist/ScoreSummary/SubScores.js +165 -0
- package/dist/ScoreSummary/helpers.js +20 -0
- package/dist/ScoreSummary/index.js +108 -0
- package/dist/ScoreSummary/types.js +1 -0
- package/dist/SkillPathCard/index.js +38 -0
- package/dist/SocialMediaSharing/SocialShareIconLink.js +49 -0
- package/dist/SocialMediaSharing/index.js +116 -0
- package/dist/SocialMediaSharingDropdown/index.js +111 -0
- package/dist/Testimonial/index.js +163 -0
- package/dist/index.js +87 -0
- package/dist/lib/breakpointHooks/index.js +60 -0
- package/dist/lib/catalogList/index.js +173 -0
- package/dist/lib/resourcesList/index.js +241 -0
- package/dist/remoteAssets/components.js +1 -0
- package/dist/stories/Atoms/Avatar.stories.js +16 -0
- package/dist/stories/Atoms/BetaSticker.stories.js +22 -0
- package/dist/stories/Atoms/Logos/Logo.stories.js +78 -0
- package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.js +15 -0
- package/dist/stories/Atoms/Logos/LogoLXStudio.stories.js +11 -0
- package/dist/stories/Atoms/Logos/ProLabel.stories.js +16 -0
- package/dist/stories/Atoms/Logos/ProLogoAlt.stories.js +24 -0
- package/dist/stories/Atoms/RatingsBar.stories.js +16 -0
- package/dist/stories/Atoms/Subgrid.stories.js +87 -0
- package/dist/stories/Molecules/AppBar.stories.js +32 -0
- package/dist/stories/Molecules/AppHeader/AppHeader.stories.js +84 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.js +67 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.js +52 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.js +44 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.js +34 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.js +40 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.js +25 -0
- package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.js +176 -0
- package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.js +84 -0
- package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.js +90 -0
- package/dist/stories/Molecules/AvatarChooser.stories.js +22 -0
- package/dist/stories/Molecules/BackToTopAnchor.stories.js +51 -0
- package/dist/stories/Molecules/Banner.stories.js +115 -0
- package/dist/stories/Molecules/Carousel.stories.js +47 -0
- package/dist/stories/Molecules/ContentGroupBaseCard.stories.js +173 -0
- package/dist/stories/Molecules/CurriculumCard.stories.js +208 -0
- package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.js +92 -0
- package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.js +65 -0
- package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.js +83 -0
- package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.js +20 -0
- package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.js +90 -0
- package/dist/stories/Molecules/DropdownButton.stories.js +207 -0
- package/dist/stories/Molecules/EditorialImage.stories.js +17 -0
- package/dist/stories/Molecules/EmptySection.stories.js +168 -0
- package/dist/stories/Molecules/ErrorContents.stories.js +19 -0
- package/dist/stories/Molecules/GridCollapse.stories.js +42 -0
- package/dist/stories/Molecules/HorizontalScrollMenu.examples.js +67 -0
- package/dist/stories/Molecules/HorizontalScrollMenu.stories.js +11 -0
- package/dist/stories/Molecules/HubCard.stories.js +28 -0
- package/dist/stories/Molecules/InfoCard.stories.js +30 -0
- package/dist/stories/Molecules/LearningOutcomeCard.stories.js +59 -0
- package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.js +20 -0
- package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.js +10 -0
- package/dist/stories/Molecules/LearningOutcomePopover.stories.js +39 -0
- package/dist/stories/Molecules/LearningOutcomeTile.stories.js +276 -0
- package/dist/stories/Molecules/ListSection.stories.js +97 -0
- package/dist/stories/Molecules/Loading.stories.js +10 -0
- package/dist/stories/Molecules/NotificationList.stories.js +100 -0
- package/dist/stories/Molecules/PageSection.stories.js +67 -0
- package/dist/stories/Molecules/PastDueModalContents.stories.js +62 -0
- package/dist/stories/Molecules/PausableImage.stories.js +16 -0
- package/dist/stories/Molecules/ResourceCard.stories.js +18 -0
- package/dist/stories/Molecules/SocialMediaSharing.stories.js +20 -0
- package/dist/stories/Molecules/SocialMediaSharingDropdown.stories.js +20 -0
- package/dist/stories/Molecules/Testimonial.stories.js +63 -0
- package/dist/stories/Organisms/GlobalFooter.stories.js +29 -0
- package/dist/stories/Organisms/GlobalHeader/About.stories.js +136 -0
- package/dist/stories/Organisms/GlobalHeader/Anon.stories.js +73 -0
- package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.js +32 -0
- package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.js +108 -0
- package/dist/stories/Organisms/GlobalHeader/Free.stories.js +133 -0
- package/dist/stories/Organisms/GlobalHeader/Pro.stories.js +199 -0
- package/dist/stories/Organisms/GlobalHeader/Simple.stories.js +31 -0
- package/dist/stories/Organisms/GlobalPage.stories.js +142 -0
- package/dist/stories/Organisms/LayoutMenu.stories.js +242 -0
- package/dist/stories/Organisms/LayoutMenuVariant.stories.js +224 -0
- package/dist/stories/Organisms/PageAlerts.example.js +42 -0
- package/dist/stories/Organisms/PageAlerts.stories.js +15 -0
- package/dist/stories/Organisms/PageFeatures.stories.js +183 -0
- package/dist/stories/Organisms/PageHero.stories.js +145 -0
- package/dist/stories/Organisms/PageLayoutWithSidebarMenu.stories.js +34 -0
- package/dist/stories/Organisms/PagePrefooter.stories.js +62 -0
- package/dist/stories/Organisms/PageSingleFeature.stories.js +158 -0
- package/dist/stories/Organisms/PageVideoGallery.stories.js +70 -0
- package/dist/stories/Organisms/PlanCard.stories.js +98 -0
- package/dist/stories/Organisms/PlanCardTeams.stories.js +27 -0
- package/dist/stories/Organisms/ScoreSummary.stories.js +299 -0
- package/package.json +1 -1
- package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.js +0 -55
- package/dist/LearningOutcomeAssessmentScores/index.js +0 -24
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,241 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const BASE_STATIC_ASSET_PATH = 'https://static-assets.codecademy.com/components';
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
};
|