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