@codecademy/brand 2.0.0-alpha.9eaf2316c2.0 → 2.0.0-alpha.a27f454af3.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.
@@ -43,7 +43,7 @@ export const liveLearningHubItems = {
43
43
  id: 'bootcamps',
44
44
  href: '/live-learning',
45
45
  text: 'Bootcamps',
46
- description: 'Learn live from industry experts',
46
+ description: 'Learn live from industry experts.',
47
47
  trackingTarget: 'topnav_catalog_live_learning_bootcamps',
48
48
  type: 'link',
49
49
  newTab: true,
@@ -51,8 +51,8 @@ export const liveLearningHubItems = {
51
51
  }, {
52
52
  id: 'gk',
53
53
  href: '/live-learning#GKLiveLearning',
54
- text: 'GK x Codecademy',
55
- description: 'Instructor led courses, offered via our partner organization',
54
+ text: 'Codecademy x GK',
55
+ description: 'Instructor-led courses, offered via our partner organization.',
56
56
  trackingTarget: 'topnav_catalog_live_learning_gk_codecademy',
57
57
  type: 'link',
58
58
  newTab: true,
@@ -56,7 +56,7 @@ export const footerResourcesList = [{
56
56
  trackingTarget: 'workspaces',
57
57
  text: 'Workspaces'
58
58
  }];
59
- export const getHeaderResourcesList = isLiveLearningHubEnabled => {
59
+ export const getHeaderResourcesList = () => {
60
60
  const inspirationSection = {
61
61
  title: 'Inspiration & career',
62
62
  links: [{
@@ -83,7 +83,7 @@ export const getHeaderResourcesList = isLiveLearningHubEnabled => {
83
83
  trackingTarget: 'topnav_resources_inspiration_learning_tips',
84
84
  type: 'link',
85
85
  newTab: true
86
- }, isLiveLearningHubEnabled ? {
86
+ }, {
87
87
  id: 'career-center',
88
88
  href: '/career-center',
89
89
  text: 'Career Center',
@@ -92,15 +92,6 @@ export const getHeaderResourcesList = isLiveLearningHubEnabled => {
92
92
  type: 'link',
93
93
  newTab: true,
94
94
  badge: renderNewBadge()
95
- } : {
96
- id: 'job-readiness-check',
97
- href: '/job-readiness',
98
- text: 'Job-readiness checker',
99
- description: 'Analyze your compatibility with tech roles using AI.',
100
- trackingTarget: 'topnav_resources_inspiration_job_readiness_checker',
101
- type: 'link',
102
- newTab: true,
103
- badge: renderNewBadge()
104
95
  }]
105
96
  };
106
97
  return [{
@@ -0,0 +1,23 @@
1
+ import { LearningOutcomeAssessmentScores } from '../../LearningOutcomeAssessmentScores';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ const meta = {
4
+ component: LearningOutcomeAssessmentScores,
5
+ args: {}
6
+ };
7
+ export default meta;
8
+ export const Example = () => {
9
+ return /*#__PURE__*/_jsx(LearningOutcomeAssessmentScores, {
10
+ highestScore: 100,
11
+ highestScoreAchievedAt: "10/01",
12
+ latestScore: 50,
13
+ latestScoreAchievedAt: "10/23"
14
+ });
15
+ };
16
+ export const NoScores = () => {
17
+ return /*#__PURE__*/_jsx(LearningOutcomeAssessmentScores, {
18
+ highestScore: null,
19
+ highestScoreAchievedAt: null,
20
+ latestScore: null,
21
+ latestScoreAchievedAt: null
22
+ });
23
+ };
@@ -56,4 +56,20 @@ export const EmphasizedCardWithProgress100 = {
56
56
  })
57
57
  }),
58
58
  name: 'Emphasized card displaying 100% progress, for use in the Learning Environment'
59
+ };
60
+ export const EmphasizedCardWithAnimation = {
61
+ render: args => /*#__PURE__*/_jsx(Background, {
62
+ bg: "navy",
63
+ p: 24,
64
+ children: /*#__PURE__*/_jsx(LearningOutcomeCard, {
65
+ emphasized: true,
66
+ progress: 80,
67
+ progressUpdateData: {
68
+ previousProgress: 50,
69
+ progressDuration: 500
70
+ },
71
+ ...args
72
+ })
73
+ }),
74
+ name: 'Emphasized card first displays 50% progress then animates until showing 80%, for use in the Learning Environment'
59
75
  };
@@ -0,0 +1,34 @@
1
+ import { FillButton, FlexBox } from '@codecademy/gamut';
2
+ import { useState } from 'react';
3
+ import { LearningOutcomeFlyout } from '../../LearningOutcomeFlyout';
4
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
5
+ const meta = {
6
+ component: LearningOutcomeFlyout,
7
+ args: {}
8
+ };
9
+ export default meta;
10
+ export const Example = () => {
11
+ const [isExpanded, setIsExpanded] = useState(false);
12
+ const toggleOpen = () => setIsExpanded(!isExpanded);
13
+ return /*#__PURE__*/_jsxs(_Fragment, {
14
+ children: [/*#__PURE__*/_jsx(FillButton, {
15
+ onClick: toggleOpen,
16
+ children: "Open Flyout"
17
+ }), /*#__PURE__*/_jsx(FlexBox, {
18
+ width: "100%",
19
+ children: /*#__PURE__*/_jsx(LearningOutcomeFlyout, {
20
+ expanded: isExpanded,
21
+ learningOutcome: {
22
+ highestScore: 100,
23
+ highestScoreAchievedAt: '10/01',
24
+ latestScore: 68,
25
+ latestScoreAchievedAt: '10/01',
26
+ level: 2,
27
+ outcome: 'Understand the basics of React',
28
+ percentComplete: 75
29
+ },
30
+ onClose: () => setIsExpanded(false)
31
+ })
32
+ })]
33
+ });
34
+ };
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": "2.0.0-alpha.9eaf2316c2.0",
4
+ "version": "2.0.0-alpha.a27f454af3.0",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@emotion/is-prop-valid": "^1.2.1",