@codecademy/brand 1.37.0 → 1.38.0-alpha.4e1305e08a.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.
|
File without changes
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import _styled from "@emotion/styled/base";
|
|
2
2
|
import { FlexBox, Text } from '@codecademy/gamut';
|
|
3
|
+
import { theme } from '@codecademy/gamut-styles';
|
|
3
4
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
5
|
const StyledIconContainer = /*#__PURE__*/_styled(FlexBox, {
|
|
5
6
|
target: "e4ma61r0",
|
|
6
7
|
label: "StyledIconContainer"
|
|
7
8
|
})("color:", ({
|
|
8
9
|
iconColor
|
|
9
|
-
}) => iconColor, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
10
|
+
}) => iconColor, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9GZWF0dXJlTGlzdC9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZ0JrRSIsImZpbGUiOiIuLi8uLi9zcmMvRmVhdHVyZUxpc3QvaW5kZXgudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRmxleEJveCwgVGV4dCB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0JztcbmltcG9ydCB7IEdhbXV0SWNvblByb3BzIH0gZnJvbSAnQGNvZGVjYWRlbXkvZ2FtdXQtaWNvbnMnO1xuaW1wb3J0IHsgdGhlbWUgfSBmcm9tICdAY29kZWNhZGVteS9nYW11dC1zdHlsZXMnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5leHBvcnQgdHlwZSBGZWF0dXJlTGlzdEl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hdHVyZS5pY29uQ29sb3IgfHwgdGhlbWUuY29sb3JzLnRleHR9XG4gICAgICAgICAgICA+XG4gICAgICAgICAgICAgIDxmZWF0dXJlLmljb24gc2l6ZT17ZmVhdHVyZS5kZXNjcmlwdGlvbiA/IDI0IDogMjB9IC8+XG4gICAgICAgICAgICA8L1N0eWxlZEljb25Db250YWluZXI+XG4gICAgICAgICAgKX1cbiAgICAgICAgICA8RmxleEJveCBmbGV4RGlyZWN0aW9uPVwiY29sdW1uXCIgZ2FwPXtmZWF0dXJlLmRlc2NyaXB0aW9uID8gOCA6IDB9PlxuICAgICAgICAgICAgPFRleHRcbiAgICAgICAgICAgICAgZm9udFNpemU9ezE2fVxuICAgICAgICAgICAgICBmb250V2VpZ2h0PXtmZWF0dXJlLmRlc2NyaXB0aW9uID8gJ2JvbGQnIDogJ25vcm1hbCd9XG4gICAgICAgICAgICA+XG4gICAgICAgICAgICAgIHtmZWF0dXJlLnRpdGxlfVxuICAgICAgICAgICAgPC9UZXh0PlxuICAgICAgICAgICAge2ZlYXR1cmUuZGVzY3JpcHRpb24gJiYgKFxuICAgICAgICAgICAgICA8VGV4dCBmb250U2l6ZT17MTR9PntmZWF0dXJlLmRlc2NyaXB0aW9ufTwvVGV4dD5cbiAgICAgICAgICAgICl9XG4gICAgICAgICAgPC9GbGV4Qm94PlxuICAgICAgICA8L0ZsZXhCb3g+XG4gICAgICApKX1cbiAgICA8L0ZsZXhCb3g+XG4gICk7XG59O1xuIl19 */"));
|
|
10
11
|
export const FeatureList = ({
|
|
11
12
|
featureList
|
|
12
13
|
}) => {
|
|
@@ -18,9 +19,9 @@ export const FeatureList = ({
|
|
|
18
19
|
flexDirection: "row",
|
|
19
20
|
gap: 12,
|
|
20
21
|
alignItems: feature.description ? 'flex-start' : 'center',
|
|
21
|
-
children: [/*#__PURE__*/_jsx(StyledIconContainer, {
|
|
22
|
-
iconColor: feature.iconColor ||
|
|
23
|
-
children:
|
|
22
|
+
children: [feature.icon && /*#__PURE__*/_jsx(StyledIconContainer, {
|
|
23
|
+
iconColor: feature.iconColor || theme.colors.text,
|
|
24
|
+
children: /*#__PURE__*/_jsx(feature.icon, {
|
|
24
25
|
size: feature.description ? 24 : 20
|
|
25
26
|
})
|
|
26
27
|
}), /*#__PURE__*/_jsxs(FlexBox, {
|
|
@@ -15,6 +15,7 @@ const rowRenderEach = (items, itemRenderer) => {
|
|
|
15
15
|
},
|
|
16
16
|
as: "ul",
|
|
17
17
|
pl: 0,
|
|
18
|
+
mb: 0,
|
|
18
19
|
gap: {
|
|
19
20
|
sm: 32
|
|
20
21
|
},
|
|
@@ -35,6 +36,7 @@ const gridRenderEach = (maxCols, items, itemRenderer) => {
|
|
|
35
36
|
gap: 32,
|
|
36
37
|
as: "ul",
|
|
37
38
|
pl: 0,
|
|
39
|
+
mb: 0,
|
|
38
40
|
children: items.map(item => /*#__PURE__*/_jsx(Column, {
|
|
39
41
|
size: size,
|
|
40
42
|
as: "li",
|
|
@@ -67,6 +69,7 @@ export const PageFeaturesEnhanced = ({
|
|
|
67
69
|
children: [title && /*#__PURE__*/_jsx(FlexBox, {
|
|
68
70
|
justifyContent: "center",
|
|
69
71
|
textAlign: "center",
|
|
72
|
+
mb: 8,
|
|
70
73
|
children: eyebrow ? /*#__PURE__*/_jsx(TitleWithEyebrow, {
|
|
71
74
|
title: title,
|
|
72
75
|
eyebrow: eyebrow,
|
|
@@ -43,7 +43,7 @@ export const liveLearningHubItems = {
|
|
|
43
43
|
id: 'bootcamps',
|
|
44
44
|
href: '/live-learning',
|
|
45
45
|
text: 'Bootcamps',
|
|
46
|
-
description: 'Learn live from industry experts',
|
|
46
|
+
description: 'Learn live from industry experts.',
|
|
47
47
|
trackingTarget: 'topnav_catalog_live_learning_bootcamps',
|
|
48
48
|
type: 'link',
|
|
49
49
|
newTab: true,
|
|
@@ -51,8 +51,8 @@ export const liveLearningHubItems = {
|
|
|
51
51
|
}, {
|
|
52
52
|
id: 'gk',
|
|
53
53
|
href: '/live-learning#GKLiveLearning',
|
|
54
|
-
text: '
|
|
55
|
-
description: 'Instructor
|
|
54
|
+
text: 'Codecademy x GK',
|
|
55
|
+
description: 'Instructor-led courses, offered via our partner organization.',
|
|
56
56
|
trackingTarget: 'topnav_catalog_live_learning_gk_codecademy',
|
|
57
57
|
type: 'link',
|
|
58
58
|
newTab: true,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/brand",
|
|
3
3
|
"description": "Brand component library for Codecademy",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.38.0-alpha.4e1305e08a.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@emotion/is-prop-valid": "^1.2.1",
|