-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23902 from code-dot-org/courses-international-gra…
…de-bands Courses: international users see grade blocks for en courses
- Loading branch information
Showing
12 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
apps/src/templates/studioHomepages/CourseBlocksInternationalGradeBands.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import React, {Component} from 'react'; | ||
import ContentContainer from '../ContentContainer'; | ||
import CourseBlocksGradeBands from './CourseBlocksGradeBands'; | ||
import i18n from "@cdo/locale"; | ||
|
||
class CourseBlocksInternationalGradeBands extends Component { | ||
cards = [ | ||
{ | ||
linkId: 'course-block-international-grade-band-4-10', | ||
linkClass: 'linktag', | ||
heading: i18n.courseBlocksInternationalGradeBandsElementary(), | ||
description: i18n.courseBlocksInternationalGradeBandsElementaryDescription(), | ||
path: '/educate/curriculum/elementary-school' | ||
}, | ||
{ | ||
linkId: 'course-block-international-grade-band-10-14', | ||
linkClass: 'linktag', | ||
heading: i18n.courseBlocksInternationalGradeBandsMiddle(), | ||
description: i18n.courseBlocksInternationalGradeBandsMiddleDescription(), | ||
path: '/educate/curriculum/middle-school' | ||
}, | ||
{ | ||
linkId: 'course-block-international-grade-band-12-18', | ||
linkClass: 'linktag', | ||
heading: i18n.courseBlocksInternationalGradeBandsHigh(), | ||
description: i18n.courseBlocksInternationalGradeBandsHighDescription(), | ||
path: '/educate/curriculum/high-school' | ||
} | ||
]; | ||
|
||
render() { | ||
return ( | ||
<ContentContainer | ||
heading={i18n.courseBlocksInternationalGradeBandsContainerHeading()} | ||
description={i18n.courseBlocksInternationalGradeBandsContainerDescription()} | ||
> | ||
<CourseBlocksGradeBands | ||
cards={this.cards} | ||
/> | ||
</ContentContainer> | ||
); | ||
} | ||
} | ||
|
||
export default CourseBlocksInternationalGradeBands; |
17 changes: 17 additions & 0 deletions
17
apps/src/templates/studioHomepages/CourseBlocksInternationalGradeBands.story.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from 'react'; | ||
import CourseBlocksInternationalGradeBands from './CourseBlocksInternationalGradeBands'; | ||
|
||
export default storybook => { | ||
return storybook | ||
.storiesOf('Courses/CourseBlocksInternationalGradeBands', module) | ||
.withReduxStore() | ||
.addStoryTable([ | ||
{ | ||
name: 'course blocks - international grade bands', | ||
description: `This is a set of course blocks listing international grade bands`, | ||
story: () => ( | ||
<CourseBlocksInternationalGradeBands/> | ||
) | ||
}, | ||
]); | ||
}; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.