Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Courses: international users see grade blocks for en courses #23902

Merged
merged 2 commits into from
Jul 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions apps/i18n/common/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,14 @@
"courseBlocksGradeBandsMiddleDescription": "Our new middle school course can be offered as a semester or year-long introduction to computer science for all students.",
"courseBlocksGradeBandsUniversity": "University+",
"courseBlocksGradeBandsUniversityDescription": "Go beyond Code.org and take university courses online or learn a new programming language.",
"courseBlocksInternationalGradeBandsContainerDescription": "Below is the catalog of all of our courses and great options from third parties. Please note that some of these are only in English. Don't worry -- we're working on getting these courses translated into your language. Thanks for your patience!",
"courseBlocksInternationalGradeBandsContainerHeading": "Full course catalog (English only)",
"courseBlocksInternationalGradeBandsElementary": "Ages 4-11",
"courseBlocksInternationalGradeBandsElementaryDescription": "CS Fundamentals offers a variety of courses for students to explore programming concepts, computational thinking, digital citizenship, and to develop interactive games and stories.",
"courseBlocksInternationalGradeBandsHigh": "Ages 14-18+",
"courseBlocksInternationalGradeBandsHighDescription": "We offer two courses for secondary school: CS Discoveries and CS Principles. Both are designed to broaden participation in computer science.",
"courseBlocksInternationalGradeBandsMiddle": "Ages 10-16",
"courseBlocksInternationalGradeBandsMiddleDescription": "As flexible courses that can be taught in a unit, semester, or full year, CS Discoveries and CS Fundamentals Express introduce students to app design, JavaScript programming, physical computing, and more.",
"courseBlocksToolsTitleTeacher": "Tools and resources for your classroom",
"courseBlocksToolsTitleNonEn": "Tools for middle and high school (English only)",
"courseBlocksToolsDescription": "In addition to our courses, teachers can use tools to teach students how to create apps, animations, games, or websites. We also have lessons and widgets to teach encryption, text compression, and other computer science concepts. Browse our other resources to inspire students with posters, videos, or by inviting guest speakers.",
Expand Down
5 changes: 5 additions & 0 deletions apps/src/templates/studioHomepages/CourseBlocks.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React, {Component, PropTypes} from 'react';
import ReactDOM from 'react-dom';
import ContentContainer from '../ContentContainer';
import CourseBlocksTools from './CourseBlocksTools';
import CourseBlocksInternationalGradeBands from './CourseBlocksInternationalGradeBands';
import ProtectedStatefulDiv from '../ProtectedStatefulDiv';
import i18n from "@cdo/locale";
import {pegasus} from '@cdo/apps/lib/util/urlHelpers';
Expand Down Expand Up @@ -176,6 +177,10 @@ export class CourseBlocksAll extends Component {
<CourseBlocksHoc rowCount={1}/>
</ContentContainer>

{!this.props.isEnglish && (
<CourseBlocksInternationalGradeBands/>
)}

<CourseBlocksTools
isEnglish={this.props.isEnglish}
/>
Expand Down
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;
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/>
)
},
]);
};
Binary file added shared/images/courses/logo_tall_coursea-2017.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shared/images/courses/logo_tall_courseb-2017.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shared/images/courses/logo_tall_coursec-2017.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shared/images/courses/logo_tall_coursed-2017.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shared/images/courses/logo_tall_coursee-2017.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shared/images/courses/logo_tall_coursef-2017.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shared/images/courses/logo_tall_express-2017.png
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.