@codecademy/brand 5.17.0 → 5.18.0-alpha.4d581d215.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/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/NavPanels.d.ts +0 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/NavPanels.js +1 -10
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/consts.d.ts +0 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/consts.js +2 -33
- package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.js +5 -34
- package/dist/GlobalHeader/GlobalHeaderItems.d.ts +0 -1
- package/dist/GlobalHeader/GlobalHeaderItems.js +1 -24
- package/dist/lib/resourcesList/index.js +6 -0
- package/package.json +1 -1
|
@@ -5,7 +5,6 @@ type NavPanelProps = {
|
|
|
5
5
|
export declare const DocsPanel: () => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare const LearningToolsPanel: () => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export declare const PracticeToolsPanel: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export declare const CommunityPanel: () => import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export declare const InspirationPanel: () => import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export declare const FeatureCardPanel: ({ links }: NavPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export {};
|
|
@@ -5,7 +5,7 @@ import { AppHeaderFeatureCard } from '../AppHeaderFeatureCard';
|
|
|
5
5
|
import { useAppHeaderSectionContext } from '../AppHeaderSection/AppHeaderSectionContext';
|
|
6
6
|
import { PanelLayout } from '../AppHeaderSection/PanelLayout';
|
|
7
7
|
import { SkillTile } from '../AppHeaderSkillTile';
|
|
8
|
-
import {
|
|
8
|
+
import { docsLinks, inspirationLinks, learningToolsLinks, practiceToolsLinks } from './consts';
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
export const DocsPanel = () => {
|
|
11
11
|
const description = /*#__PURE__*/_jsx(Box, {
|
|
@@ -58,15 +58,6 @@ export const PracticeToolsPanel = () => {
|
|
|
58
58
|
})
|
|
59
59
|
});
|
|
60
60
|
};
|
|
61
|
-
export const CommunityPanel = () => {
|
|
62
|
-
return /*#__PURE__*/_jsx(PanelLayout, {
|
|
63
|
-
heading: "Community",
|
|
64
|
-
description: "Connect, learn, and grow with a community of like-minded learners. Whether you\u2019re just starting out or leveling up, find support, inspiration, and real conversations that keep you moving forward.",
|
|
65
|
-
children: /*#__PURE__*/_jsx(FeatureCardPanel, {
|
|
66
|
-
links: communityLinks
|
|
67
|
-
})
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
61
|
export const InspirationPanel = () => {
|
|
71
62
|
return /*#__PURE__*/_jsx(PanelLayout, {
|
|
72
63
|
heading: "Inspiration",
|
|
@@ -16,4 +16,3 @@ export type AppHeaderCardItem = {
|
|
|
16
16
|
export declare const learningToolsLinks: AppHeaderCardItem[];
|
|
17
17
|
export declare const practiceToolsLinks: AppHeaderCardItem[];
|
|
18
18
|
export declare const inspirationLinks: AppHeaderCardItem[];
|
|
19
|
-
export declare const communityLinks: AppHeaderCardItem[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ArticleIcon, BriefcaseIcon, BulbIcon, CIcon, CommentsIcon, ComputerScienceIcon, CPlusIcon, FileIcon, GameDevelopmentIcon, GaugeDashboardIcon, GitIcon, GoIcon, HammerWrenchIcon, HtmlCssIcon, InfoCircleIcon, JavaIcon, JavascriptIcon, LearnIcon, MarkdownIcon, NotebookIcon, PeopleIcon, PhpIcon, ProgrammingBrowserIcon,
|
|
1
|
+
import { ArticleIcon, BriefcaseIcon, BulbIcon, CIcon, CommentsIcon, ComputerScienceIcon, CPlusIcon, FileIcon, GameDevelopmentIcon, GaugeDashboardIcon, GitIcon, GoIcon, HammerWrenchIcon, HtmlCssIcon, InfoCircleIcon, JavaIcon, JavascriptIcon, LearnIcon, MarkdownIcon, NotebookIcon, PeopleIcon, PhpIcon, ProgrammingBrowserIcon, ProjectsIcon, PythonIcon, ReactIcon, RulerTriangleIcon, SearchIcon, SqlIcon, SwiftIcon, TerminalIcon, TypescriptIcon } from '@codecademy/gamut-icons';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { DocsPanel, InspirationPanel, LearningToolsPanel, PracticeToolsPanel } from './NavPanels';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
export const RESOURCES_NAV_SECTIONS = [{
|
|
6
6
|
item: {
|
|
@@ -29,15 +29,6 @@ export const RESOURCES_NAV_SECTIONS = [{
|
|
|
29
29
|
trackingTarget: 'topnav_resources_tab_practice_tools'
|
|
30
30
|
},
|
|
31
31
|
panel: PracticeToolsPanel
|
|
32
|
-
}, {
|
|
33
|
-
item: {
|
|
34
|
-
icon: PeopleIcon,
|
|
35
|
-
text: 'Community',
|
|
36
|
-
id: 'community',
|
|
37
|
-
type: 'resources-dropdown',
|
|
38
|
-
trackingTarget: 'topnav_resources_tab_community'
|
|
39
|
-
},
|
|
40
|
-
panel: CommunityPanel
|
|
41
32
|
}, {
|
|
42
33
|
item: {
|
|
43
34
|
icon: BulbIcon,
|
|
@@ -297,26 +288,4 @@ export const inspirationLinks = [{
|
|
|
297
288
|
},
|
|
298
289
|
icon: /*#__PURE__*/_jsx(SearchIcon, {}),
|
|
299
290
|
description: 'Master the skills to land a tech job, from resumes and portfolios to interviews and offers.'
|
|
300
|
-
}];
|
|
301
|
-
export const communityLinks = [{
|
|
302
|
-
linkItem: {
|
|
303
|
-
id: 'learner-stories',
|
|
304
|
-
href: '/resources/blog/category/learner-stories/',
|
|
305
|
-
trackingTarget: 'topnav_resources_community_learner_stories',
|
|
306
|
-
text: 'Learner Stories',
|
|
307
|
-
type: 'link'
|
|
308
|
-
},
|
|
309
|
-
icon: /*#__PURE__*/_jsx(CommentsIcon, {}),
|
|
310
|
-
description: 'Get inspired by real journeys from people. Discover how others have overcome challenges, built skills, and achieved their goals.'
|
|
311
|
-
}, {
|
|
312
|
-
linkItem: {
|
|
313
|
-
id: 'code-crew',
|
|
314
|
-
href: 'https://try.codecademy.com/code-crew/',
|
|
315
|
-
trackingTarget: 'topnav_resources_community_code_crew',
|
|
316
|
-
text: 'Code Crew',
|
|
317
|
-
type: 'link',
|
|
318
|
-
newTab: true
|
|
319
|
-
},
|
|
320
|
-
icon: /*#__PURE__*/_jsx(ProgrammingTeamChatIcon, {}),
|
|
321
|
-
description: 'Join a focused circle of builders and creators. Collaborate on projects, exchange ideas, and build alongside peers.'
|
|
322
291
|
}];
|
|
@@ -14,38 +14,6 @@ export const CompanyLinks = ({
|
|
|
14
14
|
referralRockUrls,
|
|
15
15
|
isBusinessUser
|
|
16
16
|
}) => {
|
|
17
|
-
const community = /*#__PURE__*/_jsxs(Box, {
|
|
18
|
-
children: [/*#__PURE__*/_jsx(FooterHeading, {
|
|
19
|
-
children: "Community"
|
|
20
|
-
}), /*#__PURE__*/_jsxs(FooterLinkItems, {
|
|
21
|
-
children: [/*#__PURE__*/_jsx(FooterLinkItem, {
|
|
22
|
-
children: /*#__PURE__*/_jsx(Anchor, {
|
|
23
|
-
href: "https://try.codecademy.com/code-crew/",
|
|
24
|
-
onClick: event => onClick({
|
|
25
|
-
event,
|
|
26
|
-
target: 'code-crew'
|
|
27
|
-
}),
|
|
28
|
-
target: "_blank",
|
|
29
|
-
variant: "interface",
|
|
30
|
-
children: "Code Crew"
|
|
31
|
-
})
|
|
32
|
-
}), /*#__PURE__*/_jsx(FooterLinkItem, {
|
|
33
|
-
children: /*#__PURE__*/_jsx(Anchor, {
|
|
34
|
-
href: "https://www.codecademy.com/resources/blog/category/learner-stories",
|
|
35
|
-
onClick: event => onClick({
|
|
36
|
-
event,
|
|
37
|
-
target: 'learner-stories'
|
|
38
|
-
}),
|
|
39
|
-
target: "_blank",
|
|
40
|
-
variant: "interface",
|
|
41
|
-
children: "Learner Stories"
|
|
42
|
-
})
|
|
43
|
-
}), referralRockUrls && userGeo !== 'IN' ? /*#__PURE__*/_jsx(ReferAFriendLinkWithModal, {
|
|
44
|
-
referralRockUrls: referralRockUrls,
|
|
45
|
-
onClick: onClick
|
|
46
|
-
}) : null]
|
|
47
|
-
})]
|
|
48
|
-
});
|
|
49
17
|
const company = /*#__PURE__*/_jsxs(_Fragment, {
|
|
50
18
|
children: [/*#__PURE__*/_jsx(FooterHeading, {
|
|
51
19
|
children: "Company"
|
|
@@ -90,7 +58,10 @@ export const CompanyLinks = ({
|
|
|
90
58
|
variant: "interface",
|
|
91
59
|
children: "Partnerships"
|
|
92
60
|
})
|
|
93
|
-
}), /*#__PURE__*/_jsx(
|
|
61
|
+
}), referralRockUrls && userGeo !== 'IN' ? /*#__PURE__*/_jsx(ReferAFriendLinkWithModal, {
|
|
62
|
+
referralRockUrls: referralRockUrls,
|
|
63
|
+
onClick: onClick
|
|
64
|
+
}) : null, /*#__PURE__*/_jsx(FooterLinkItem, {
|
|
94
65
|
children: /*#__PURE__*/_jsx(SocialMediaLinks, {})
|
|
95
66
|
})]
|
|
96
67
|
})]
|
|
@@ -244,7 +215,7 @@ export const CompanyLinks = ({
|
|
|
244
215
|
sm: 3
|
|
245
216
|
},
|
|
246
217
|
gridTemplateRows: "min-content",
|
|
247
|
-
children: [hidePricing ? null : plans,
|
|
218
|
+
children: [hidePricing ? null : plans, logo({
|
|
248
219
|
_: 'unset',
|
|
249
220
|
sm: 'none'
|
|
250
221
|
})]
|
|
@@ -11,7 +11,6 @@ export declare const catalogDropdown: (hideCareerPaths?: boolean) => AppHeaderCa
|
|
|
11
11
|
export declare const resourcesDropdown: () => AppHeaderResourcesDropdownItem;
|
|
12
12
|
export declare const liveCoursesDropdown: () => AppHeaderSimpleDropdownItem;
|
|
13
13
|
export declare const simpleResourcesDropdown: AppHeaderResourcesSimpleDropdownItem;
|
|
14
|
-
export declare const communityDropdown: () => AppHeaderSimpleDropdownItem;
|
|
15
14
|
export declare const pricingDropdown: (isInRevampedBlpExperimentVariant?: boolean) => AppHeaderSimpleDropdownItem;
|
|
16
15
|
export declare const upgradePlan: AppHeaderLinkItem;
|
|
17
16
|
export declare const businessSolutions: AppHeaderLinkItem;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Shimmer, Text } from '@codecademy/gamut';
|
|
2
|
-
import { AccountingCoinsIcon, ArrowThickCircleUpIcon,
|
|
2
|
+
import { AccountingCoinsIcon, ArrowThickCircleUpIcon, BookFlipPageIcon, BriefcaseIcon, CoachingIcon, GearIcon, HouseEntranceIcon, MiniArrowRightIcon, MonitorBookIcon, NotebookIcon, OfficeBuildingDoubleIcon, OnlineClassStudentIcon, PersonIcon, PieLineGraphIcon, SupportIcon } from '@codecademy/gamut-icons';
|
|
3
3
|
import { formatEnterpriseUrl } from './urlHelpers';
|
|
4
4
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
5
|
const shouldShowBusinessDashboardLink = user => {
|
|
@@ -145,29 +145,6 @@ export const simpleResourcesDropdown = {
|
|
|
145
145
|
trackingTarget: 'topnav_resources',
|
|
146
146
|
type: 'resources-simple-dropdown'
|
|
147
147
|
};
|
|
148
|
-
export const communityDropdown = () => ({
|
|
149
|
-
icon: CommunityIcon,
|
|
150
|
-
id: 'community',
|
|
151
|
-
text: 'Community',
|
|
152
|
-
popover: [{
|
|
153
|
-
id: 'learner-stories',
|
|
154
|
-
href: '/resources/blog/category/learner-stories/',
|
|
155
|
-
trackingTarget: 'topnav_learner_stories_hub',
|
|
156
|
-
text: 'Learner Stories',
|
|
157
|
-
type: 'link',
|
|
158
|
-
icon: ArticleIcon
|
|
159
|
-
}, {
|
|
160
|
-
id: 'code-crew',
|
|
161
|
-
href: 'https://try.codecademy.com/code-crew/',
|
|
162
|
-
newTab: true,
|
|
163
|
-
trackingTarget: 'topnav_code_crew',
|
|
164
|
-
text: 'Code Crew',
|
|
165
|
-
type: 'link',
|
|
166
|
-
icon: PersonPonytailIcon
|
|
167
|
-
}],
|
|
168
|
-
trackingTarget: 'topnav_community',
|
|
169
|
-
type: 'dropdown'
|
|
170
|
-
});
|
|
171
148
|
export const pricingDropdown = isInRevampedBlpExperimentVariant => {
|
|
172
149
|
return {
|
|
173
150
|
icon: AccountingCoinsIcon,
|
|
@@ -45,6 +45,12 @@ export const footerResourcesList = [{
|
|
|
45
45
|
href: '/resources/docs',
|
|
46
46
|
trackingTarget: 'docs',
|
|
47
47
|
text: 'Docs'
|
|
48
|
+
}, {
|
|
49
|
+
id: 'learner-stories',
|
|
50
|
+
href: 'https://www.codecademy.com/resources/blog/category/learner-stories',
|
|
51
|
+
trackingTarget: 'learner-stories',
|
|
52
|
+
text: 'Learner Stories',
|
|
53
|
+
newTab: true
|
|
48
54
|
}, {
|
|
49
55
|
id: 'projects',
|
|
50
56
|
href: '/projects',
|
package/package.json
CHANGED