@codecademy/brand 5.1.0-alpha.c478c480b.0 → 5.1.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 +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/MarketingBanner.js +3 -3
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/NavPanels.d.ts +0 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/NavPanels.js +4 -72
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/consts.js +2 -11
- package/dist/AppHeader/AppHeaderElements/AppHeaderLiveCoursesDropdown/NavPanels.d.ts +7 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderLiveCoursesDropdown/NavPanels.js +51 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderLiveCoursesDropdown/consts.d.ts +9 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderLiveCoursesDropdown/consts.js +21 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderLiveCoursesDropdown/index.d.ts +6 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderLiveCoursesDropdown/index.js +117 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/NavPanels.d.ts +1 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/NavPanels.js +10 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/consts.d.ts +1 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/consts.js +44 -2
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileBackButton.d.ts +2 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileNavMenu.d.ts +3 -3
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/NavTabs.d.ts +3 -3
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/index.d.ts +4 -4
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/index.js +1 -1
- package/dist/AppHeader/shared/types.d.ts +8 -1
- package/dist/AppHeader/shared/utils.js +6 -0
- package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.js +2 -1
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.d.ts +2 -1
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.js +12 -4
- package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.d.ts +3 -3
- package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.js +2 -2
- package/dist/GlobalHeader/GlobalHeaderItems.d.ts +2 -1
- package/dist/GlobalHeader/GlobalHeaderItems.js +9 -1
- package/dist/GlobalHeader/GlobalHeaderVariants.js +9 -9
- package/dist/GlobalHeader/context.d.ts +4 -0
- package/dist/GlobalHeader/context.js +25 -5
- package/dist/Logos/ProLabel/ProLabelCutout/index.js +3 -3
- package/dist/Logos/ProLabel/ProLabelCutoutTransparent/index.js +2 -2
- package/dist/Logos/ProLabel/index.d.ts +3 -3
- package/dist/Logos/ProLabel/index.js +4 -5
- package/dist/ProLogoAlt/index.d.ts +3 -3
- package/dist/ProLogoAlt/index.js +4 -5
- package/dist/lib/catalogList/index.d.ts +1 -2
- package/dist/lib/catalogList/index.js +1 -25
- package/package.json +1 -1
|
@@ -18,9 +18,13 @@ export const DropdownPositions = {
|
|
|
18
18
|
narrow: '-9rem',
|
|
19
19
|
wide: '-14.5rem'
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
liveCoursesDropdown: {
|
|
22
22
|
narrow: '-14.5rem',
|
|
23
23
|
wide: '-20rem'
|
|
24
|
+
},
|
|
25
|
+
resourceDropdown: {
|
|
26
|
+
narrow: '-20rem',
|
|
27
|
+
wide: '-28rem'
|
|
24
28
|
}
|
|
25
29
|
},
|
|
26
30
|
anon: {
|
|
@@ -28,9 +32,13 @@ export const DropdownPositions = {
|
|
|
28
32
|
narrow: '-4rem',
|
|
29
33
|
wide: '-9.5rem'
|
|
30
34
|
},
|
|
31
|
-
|
|
35
|
+
liveCoursesDropdown: {
|
|
32
36
|
narrow: '-9.5rem',
|
|
33
37
|
wide: '-15rem'
|
|
38
|
+
},
|
|
39
|
+
resourceDropdown: {
|
|
40
|
+
narrow: '-15rem',
|
|
41
|
+
wide: '-20.5rem'
|
|
34
42
|
}
|
|
35
43
|
},
|
|
36
44
|
pro: {
|
|
@@ -38,9 +46,13 @@ export const DropdownPositions = {
|
|
|
38
46
|
narrow: '-14.5rem',
|
|
39
47
|
wide: '-14.5rem'
|
|
40
48
|
},
|
|
41
|
-
|
|
49
|
+
liveCoursesDropdown: {
|
|
42
50
|
narrow: '-20rem',
|
|
43
51
|
wide: '-20rem'
|
|
52
|
+
},
|
|
53
|
+
resourceDropdown: {
|
|
54
|
+
narrow: '-28rem',
|
|
55
|
+
wide: '-28rem'
|
|
44
56
|
}
|
|
45
57
|
},
|
|
46
58
|
teams: {
|
|
@@ -48,9 +60,13 @@ export const DropdownPositions = {
|
|
|
48
60
|
narrow: '-14.5rem',
|
|
49
61
|
wide: '-14.5rem'
|
|
50
62
|
},
|
|
51
|
-
|
|
63
|
+
liveCoursesDropdown: {
|
|
52
64
|
narrow: '-20rem',
|
|
53
65
|
wide: '-20rem'
|
|
66
|
+
},
|
|
67
|
+
resourceDropdown: {
|
|
68
|
+
narrow: '-28rem',
|
|
69
|
+
wide: '-28rem'
|
|
54
70
|
}
|
|
55
71
|
},
|
|
56
72
|
// won't be used, but is here to handle the case where the header type is not one of the above
|
|
@@ -60,9 +76,13 @@ export const DropdownPositions = {
|
|
|
60
76
|
narrow: '-14.5rem',
|
|
61
77
|
wide: '-14.5rem'
|
|
62
78
|
},
|
|
63
|
-
|
|
79
|
+
liveCoursesDropdown: {
|
|
64
80
|
narrow: '-20rem',
|
|
65
81
|
wide: '-20rem'
|
|
82
|
+
},
|
|
83
|
+
resourceDropdown: {
|
|
84
|
+
narrow: '-28rem',
|
|
85
|
+
wide: '-28rem'
|
|
66
86
|
}
|
|
67
87
|
}
|
|
68
88
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { colors } from '@codecademy/gamut-styles';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
4
|
export const ProLabelCutout = ({
|
|
5
5
|
ariaLabel = 'Pro',
|
|
6
|
-
backgroundColor =
|
|
7
|
-
cutoutColor =
|
|
6
|
+
backgroundColor = colors.navy,
|
|
7
|
+
cutoutColor = colors.white,
|
|
8
8
|
width = 30
|
|
9
9
|
}) => /*#__PURE__*/_jsxs("svg", {
|
|
10
10
|
width: width,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { colors } from '@codecademy/gamut-styles';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
4
|
export const ProLabelCutoutTransparent = ({
|
|
5
5
|
ariaLabel = 'Pro',
|
|
6
|
-
backgroundColor =
|
|
6
|
+
backgroundColor = colors.navy,
|
|
7
7
|
width = 30
|
|
8
8
|
}) => /*#__PURE__*/_jsxs("svg", {
|
|
9
9
|
width: width,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { colors } from '@codecademy/gamut-styles';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
type BaseProps = {
|
|
4
4
|
ariaLabel?: string;
|
|
5
|
-
backgroundColor?:
|
|
5
|
+
backgroundColor?: keyof typeof colors;
|
|
6
6
|
width?: number;
|
|
7
7
|
};
|
|
8
8
|
export type ProLabelProps = (BaseProps & {
|
|
9
9
|
variant: 'transparent';
|
|
10
10
|
}) | (BaseProps & {
|
|
11
11
|
variant: 'cutout';
|
|
12
|
-
cutoutColor?:
|
|
12
|
+
cutoutColor?: keyof typeof colors;
|
|
13
13
|
});
|
|
14
14
|
export declare const ProLabel: React.FC<ProLabelProps>;
|
|
15
15
|
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { colors } from '@codecademy/gamut-styles';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { ProLabelCutout } from './ProLabelCutout';
|
|
4
4
|
import { ProLabelCutoutTransparent } from './ProLabelCutoutTransparent';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
const themeColor = color => theme.colors[color];
|
|
7
6
|
export const ProLabel = props => {
|
|
8
7
|
if (props.variant === 'cutout') {
|
|
9
8
|
const {
|
|
@@ -12,8 +11,8 @@ export const ProLabel = props => {
|
|
|
12
11
|
...forwardedProps
|
|
13
12
|
} = props;
|
|
14
13
|
return /*#__PURE__*/_jsx(ProLabelCutout, {
|
|
15
|
-
backgroundColor:
|
|
16
|
-
cutoutColor:
|
|
14
|
+
backgroundColor: colors[backgroundColor],
|
|
15
|
+
cutoutColor: colors[cutoutColor],
|
|
17
16
|
...forwardedProps
|
|
18
17
|
});
|
|
19
18
|
}
|
|
@@ -22,7 +21,7 @@ export const ProLabel = props => {
|
|
|
22
21
|
...forwardedProps
|
|
23
22
|
} = props;
|
|
24
23
|
return /*#__PURE__*/_jsx(ProLabelCutoutTransparent, {
|
|
25
|
-
backgroundColor:
|
|
24
|
+
backgroundColor: colors[backgroundColor],
|
|
26
25
|
...forwardedProps
|
|
27
26
|
});
|
|
28
27
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { colors } from '@codecademy/gamut-styles';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
export type ProLogoAltProps = {
|
|
4
4
|
ariaLabel?: string;
|
|
5
|
-
backgroundColor?:
|
|
6
|
-
textColor?:
|
|
5
|
+
backgroundColor?: keyof typeof colors;
|
|
6
|
+
textColor?: keyof typeof colors;
|
|
7
7
|
width?: number;
|
|
8
8
|
};
|
|
9
9
|
export declare const ProLogoAlt: React.FC<ProLogoAltProps>;
|
package/dist/ProLogoAlt/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { colors } from '@codecademy/gamut-styles';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
-
const themeColor = color => theme.colors[color];
|
|
5
4
|
export const ProLogoAlt = ({
|
|
6
5
|
ariaLabel = 'Codecademy Pro Logo',
|
|
7
6
|
backgroundColor = 'yellow',
|
|
@@ -14,14 +13,14 @@ export const ProLogoAlt = ({
|
|
|
14
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15
14
|
"aria-label": ariaLabel,
|
|
16
15
|
children: /*#__PURE__*/_jsxs("g", {
|
|
17
|
-
fill:
|
|
16
|
+
fill: colors[backgroundColor],
|
|
18
17
|
fillRule: "evenodd",
|
|
19
18
|
children: [/*#__PURE__*/_jsx("path", {
|
|
20
19
|
d: "m0 0h74v40h-74zm78 34h17v6h-17z",
|
|
21
|
-
fill:
|
|
20
|
+
fill: colors[backgroundColor]
|
|
22
21
|
}), /*#__PURE__*/_jsx("path", {
|
|
23
22
|
d: "m13.971 23.67v6.82h-3.971v-20.145h6.82c4.749 0 7.253 2.965 7.253 6.62 0 3.625-2.504 6.705-7.253 6.705zm2.245-9.871h-2.245v6.446h2.245c2.187 0 3.77-1.036 3.77-3.28 0-2.245-1.583-3.166-3.77-3.166zm21.518 16.691-4.46-7.741h-2.821v7.741h-4v-20.145h7.568c4.404 0 6.994 2.62 6.994 6.13 0 1.9-.777 4.317-3.828 5.526l5.151 8.49h-4.604zm-.72-13.986c0-1.784-1.295-2.705-3.51-2.705h-3.051v5.468h3.05c2.216 0 3.511-1.036 3.511-2.763zm16.453-6.504c5.843 0 10.533 4.346 10.533 10.418s-4.69 10.417-10.533 10.417c-5.842 0-10.533-4.345-10.533-10.417s4.691-10.418 10.533-10.418zm0 17.152c3.799 0 6.36-2.878 6.36-6.734 0-3.857-2.561-6.734-6.36-6.734s-6.36 2.877-6.36 6.734c0 3.856 2.561 6.734 6.36 6.734z",
|
|
24
|
-
fill:
|
|
23
|
+
fill: colors[textColor]
|
|
25
24
|
})]
|
|
26
25
|
})
|
|
27
26
|
});
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { AppHeaderLinkItem
|
|
1
|
+
import { AppHeaderLinkItem } from '../../AppHeader/shared';
|
|
2
2
|
export declare const careerPaths: AppHeaderLinkItem[];
|
|
3
|
-
export declare const liveLearningNavPanelItems: AppHeaderResourcesDataItem;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { renderNewBadge } from '../resourcesList';
|
|
2
1
|
export const careerPaths = [{
|
|
3
2
|
id: 'full-stack-engineer-career-path',
|
|
4
3
|
href: '/learn/paths/full-stack-engineer-career-path',
|
|
@@ -35,27 +34,4 @@ export const careerPaths = [{
|
|
|
35
34
|
trackingTarget: 'topnav_catalog_career_data_science',
|
|
36
35
|
text: 'Data Scientist',
|
|
37
36
|
type: 'link'
|
|
38
|
-
}];
|
|
39
|
-
export const liveLearningNavPanelItems = {
|
|
40
|
-
title: 'Live Learning',
|
|
41
|
-
description: 'Build skills faster through live, instructor-led sessions. Get real-time feedback, stay motivated, and deepen your understanding with expert guidance.',
|
|
42
|
-
data: [{
|
|
43
|
-
id: 'bootcamps',
|
|
44
|
-
href: '/bootcamps',
|
|
45
|
-
text: 'Bootcamps',
|
|
46
|
-
description: 'Join live virtual bootcamps that span multiple weeks and help you build real-world, in-demand skills. Led by experts, each bootcamp includes instructor support, community, professional mentorship—and comes with Codecademy Pro access.',
|
|
47
|
-
trackingTarget: 'topnav_catalog_live_learning_bootcamps',
|
|
48
|
-
type: 'link',
|
|
49
|
-
newTab: true,
|
|
50
|
-
badge: renderNewBadge()
|
|
51
|
-
}, {
|
|
52
|
-
id: 'coaching',
|
|
53
|
-
href: '/coaching',
|
|
54
|
-
text: 'Coaching',
|
|
55
|
-
description: "Get personalized mentorship from expert coaches to accelerate your career journey. Whether you're preparing for technical interviews, exploring career options, or seeking guidance, 1:1 coaching gives you tailored support to reach your goals.",
|
|
56
|
-
trackingTarget: 'topnav_catalog_live_learning_coaching',
|
|
57
|
-
type: 'link',
|
|
58
|
-
newTab: true,
|
|
59
|
-
badge: renderNewBadge()
|
|
60
|
-
}]
|
|
61
|
-
};
|
|
37
|
+
}];
|
package/package.json
CHANGED