@codecademy/brand 3.28.0-alpha.e4c902328e.0 → 3.29.0-alpha.58c5f2c7f5.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/AppHeaderCatalogDropdown/MarketingBanner.d.ts +2 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/MarketingBanner.js +3 -3
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/NavPanels.d.ts +1 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/NavPanels.js +8 -5
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/consts.d.ts +2 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/consts.js +52 -2
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.js +5 -4
- package/dist/AppHeader/AppHeaderElements/AppHeaderDietCard/index.js +7 -5
- package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.js +0 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/AppHeaderSection.test.js +193 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileBackButton.d.ts +25 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileBackButton.js +13 -2
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileNavMenu.js +12 -3
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/NavSection.d.ts +21 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/NavSection.js +206 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/PanelLayout.d.ts +2 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/PanelLayout.js +8 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/elements.d.ts +2 -55
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/elements.js +18 -69
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/index.d.ts +10 -15
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/index.js +28 -89
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.js +8 -6
- package/dist/DropdownButton/index.d.ts +1 -3
- package/dist/GlobalHeader/context.d.ts +3 -1
- package/dist/GlobalHeader/context.js +19 -15
- package/dist/GlobalHeader/index.js +50 -47
- package/dist/GlobalHeader/types.d.ts +1 -0
- package/dist/stories/Atoms/BetaSticker.stories.js +0 -1
- package/dist/stories/Molecules/AppBar.stories.d.ts +0 -1
- package/dist/stories/Molecules/AppBar.stories.js +1 -2
- package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.js +0 -2
- package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.js +1 -2
- package/dist/stories/Molecules/Banner.stories.js +0 -3
- package/dist/stories/Molecules/CurriculumCard.stories.js +0 -7
- package/dist/stories/Molecules/EmptySection.stories.js +1 -2
- package/dist/stories/Molecules/EnhancedBanner.stories.js +1 -1
- package/dist/stories/Molecules/HubCard.stories.js +0 -1
- package/dist/stories/Molecules/NotificationList.stories.js +1 -2
- package/dist/stories/Molecules/Testimonial.stories.js +4 -8
- package/dist/stories/Organisms/GlobalFooter.stories.js +1 -2
- package/dist/stories/Organisms/GlobalHeader/About.stories.js +1 -2
- package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.js +1 -2
- package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.js +1 -2
- package/dist/stories/Organisms/GlobalHeader/Simple.stories.js +1 -2
- package/dist/stories/Organisms/GlobalPage.stories.js +0 -2
- package/dist/stories/Organisms/LayoutMenu.stories.js +3 -6
- package/dist/stories/Organisms/LayoutMenuVariant.stories.js +2 -4
- package/dist/stories/Organisms/PageFeatures.stories.js +1 -9
- package/dist/stories/Organisms/PageHero.stories.js +10 -20
- package/dist/stories/Organisms/PagePrefooter.stories.js +4 -8
- package/dist/stories/Organisms/PageSingleFeature.stories.js +10 -20
- package/dist/stories/Organisms/PageVideoGallery.stories.js +5 -10
- package/dist/stories/Organisms/ScoreSummary.stories.js +4 -8
- package/dist/svg.d.ts +0 -1
- package/package.json +2 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/NavTabs.d.ts +0 -20
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/NavTabs.js +0 -126
|
@@ -16,11 +16,11 @@ export const DropdownPositions = {
|
|
|
16
16
|
free: {
|
|
17
17
|
catalogDropdown: {
|
|
18
18
|
narrow: '-9rem',
|
|
19
|
-
wide: '-
|
|
19
|
+
wide: '-14.5rem'
|
|
20
20
|
},
|
|
21
21
|
resourceDropdown: {
|
|
22
22
|
narrow: '-14.5rem',
|
|
23
|
-
wide: '-
|
|
23
|
+
wide: '-20rem'
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
anon: {
|
|
@@ -35,34 +35,34 @@ export const DropdownPositions = {
|
|
|
35
35
|
},
|
|
36
36
|
pro: {
|
|
37
37
|
catalogDropdown: {
|
|
38
|
-
narrow: '-
|
|
39
|
-
wide: '-
|
|
38
|
+
narrow: '-14.5rem',
|
|
39
|
+
wide: '-14.5rem'
|
|
40
40
|
},
|
|
41
41
|
resourceDropdown: {
|
|
42
|
-
narrow: '-
|
|
43
|
-
wide: '-
|
|
42
|
+
narrow: '-20rem',
|
|
43
|
+
wide: '-20rem'
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
teams: {
|
|
47
47
|
catalogDropdown: {
|
|
48
|
-
narrow: '-
|
|
49
|
-
wide: '-
|
|
48
|
+
narrow: '-14.5rem',
|
|
49
|
+
wide: '-14.5rem'
|
|
50
50
|
},
|
|
51
51
|
resourceDropdown: {
|
|
52
|
-
narrow: '-
|
|
53
|
-
wide: '-
|
|
52
|
+
narrow: '-20rem',
|
|
53
|
+
wide: '-20rem'
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
// won't be used, but is here to handle the case where the header type is not one of the above
|
|
57
57
|
// other header types are not part of the experiment
|
|
58
58
|
default: {
|
|
59
59
|
catalogDropdown: {
|
|
60
|
-
narrow: '-
|
|
61
|
-
wide: '-
|
|
60
|
+
narrow: '-14.5rem',
|
|
61
|
+
wide: '-14.5rem'
|
|
62
62
|
},
|
|
63
63
|
resourceDropdown: {
|
|
64
|
-
narrow: '-
|
|
65
|
-
wide: '-
|
|
64
|
+
narrow: '-20rem',
|
|
65
|
+
wide: '-20rem'
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
};
|
|
@@ -74,4 +74,8 @@ const HeaderDisplayContext = /*#__PURE__*/React.createContext({
|
|
|
74
74
|
export const useHeaderDisplayContext = () => {
|
|
75
75
|
return useContext(HeaderDisplayContext);
|
|
76
76
|
};
|
|
77
|
-
|
|
77
|
+
const HighlightLiveLearningContext = /*#__PURE__*/createContext(false);
|
|
78
|
+
const useHighlightLiveLearningContext = () => {
|
|
79
|
+
return useContext(HighlightLiveLearningContext);
|
|
80
|
+
};
|
|
81
|
+
export { GlobalHeaderDynamicDataContext, GlobalHeaderItemClickContext, HeaderDisplayContext, HighlightLiveLearningContext, useHighlightLiveLearningContext };
|
|
@@ -3,7 +3,7 @@ import { useTheme } from '@emotion/react';
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { useCallback, useMemo } from 'react';
|
|
5
5
|
import { AppHeader, AppHeaderMobile, isAppHeaderItemWithHref } from '..';
|
|
6
|
-
import { DropdownPositions, GlobalHeaderDynamicDataContext, GlobalHeaderItemClickContext, HeaderDisplayContext } from './context';
|
|
6
|
+
import { DropdownPositions, GlobalHeaderDynamicDataContext, GlobalHeaderItemClickContext, HeaderDisplayContext, HighlightLiveLearningContext } from './context';
|
|
7
7
|
import { anonDefaultHeaderItems, anonDefaultMobileHeaderItems, anonLandingHeaderItems, anonLandingMobileHeaderItems, anonLoginHeaderItems, anonLoginMobileHeaderItems, anonSignupHeaderItems, anonSignupMobileHeaderItems, enterpriseHeaderItems, enterpriseMobileHeaderItems, freeHeaderItems, freeMobileHeaderItems, loadingHeaderItems, loadingMobileHeaderItems, proHeaderItems, proMobileHeaderItems, simpleBootcampHeaderItems, simpleBootcampMobileHeaderItems, simpleHeaderItems, simpleMobileHeaderItems, teamsHeaderItems, teamsMobileHeaderItems } from './GlobalHeaderVariants';
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
9
|
export * from './types';
|
|
@@ -129,52 +129,55 @@ export const GlobalHeader = props => {
|
|
|
129
129
|
return 'default';
|
|
130
130
|
}, [props.type])
|
|
131
131
|
},
|
|
132
|
-
children: /*#__PURE__*/_jsx(
|
|
133
|
-
value: !!props.
|
|
134
|
-
children: /*#__PURE__*/_jsx(
|
|
135
|
-
value:
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
132
|
+
children: /*#__PURE__*/_jsx(HighlightLiveLearningContext.Provider, {
|
|
133
|
+
value: !!props.displayHighlightLiveLearning,
|
|
134
|
+
children: /*#__PURE__*/_jsx(RevampedBlpExperimentContext.Provider, {
|
|
135
|
+
value: !!props.isInRevampedBlpExperimentVariant,
|
|
136
|
+
children: /*#__PURE__*/_jsx(GlobalHeaderItemClickContext.Provider, {
|
|
137
|
+
value: {
|
|
138
|
+
globalHeaderItemClick: combinedAction
|
|
139
|
+
},
|
|
140
|
+
children: /*#__PURE__*/_jsx(GlobalHeaderDynamicDataContext.Provider, {
|
|
141
|
+
value: useMemo(() => ({
|
|
142
|
+
globalHeaderDynamicData: dynamicData ?? null
|
|
143
|
+
}), [dynamicData]),
|
|
144
|
+
children: /*#__PURE__*/_jsxs(Box, {
|
|
145
|
+
as: "header",
|
|
146
|
+
position: "sticky",
|
|
147
|
+
top: 0,
|
|
148
|
+
zIndex: theme.elements.headerZ,
|
|
149
|
+
overflow: {
|
|
150
|
+
_: 'hidden',
|
|
151
|
+
sm: 'visible'
|
|
152
|
+
} // Prevent tooltip overflow on mobile
|
|
153
|
+
,
|
|
154
|
+
children: [/*#__PURE__*/_jsx(AppHeader, {
|
|
155
|
+
action: combinedAction,
|
|
156
|
+
items: getAppHeaderItems(props, false, dynamicDataLoading ?? false),
|
|
157
|
+
search: props.search,
|
|
158
|
+
...(props.type === 'anon' ? {
|
|
159
|
+
redirectParam: props.redirectParam
|
|
160
|
+
} : hideNotification ? {} : {
|
|
161
|
+
notifications: props.notifications
|
|
162
|
+
}),
|
|
163
|
+
hideRightButtonDefaults: hideNotification,
|
|
164
|
+
isTeams: props.type === 'teams',
|
|
165
|
+
type: hideNotification ? 'enterprise' : 'standard'
|
|
166
|
+
}), /*#__PURE__*/_jsx(AppHeaderMobile, {
|
|
167
|
+
action: combinedAction,
|
|
168
|
+
items: getAppHeaderItems(props, true, dynamicDataLoading ?? false),
|
|
169
|
+
...(props.type === 'anon' || hideNotification ? {} : {
|
|
170
|
+
notifications: props.notifications
|
|
171
|
+
}),
|
|
172
|
+
search: props.search,
|
|
173
|
+
redirectParam: props.type === 'anon' ? props.redirectParam : undefined,
|
|
174
|
+
isEnterprise: props.type === 'enterprise',
|
|
175
|
+
isAnon: props.type === 'anon',
|
|
176
|
+
isSimple: props.type === 'simple',
|
|
177
|
+
hideRightMenuButton: props.type === 'simple' || props.type === 'loading',
|
|
178
|
+
navigationMenuFormattedLabel: props?.localizedLabels?.navigationMenuFormattedLabel
|
|
179
|
+
}), props.children]
|
|
180
|
+
})
|
|
178
181
|
})
|
|
179
182
|
})
|
|
180
183
|
})
|
|
@@ -32,6 +32,7 @@ interface BaseHeader extends WithChildrenProp, AppHeaderAction {
|
|
|
32
32
|
localizedLabels?: localizedLabels;
|
|
33
33
|
search: AppHeaderSearch;
|
|
34
34
|
isInRevampedBlpExperimentVariant?: boolean;
|
|
35
|
+
displayHighlightLiveLearning?: boolean;
|
|
35
36
|
dynamicData?: GlobalHeaderDynamicData | null;
|
|
36
37
|
dynamicDataLoading?: boolean;
|
|
37
38
|
}
|
|
@@ -23,7 +23,6 @@ export const CurrentTab = {
|
|
|
23
23
|
render: args => /*#__PURE__*/_jsx(AppHeaderLink, {
|
|
24
24
|
...args
|
|
25
25
|
}),
|
|
26
|
-
name: 'Current Tab',
|
|
27
26
|
args: {
|
|
28
27
|
item: {
|
|
29
28
|
id: 'link-current-tab',
|
|
@@ -38,7 +37,6 @@ export const NewTab = {
|
|
|
38
37
|
render: args => /*#__PURE__*/_jsx(AppHeaderLink, {
|
|
39
38
|
...args
|
|
40
39
|
}),
|
|
41
|
-
name: 'New Tab',
|
|
42
40
|
args: {
|
|
43
41
|
item: {
|
|
44
42
|
id: 'link-new-tab',
|
|
@@ -18,7 +18,6 @@ export const Navy = {
|
|
|
18
18
|
render: args => /*#__PURE__*/_jsx(Banner, {
|
|
19
19
|
...args
|
|
20
20
|
}),
|
|
21
|
-
name: 'Navy',
|
|
22
21
|
args: {
|
|
23
22
|
children: 'Navy',
|
|
24
23
|
variant: 'navy'
|
|
@@ -28,7 +27,6 @@ export const Yellow = {
|
|
|
28
27
|
render: args => /*#__PURE__*/_jsx(Banner, {
|
|
29
28
|
...args
|
|
30
29
|
}),
|
|
31
|
-
name: 'Yellow',
|
|
32
30
|
args: {
|
|
33
31
|
children: 'Yellow',
|
|
34
32
|
variant: 'yellow'
|
|
@@ -38,7 +36,6 @@ export const Subtle = {
|
|
|
38
36
|
render: args => /*#__PURE__*/_jsx(Banner, {
|
|
39
37
|
...args
|
|
40
38
|
}),
|
|
41
|
-
name: 'Subtle',
|
|
42
39
|
args: {
|
|
43
40
|
children: 'Subtle',
|
|
44
41
|
variant: 'subtle'
|
|
@@ -43,7 +43,6 @@ export const CurriculumCardEnrolled = {
|
|
|
43
43
|
render: args => /*#__PURE__*/_jsx(CurriculumCard, {
|
|
44
44
|
...args
|
|
45
45
|
}),
|
|
46
|
-
name: 'Curriculum Card Enrolled',
|
|
47
46
|
args: {
|
|
48
47
|
progressState: 'inProgress'
|
|
49
48
|
}
|
|
@@ -52,7 +51,6 @@ export const CurriculumCardInProgress = {
|
|
|
52
51
|
render: args => /*#__PURE__*/_jsx(CurriculumCard, {
|
|
53
52
|
...args
|
|
54
53
|
}),
|
|
55
|
-
name: 'Curriculum Card In Progress',
|
|
56
54
|
args: {
|
|
57
55
|
progressState: 'inProgress',
|
|
58
56
|
footerTextVariant: 'inProgress'
|
|
@@ -62,7 +60,6 @@ export const CurriculumCardCompleted = {
|
|
|
62
60
|
render: args => /*#__PURE__*/_jsx(CurriculumCard, {
|
|
63
61
|
...args
|
|
64
62
|
}),
|
|
65
|
-
name: 'Curriculum Card Completed',
|
|
66
63
|
args: {
|
|
67
64
|
progressState: 'completed'
|
|
68
65
|
}
|
|
@@ -71,7 +68,6 @@ export const CurriculumCardBeta = {
|
|
|
71
68
|
render: args => /*#__PURE__*/_jsx(CurriculumCard, {
|
|
72
69
|
...args
|
|
73
70
|
}),
|
|
74
|
-
name: 'Curriculum Card Beta',
|
|
75
71
|
args: {
|
|
76
72
|
beta: true
|
|
77
73
|
}
|
|
@@ -80,7 +76,6 @@ export const CurriculumCardAlternativeSubtitle = {
|
|
|
80
76
|
render: args => /*#__PURE__*/_jsx(CurriculumCard, {
|
|
81
77
|
...args
|
|
82
78
|
}),
|
|
83
|
-
name: 'Curriculum Card Alternative Subtitle',
|
|
84
79
|
args: {
|
|
85
80
|
showAltSubtitle: true,
|
|
86
81
|
scope: {
|
|
@@ -129,7 +124,6 @@ export const CareerPathVariant = {
|
|
|
129
124
|
})
|
|
130
125
|
})]
|
|
131
126
|
}),
|
|
132
|
-
name: 'Career Path Variant',
|
|
133
127
|
args: {
|
|
134
128
|
text: 'Career Path',
|
|
135
129
|
title: 'Front-End Engineer',
|
|
@@ -156,7 +150,6 @@ export const HorizontalCurriculumCard = {
|
|
|
156
150
|
})
|
|
157
151
|
})
|
|
158
152
|
}),
|
|
159
|
-
name: 'Horizontal Curriculum Card',
|
|
160
153
|
args: {
|
|
161
154
|
text: 'Career Path',
|
|
162
155
|
title: 'Front-End Engineer',
|
|
@@ -20,7 +20,6 @@ export const BackgroundRight = {
|
|
|
20
20
|
render: args => /*#__PURE__*/_jsx(HubCard, {
|
|
21
21
|
...args
|
|
22
22
|
}),
|
|
23
|
-
name: 'Background Right',
|
|
24
23
|
args: {
|
|
25
24
|
backgroundImage: 'https://static-assets.codecademy.com/assets/components/cards/explore-category-card/subject/data-science.svg',
|
|
26
25
|
backgroundPosition: 'right'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { action } from '
|
|
1
|
+
import { action } from 'storybook/actions';
|
|
2
2
|
import { NotificationList } from '../../index';
|
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
4
|
const notifications = [{
|
|
@@ -93,7 +93,6 @@ export const Empty = {
|
|
|
93
93
|
render: args => /*#__PURE__*/_jsx(NotificationList, {
|
|
94
94
|
...args
|
|
95
95
|
}),
|
|
96
|
-
name: 'Empty',
|
|
97
96
|
args: {
|
|
98
97
|
notifications: []
|
|
99
98
|
}
|
|
@@ -28,8 +28,7 @@ export const Default = {
|
|
|
28
28
|
export const LightMode = {
|
|
29
29
|
render: args => /*#__PURE__*/_jsx(Testimonial, {
|
|
30
30
|
...args
|
|
31
|
-
})
|
|
32
|
-
name: 'Light Mode'
|
|
31
|
+
})
|
|
33
32
|
};
|
|
34
33
|
export const DarkMode = {
|
|
35
34
|
render: args => /*#__PURE__*/_jsx(Background, {
|
|
@@ -43,21 +42,18 @@ export const DarkMode = {
|
|
|
43
42
|
...args
|
|
44
43
|
})
|
|
45
44
|
})
|
|
46
|
-
})
|
|
47
|
-
name: 'Dark Mode'
|
|
45
|
+
})
|
|
48
46
|
};
|
|
49
47
|
export const SmallLight = {
|
|
50
48
|
render: args => /*#__PURE__*/_jsx(Testimonial, {
|
|
51
49
|
orientation: "vertical",
|
|
52
50
|
...args
|
|
53
|
-
})
|
|
54
|
-
name: 'Small Light'
|
|
51
|
+
})
|
|
55
52
|
};
|
|
56
53
|
export const MediumDark = {
|
|
57
54
|
render: args => /*#__PURE__*/_jsx(Testimonial, {
|
|
58
55
|
...args,
|
|
59
56
|
orientation: "horizontal",
|
|
60
57
|
hidePhoto: true
|
|
61
|
-
})
|
|
62
|
-
name: 'Medium Dark'
|
|
58
|
+
})
|
|
63
59
|
};
|
|
@@ -55,8 +55,7 @@ export const WithSelectedItem = {
|
|
|
55
55
|
render: args => /*#__PURE__*/_jsx(LayoutMenu, {
|
|
56
56
|
...args,
|
|
57
57
|
selectedItem: "python"
|
|
58
|
-
})
|
|
59
|
-
name: 'With Selected Item'
|
|
58
|
+
})
|
|
60
59
|
};
|
|
61
60
|
export const WithAdditionalLinks = {
|
|
62
61
|
render: args => /*#__PURE__*/_jsxs(LayoutMenu, {
|
|
@@ -74,8 +73,7 @@ export const WithAdditionalLinks = {
|
|
|
74
73
|
children: "Where do I begin?"
|
|
75
74
|
})
|
|
76
75
|
})]
|
|
77
|
-
})
|
|
78
|
-
name: 'With Additional Links'
|
|
76
|
+
})
|
|
79
77
|
};
|
|
80
78
|
export const WithAdditionalLinksOnTopAndBottom = {
|
|
81
79
|
render: args => /*#__PURE__*/_jsx(LayoutMenu, {
|
|
@@ -237,6 +235,5 @@ export const WithSetMenuHeight = {
|
|
|
237
235
|
children: "Where do I begin?"
|
|
238
236
|
})
|
|
239
237
|
})]
|
|
240
|
-
})
|
|
241
|
-
name: 'With Set Menu Height'
|
|
238
|
+
})
|
|
242
239
|
};
|
|
@@ -62,8 +62,7 @@ export const WithAdditionalLinks = {
|
|
|
62
62
|
children: "Where do I begin?"
|
|
63
63
|
})
|
|
64
64
|
})
|
|
65
|
-
})
|
|
66
|
-
name: 'With Additional Links'
|
|
65
|
+
})
|
|
67
66
|
};
|
|
68
67
|
export const WithAdditionalLinksOnTopAndBottom = {
|
|
69
68
|
render: args => /*#__PURE__*/_jsx(LayoutMenuVariant.LayoutMenu, {
|
|
@@ -219,6 +218,5 @@ export const WithSetMenuHeight = {
|
|
|
219
218
|
children: "Where do I begin?"
|
|
220
219
|
})
|
|
221
220
|
})
|
|
222
|
-
})
|
|
223
|
-
name: 'With Set Menu Height'
|
|
221
|
+
})
|
|
224
222
|
};
|
|
@@ -48,14 +48,12 @@ export default meta;
|
|
|
48
48
|
export const FeaturedInfo = {
|
|
49
49
|
render: args => /*#__PURE__*/_jsx(PageFeatures, {
|
|
50
50
|
...args
|
|
51
|
-
})
|
|
52
|
-
name: 'Featured Info'
|
|
51
|
+
})
|
|
53
52
|
};
|
|
54
53
|
export const FeaturedImages = {
|
|
55
54
|
render: args => /*#__PURE__*/_jsx(PageFeatures, {
|
|
56
55
|
...args
|
|
57
56
|
}),
|
|
58
|
-
name: 'Featured Images',
|
|
59
57
|
args: {
|
|
60
58
|
featuresMedia: 'image'
|
|
61
59
|
}
|
|
@@ -64,7 +62,6 @@ export const FeaturedIcons = {
|
|
|
64
62
|
render: args => /*#__PURE__*/_jsx(PageFeatures, {
|
|
65
63
|
...args
|
|
66
64
|
}),
|
|
67
|
-
name: 'Featured Icons',
|
|
68
65
|
args: {
|
|
69
66
|
featuresMedia: 'icon'
|
|
70
67
|
}
|
|
@@ -73,7 +70,6 @@ export const FeaturedStats = {
|
|
|
73
70
|
render: args => /*#__PURE__*/_jsx(PageFeatures, {
|
|
74
71
|
...args
|
|
75
72
|
}),
|
|
76
|
-
name: 'Featured Stats',
|
|
77
73
|
args: {
|
|
78
74
|
featuresMedia: 'stat',
|
|
79
75
|
features: [{
|
|
@@ -95,7 +91,6 @@ export const FeaturesGrid = {
|
|
|
95
91
|
render: args => /*#__PURE__*/_jsx(PageFeatures, {
|
|
96
92
|
...args
|
|
97
93
|
}),
|
|
98
|
-
name: 'Features Grid',
|
|
99
94
|
args: {
|
|
100
95
|
maxCols: 3,
|
|
101
96
|
featuresMedia: 'icon'
|
|
@@ -105,7 +100,6 @@ export const WithoutDescription = {
|
|
|
105
100
|
render: args => /*#__PURE__*/_jsx(PageFeatures, {
|
|
106
101
|
...args
|
|
107
102
|
}),
|
|
108
|
-
name: 'Without Description',
|
|
109
103
|
args: {
|
|
110
104
|
featuresMedia: 'icon',
|
|
111
105
|
desc: undefined,
|
|
@@ -129,7 +123,6 @@ export const RegularButton = {
|
|
|
129
123
|
buttonType: 'fill'
|
|
130
124
|
}
|
|
131
125
|
}),
|
|
132
|
-
name: 'Regular Button',
|
|
133
126
|
args: {
|
|
134
127
|
featuresMedia: 'image'
|
|
135
128
|
}
|
|
@@ -142,7 +135,6 @@ export const DarkMode = {
|
|
|
142
135
|
...args
|
|
143
136
|
})
|
|
144
137
|
}),
|
|
145
|
-
name: 'Dark Mode',
|
|
146
138
|
args: {
|
|
147
139
|
featuresMedia: 'icon'
|
|
148
140
|
}
|
|
@@ -46,15 +46,13 @@ export const Video = {
|
|
|
46
46
|
autoplay: true
|
|
47
47
|
},
|
|
48
48
|
title: "What's it like to be a Software Engineer"
|
|
49
|
-
})
|
|
50
|
-
name: 'Video'
|
|
49
|
+
})
|
|
51
50
|
};
|
|
52
51
|
export const ShortText = {
|
|
53
52
|
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
54
53
|
...args,
|
|
55
54
|
textLength: "short"
|
|
56
|
-
})
|
|
57
|
-
name: 'Short Text'
|
|
55
|
+
})
|
|
58
56
|
};
|
|
59
57
|
export const RegularButton = {
|
|
60
58
|
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
@@ -63,22 +61,19 @@ export const RegularButton = {
|
|
|
63
61
|
...ctaArgs,
|
|
64
62
|
buttonType: 'fill'
|
|
65
63
|
}
|
|
66
|
-
})
|
|
67
|
-
name: 'Regular Button'
|
|
64
|
+
})
|
|
68
65
|
};
|
|
69
66
|
export const WithoutButton = {
|
|
70
67
|
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
71
68
|
...args,
|
|
72
69
|
cta: undefined
|
|
73
|
-
})
|
|
74
|
-
name: 'Without Button'
|
|
70
|
+
})
|
|
75
71
|
};
|
|
76
72
|
export const WithoutDescription = {
|
|
77
73
|
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
78
74
|
...args,
|
|
79
75
|
desc: undefined
|
|
80
|
-
})
|
|
81
|
-
name: 'Without Description'
|
|
76
|
+
})
|
|
82
77
|
};
|
|
83
78
|
export const Eyebrow = {
|
|
84
79
|
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
@@ -87,8 +82,7 @@ export const Eyebrow = {
|
|
|
87
82
|
text: 'Hello there'
|
|
88
83
|
},
|
|
89
84
|
textLength: "short"
|
|
90
|
-
})
|
|
91
|
-
name: 'Eyebrow'
|
|
85
|
+
})
|
|
92
86
|
};
|
|
93
87
|
export const AccentEyebrow = {
|
|
94
88
|
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
@@ -98,23 +92,20 @@ export const AccentEyebrow = {
|
|
|
98
92
|
accent: true
|
|
99
93
|
},
|
|
100
94
|
textLength: "short"
|
|
101
|
-
})
|
|
102
|
-
name: 'Accent Eyebrow'
|
|
95
|
+
})
|
|
103
96
|
};
|
|
104
97
|
export const ShowImageOnMobile = {
|
|
105
98
|
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
106
99
|
...args,
|
|
107
100
|
showImageOnMobile: true,
|
|
108
101
|
textLength: "short"
|
|
109
|
-
})
|
|
110
|
-
name: 'Show Image On Mobile'
|
|
102
|
+
})
|
|
111
103
|
};
|
|
112
104
|
export const WithoutMedia = {
|
|
113
105
|
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
114
106
|
...args,
|
|
115
107
|
media: undefined
|
|
116
|
-
})
|
|
117
|
-
name: 'Without Media'
|
|
108
|
+
})
|
|
118
109
|
};
|
|
119
110
|
export const DarkMode = {
|
|
120
111
|
render: args => /*#__PURE__*/_jsx(Background, {
|
|
@@ -126,8 +117,7 @@ export const DarkMode = {
|
|
|
126
117
|
text: 'Hello there'
|
|
127
118
|
}
|
|
128
119
|
})
|
|
129
|
-
})
|
|
130
|
-
name: 'Dark Mode'
|
|
120
|
+
})
|
|
131
121
|
};
|
|
132
122
|
export const PausableImage = {
|
|
133
123
|
render: args => /*#__PURE__*/_jsx(PageHero, {
|