@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,20 @@
|
|
|
1
|
+
import { SocialMediaSharing } from '../../index';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
const meta = {
|
|
4
|
+
component: SocialMediaSharing,
|
|
5
|
+
args: {
|
|
6
|
+
label: '',
|
|
7
|
+
mention: 'codecademy',
|
|
8
|
+
url: 'https://spacejam.com/1996',
|
|
9
|
+
message: 'Come on and slam, and welcome to the jam',
|
|
10
|
+
hashtags: ['bball', 'chaosdunk'],
|
|
11
|
+
size: 'normal'
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
export default meta;
|
|
15
|
+
export const Default = {
|
|
16
|
+
render: args => /*#__PURE__*/_jsx(SocialMediaSharing, {
|
|
17
|
+
...args
|
|
18
|
+
}),
|
|
19
|
+
name: 'SocialMediaSharing'
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SocialMediaSharingDropdown } from '../../index';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
const meta = {
|
|
4
|
+
component: SocialMediaSharingDropdown,
|
|
5
|
+
args: {
|
|
6
|
+
mention: 'codecademy',
|
|
7
|
+
url: 'https://spacejam.com/1996',
|
|
8
|
+
message: 'Come on and slam, and welcome to the jam',
|
|
9
|
+
hashtags: ['bball', 'chaosdunk'],
|
|
10
|
+
action: () => null,
|
|
11
|
+
defaultPosition: 'below'
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
export default meta;
|
|
15
|
+
export const Default = {
|
|
16
|
+
render: args => /*#__PURE__*/_jsx(SocialMediaSharingDropdown, {
|
|
17
|
+
...args
|
|
18
|
+
}),
|
|
19
|
+
name: 'SocialMediaSharingDropdown'
|
|
20
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { FlexBox } from '@codecademy/gamut';
|
|
2
|
+
import { Background } from '@codecademy/gamut-styles';
|
|
3
|
+
import { Testimonial } from '../../index';
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
const meta = {
|
|
6
|
+
component: Testimonial,
|
|
7
|
+
args: {
|
|
8
|
+
firstName: 'Lacey',
|
|
9
|
+
lastName: 'Bathala',
|
|
10
|
+
occupation: 'Data Analyst',
|
|
11
|
+
quote: "Coding isn't a rocket appliance, it’s just falsely intimidating.",
|
|
12
|
+
company: 'Microsoft',
|
|
13
|
+
imageUrl: 'http://images.ctfassets.net/go6kr6r0ykrq/4MdZk5XTPtg52O0uUBDMXB/e829b4fe7ea9e02220c4f86b0a17d7b3/lacey_bathala_480.png?w=120&h=120',
|
|
14
|
+
href: 'https://www.codecademy.com/learner-stories/data-science/1ogiwGOCDJNRTHczbLsyn8',
|
|
15
|
+
onClick: () => {
|
|
16
|
+
// eslint-disable-next-line no-console
|
|
17
|
+
console.log('You could add event tracking here.');
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
export default meta;
|
|
22
|
+
export const Default = {
|
|
23
|
+
render: args => /*#__PURE__*/_jsx(Testimonial, {
|
|
24
|
+
...args
|
|
25
|
+
}),
|
|
26
|
+
name: 'Testimonial'
|
|
27
|
+
};
|
|
28
|
+
export const LightMode = {
|
|
29
|
+
render: args => /*#__PURE__*/_jsx(Testimonial, {
|
|
30
|
+
...args
|
|
31
|
+
}),
|
|
32
|
+
name: 'Light Mode'
|
|
33
|
+
};
|
|
34
|
+
export const DarkMode = {
|
|
35
|
+
render: args => /*#__PURE__*/_jsx(Background, {
|
|
36
|
+
bg: "navy",
|
|
37
|
+
children: /*#__PURE__*/_jsx(FlexBox, {
|
|
38
|
+
p: 16,
|
|
39
|
+
center: true,
|
|
40
|
+
children: /*#__PURE__*/_jsx(Testimonial, {
|
|
41
|
+
hidePhoto: true,
|
|
42
|
+
variant: "navy",
|
|
43
|
+
...args
|
|
44
|
+
})
|
|
45
|
+
})
|
|
46
|
+
}),
|
|
47
|
+
name: 'Dark Mode'
|
|
48
|
+
};
|
|
49
|
+
export const SmallLight = {
|
|
50
|
+
render: args => /*#__PURE__*/_jsx(Testimonial, {
|
|
51
|
+
orientation: "vertical",
|
|
52
|
+
...args
|
|
53
|
+
}),
|
|
54
|
+
name: 'Small Light'
|
|
55
|
+
};
|
|
56
|
+
export const MediumDark = {
|
|
57
|
+
render: args => /*#__PURE__*/_jsx(Testimonial, {
|
|
58
|
+
...args,
|
|
59
|
+
orientation: "horizontal",
|
|
60
|
+
hidePhoto: true
|
|
61
|
+
}),
|
|
62
|
+
name: 'Medium Dark'
|
|
63
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { GlobalFooter } from '../../index';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
const meta = {
|
|
4
|
+
component: GlobalFooter,
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: 'fullscreen'
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
export default meta;
|
|
10
|
+
export const Default = {
|
|
11
|
+
render: args => /*#__PURE__*/_jsx(GlobalFooter, {
|
|
12
|
+
...args
|
|
13
|
+
}),
|
|
14
|
+
name: 'GlobalFooter'
|
|
15
|
+
};
|
|
16
|
+
export const HidePricing = {
|
|
17
|
+
render: args => /*#__PURE__*/_jsx(GlobalFooter, {
|
|
18
|
+
hidePricing: true,
|
|
19
|
+
...args
|
|
20
|
+
}),
|
|
21
|
+
name: 'Hide Pricing'
|
|
22
|
+
};
|
|
23
|
+
export const ClickableMadeIn = {
|
|
24
|
+
render: args => /*#__PURE__*/_jsx(GlobalFooter, {
|
|
25
|
+
...args,
|
|
26
|
+
onMadeInClick: () => {}
|
|
27
|
+
}),
|
|
28
|
+
name: 'Clickable MadeIN'
|
|
29
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { Box } from '@codecademy/gamut';
|
|
2
|
+
import { GlobalHeader } from '../../../index';
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
+
const meta = {
|
|
5
|
+
component: GlobalHeader,
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: 'fullscreen'
|
|
8
|
+
},
|
|
9
|
+
decorators: [Story => {
|
|
10
|
+
return /*#__PURE__*/_jsx(Box, {
|
|
11
|
+
style: {
|
|
12
|
+
width: '100%'
|
|
13
|
+
},
|
|
14
|
+
children: Story()
|
|
15
|
+
});
|
|
16
|
+
}]
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
export const Default = {
|
|
20
|
+
render: args => /*#__PURE__*/_jsxs(Box, {
|
|
21
|
+
position: "relative",
|
|
22
|
+
zIndex: 0,
|
|
23
|
+
children: [/*#__PURE__*/_jsx(GlobalHeader, {
|
|
24
|
+
...args
|
|
25
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
26
|
+
height: "120vh",
|
|
27
|
+
bg: "background-primary"
|
|
28
|
+
})]
|
|
29
|
+
}),
|
|
30
|
+
name: 'GlobalHeader',
|
|
31
|
+
args: {
|
|
32
|
+
type: 'free',
|
|
33
|
+
user: {
|
|
34
|
+
avatar: 'https://www.gravatar.com/avatar/1c959a9a1e2f9f9f1ac06b05cccc1d60?s=150&d=retro',
|
|
35
|
+
displayName: 'Codey'
|
|
36
|
+
},
|
|
37
|
+
action: () => {},
|
|
38
|
+
search: {
|
|
39
|
+
onEnable: () => {},
|
|
40
|
+
onSearch: () => {},
|
|
41
|
+
onTrackingClick: () => {},
|
|
42
|
+
onSearchAsYouType: () => {}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
export const GlobalHeaderWithSearchAndNotifications = {
|
|
47
|
+
render: () => /*#__PURE__*/_jsx(GlobalHeader, {
|
|
48
|
+
action: () => {},
|
|
49
|
+
search: {
|
|
50
|
+
onEnable: () => {},
|
|
51
|
+
onSearch: () => {},
|
|
52
|
+
onTrackingClick: () => {},
|
|
53
|
+
onSearchAsYouType: () => {}
|
|
54
|
+
},
|
|
55
|
+
notifications: {
|
|
56
|
+
actions: {
|
|
57
|
+
clear: () => null,
|
|
58
|
+
click: _notification => null,
|
|
59
|
+
dismiss: _notification => null,
|
|
60
|
+
read: _notifications => null,
|
|
61
|
+
track: _target => null
|
|
62
|
+
},
|
|
63
|
+
notifications: [],
|
|
64
|
+
onEnable: () => null
|
|
65
|
+
},
|
|
66
|
+
type: "pro",
|
|
67
|
+
user: {
|
|
68
|
+
avatar: 'https://www.gravatar.com/avatar/1c959a9a1e2f9f9f1ac06b05cccc1d60?s=150&d=retro',
|
|
69
|
+
displayName: 'Codey'
|
|
70
|
+
}
|
|
71
|
+
}),
|
|
72
|
+
name: 'GlobalHeader With Search and Notifications'
|
|
73
|
+
};
|
|
74
|
+
export const GlobalHeaderOverBackgroundColor = {
|
|
75
|
+
render: () => /*#__PURE__*/_jsx(Box, {
|
|
76
|
+
bg: "beige",
|
|
77
|
+
width: "100%",
|
|
78
|
+
children: /*#__PURE__*/_jsx(GlobalHeader, {
|
|
79
|
+
action: () => {},
|
|
80
|
+
search: {
|
|
81
|
+
onEnable: () => {},
|
|
82
|
+
onSearch: () => {},
|
|
83
|
+
onTrackingClick: () => {},
|
|
84
|
+
onSearchAsYouType: () => {}
|
|
85
|
+
},
|
|
86
|
+
notifications: {
|
|
87
|
+
actions: {
|
|
88
|
+
clear: () => null,
|
|
89
|
+
click: _notification => null,
|
|
90
|
+
dismiss: _notification => null,
|
|
91
|
+
read: _notifications => null,
|
|
92
|
+
track: _target => null
|
|
93
|
+
},
|
|
94
|
+
notifications: [],
|
|
95
|
+
onEnable: () => null
|
|
96
|
+
},
|
|
97
|
+
type: "pro",
|
|
98
|
+
user: {
|
|
99
|
+
avatar: 'https://www.gravatar.com/avatar/1c959a9a1e2f9f9f1ac06b05cccc1d60?s=150&d=retro',
|
|
100
|
+
displayName: 'Codey'
|
|
101
|
+
}
|
|
102
|
+
})
|
|
103
|
+
}),
|
|
104
|
+
name: 'GlobalHeader Over Background Color'
|
|
105
|
+
};
|
|
106
|
+
export const GlobalHeaderWithAnActionFunction = {
|
|
107
|
+
render: () => /*#__PURE__*/_jsx(GlobalHeader, {
|
|
108
|
+
action: (event, item) => {
|
|
109
|
+
// eslint-disable-next-line no-console
|
|
110
|
+
console.log(event);
|
|
111
|
+
// eslint-disable-next-line no-console
|
|
112
|
+
console.log(item);
|
|
113
|
+
},
|
|
114
|
+
search: {
|
|
115
|
+
onEnable: () => {},
|
|
116
|
+
onSearch: () => {},
|
|
117
|
+
onTrackingClick: () => {},
|
|
118
|
+
onSearchAsYouType: () => {}
|
|
119
|
+
},
|
|
120
|
+
type: "anon"
|
|
121
|
+
}),
|
|
122
|
+
name: 'GlobalHeader With an Action Function'
|
|
123
|
+
};
|
|
124
|
+
export const Loading = {
|
|
125
|
+
render: () => /*#__PURE__*/_jsx(GlobalHeader, {
|
|
126
|
+
action: () => {},
|
|
127
|
+
search: {
|
|
128
|
+
onEnable: () => {},
|
|
129
|
+
onSearch: () => {},
|
|
130
|
+
onTrackingClick: () => {},
|
|
131
|
+
onSearchAsYouType: () => {}
|
|
132
|
+
},
|
|
133
|
+
type: "loading"
|
|
134
|
+
}),
|
|
135
|
+
name: 'Loading'
|
|
136
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Box } from '@codecademy/gamut';
|
|
2
|
+
import { GlobalHeader } from '../../../index';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
const meta = {
|
|
5
|
+
component: GlobalHeader,
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: 'fullscreen'
|
|
8
|
+
},
|
|
9
|
+
decorators: [Story => {
|
|
10
|
+
return /*#__PURE__*/_jsx(Box, {
|
|
11
|
+
style: {
|
|
12
|
+
width: '100%'
|
|
13
|
+
},
|
|
14
|
+
children: Story()
|
|
15
|
+
});
|
|
16
|
+
}]
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
export const AnonymousUserDefault = {
|
|
20
|
+
render: () => /*#__PURE__*/_jsx(GlobalHeader, {
|
|
21
|
+
action: () => {},
|
|
22
|
+
search: {
|
|
23
|
+
onEnable: () => {},
|
|
24
|
+
onSearch: () => {},
|
|
25
|
+
onTrackingClick: () => {},
|
|
26
|
+
onSearchAsYouType: () => {}
|
|
27
|
+
},
|
|
28
|
+
type: "anon"
|
|
29
|
+
}),
|
|
30
|
+
name: 'Anonymous User - Default'
|
|
31
|
+
};
|
|
32
|
+
export const AnonymousUserLandingPage = {
|
|
33
|
+
render: () => /*#__PURE__*/_jsx(GlobalHeader, {
|
|
34
|
+
action: () => {},
|
|
35
|
+
search: {
|
|
36
|
+
onEnable: () => {},
|
|
37
|
+
onSearch: () => {},
|
|
38
|
+
onTrackingClick: () => {},
|
|
39
|
+
onSearchAsYouType: () => {}
|
|
40
|
+
},
|
|
41
|
+
type: "anon",
|
|
42
|
+
variant: "landing"
|
|
43
|
+
}),
|
|
44
|
+
name: 'Anonymous User - Landing Page'
|
|
45
|
+
};
|
|
46
|
+
export const AnonymousUserLoginPage = {
|
|
47
|
+
render: () => /*#__PURE__*/_jsx(GlobalHeader, {
|
|
48
|
+
action: () => {},
|
|
49
|
+
search: {
|
|
50
|
+
onEnable: () => {},
|
|
51
|
+
onSearch: () => {},
|
|
52
|
+
onTrackingClick: () => {},
|
|
53
|
+
onSearchAsYouType: () => {}
|
|
54
|
+
},
|
|
55
|
+
type: "anon",
|
|
56
|
+
variant: "login"
|
|
57
|
+
}),
|
|
58
|
+
name: 'Anonymous User - Login Page'
|
|
59
|
+
};
|
|
60
|
+
export const AnonymousUserSignupPage = {
|
|
61
|
+
render: () => /*#__PURE__*/_jsx(GlobalHeader, {
|
|
62
|
+
action: () => {},
|
|
63
|
+
search: {
|
|
64
|
+
onEnable: () => {},
|
|
65
|
+
onSearch: () => {},
|
|
66
|
+
onTrackingClick: () => {},
|
|
67
|
+
onSearchAsYouType: () => {}
|
|
68
|
+
},
|
|
69
|
+
type: "anon",
|
|
70
|
+
variant: "signup"
|
|
71
|
+
}),
|
|
72
|
+
name: 'Anonymous User - Signup Page'
|
|
73
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Box } from '@codecademy/gamut';
|
|
2
|
+
import { GlobalHeader } from '../../../GlobalHeader';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
const meta = {
|
|
5
|
+
component: GlobalHeader,
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: 'fullscreen'
|
|
8
|
+
},
|
|
9
|
+
decorators: [Story => {
|
|
10
|
+
return /*#__PURE__*/_jsx(Box, {
|
|
11
|
+
style: {
|
|
12
|
+
width: '100%'
|
|
13
|
+
},
|
|
14
|
+
children: Story()
|
|
15
|
+
});
|
|
16
|
+
}]
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
export const Bootcamp = {
|
|
20
|
+
render: () => /*#__PURE__*/_jsx(GlobalHeader, {
|
|
21
|
+
action: () => {},
|
|
22
|
+
search: {
|
|
23
|
+
onEnable: () => {},
|
|
24
|
+
onSearch: () => {},
|
|
25
|
+
onTrackingClick: () => {},
|
|
26
|
+
onSearchAsYouType: () => {}
|
|
27
|
+
},
|
|
28
|
+
type: "bootcamp",
|
|
29
|
+
bootcampSlug: "bootcamp-slug"
|
|
30
|
+
}),
|
|
31
|
+
name: 'Bootcamp'
|
|
32
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { Box } from '@codecademy/gamut';
|
|
2
|
+
import { GlobalHeader } from '../../../index';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
const meta = {
|
|
5
|
+
component: GlobalHeader,
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: 'fullscreen'
|
|
8
|
+
},
|
|
9
|
+
decorators: [Story => {
|
|
10
|
+
return /*#__PURE__*/_jsx(Box, {
|
|
11
|
+
style: {
|
|
12
|
+
width: '100%'
|
|
13
|
+
},
|
|
14
|
+
children: Story()
|
|
15
|
+
});
|
|
16
|
+
}]
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
export const Enterprise = {
|
|
20
|
+
render: () => /*#__PURE__*/_jsx(GlobalHeader, {
|
|
21
|
+
action: () => {},
|
|
22
|
+
search: {
|
|
23
|
+
onEnable: () => {},
|
|
24
|
+
onSearch: () => {},
|
|
25
|
+
onTrackingClick: () => {},
|
|
26
|
+
onSearchAsYouType: () => {}
|
|
27
|
+
},
|
|
28
|
+
type: "enterprise",
|
|
29
|
+
user: {
|
|
30
|
+
avatar: 'https://www.gravatar.com/avatar/1c959a9a1e2f9f9f1ac06b05cccc1d60?s=150&d=retro',
|
|
31
|
+
displayName: 'Kallie',
|
|
32
|
+
isAccountManager: true
|
|
33
|
+
}
|
|
34
|
+
}),
|
|
35
|
+
name: 'Enterprise'
|
|
36
|
+
};
|
|
37
|
+
export const BusinessAccountManagerPro = {
|
|
38
|
+
render: () => /*#__PURE__*/_jsx(GlobalHeader, {
|
|
39
|
+
action: () => {},
|
|
40
|
+
notifications: {
|
|
41
|
+
notifications: [{
|
|
42
|
+
campaign: 'existence_is_pain',
|
|
43
|
+
date: '5 hours',
|
|
44
|
+
id: '1',
|
|
45
|
+
link: 'https://codecademy.com',
|
|
46
|
+
text: "Look at me! I'm Mr. Notification!",
|
|
47
|
+
unread: true
|
|
48
|
+
}],
|
|
49
|
+
onEnable: () => {},
|
|
50
|
+
actions: {
|
|
51
|
+
clear: () => {},
|
|
52
|
+
click: () => {},
|
|
53
|
+
dismiss: () => {},
|
|
54
|
+
read: () => {},
|
|
55
|
+
track: () => {}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
search: {
|
|
59
|
+
onEnable: () => {},
|
|
60
|
+
onSearch: () => {},
|
|
61
|
+
onTrackingClick: () => {},
|
|
62
|
+
onSearchAsYouType: () => {}
|
|
63
|
+
},
|
|
64
|
+
type: "pro",
|
|
65
|
+
user: {
|
|
66
|
+
avatar: 'https://www.gravatar.com/avatar/1c959a9a1e2f9f9f1ac06b05cccc1d60?s=150&d=retro',
|
|
67
|
+
displayName: 'Kallie',
|
|
68
|
+
isAccountManager: true
|
|
69
|
+
}
|
|
70
|
+
}),
|
|
71
|
+
name: 'Business Account Manager - Pro'
|
|
72
|
+
};
|
|
73
|
+
export const BusinessAccountManagerFree = {
|
|
74
|
+
render: () => /*#__PURE__*/_jsx(GlobalHeader, {
|
|
75
|
+
action: () => {},
|
|
76
|
+
notifications: {
|
|
77
|
+
notifications: [{
|
|
78
|
+
campaign: 'existence_is_pain',
|
|
79
|
+
date: '5 hours',
|
|
80
|
+
id: '1',
|
|
81
|
+
link: 'https://codecademy.com',
|
|
82
|
+
text: "Look at me! I'm Mr. Notification!",
|
|
83
|
+
unread: true
|
|
84
|
+
}],
|
|
85
|
+
onEnable: () => {},
|
|
86
|
+
actions: {
|
|
87
|
+
clear: () => {},
|
|
88
|
+
click: () => {},
|
|
89
|
+
dismiss: () => {},
|
|
90
|
+
read: () => {},
|
|
91
|
+
track: () => {}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
search: {
|
|
95
|
+
onEnable: () => {},
|
|
96
|
+
onSearch: () => {},
|
|
97
|
+
onTrackingClick: () => {},
|
|
98
|
+
onSearchAsYouType: () => {}
|
|
99
|
+
},
|
|
100
|
+
type: "free",
|
|
101
|
+
user: {
|
|
102
|
+
avatar: 'https://www.gravatar.com/avatar/1c959a9a1e2f9f9f1ac06b05cccc1d60?s=150&d=retro',
|
|
103
|
+
displayName: 'Kallie',
|
|
104
|
+
isAccountManager: true
|
|
105
|
+
}
|
|
106
|
+
}),
|
|
107
|
+
name: 'Business Account Manager - Free'
|
|
108
|
+
};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { Box } from '@codecademy/gamut';
|
|
2
|
+
import { Background } from '@codecademy/gamut-styles';
|
|
3
|
+
import { GlobalHeader } from '../../../index';
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
const meta = {
|
|
6
|
+
component: GlobalHeader,
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: 'fullscreen'
|
|
9
|
+
},
|
|
10
|
+
decorators: [Story => {
|
|
11
|
+
return /*#__PURE__*/_jsx(Box, {
|
|
12
|
+
style: {
|
|
13
|
+
width: '100%'
|
|
14
|
+
},
|
|
15
|
+
children: Story()
|
|
16
|
+
});
|
|
17
|
+
}]
|
|
18
|
+
};
|
|
19
|
+
export default meta;
|
|
20
|
+
export const FreeUserDefault = {
|
|
21
|
+
render: () => /*#__PURE__*/_jsxs(Background, {
|
|
22
|
+
bg: "background-primary",
|
|
23
|
+
position: "relative",
|
|
24
|
+
zIndex: 0,
|
|
25
|
+
children: [/*#__PURE__*/_jsx(GlobalHeader, {
|
|
26
|
+
action: () => {},
|
|
27
|
+
notifications: {
|
|
28
|
+
notifications: [{
|
|
29
|
+
campaign: 'existence_is_pain',
|
|
30
|
+
date: '5 hours',
|
|
31
|
+
id: '1',
|
|
32
|
+
link: 'https://codecademy.com',
|
|
33
|
+
text: "Look at me! I'm Mr. Notification!",
|
|
34
|
+
unread: true
|
|
35
|
+
}],
|
|
36
|
+
onEnable: () => {},
|
|
37
|
+
actions: {
|
|
38
|
+
clear: () => {},
|
|
39
|
+
click: () => {},
|
|
40
|
+
dismiss: () => {},
|
|
41
|
+
read: () => {},
|
|
42
|
+
track: () => {}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
search: {
|
|
46
|
+
onEnable: () => {},
|
|
47
|
+
onSearch: () => {},
|
|
48
|
+
onTrackingClick: () => {},
|
|
49
|
+
onSearchAsYouType: () => {}
|
|
50
|
+
},
|
|
51
|
+
type: "free",
|
|
52
|
+
user: {
|
|
53
|
+
avatar: 'https://www.gravatar.com/avatar/1c959a9a1e2f9f9f1ac06b05cccc1d60?s=150&d=retro',
|
|
54
|
+
displayName: 'Codey'
|
|
55
|
+
}
|
|
56
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
57
|
+
children: "Page content would go here"
|
|
58
|
+
})]
|
|
59
|
+
}),
|
|
60
|
+
name: 'Free User - Default'
|
|
61
|
+
};
|
|
62
|
+
export const FreeUserCustomTrialCtaUrl = {
|
|
63
|
+
render: () => /*#__PURE__*/_jsx(GlobalHeader, {
|
|
64
|
+
action: () => {},
|
|
65
|
+
notifications: {
|
|
66
|
+
notifications: [{
|
|
67
|
+
campaign: 'existence_is_pain',
|
|
68
|
+
date: '5 hours',
|
|
69
|
+
id: '1',
|
|
70
|
+
link: 'https://codecademy.com',
|
|
71
|
+
text: "Look at me! I'm Mr. Notification!",
|
|
72
|
+
unread: true
|
|
73
|
+
}],
|
|
74
|
+
onEnable: () => {},
|
|
75
|
+
actions: {
|
|
76
|
+
clear: () => {},
|
|
77
|
+
click: () => {},
|
|
78
|
+
dismiss: () => {},
|
|
79
|
+
read: () => {},
|
|
80
|
+
track: () => {}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
search: {
|
|
84
|
+
onEnable: () => {},
|
|
85
|
+
onSearch: () => {},
|
|
86
|
+
onTrackingClick: () => {},
|
|
87
|
+
onSearchAsYouType: () => {}
|
|
88
|
+
},
|
|
89
|
+
type: "free",
|
|
90
|
+
user: {
|
|
91
|
+
avatar: 'https://www.gravatar.com/avatar/1c959a9a1e2f9f9f1ac06b05cccc1d60?s=150&d=retro',
|
|
92
|
+
displayName: 'Codey',
|
|
93
|
+
proCheckoutUrl: 'https://www.codecademy.com'
|
|
94
|
+
}
|
|
95
|
+
}),
|
|
96
|
+
name: 'Free User - Custom Trial CTA URL'
|
|
97
|
+
};
|
|
98
|
+
export const FreeUserProUpgrade = {
|
|
99
|
+
render: () => /*#__PURE__*/_jsx(GlobalHeader, {
|
|
100
|
+
action: () => {},
|
|
101
|
+
notifications: {
|
|
102
|
+
notifications: [{
|
|
103
|
+
campaign: 'existence_is_pain',
|
|
104
|
+
date: '5 hours',
|
|
105
|
+
id: '1',
|
|
106
|
+
link: 'https://codecademy.com',
|
|
107
|
+
text: "Look at me! I'm Mr. Notification!",
|
|
108
|
+
unread: true
|
|
109
|
+
}],
|
|
110
|
+
onEnable: () => {},
|
|
111
|
+
actions: {
|
|
112
|
+
clear: () => {},
|
|
113
|
+
click: () => {},
|
|
114
|
+
dismiss: () => {},
|
|
115
|
+
read: () => {},
|
|
116
|
+
track: () => {}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
search: {
|
|
120
|
+
onEnable: () => {},
|
|
121
|
+
onSearch: () => {},
|
|
122
|
+
onTrackingClick: () => {},
|
|
123
|
+
onSearchAsYouType: () => {}
|
|
124
|
+
},
|
|
125
|
+
type: "free",
|
|
126
|
+
user: {
|
|
127
|
+
avatar: 'https://www.gravatar.com/avatar/1c959a9a1e2f9f9f1ac06b05cccc1d60?s=150&d=retro',
|
|
128
|
+
displayName: 'Codey',
|
|
129
|
+
showProUpgrade: true
|
|
130
|
+
}
|
|
131
|
+
}),
|
|
132
|
+
name: 'Free User - Pro Upgrade'
|
|
133
|
+
};
|