Update home course tiles
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
BIN
app/assets/images/pages/home/game-dev-1.png
Normal file
After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
BIN
app/assets/images/pages/home/web-dev-1.png
Normal file
After Width: | Height: | Size: 20 KiB |
|
@ -71,7 +71,7 @@
|
|||
curriculum: "Total curriculum hours:"
|
||||
ffa: "Free for all students"
|
||||
lesson_time: "Lesson time:"
|
||||
coming_soon: "Coming this fall!"
|
||||
coming_soon: "More coming soon!" # {change}
|
||||
courses_available_in: "Courses are available in JavaScript, Python, and Java (coming soon!)"
|
||||
boast: "Boasts riddles that are complex enough to fascinate gamers and coders alike."
|
||||
winning: "A winning combination of RPG gameplay and programming homework that pulls off making kid-friendly education legitimately enjoyable."
|
||||
|
|
|
@ -232,7 +232,6 @@ block content
|
|||
span#semester-duration
|
||||
#courses-row.row
|
||||
- var conceptsSeen = {};
|
||||
- var lastScreenshot = "";
|
||||
for course, courseIndex in view.courses.models
|
||||
.col-md-3.col-sm-4
|
||||
.media.course-details(data-course-slug=course.get('slug'))
|
||||
|
@ -256,19 +255,16 @@ block content
|
|||
span.spr ,
|
||||
- total += 1;
|
||||
span(data-i18n="concepts." + concept)
|
||||
img.media-object(src="/images/pages/home/course"+(courseIndex+1)+".png")
|
||||
- lastScreenshot = course.get('screenshot');
|
||||
img.media-object(src="/images/pages/home/" + course.get('slug') + ".png")
|
||||
h6.course-duration
|
||||
span.spr(data-i18n="new_home.lesson_time")
|
||||
span.course-hours= course.get('duration') || 0
|
||||
span.spl.unit(data-i18n="units.hours")
|
||||
for upcomingCourse in ['Computer Science 6', 'Computer Science 7', 'Computer Science 8']
|
||||
.col-md-3.col-sm-4
|
||||
.media.disabled
|
||||
.media-body
|
||||
h6.course-name= upcomingCourse + ':'
|
||||
p.small(data-i18n="new_home.coming_soon")
|
||||
img.media-object(src="/images/pages/home/inprogress.png")
|
||||
.col-md-3.col-sm-4
|
||||
.media.disabled
|
||||
.media-body
|
||||
p.small(data-i18n="new_home.coming_soon")
|
||||
img.media-object(src="/images/pages/home/inprogress.png")
|
||||
|
||||
.clearfix
|
||||
.text-center
|
||||
|
|
|
@ -131,9 +131,33 @@ module.exports = class NewHomeView extends RootView
|
|||
|
||||
onChangeSchoolLevelDropdown: (e) ->
|
||||
levels =
|
||||
elementary: {'introduction-to-computer-science': '2-4', 'computer-science-6': '24-30', 'computer-science-7': '30-40', 'computer-science-8': '30-40', default: '16-25', total: '150-215 hours (about two and a half years)'}
|
||||
middle: {'introduction-to-computer-science': '1-3', 'computer-science-6': '12-14', 'computer-science-7': '14-16', 'computer-science-8': '14-16', default: '8-12', total: '75-100 hours (about one and a half years)'}
|
||||
high: {'introduction-to-computer-science': '1', 'computer-science-6': '10-12', 'computer-science-7': '12-16', 'computer-science-8': '12-16', default: '8-10', total: '65-85 hours (about one year)'}
|
||||
elementary:
|
||||
'introduction-to-computer-science': '2-4'
|
||||
'game-dev-1': '2-3'
|
||||
'web-dev-1': '2-3'
|
||||
'computer-science-6': '24-30'
|
||||
'computer-science-7': '30-40'
|
||||
'computer-science-8': '30-40'
|
||||
default: '16-25'
|
||||
total: '150-215 hours (about two and a half years)'
|
||||
middle:
|
||||
'introduction-to-computer-science': '1-3'
|
||||
'game-dev-1': '1-3'
|
||||
'web-dev-1': '1-3'
|
||||
'computer-science-6': '12-14'
|
||||
'computer-science-7': '14-16'
|
||||
'computer-science-8': '14-16'
|
||||
default: '8-12'
|
||||
total: '75-100 hours (about one and a half years)'
|
||||
high:
|
||||
'introduction-to-computer-science': '1'
|
||||
'game-dev-1': '1-2'
|
||||
'web-dev-1': '1-2'
|
||||
'computer-science-6': '10-12'
|
||||
'computer-science-7': '12-16'
|
||||
'computer-science-8': '12-16'
|
||||
default: '8-10'
|
||||
total: '65-85 hours (about one year)'
|
||||
level = if e then $(e.target).val() else 'middle'
|
||||
@$el.find('#courses-row .course-details').each ->
|
||||
slug = $(@).data('course-slug')
|
||||
|
|