@codecademy/brand 2.0.0-alpha.a3eb12cdcb.0 → 2.0.0-alpha.a67c1b58ff.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,224 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,183 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { Background } from '@codecademy/gamut-styles';
|
|
2
|
+
import { PageHero } from '../../index';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
const ctaArgs = {
|
|
5
|
+
text: 'Click Me',
|
|
6
|
+
href: 'https://open.spotify.com/album/10aiDpdFGyfCFEcqpx6XTq?si=xR1nDqVqROK6KYM8J-l_rw'
|
|
7
|
+
};
|
|
8
|
+
const meta = {
|
|
9
|
+
component: PageHero,
|
|
10
|
+
args: {
|
|
11
|
+
title: 'Welcome to Codecademy',
|
|
12
|
+
desc: 'feat. [Rob Thomas of Matchbox Twenty](https://en.wikipedia.org/wiki/Rob_Thomas_(musician)) off the multi-platinum album',
|
|
13
|
+
onAnchorClick: () =>
|
|
14
|
+
// eslint-disable-next-line no-console
|
|
15
|
+
console.log('You clicked me an anchor tag inside Markdown!'),
|
|
16
|
+
cta: {
|
|
17
|
+
...ctaArgs,
|
|
18
|
+
onClick: () => {
|
|
19
|
+
// eslint-disable-next-line no-console
|
|
20
|
+
console.log('You could add event tracking here');
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
media: {
|
|
24
|
+
type: 'image',
|
|
25
|
+
src: 'https://cdn.mos.cms.futurecdn.net/wtqqnkYDYi2ifsWZVW2MT4-1200-80.jpg',
|
|
26
|
+
alt: 'beach'
|
|
27
|
+
},
|
|
28
|
+
textLength: 'long'
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
export default meta;
|
|
32
|
+
export const Default = {
|
|
33
|
+
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
34
|
+
...args
|
|
35
|
+
}),
|
|
36
|
+
name: 'Page Hero'
|
|
37
|
+
};
|
|
38
|
+
export const Video = {
|
|
39
|
+
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
40
|
+
...args,
|
|
41
|
+
media: {
|
|
42
|
+
type: 'video',
|
|
43
|
+
videoUrl: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
|
|
44
|
+
videoTitle: 'Workout with Rick Sanchez',
|
|
45
|
+
placeholderImage: 'https://placekitten.com/400/300',
|
|
46
|
+
autoplay: true
|
|
47
|
+
},
|
|
48
|
+
title: "What's it like to be a Software Engineer"
|
|
49
|
+
}),
|
|
50
|
+
name: 'Video'
|
|
51
|
+
};
|
|
52
|
+
export const ShortText = {
|
|
53
|
+
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
54
|
+
...args,
|
|
55
|
+
textLength: "short"
|
|
56
|
+
}),
|
|
57
|
+
name: 'Short Text'
|
|
58
|
+
};
|
|
59
|
+
export const RegularButton = {
|
|
60
|
+
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
61
|
+
...args,
|
|
62
|
+
cta: {
|
|
63
|
+
...ctaArgs,
|
|
64
|
+
buttonType: 'fill'
|
|
65
|
+
}
|
|
66
|
+
}),
|
|
67
|
+
name: 'Regular Button'
|
|
68
|
+
};
|
|
69
|
+
export const WithoutButton = {
|
|
70
|
+
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
71
|
+
...args,
|
|
72
|
+
cta: undefined
|
|
73
|
+
}),
|
|
74
|
+
name: 'Without Button'
|
|
75
|
+
};
|
|
76
|
+
export const WithoutDescription = {
|
|
77
|
+
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
78
|
+
...args,
|
|
79
|
+
desc: undefined
|
|
80
|
+
}),
|
|
81
|
+
name: 'Without Description'
|
|
82
|
+
};
|
|
83
|
+
export const Eyebrow = {
|
|
84
|
+
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
85
|
+
...args,
|
|
86
|
+
eyebrow: {
|
|
87
|
+
text: 'Hello there'
|
|
88
|
+
},
|
|
89
|
+
textLength: "short"
|
|
90
|
+
}),
|
|
91
|
+
name: 'Eyebrow'
|
|
92
|
+
};
|
|
93
|
+
export const AccentEyebrow = {
|
|
94
|
+
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
95
|
+
...args,
|
|
96
|
+
eyebrow: {
|
|
97
|
+
text: 'Hello there',
|
|
98
|
+
accent: true
|
|
99
|
+
},
|
|
100
|
+
textLength: "short"
|
|
101
|
+
}),
|
|
102
|
+
name: 'Accent Eyebrow'
|
|
103
|
+
};
|
|
104
|
+
export const ShowImageOnMobile = {
|
|
105
|
+
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
106
|
+
...args,
|
|
107
|
+
showImageOnMobile: true,
|
|
108
|
+
textLength: "short"
|
|
109
|
+
}),
|
|
110
|
+
name: 'Show Image On Mobile'
|
|
111
|
+
};
|
|
112
|
+
export const WithoutMedia = {
|
|
113
|
+
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
114
|
+
...args,
|
|
115
|
+
media: undefined
|
|
116
|
+
}),
|
|
117
|
+
name: 'Without Media'
|
|
118
|
+
};
|
|
119
|
+
export const DarkMode = {
|
|
120
|
+
render: args => /*#__PURE__*/_jsx(Background, {
|
|
121
|
+
bg: "navy",
|
|
122
|
+
p: 16,
|
|
123
|
+
children: /*#__PURE__*/_jsx(PageHero, {
|
|
124
|
+
...args,
|
|
125
|
+
eyebrow: {
|
|
126
|
+
text: 'Hello there'
|
|
127
|
+
}
|
|
128
|
+
})
|
|
129
|
+
}),
|
|
130
|
+
name: 'Dark Mode'
|
|
131
|
+
};
|
|
132
|
+
export const PausableImage = {
|
|
133
|
+
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
134
|
+
...args,
|
|
135
|
+
media: {
|
|
136
|
+
type: 'image',
|
|
137
|
+
src: '//images.ctfassets.net/go6kr6r0ykrq/2vjTCK9DmJ6BOd5NtFxNIG/e5ced4209aef5241cd581841fa6e2511/learn-css_box-model_06.16.gif',
|
|
138
|
+
alt: 'learning envuironment demonstration'
|
|
139
|
+
},
|
|
140
|
+
eyebrow: {
|
|
141
|
+
text: 'Codecademy'
|
|
142
|
+
}
|
|
143
|
+
}),
|
|
144
|
+
name: 'PausableImage'
|
|
145
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PageLayoutWithSidebarMenu } from '../../index';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
const meta = {
|
|
4
|
+
component: PageLayoutWithSidebarMenu,
|
|
5
|
+
args: {
|
|
6
|
+
pageName: 'myPage',
|
|
7
|
+
leftSidebar: {
|
|
8
|
+
content: /*#__PURE__*/_jsx("div", {
|
|
9
|
+
children: "Menu goes here"
|
|
10
|
+
}),
|
|
11
|
+
cols: 3
|
|
12
|
+
},
|
|
13
|
+
trackUserClick: () => {},
|
|
14
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
15
|
+
children: "Main page content goes here"
|
|
16
|
+
})
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
export default meta;
|
|
20
|
+
export const Default = {
|
|
21
|
+
render: args => /*#__PURE__*/_jsx(PageLayoutWithSidebarMenu, {
|
|
22
|
+
...args
|
|
23
|
+
}),
|
|
24
|
+
name: 'PageLayoutWithSidebarMenu'
|
|
25
|
+
};
|
|
26
|
+
export const HasBackToTop = {
|
|
27
|
+
render: args => /*#__PURE__*/_jsx(PageLayoutWithSidebarMenu, {
|
|
28
|
+
...args
|
|
29
|
+
}),
|
|
30
|
+
name: 'Has Back to Top',
|
|
31
|
+
args: {
|
|
32
|
+
hasBackToTop: true
|
|
33
|
+
}
|
|
34
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Background } from '@codecademy/gamut-styles';
|
|
2
|
+
import { PagePrefooter } from '../../index';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
const ctaArgs = {
|
|
5
|
+
text: 'Supernatural',
|
|
6
|
+
href: 'https://open.spotify.com/album/10aiDpdFGyfCFEcqpx6XTq?si=xR1nDqVqROK6KYM8J-l_rw'
|
|
7
|
+
};
|
|
8
|
+
const meta = {
|
|
9
|
+
component: PagePrefooter,
|
|
10
|
+
args: {
|
|
11
|
+
title: "I'd rather be listening to Grammy-Award winning 1999 hit Smooth by Santana",
|
|
12
|
+
desc: 'feat. [Rob Thomas of Matchbox Twenty](https://en.wikipedia.org/wiki/Rob_Thomas_(musician)) off the multi-platinum album',
|
|
13
|
+
cta: {
|
|
14
|
+
...ctaArgs,
|
|
15
|
+
onClick: () => {
|
|
16
|
+
// eslint-disable-next-line no-console
|
|
17
|
+
console.log('You could add event tracking here');
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
export default meta;
|
|
23
|
+
export const Default = {
|
|
24
|
+
render: args => /*#__PURE__*/_jsx(PagePrefooter, {
|
|
25
|
+
...args
|
|
26
|
+
}),
|
|
27
|
+
name: 'Prefooter'
|
|
28
|
+
};
|
|
29
|
+
export const RegularButton = {
|
|
30
|
+
render: args => /*#__PURE__*/_jsx(PagePrefooter, {
|
|
31
|
+
...args,
|
|
32
|
+
cta: {
|
|
33
|
+
...ctaArgs,
|
|
34
|
+
buttonType: 'fill'
|
|
35
|
+
}
|
|
36
|
+
}),
|
|
37
|
+
name: 'Regular Button'
|
|
38
|
+
};
|
|
39
|
+
export const WithoutButton = {
|
|
40
|
+
render: args => /*#__PURE__*/_jsx(PagePrefooter, {
|
|
41
|
+
...args,
|
|
42
|
+
cta: undefined
|
|
43
|
+
}),
|
|
44
|
+
name: 'Without Button'
|
|
45
|
+
};
|
|
46
|
+
export const WithoutDescription = {
|
|
47
|
+
render: args => /*#__PURE__*/_jsx(PagePrefooter, {
|
|
48
|
+
...args,
|
|
49
|
+
desc: undefined
|
|
50
|
+
}),
|
|
51
|
+
name: 'Without Description'
|
|
52
|
+
};
|
|
53
|
+
export const DarkMode = {
|
|
54
|
+
render: args => /*#__PURE__*/_jsx(Background, {
|
|
55
|
+
bg: "navy",
|
|
56
|
+
p: 16,
|
|
57
|
+
children: /*#__PURE__*/_jsx(PagePrefooter, {
|
|
58
|
+
...args
|
|
59
|
+
})
|
|
60
|
+
}),
|
|
61
|
+
name: 'Dark Mode'
|
|
62
|
+
};
|