mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
71538b0ac9
It’s ok to localize / i18n these now.
142 lines
5.2 KiB
Text
142 lines
5.2 KiB
Text
extends /templates/base
|
|
|
|
block content
|
|
|
|
div(style='border-bottom: 1px solid black')
|
|
span *UNDER CONSTRUCTION, please send feedback to
|
|
a.spl(href='mailto:team@codecombat.com') team@codecombat.com
|
|
|
|
br
|
|
if studentMode
|
|
+student-main
|
|
else
|
|
+teacher-main
|
|
.container-fluid
|
|
- var i = 0
|
|
while i < courses.length
|
|
.row
|
|
+course-block(courses[i], instances)
|
|
- i++
|
|
if i < courses.length
|
|
+course-block(courses[i], instances)
|
|
- i++
|
|
|
|
mixin student-main
|
|
button.btn.btn-warning.btn-teacher Teachers Click Here
|
|
h1.center Courses on CodeCombat
|
|
|
|
mixin teacher-main
|
|
button.btn.btn-warning.btn-student Students Click Here
|
|
h1.center Courses on CodeCombat
|
|
.info-container
|
|
p Courses are designed to introduce computer science concepts using CodeCombat's fun and engaging environment. CodeCombat levels are organized around key topics to encourage progressive learning, over the course of 5 hours.
|
|
.container-fluid
|
|
.row
|
|
.col-md-6
|
|
ul
|
|
li Learn more in less time
|
|
li No coding experience necesssary
|
|
li Easily monitor student progress
|
|
|
|
p Purchase a course for your entire class. It's easy to sign up your students!
|
|
p.faq-blurb
|
|
span.spr See the courses
|
|
a.spr.courses-faq FAQ
|
|
span for more information.
|
|
.col-md-6
|
|
img.img-quote(src="/images/pages/courses/coco_complab.png")
|
|
p
|
|
.well.well-sm
|
|
div.praise-quote "#{praise.quote}"
|
|
div.praise-caption - #{praise.source}
|
|
h2.center Choose Your Course:
|
|
|
|
mixin student-dialog(course)
|
|
.modal.continue-dialog(id="continueModal#{course.id}")
|
|
.modal-dialog
|
|
.modal-header
|
|
button.close(data-dismiss='modal')
|
|
span ×
|
|
h3.modal-title= course.get('name')
|
|
.modal-body
|
|
.container-fluid
|
|
.row.button-row
|
|
.col-md-12
|
|
.well.well-sm
|
|
p
|
|
div.instruction-label Enter an unlock code
|
|
.container-fluid
|
|
.row
|
|
.col-md-8
|
|
input.code-input(type='text', placeholder="Enter unlock code")
|
|
.col-md-4
|
|
button.btn.btn-success.btn-enroll Enroll
|
|
|
|
mixin teacher-dialog(course)
|
|
.modal.continue-dialog(id="continueModal#{course.id}")
|
|
.modal-dialog
|
|
.modal-header
|
|
button.close(data-dismiss='modal')
|
|
span ×
|
|
h3.modal-title= course.get('name')
|
|
.modal-body
|
|
.container-fluid
|
|
if enrolledCourses[course.id]
|
|
.row.button-row.row-pick-class
|
|
.col-md-12
|
|
.well.well-sm
|
|
p
|
|
div.instruction-label Pick from your current classes
|
|
.container-fluid
|
|
.row
|
|
.col-md-8
|
|
select.form-control.select-session(data-course-id="#{course.id}")
|
|
each inst in instances
|
|
if inst.get('courseID') == course.id
|
|
if inst.get('name')
|
|
option(value="#{inst.id}")= inst.get('name')
|
|
else
|
|
option(value="#{inst.id}") *unnamed*
|
|
.col-md-4
|
|
button.btn.btn-success.btn-enter(data-course-id="#{course.id}") Enter
|
|
.row.button-row.center.row-pick-class
|
|
.col-md-12
|
|
div.or Or
|
|
.row.button-row.center
|
|
.col-md-12
|
|
button.btn.btn-success.btn-lg.btn-buy(data-course-id="#{course.id}") Buy this course
|
|
|
|
mixin course-block(course)
|
|
if studentMode
|
|
+student-dialog(course)
|
|
else
|
|
+teacher-dialog(course)
|
|
.col-md-6
|
|
.well.panel.course-panel(class=enrolledCourses[course.id] ? 'panel-success' : 'panel-info')
|
|
.panel-heading
|
|
.panel-title
|
|
span.spr #{course.get('name')}
|
|
strong #{enrolledCourses[course.id] ? '[ enrolled ]' : ''}
|
|
.panel-body
|
|
.container-fluid
|
|
.row
|
|
.col-md-12
|
|
p
|
|
img.course-image(src="#{course.get('screenshot')}")
|
|
.row.button-row
|
|
.col-md-6
|
|
strong Topics
|
|
ul
|
|
each concept in course.get('concepts')
|
|
li(data-i18n="concepts." + concept)
|
|
strong Hours of content: #{course.get('duration')}
|
|
.col-md-6.center(style='margin-top: 40px;')
|
|
if studentMode
|
|
if enrolledCourses[course.id]
|
|
a.btn.btn-lg.btn-success.btn-continue(href="/courses/#{course.id}?student=true") Continue
|
|
else
|
|
button.btn.btn-lg.btn-success.btn-continue(data-toggle='modal', data-target="#continueModal#{course.id}") Enter
|
|
else if enrolledCourses[course.id]
|
|
button.btn.btn-lg.btn-success.btn-continue(data-toggle='modal', data-target="#continueModal#{course.id}") Continue
|
|
else
|
|
button.btn.btn-lg.btn-success.btn-buy(data-course-id="#{course.id}") #{course.get('pricePerSeat') === 0 ? 'Get FREE course' : 'Buy course'}
|