@codecademy/brand 2.0.0-alpha.a27f454af3.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.
- package/package.json +1 -1
- package/dist/LearningOutcomeCard/index.js +0 -178
- package/dist/LearningOutcomeFlyout/index.js +0 -234
- package/dist/LearningOutcomePopover/index.js +0 -125
- package/dist/LearningOutcomeTile/Tile.js +0 -79
- package/dist/LearningOutcomeTile/index.js +0 -114
- package/dist/LearningOutcomeTile/types.js +0 -11
- package/dist/ListSection/index.js +0 -64
- package/dist/Loading/index.js +0 -82
- package/dist/LoadingCurriculumCard/index.js +0 -82
- package/dist/Logo/CodecademyLogo.js +0 -19
- package/dist/Logo/CodecademyPremiumLogo.js +0 -35
- package/dist/Logo/CodecademyProAltLogo.js +0 -19
- package/dist/Logo/CodecademyProLockupLogo.js +0 -13
- package/dist/Logo/CodecademyProLogo.js +0 -21
- package/dist/Logo/CodecademyProMonoLogo.js +0 -22
- package/dist/Logo/CodecademyProgramLogo.js +0 -14
- package/dist/Logo/CodecademyTeamsLogo.js +0 -41
- package/dist/Logo/index.js +0 -30
- package/dist/LogoFromSkillsoft/index.js +0 -55
- package/dist/LogoLXStudio/index.js +0 -47
- package/dist/LogoProCutout/index.js +0 -31
- package/dist/LogoProCutoutTransparent/index.js +0 -31
- package/dist/MarketingToaster/index.js +0 -67
- package/dist/NotFoundContent/index.js +0 -55
- package/dist/NotificationList/EmptyNotification/emptyNotificationContents.js +0 -23
- package/dist/NotificationList/EmptyNotification/index.js +0 -38
- package/dist/NotificationList/NotificationItem.js +0 -151
- package/dist/NotificationList/index.js +0 -46
- package/dist/NotificationList/typings.js +0 -1
- package/dist/Notifications/NotificationBell.js +0 -72
- package/dist/Notifications/NotificationsContents.js +0 -85
- package/dist/Notifications/NotificationsDropdown.js +0 -25
- package/dist/Notifications/__fixtures__/NotificationTestComponent.js +0 -12
- package/dist/Notifications/__fixtures__/stubs.js +0 -8
- package/dist/Notifications/constants.js +0 -4
- package/dist/Notifications/elements.js +0 -21
- package/dist/Notifications/types.js +0 -1
- package/dist/Notifications/useHeaderNotifications.js +0 -37
- package/dist/Notifications/useNotificationButtons.js +0 -56
- package/dist/PageAlerts/PageAlerts.js +0 -75
- package/dist/PageAlerts/PageAlertsProvider.js +0 -34
- package/dist/PageAlerts/index.js +0 -3
- package/dist/PageAlerts/types.js +0 -1
- package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.js +0 -53
- package/dist/PageLayoutWithSidebarMenu/index.js +0 -1
- package/dist/PageSection/index.js +0 -67
- package/dist/PastDue/PastDueModalContents/index.js +0 -30
- package/dist/PastDue/index.js +0 -2
- package/dist/PastDue/pastDueMessages.js +0 -48
- package/dist/PausableImage/BaseImage/index.js +0 -54
- package/dist/PausableImage/index.js +0 -37
- package/dist/PlanCard/PlanCardBanner.js +0 -28
- package/dist/PlanCard/PlanFeature.js +0 -83
- package/dist/PlanCard/PopularBadge.js +0 -13
- package/dist/PlanCard/PricingAmount.js +0 -117
- package/dist/PlanCard/RecommendedBadge.js +0 -24
- package/dist/PlanCard/consts.js +0 -135
- package/dist/PlanCard/index.js +0 -323
- package/dist/PlanCard/types.js +0 -62
- package/dist/PlanCardTeams/consts.js +0 -8
- package/dist/PlanCardTeams/index.js +0 -167
- package/dist/PricingSection/PlanFeature.js +0 -88
- package/dist/PricingSection/PricingCard/PricingAmount.js +0 -84
- package/dist/PricingSection/PricingCard/RecommendedBadge.js +0 -24
- package/dist/PricingSection/PricingCard/consts.js +0 -85
- package/dist/PricingSection/PricingCard/index.js +0 -241
- package/dist/PricingSection/ProductCTA.js +0 -44
- package/dist/PricingSection/Products.js +0 -74
- package/dist/PricingSection/config.js +0 -36
- package/dist/PricingSection/index.js +0 -58
- package/dist/PricingSection/types.js +0 -8
- package/dist/ProLabel/index.js +0 -59
- package/dist/ProLogo/index.js +0 -27
- package/dist/ProLogoAlt/index.js +0 -26
- package/dist/ProductFeatureShowcase/index.js +0 -120
- package/dist/QuizScore/index.js +0 -84
- package/dist/RatingsBar/index.js +0 -32
- package/dist/ResourceCard/index.js +0 -59
- package/dist/ScoreSummary/SubScores.js +0 -165
- package/dist/ScoreSummary/helpers.js +0 -20
- package/dist/ScoreSummary/index.js +0 -108
- package/dist/ScoreSummary/types.js +0 -1
- package/dist/SkillPathCard/index.js +0 -38
- package/dist/SocialMediaSharing/SocialShareIconLink.js +0 -49
- package/dist/SocialMediaSharing/index.js +0 -116
- package/dist/SocialMediaSharingDropdown/index.js +0 -111
- package/dist/Testimonial/index.js +0 -163
- package/dist/index.js +0 -87
- package/dist/lib/breakpointHooks/index.js +0 -60
- package/dist/lib/catalogList/index.js +0 -173
- package/dist/lib/resourcesList/index.js +0 -232
- package/dist/remoteAssets/components.js +0 -1
- package/dist/stories/Atoms/Avatar.stories.js +0 -16
- package/dist/stories/Atoms/BetaSticker.stories.js +0 -22
- package/dist/stories/Atoms/Logos/Logo.stories.js +0 -78
- package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.js +0 -15
- package/dist/stories/Atoms/Logos/LogoLXStudio.stories.js +0 -11
- package/dist/stories/Atoms/Logos/ProLabel.stories.js +0 -16
- package/dist/stories/Atoms/Logos/ProLogoAlt.stories.js +0 -24
- package/dist/stories/Atoms/RatingsBar.stories.js +0 -16
- package/dist/stories/Atoms/Subgrid.stories.js +0 -87
- package/dist/stories/Molecules/AppBar.stories.js +0 -32
- package/dist/stories/Molecules/AppHeader/AppHeader.stories.js +0 -84
- package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.js +0 -67
- package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.js +0 -52
- package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.js +0 -44
- package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.js +0 -34
- package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.js +0 -40
- package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.js +0 -25
- package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.js +0 -176
- package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.js +0 -84
- package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.js +0 -90
- package/dist/stories/Molecules/AvatarChooser.stories.js +0 -22
- package/dist/stories/Molecules/BackToTopAnchor.stories.js +0 -51
- package/dist/stories/Molecules/Banner.stories.js +0 -115
- package/dist/stories/Molecules/Carousel.stories.js +0 -47
- package/dist/stories/Molecules/ContentGroupBaseCard.stories.js +0 -173
- package/dist/stories/Molecules/CurriculumCard.stories.js +0 -208
- package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.js +0 -92
- package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.js +0 -65
- package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.js +0 -83
- package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.js +0 -20
- package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.js +0 -90
- package/dist/stories/Molecules/DropdownButton.stories.js +0 -207
- package/dist/stories/Molecules/EditorialImage.stories.js +0 -17
- package/dist/stories/Molecules/EmptySection.stories.js +0 -168
- package/dist/stories/Molecules/ErrorContents.stories.js +0 -19
- package/dist/stories/Molecules/GridCollapse.stories.js +0 -42
- package/dist/stories/Molecules/HorizontalScrollMenu.examples.js +0 -67
- package/dist/stories/Molecules/HorizontalScrollMenu.stories.js +0 -11
- package/dist/stories/Molecules/HubCard.stories.js +0 -28
- package/dist/stories/Molecules/InfoCard.stories.js +0 -30
- package/dist/stories/Molecules/LearningOutcomeAssessmentScores.stories.js +0 -23
- package/dist/stories/Molecules/LearningOutcomeCard.stories.js +0 -75
- package/dist/stories/Molecules/LearningOutcomeFlyout.stories.js +0 -34
- package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.js +0 -20
- package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.js +0 -10
- package/dist/stories/Molecules/LearningOutcomePopover.stories.js +0 -39
- package/dist/stories/Molecules/LearningOutcomeTile.stories.js +0 -276
- package/dist/stories/Molecules/ListSection.stories.js +0 -97
- package/dist/stories/Molecules/Loading.stories.js +0 -10
- package/dist/stories/Molecules/NotificationList.stories.js +0 -100
- package/dist/stories/Molecules/PageSection.stories.js +0 -67
- package/dist/stories/Molecules/PastDueModalContents.stories.js +0 -62
- package/dist/stories/Molecules/PausableImage.stories.js +0 -16
- package/dist/stories/Molecules/ResourceCard.stories.js +0 -18
- package/dist/stories/Molecules/SocialMediaSharing.stories.js +0 -20
- package/dist/stories/Molecules/SocialMediaSharingDropdown.stories.js +0 -20
- package/dist/stories/Molecules/Testimonial.stories.js +0 -63
- package/dist/stories/Organisms/GlobalFooter.stories.js +0 -29
- package/dist/stories/Organisms/GlobalHeader/About.stories.js +0 -136
- package/dist/stories/Organisms/GlobalHeader/Anon.stories.js +0 -73
- package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.js +0 -32
- package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.js +0 -108
- package/dist/stories/Organisms/GlobalHeader/Free.stories.js +0 -133
- package/dist/stories/Organisms/GlobalHeader/Pro.stories.js +0 -199
- package/dist/stories/Organisms/GlobalHeader/Simple.stories.js +0 -31
- package/dist/stories/Organisms/GlobalPage.stories.js +0 -142
- package/dist/stories/Organisms/LayoutMenu.stories.js +0 -242
- package/dist/stories/Organisms/LayoutMenuVariant.stories.js +0 -224
- package/dist/stories/Organisms/PageAlerts.example.js +0 -42
- package/dist/stories/Organisms/PageAlerts.stories.js +0 -15
- package/dist/stories/Organisms/PageFeatures.stories.js +0 -183
- package/dist/stories/Organisms/PageHero.stories.js +0 -145
- package/dist/stories/Organisms/PageLayoutWithSidebarMenu.stories.js +0 -34
- package/dist/stories/Organisms/PagePrefooter.stories.js +0 -62
- package/dist/stories/Organisms/PageSingleFeature.stories.js +0 -158
- package/dist/stories/Organisms/PageVideoGallery.stories.js +0 -70
- package/dist/stories/Organisms/PlanCard.stories.js +0 -98
- package/dist/stories/Organisms/PlanCardTeams.stories.js +0 -27
- package/dist/stories/Organisms/ScoreSummary.stories.js +0 -299
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
import { Box } from '@codecademy/gamut';
|
|
2
|
-
import { LayoutMenu, SectionItemLink, SelectedSectionItem } from '../../index';
|
|
3
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
-
const defaults = {
|
|
5
|
-
href: '',
|
|
6
|
-
onClick: () => {}
|
|
7
|
-
};
|
|
8
|
-
const meta = {
|
|
9
|
-
component: 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(LayoutMenu, {
|
|
50
|
-
...args
|
|
51
|
-
}),
|
|
52
|
-
name: 'LayoutMenu'
|
|
53
|
-
};
|
|
54
|
-
export const WithSelectedItem = {
|
|
55
|
-
render: args => /*#__PURE__*/_jsx(LayoutMenu, {
|
|
56
|
-
...args,
|
|
57
|
-
selectedItem: "python"
|
|
58
|
-
}),
|
|
59
|
-
name: 'With Selected Item'
|
|
60
|
-
};
|
|
61
|
-
export const WithAdditionalLinks = {
|
|
62
|
-
render: args => /*#__PURE__*/_jsxs(LayoutMenu, {
|
|
63
|
-
...args,
|
|
64
|
-
children: [/*#__PURE__*/_jsx(Box, {
|
|
65
|
-
pb: 32,
|
|
66
|
-
children: /*#__PURE__*/_jsx(SelectedSectionItem, {
|
|
67
|
-
children: "Full Catalog"
|
|
68
|
-
})
|
|
69
|
-
}), /*#__PURE__*/_jsx(Box, {
|
|
70
|
-
pb: 32,
|
|
71
|
-
children: /*#__PURE__*/_jsx(SectionItemLink, {
|
|
72
|
-
href: defaults.href,
|
|
73
|
-
onClick: () => window.location.href = 'https://www.codecademy.com/explore/sorting-quiz',
|
|
74
|
-
children: "Where do I begin?"
|
|
75
|
-
})
|
|
76
|
-
})]
|
|
77
|
-
}),
|
|
78
|
-
name: 'With Additional Links'
|
|
79
|
-
};
|
|
80
|
-
export const WithAdditionalLinksOnTopAndBottom = {
|
|
81
|
-
render: args => /*#__PURE__*/_jsx(LayoutMenu, {
|
|
82
|
-
...args,
|
|
83
|
-
selectedItem: "top-link",
|
|
84
|
-
topLinkSections: [{
|
|
85
|
-
title: 'A top link!',
|
|
86
|
-
slug: 'top-link',
|
|
87
|
-
href: '/not-a-real-link',
|
|
88
|
-
onClick: () => null
|
|
89
|
-
}, {
|
|
90
|
-
title: 'Another link!',
|
|
91
|
-
slug: 'test-link-2',
|
|
92
|
-
href: '/do-not-press-me',
|
|
93
|
-
onClick: () => null
|
|
94
|
-
}],
|
|
95
|
-
children: /*#__PURE__*/_jsx(Box, {
|
|
96
|
-
pb: 32,
|
|
97
|
-
children: /*#__PURE__*/_jsx(SectionItemLink, {
|
|
98
|
-
href: defaults.href,
|
|
99
|
-
onClick: () => window.location.href = 'https://www.codecademy.com/explore/sorting-quiz',
|
|
100
|
-
children: "Where do I begin?"
|
|
101
|
-
})
|
|
102
|
-
})
|
|
103
|
-
}),
|
|
104
|
-
name: 'With Additional Links on Top and Bottom'
|
|
105
|
-
};
|
|
106
|
-
export const WithSetMenuHeight = {
|
|
107
|
-
render: args => /*#__PURE__*/_jsxs(LayoutMenu, {
|
|
108
|
-
...args,
|
|
109
|
-
menuHeight: "sm",
|
|
110
|
-
sections: [{
|
|
111
|
-
title: 'Languages',
|
|
112
|
-
slug: 'language',
|
|
113
|
-
items: [{
|
|
114
|
-
title: 'Python',
|
|
115
|
-
slug: 'python',
|
|
116
|
-
...defaults
|
|
117
|
-
}, {
|
|
118
|
-
title: 'HTML & CSS',
|
|
119
|
-
slug: 'html-css',
|
|
120
|
-
...defaults
|
|
121
|
-
}, {
|
|
122
|
-
title: 'JavaScript',
|
|
123
|
-
slug: 'javascript',
|
|
124
|
-
...defaults
|
|
125
|
-
}, {
|
|
126
|
-
title: 'SQL',
|
|
127
|
-
slug: 'sql',
|
|
128
|
-
...defaults
|
|
129
|
-
}, {
|
|
130
|
-
title: 'C++',
|
|
131
|
-
slug: 'c-plus-plus',
|
|
132
|
-
...defaults
|
|
133
|
-
}, {
|
|
134
|
-
title: 'Java',
|
|
135
|
-
slug: 'java',
|
|
136
|
-
...defaults
|
|
137
|
-
}, {
|
|
138
|
-
title: 'R',
|
|
139
|
-
slug: 'r',
|
|
140
|
-
...defaults
|
|
141
|
-
}, {
|
|
142
|
-
title: 'Go',
|
|
143
|
-
slug: 'go',
|
|
144
|
-
...defaults
|
|
145
|
-
}, {
|
|
146
|
-
title: 'C#',
|
|
147
|
-
slug: 'c-sharp',
|
|
148
|
-
...defaults
|
|
149
|
-
}, {
|
|
150
|
-
title: 'PHP',
|
|
151
|
-
slug: 'php',
|
|
152
|
-
...defaults
|
|
153
|
-
}, {
|
|
154
|
-
title: 'Ruby',
|
|
155
|
-
slug: 'ruby',
|
|
156
|
-
...defaults
|
|
157
|
-
}, {
|
|
158
|
-
title: 'Swift',
|
|
159
|
-
slug: 'swift',
|
|
160
|
-
...defaults
|
|
161
|
-
}, {
|
|
162
|
-
title: 'Bash/Shell',
|
|
163
|
-
slug: 'bash',
|
|
164
|
-
...defaults
|
|
165
|
-
}, {
|
|
166
|
-
title: 'Kotlin',
|
|
167
|
-
slug: 'kotlin',
|
|
168
|
-
...defaults
|
|
169
|
-
}, {
|
|
170
|
-
title: 'C',
|
|
171
|
-
slug: 'c',
|
|
172
|
-
...defaults
|
|
173
|
-
}]
|
|
174
|
-
}, {
|
|
175
|
-
title: 'Subjects',
|
|
176
|
-
slug: 'subject',
|
|
177
|
-
items: [{
|
|
178
|
-
title: 'Computer Science',
|
|
179
|
-
slug: 'computer-science',
|
|
180
|
-
...defaults
|
|
181
|
-
}, {
|
|
182
|
-
title: 'Machine Learning',
|
|
183
|
-
slug: 'machine-learning',
|
|
184
|
-
...defaults
|
|
185
|
-
}, {
|
|
186
|
-
title: 'Data Visualization',
|
|
187
|
-
slug: 'data-visualization',
|
|
188
|
-
...defaults
|
|
189
|
-
}, {
|
|
190
|
-
title: 'Web Development',
|
|
191
|
-
slug: 'web-development',
|
|
192
|
-
...defaults
|
|
193
|
-
}, {
|
|
194
|
-
title: 'Web Design',
|
|
195
|
-
slug: 'web-design',
|
|
196
|
-
...defaults
|
|
197
|
-
}, {
|
|
198
|
-
title: 'Data Science',
|
|
199
|
-
slug: 'data-science',
|
|
200
|
-
...defaults
|
|
201
|
-
}, {
|
|
202
|
-
title: 'Mobile Development',
|
|
203
|
-
slug: 'mobile-development',
|
|
204
|
-
...defaults
|
|
205
|
-
}, {
|
|
206
|
-
title: 'Developer Tools',
|
|
207
|
-
slug: 'developer-tools',
|
|
208
|
-
...defaults
|
|
209
|
-
}, {
|
|
210
|
-
title: 'Code Foundations',
|
|
211
|
-
slug: 'code-foundations',
|
|
212
|
-
...defaults
|
|
213
|
-
}, {
|
|
214
|
-
title: 'Game Development',
|
|
215
|
-
slug: 'game-development',
|
|
216
|
-
...defaults
|
|
217
|
-
}, {
|
|
218
|
-
title: 'Interview Prep',
|
|
219
|
-
slug: 'interview-prep',
|
|
220
|
-
...defaults
|
|
221
|
-
}, {
|
|
222
|
-
title: 'Cybersecurity',
|
|
223
|
-
slug: 'cybersecurity',
|
|
224
|
-
...defaults
|
|
225
|
-
}]
|
|
226
|
-
}],
|
|
227
|
-
children: [/*#__PURE__*/_jsx(Box, {
|
|
228
|
-
pb: 32,
|
|
229
|
-
children: /*#__PURE__*/_jsx(SelectedSectionItem, {
|
|
230
|
-
children: "Full Catalog"
|
|
231
|
-
})
|
|
232
|
-
}), /*#__PURE__*/_jsx(Box, {
|
|
233
|
-
pb: 32,
|
|
234
|
-
children: /*#__PURE__*/_jsx(SectionItemLink, {
|
|
235
|
-
href: defaults.href,
|
|
236
|
-
onClick: () => window.location.href = 'https://www.codecademy.com/explore/sorting-quiz',
|
|
237
|
-
children: "Where do I begin?"
|
|
238
|
-
})
|
|
239
|
-
})]
|
|
240
|
-
}),
|
|
241
|
-
name: 'With Set Menu Height'
|
|
242
|
-
};
|
|
@@ -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
|
-
};
|