@codecademy/brand 3.5.0 → 3.6.0-alpha.8929aee448.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.
|
@@ -119,64 +119,132 @@ export const SkillPathsPanel = ({
|
|
|
119
119
|
})
|
|
120
120
|
});
|
|
121
121
|
};
|
|
122
|
-
const
|
|
122
|
+
const getCertificationProviderLogoUrl = fileName => `https://static-assets.codecademy.com/assets/certification-provider-logos/v1/${fileName}`;
|
|
123
|
+
const providers = [{
|
|
124
|
+
name: 'Microsoft',
|
|
125
|
+
logoUrl: getCertificationProviderLogoUrl('microsoft-full.svg'),
|
|
126
|
+
hubType: 'subhub'
|
|
127
|
+
}, {
|
|
128
|
+
name: 'CompTIA',
|
|
129
|
+
logoUrl: getCertificationProviderLogoUrl('comptia.svg'),
|
|
130
|
+
hubType: 'subhub'
|
|
131
|
+
}, {
|
|
132
|
+
name: 'ISC2',
|
|
133
|
+
logoUrl: getCertificationProviderLogoUrl('isc2.svg'),
|
|
134
|
+
hubType: 'subhub'
|
|
135
|
+
}, {
|
|
136
|
+
name: 'AWS',
|
|
137
|
+
logoUrl: getCertificationProviderLogoUrl('aws.svg'),
|
|
138
|
+
hubType: 'subhub'
|
|
139
|
+
}, {
|
|
140
|
+
name: 'Google',
|
|
141
|
+
logoUrl: getCertificationProviderLogoUrl('google.svg'),
|
|
142
|
+
hubType: 'certification-prep'
|
|
143
|
+
}, {
|
|
144
|
+
name: 'CISCO',
|
|
145
|
+
logoUrl: getCertificationProviderLogoUrl('cisco.svg'),
|
|
146
|
+
hubType: 'certification-prep'
|
|
147
|
+
}, {
|
|
148
|
+
name: 'IIBA',
|
|
149
|
+
logoUrl: getCertificationProviderLogoUrl('iiba.svg'),
|
|
150
|
+
hubType: 'certification-prep'
|
|
151
|
+
}, {
|
|
152
|
+
name: 'ISTQB',
|
|
153
|
+
logoUrl: getCertificationProviderLogoUrl('istqb.svg'),
|
|
154
|
+
hubType: 'certification-prep'
|
|
155
|
+
}, {
|
|
156
|
+
name: 'ISACA',
|
|
157
|
+
logoUrl: getCertificationProviderLogoUrl('isaca.svg'),
|
|
158
|
+
hubType: 'certification-prep'
|
|
159
|
+
}, {
|
|
160
|
+
name: 'Kubernetes',
|
|
161
|
+
logoUrl: getCertificationProviderLogoUrl('kubernetes.svg'),
|
|
162
|
+
hubType: 'certification-prep'
|
|
163
|
+
}, {
|
|
164
|
+
name: 'Oracle',
|
|
165
|
+
logoUrl: getCertificationProviderLogoUrl('oracle.svg'),
|
|
166
|
+
hubType: 'certification-prep'
|
|
167
|
+
}, {
|
|
168
|
+
name: 'Project Management Institute',
|
|
169
|
+
logoUrl: getCertificationProviderLogoUrl('pmi.svg'),
|
|
170
|
+
hubType: 'certification-prep'
|
|
171
|
+
}];
|
|
172
|
+
const Image = Box.withComponent('img', {
|
|
173
|
+
target: "eqfnvo0",
|
|
174
|
+
label: "Image"
|
|
175
|
+
});
|
|
123
176
|
const ProviderChip = ({
|
|
124
|
-
|
|
177
|
+
name,
|
|
125
178
|
href,
|
|
179
|
+
imgSrc,
|
|
126
180
|
tabIndex
|
|
127
181
|
}) => {
|
|
128
182
|
return /*#__PURE__*/_jsx(Anchor, {
|
|
129
183
|
href: href,
|
|
130
184
|
variant: "interface",
|
|
131
185
|
tabIndex: tabIndex,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
186
|
+
width: "100%",
|
|
187
|
+
display: "block",
|
|
188
|
+
children: /*#__PURE__*/_jsx(Card, {
|
|
189
|
+
borderColor: "border-tertiary",
|
|
190
|
+
borderRadius: "lg",
|
|
191
|
+
isInteractive: true,
|
|
192
|
+
width: "100%",
|
|
193
|
+
children: /*#__PURE__*/_jsx(Image, {
|
|
194
|
+
src: imgSrc,
|
|
195
|
+
alt: name,
|
|
196
|
+
display: "block",
|
|
197
|
+
m: "auto"
|
|
140
198
|
})
|
|
141
199
|
})
|
|
142
|
-
},
|
|
200
|
+
}, name);
|
|
143
201
|
};
|
|
144
202
|
export const CertificationPathsPanel = ({
|
|
145
203
|
tabIndex = 0
|
|
146
204
|
}) => {
|
|
147
205
|
return /*#__PURE__*/_jsxs(PanelLayout, {
|
|
148
206
|
heading: "Certification paths",
|
|
149
|
-
description: "
|
|
207
|
+
description: "Prepare for top industry certifications with a guided path. Each one includes expert-reviewed lessons, hands-on projects, and practice tests to help you pass the exam.",
|
|
150
208
|
linkItem: {
|
|
151
209
|
type: 'link',
|
|
152
210
|
href: '/catalog?type=certification-path',
|
|
153
|
-
text: '
|
|
211
|
+
text: 'Explore all certification paths',
|
|
154
212
|
trackingTarget: 'catalog-header-view-all-certification-paths',
|
|
155
213
|
id: 'view-all-certification-paths'
|
|
156
214
|
},
|
|
157
215
|
tabIndex: tabIndex,
|
|
158
|
-
children: [/*#__PURE__*/
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
tabIndex: tabIndex
|
|
164
|
-
}, provider)), /*#__PURE__*/_jsx(ProviderChip, {
|
|
165
|
-
text: "+ More providers",
|
|
166
|
-
href: "/catalog/certification-prep",
|
|
167
|
-
tabIndex: tabIndex
|
|
168
|
-
}, "more-providers")]
|
|
216
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
217
|
+
as: "h3",
|
|
218
|
+
fontSize: 18,
|
|
219
|
+
fontWeight: "bold",
|
|
220
|
+
children: "Providers"
|
|
169
221
|
}), /*#__PURE__*/_jsx(GridBox, {
|
|
170
222
|
gridTemplateColumns: {
|
|
171
223
|
_: '1fr',
|
|
172
|
-
|
|
224
|
+
xs: 'repeat(2, 1fr)',
|
|
225
|
+
sm: 'repeat(3, 1fr)',
|
|
226
|
+
md: 'repeat(4, 1fr)'
|
|
173
227
|
},
|
|
174
|
-
gap:
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
228
|
+
gap: 24,
|
|
229
|
+
width: "100%",
|
|
230
|
+
as: "ul",
|
|
231
|
+
listStyle: "none",
|
|
232
|
+
p: 0,
|
|
233
|
+
m: 0,
|
|
234
|
+
children: providers.map(({
|
|
235
|
+
name,
|
|
236
|
+
logoUrl,
|
|
237
|
+
hubType
|
|
238
|
+
}) => /*#__PURE__*/_jsx(Box, {
|
|
239
|
+
as: "li",
|
|
240
|
+
width: "100%",
|
|
241
|
+
children: /*#__PURE__*/_jsx(ProviderChip, {
|
|
242
|
+
name: name,
|
|
243
|
+
href: hubType === 'subhub' ? `/search?query=${name} certifications` : `/catalog/certification-prep?provider=${name.toLowerCase()}`,
|
|
244
|
+
imgSrc: logoUrl,
|
|
245
|
+
tabIndex: tabIndex
|
|
246
|
+
})
|
|
247
|
+
}, name))
|
|
180
248
|
})]
|
|
181
249
|
});
|
|
182
250
|
};
|
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": "3.
|
|
4
|
+
"version": "3.6.0-alpha.8929aee448.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@emotion/is-prop-valid": "^1.2.1",
|