@codecademy/brand 5.16.1 → 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.
@@ -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 { communityLinks, docsLinks, inspirationLinks, learningToolsLinks, practiceToolsLinks } from './consts';
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, NetworkUserIcon, NotebookIcon, PeopleIcon, PhpIcon, ProgrammingBrowserIcon, ProgrammingTeamChatIcon, ProjectsIcon, PythonIcon, ReactIcon, RulerTriangleIcon, SearchIcon, SqlIcon, SwiftIcon, TerminalIcon, TypescriptIcon } from '@codecademy/gamut-icons';
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 { CommunityPanel, DocsPanel, InspirationPanel, LearningToolsPanel, PracticeToolsPanel } from './NavPanels';
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,37 +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: 'visit-community',
304
- href: 'https://community.codecademy.com/c/start-here/',
305
- trackingTarget: 'topnav_resources_community_visit',
306
- text: 'Visit Community',
307
- type: 'link',
308
- newTab: true
309
- },
310
- icon: /*#__PURE__*/_jsx(NetworkUserIcon, {}),
311
- description: 'Join conversations, ask questions, and learn together in an active space.'
312
- }, {
313
- linkItem: {
314
- id: 'learner-stories',
315
- href: '/resources/blog/category/learner-stories/',
316
- trackingTarget: 'topnav_resources_community_learner_stories',
317
- text: 'Learner Stories',
318
- type: 'link'
319
- },
320
- icon: /*#__PURE__*/_jsx(CommentsIcon, {}),
321
- description: 'Get inspired by real journeys from people. Discover how others have overcome challenges, built skills, and achieved their goals.'
322
- }, {
323
- linkItem: {
324
- id: 'code-crew',
325
- href: 'https://try.codecademy.com/code-crew/',
326
- trackingTarget: 'topnav_resources_community_code_crew',
327
- text: 'Code Crew',
328
- type: 'link',
329
- newTab: true
330
- },
331
- icon: /*#__PURE__*/_jsx(ProgrammingTeamChatIcon, {}),
332
- description: 'Join a focused circle of builders and creators. Collaborate on projects, exchange ideas, and build alongside peers.'
333
291
  }];
@@ -14,49 +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://community.codecademy.com/c/start-here/",
24
- onClick: event => onClick({
25
- event,
26
- target: 'visit-community'
27
- }),
28
- target: "_blank",
29
- variant: "interface",
30
- children: "Visit community"
31
- })
32
- }), /*#__PURE__*/_jsx(FooterLinkItem, {
33
- children: /*#__PURE__*/_jsx(Anchor, {
34
- href: "https://try.codecademy.com/code-crew/",
35
- onClick: event => onClick({
36
- event,
37
- target: 'code-crew'
38
- }),
39
- target: "_blank",
40
- variant: "interface",
41
- children: "Code Crew"
42
- })
43
- }), /*#__PURE__*/_jsx(FooterLinkItem, {
44
- children: /*#__PURE__*/_jsx(Anchor, {
45
- href: "https://www.codecademy.com/resources/blog/category/learner-stories",
46
- onClick: event => onClick({
47
- event,
48
- target: 'learner-stories'
49
- }),
50
- target: "_blank",
51
- variant: "interface",
52
- children: "Learner Stories"
53
- })
54
- }), referralRockUrls && userGeo !== 'IN' ? /*#__PURE__*/_jsx(ReferAFriendLinkWithModal, {
55
- referralRockUrls: referralRockUrls,
56
- onClick: onClick
57
- }) : null]
58
- })]
59
- });
60
17
  const company = /*#__PURE__*/_jsxs(_Fragment, {
61
18
  children: [/*#__PURE__*/_jsx(FooterHeading, {
62
19
  children: "Company"
@@ -101,7 +58,10 @@ export const CompanyLinks = ({
101
58
  variant: "interface",
102
59
  children: "Partnerships"
103
60
  })
104
- }), /*#__PURE__*/_jsx(FooterLinkItem, {
61
+ }), referralRockUrls && userGeo !== 'IN' ? /*#__PURE__*/_jsx(ReferAFriendLinkWithModal, {
62
+ referralRockUrls: referralRockUrls,
63
+ onClick: onClick
64
+ }) : null, /*#__PURE__*/_jsx(FooterLinkItem, {
105
65
  children: /*#__PURE__*/_jsx(SocialMediaLinks, {})
106
66
  })]
107
67
  })]
@@ -255,7 +215,7 @@ export const CompanyLinks = ({
255
215
  sm: 3
256
216
  },
257
217
  gridTemplateRows: "min-content",
258
- children: [hidePricing ? null : plans, community, logo({
218
+ children: [hidePricing ? null : plans, logo({
259
219
  _: 'unset',
260
220
  sm: 'none'
261
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, ArticleIcon, BookFlipPageIcon, BriefcaseIcon, CoachingIcon, CommunityIcon, EarthIcon, GearIcon, HouseEntranceIcon, MiniArrowRightIcon, MonitorBookIcon, NotebookIcon, OfficeBuildingDoubleIcon, OnlineClassStudentIcon, PersonIcon, PersonPonytailIcon, PieLineGraphIcon, SupportIcon } from '@codecademy/gamut-icons';
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,37 +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: 'visit-community',
154
- href: 'https://community.codecademy.com/c/start-here/',
155
- newTab: true,
156
- trackingTarget: 'topnav_visit_community',
157
- text: 'Visit Community',
158
- type: 'link',
159
- icon: EarthIcon
160
- }, {
161
- id: 'learner-stories',
162
- href: '/resources/blog/category/learner-stories/',
163
- trackingTarget: 'topnav_learner_stories_hub',
164
- text: 'Learner Stories',
165
- type: 'link',
166
- icon: ArticleIcon
167
- }, {
168
- id: 'code-crew',
169
- href: 'https://try.codecademy.com/code-crew/',
170
- newTab: true,
171
- trackingTarget: 'topnav_code_crew',
172
- text: 'Code Crew',
173
- type: 'link',
174
- icon: PersonPonytailIcon
175
- }],
176
- trackingTarget: 'topnav_community',
177
- type: 'dropdown'
178
- });
179
148
  export const pricingDropdown = isInRevampedBlpExperimentVariant => {
180
149
  return {
181
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codecademy/brand",
3
- "version": "5.16.1",
3
+ "version": "5.18.0-alpha.4d581d215.0",
4
4
  "description": "Brand component library for Codecademy",
5
5
  "license": "MIT",
6
6
  "repository": "git@github.com:codecademy-engineering/mono.git",