@codecademy/brand 3.30.0-alpha.2ad52d9890.0 → 3.30.0-alpha.a1d6d82e00.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.
|
@@ -5,7 +5,7 @@ import { Background } from '@codecademy/gamut-styles';
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { useEffect, useRef } from 'react';
|
|
7
7
|
import { useHeaderDisplayContext } from '../../../GlobalHeader/context';
|
|
8
|
-
import { careerPaths, getTopSubjects,
|
|
8
|
+
import { careerPaths, getTopSubjects, liveLearningHubItem, topLanguages } from '../../../lib/catalogList';
|
|
9
9
|
import { DescriptionSectionContainer, LayoutGridAntiAliased, useMegaMenuHeaderResponsiveStyles } from '../../shared';
|
|
10
10
|
import { useAppHeaderDropdownContext } from '../AppHeaderDropdownProvider';
|
|
11
11
|
import { BannerAnchor, StyledAnchorColumn, StyledColumn, StyledFillButton, SubjectAnchor, topicWrapperProps, useBannerResponsiveStyles } from './elements';
|
|
@@ -311,8 +311,8 @@ export const AppHeaderCatalogSection = /*#__PURE__*/React.forwardRef(({
|
|
|
311
311
|
sm: 32
|
|
312
312
|
},
|
|
313
313
|
children: /*#__PURE__*/_jsx(DescriptionSection, {
|
|
314
|
-
title:
|
|
315
|
-
subtitle:
|
|
314
|
+
title: liveLearningHubItem.title,
|
|
315
|
+
subtitle: liveLearningHubItem.description || ''
|
|
316
316
|
})
|
|
317
317
|
})
|
|
318
318
|
}), /*#__PURE__*/_jsx(Column, {
|
|
@@ -329,7 +329,7 @@ export const AppHeaderCatalogSection = /*#__PURE__*/React.forwardRef(({
|
|
|
329
329
|
sm: 64,
|
|
330
330
|
md: 48
|
|
331
331
|
},
|
|
332
|
-
children:
|
|
332
|
+
children: liveLearningHubItem.data.map(dataItem => {
|
|
333
333
|
const {
|
|
334
334
|
id,
|
|
335
335
|
href,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AppHeaderLinkItem, AppHeaderResourcesDataItem } from '../../AppHeader/shared';
|
|
2
2
|
export declare const careerPaths: AppHeaderLinkItem[];
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const liveLearningHubItem: AppHeaderResourcesDataItem;
|
|
4
4
|
export declare const liveLearningNavPanelItem: AppHeaderResourcesDataItem;
|
|
5
5
|
export declare const topLanguages: AppHeaderLinkItem[];
|
|
6
6
|
export declare const getTopSubjects: () => AppHeaderLinkItem[];
|
|
@@ -36,7 +36,7 @@ export const careerPaths = [{
|
|
|
36
36
|
text: 'Data Scientist',
|
|
37
37
|
type: 'link'
|
|
38
38
|
}];
|
|
39
|
-
export const
|
|
39
|
+
export const liveLearningHubItem = {
|
|
40
40
|
title: 'Live Learning',
|
|
41
41
|
description: 'Build skills faster through live learning with expert instructors.',
|
|
42
42
|
data: [{
|
|
@@ -48,15 +48,6 @@ export const liveLearningHubItems = {
|
|
|
48
48
|
type: 'link',
|
|
49
49
|
newTab: true,
|
|
50
50
|
badge: renderNewBadge()
|
|
51
|
-
}, {
|
|
52
|
-
id: 'gk',
|
|
53
|
-
href: '/live-learning#GKLiveLearning',
|
|
54
|
-
text: 'Codecademy x GK',
|
|
55
|
-
description: 'Instructor-led courses, offered via our partner organization.',
|
|
56
|
-
trackingTarget: 'topnav_catalog_live_learning_gk_codecademy',
|
|
57
|
-
type: 'link',
|
|
58
|
-
newTab: true,
|
|
59
|
-
badge: renderNewBadge()
|
|
60
51
|
}]
|
|
61
52
|
};
|
|
62
53
|
|
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.30.0-alpha.
|
|
4
|
+
"version": "3.30.0-alpha.a1d6d82e00.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@emotion/is-prop-valid": "^1.2.1",
|