mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
06367d106b
Had to go low-tech. IE8 doesn’t make it far enough for a nicely styled homepage with unsupported message.
40 lines
No EOL
1.6 KiB
Text
40 lines
No EOL
1.6 KiB
Text
extends /templates/base
|
|
|
|
block outer_content
|
|
#spacer
|
|
|
|
a#play-button(href="/play", data-i18n="home.play")
|
|
|
|
//a(href="https://itunes.apple.com/us/app/codecombat/id936523909?mt=8")
|
|
// #or-ipad(data-i18n="home.or_ipad")
|
|
//
|
|
//a(href="https://itunes.apple.com/us/app/codecombat/id936523909?mt=8")
|
|
// img(src="/images/pages/home/app_store_badge.svg")#apple-store-button
|
|
|
|
#slogan(data-i18n="home.slogan")
|
|
|
|
//- TODO: This does not work on IE8
|
|
.alert.alert-danger.lt-ie9
|
|
strong(data-i18n="home.no_ie") CodeCombat does not run in Internet Explorer 8 or older. Sorry!
|
|
|
|
if isMobile
|
|
.alert.alert-danger.mobile
|
|
strong(data-i18n="home.no_mobile") CodeCombat wasn't designed for mobile devices and may not work!
|
|
else if isOldBrowser
|
|
.alert.alert-danger.old-browser
|
|
strong(data-i18n="home.old_browser") Uh oh, your browser is too old to run CodeCombat. Sorry!
|
|
br
|
|
span(data-i18n="home.old_browser_suffix") You can try anyway, but it probably won't work.
|
|
else if isIPadBrowser
|
|
.alert.alert-danger.ipad-browser
|
|
strong(data-i18n="home.ipad_browser") Bad news: CodeCombat doesn't run on iPad in the browser. Good news: our native iPad app is awaiting Apple approval.
|
|
|
|
block extra_footer_content
|
|
if true || explainHourOfCode
|
|
// Does not show up unless lang is en-US.
|
|
div.hour-of-code-explanation
|
|
| The 'Hour of Code' is a nationwide initiative by
|
|
a(href="http://csedweek.org") Computer Science Education Week
|
|
| and
|
|
a(href="http://code.org") Code.org
|
|
| to introduce millions of students to one hour of computer science and computer programming. |