From 52c1f3d625f056d29356dc61435826eb7d3498ea Mon Sep 17 00:00:00 2001 From: Robin Yang Date: Tue, 23 Aug 2016 14:46:02 -0700 Subject: [PATCH] Add CS1, CS2 to Resource Hub Also adding additional worksheets/PDFs. --- app/locale/en.coffee | 12 ++++++++- app/styles/teachers/ResourceHubView.sass | 12 +++++++++ .../teachers/markdown-resource-view.sass | 15 ++++++++++- .../teachers/markdown-resource-view.jade | 3 ++- app/templates/teachers/resource-hub-view.jade | 25 +++++++++++++++++++ 5 files changed, 64 insertions(+), 3 deletions(-) diff --git a/app/locale/en.coffee b/app/locale/en.coffee index f8abf1e2d..78f7767ca 100644 --- a/app/locale/en.coffee +++ b/app/locale/en.coffee @@ -578,7 +578,7 @@ tip_good_idea: "The best way to have a good idea is to have a lot of ideas. - Linus Pauling" tip_programming_not_about_computers: "Computer Science is no more about computers than astronomy is about telescopes. - Edsger Dijkstra" tip_mulan: "Believe you can, then you will. - Mulan" - + play_game_dev_level: created_by: "Created by {{name}}" how_to_play_title: "How to play:" @@ -1515,11 +1515,21 @@ student_getting_started: "Student Quick Start Guide" student_getting_started_desc: "You can distribute this guide to your students before starting CodeCombat so that they can familiarize themselves with the code editor. This guide can be used for both Python and JavaScript classrooms." cs1: "Introduction to Computer Science" + cs2: "Computer Science 2" cs1_syntax_python: "Course 1 Python Syntax Guide" cs1_syntax_python_desc: "Cheatsheet with references to common Python syntax that students will learn in Introduction to Computer Science." cs1_syntax_javascript: "Course 1 JavaScript Syntax Guide" cs1_syntax_javascript_desc: "Cheatsheet with references to common JavaScript syntax that students will learn in Introduction to Computer Science." coming_soon: "Additional guides coming soon!" + engineering_cycle_worksheet: "Engineering Cycle Worksheet" + engineering_cycle_worksheet_desc: "Use this worksheet to teach students the basics of the engineering cycle: Assess, Design, Implement and Debug. Refer to the completed example worksheet as a guide." + engineering_cycle_worksheet_link: "View example" + progress_journal: "Progress Journal" + progress_journal_desc: "Encourage students to keep track of their progress via a progress journal." + cs1_curriculum: "Introduction to Computer Science - Curriculum Guide" + cs1_curriculum_desc: "Scope and sequence, lesson plans, activities and more for Course 1." + cs2_curriculum: "Computer Science 2 - Curriculum Guide" + cs2_curriculum_desc: "Scope and sequence, lesson plans, activities and more for Course 2." sharing: game: "Game" diff --git a/app/styles/teachers/ResourceHubView.sass b/app/styles/teachers/ResourceHubView.sass index 4ec8bd271..afaeed843 100644 --- a/app/styles/teachers/ResourceHubView.sass +++ b/app/styles/teachers/ResourceHubView.sass @@ -1,4 +1,16 @@ #resource-hub-view + .content + max-width: 900px + margin: auto + + h4 + padding: 0 0 10px 0 + + ul + margin: 0 0 40px 0 + p + font-size: .8em + .comingsoon h4 text-align: center diff --git a/app/styles/teachers/markdown-resource-view.sass b/app/styles/teachers/markdown-resource-view.sass index 655cef035..d7518ecd9 100644 --- a/app/styles/teachers/markdown-resource-view.sass +++ b/app/styles/teachers/markdown-resource-view.sass @@ -6,10 +6,14 @@ .print, .print p text-align: center font-size: .75em - text-transform: uppercase + // text-transform: uppercase @media print display: none + .print a + color: #fff + text-decoration: none + .lesson-plans max-width: 900px background-color: #f8f8f8 @@ -23,6 +27,7 @@ border: none margin: none padding: none + font-size: 80% ul margin: 0 0 30px 0 @@ -67,6 +72,14 @@ @media print page-break-before: always + h6 + font-style: italic + font-weight: 200 + text-align: right + + img + width: 100% + table, tr, td, th border: 2px solid #f8f8f8 border-radius: 5px diff --git a/app/templates/teachers/markdown-resource-view.jade b/app/templates/teachers/markdown-resource-view.jade index f2bf0c2da..9886f904e 100644 --- a/app/templates/teachers/markdown-resource-view.jade +++ b/app/templates/teachers/markdown-resource-view.jade @@ -8,13 +8,14 @@ block content .container span.backlink a(href='/teachers/resources') - |< Back to Resource Hub + |< Back to Resource Hub if view.content == '' .comingsoon h4(style="text-align:center") i This guide doesn't exist! else .print + .btn.btn-md.btn-navy a(href='javascript:window.print()') span.glyphicon.glyphicon-print   |Print this guide diff --git a/app/templates/teachers/resource-hub-view.jade b/app/templates/teachers/resource-hub-view.jade index 7e4b6f764..c4f7c9464 100644 --- a/app/templates/teachers/resource-hub-view.jade +++ b/app/templates/teachers/resource-hub-view.jade @@ -23,10 +23,20 @@ block content span(data-i18n="teacher.student_getting_started") span.spl [PDF] p(data-i18n="teacher.student_getting_started_desc") + li + a(href="http://files.codecombat.com/docs/resources/ProgressJournal.pdf" target="blank") + span(data-i18n="teacher.progress_journal") + span.spl [PDF] + p(data-i18n="teacher.progress_journal_desc") + h4(data-i18n="teacher.cs1") ul + li + a(href="/teachers/resources/cs1" target="blank") + span(data-i18n="teacher.cs1_curriculum") + p(data-i18n="teacher.cs1_curriculum_desc") li a(href="http://files.codecombat.com/docs/resources/Course1PythonSyntaxGuide.pdf" target="blank") span(data-i18n="teacher.cs1_syntax_python") @@ -37,6 +47,21 @@ block content span(data-i18n="teacher.cs1_syntax_javascript") span.spl [PDF] p(data-i18n="teacher.cs1_syntax_javascript_desc") + li + a(href="http://files.codecombat.com/docs/resources/EngineeringCycleWorksheet.pdf" target="blank") + span(data-i18n="teacher.engineering_cycle_worksheet") + span.spl [PDF] + a(href="http://files.codecombat.com/docs/resources/WorksheetExample.pdf" target="blank") + i.span.spl(data-i18n="teacher.engineering_cycle_worksheet_link") + p(data-i18n="teacher.engineering_cycle_worksheet_desc") + + h4(data-i18n="teacher.cs2") + ul + li + a(href="/teachers/resources/cs2" target="blank") + span(data-i18n="teacher.cs2_curriculum") + p(data-i18n="teacher.cs2_curriculum_desc") + .comingsoon h4