@codecademy/brand 1.23.0-alpha.56f053dc94.0 → 1.23.0-alpha.679567b71c.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/LandingPage/PageFeatures.js +45 -47
- package/package.json +2 -2
|
@@ -63,52 +63,50 @@ export const PageFeatures = ({
|
|
|
63
63
|
featuresMedia,
|
|
64
64
|
testId,
|
|
65
65
|
onAnchorClick
|
|
66
|
-
}) => {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
children: [/*#__PURE__*/
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
66
|
+
}) => /*#__PURE__*/_jsxs("div", {
|
|
67
|
+
"data-testid": testId,
|
|
68
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
69
|
+
children: [title && /*#__PURE__*/_jsx(Title, {
|
|
70
|
+
isPageHeading: false,
|
|
71
|
+
children: title
|
|
72
|
+
}), desc && /*#__PURE__*/_jsx(Description, {
|
|
73
|
+
text: desc,
|
|
74
|
+
onAnchorClick: onAnchorClick
|
|
75
|
+
}), cta && /*#__PURE__*/_jsx(Box, {
|
|
76
|
+
mt: 32,
|
|
77
|
+
children: /*#__PURE__*/_jsx(CTA, {
|
|
78
|
+
href: cta.href,
|
|
79
|
+
onClick: cta.onClick,
|
|
80
|
+
buttonType: cta.buttonType,
|
|
81
|
+
children: cta.text
|
|
82
|
+
})
|
|
83
|
+
})]
|
|
84
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
85
|
+
mt: 16,
|
|
86
|
+
children: renderEach(maxCols, features, ({
|
|
87
|
+
testId,
|
|
88
|
+
imgSrc,
|
|
89
|
+
imgAlt,
|
|
90
|
+
statText,
|
|
91
|
+
title: featTitle,
|
|
92
|
+
desc
|
|
93
|
+
}) => /*#__PURE__*/_jsxs(Feature, {
|
|
94
|
+
testId: testId,
|
|
95
|
+
children: [featuresMedia === 'image' && imgSrc && /*#__PURE__*/_jsx(FeaturedImage, {
|
|
96
|
+
src: imgSrc,
|
|
97
|
+
alt: imgAlt ?? ''
|
|
98
|
+
}), featuresMedia === 'icon' && imgSrc && /*#__PURE__*/_jsx(FeaturedIcon, {
|
|
99
|
+
src: imgSrc,
|
|
100
|
+
alt: imgAlt ?? ''
|
|
101
|
+
}), featuresMedia === 'stat' && /*#__PURE__*/_jsx(FeaturedStat, {
|
|
102
|
+
children: statText
|
|
103
|
+
}), featTitle && /*#__PURE__*/_jsx(FeaturedTitle, {
|
|
104
|
+
as: desc ? title ? 'h3' : 'h2' : 'div',
|
|
105
|
+
children: featTitle
|
|
106
|
+
}), desc && /*#__PURE__*/_jsx(FeaturedDescription, {
|
|
107
|
+
desc: desc,
|
|
75
108
|
onAnchorClick: onAnchorClick
|
|
76
|
-
}), cta && /*#__PURE__*/_jsx(Box, {
|
|
77
|
-
mt: 32,
|
|
78
|
-
children: /*#__PURE__*/_jsx(CTA, {
|
|
79
|
-
href: cta.href,
|
|
80
|
-
onClick: cta.onClick,
|
|
81
|
-
buttonType: cta.buttonType,
|
|
82
|
-
children: cta.text
|
|
83
|
-
})
|
|
84
109
|
})]
|
|
85
|
-
})
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
testId,
|
|
89
|
-
imgSrc,
|
|
90
|
-
imgAlt,
|
|
91
|
-
statText,
|
|
92
|
-
title: featTitle,
|
|
93
|
-
desc
|
|
94
|
-
}) => /*#__PURE__*/_jsxs(Feature, {
|
|
95
|
-
testId: testId,
|
|
96
|
-
children: [featuresMedia === 'image' && imgSrc && /*#__PURE__*/_jsx(FeaturedImage, {
|
|
97
|
-
src: imgSrc,
|
|
98
|
-
alt: imgAlt ?? ''
|
|
99
|
-
}), featuresMedia === 'icon' && imgSrc && /*#__PURE__*/_jsx(FeaturedIcon, {
|
|
100
|
-
src: imgSrc,
|
|
101
|
-
alt: imgAlt ?? ''
|
|
102
|
-
}), featuresMedia === 'stat' && /*#__PURE__*/_jsx(FeaturedStat, {
|
|
103
|
-
children: statText
|
|
104
|
-
}), featTitle && /*#__PURE__*/_jsx(FeaturedTitle, {
|
|
105
|
-
as: desc ? title ? 'h3' : 'h2' : 'div',
|
|
106
|
-
children: featTitle
|
|
107
|
-
}), desc && /*#__PURE__*/_jsx(FeaturedDescription, {
|
|
108
|
-
desc: desc,
|
|
109
|
-
onAnchorClick: onAnchorClick
|
|
110
|
-
})]
|
|
111
|
-
}))
|
|
112
|
-
})]
|
|
113
|
-
});
|
|
114
|
-
};
|
|
110
|
+
}))
|
|
111
|
+
})]
|
|
112
|
+
});
|
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.23.0-alpha.
|
|
4
|
+
"version": "1.23.0-alpha.679567b71c.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@emotion/is-prop-valid": "^1.2.1",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@codecademy/gamut-illustrations": "*",
|
|
32
32
|
"@codecademy/gamut-patterns": "*",
|
|
33
33
|
"@codecademy/gamut-styles": "*",
|
|
34
|
-
"@codecademy/tracking": "1.
|
|
34
|
+
"@codecademy/tracking": "1.1.3",
|
|
35
35
|
"@codecademy/variance": "*",
|
|
36
36
|
"@emotion/react": "^11.4.0",
|
|
37
37
|
"@emotion/styled": "^11.3.0",
|