2014-01-03 13:32:13 -05:00
|
|
|
extends /templates/base
|
|
|
|
|
|
|
|
block content
|
|
|
|
|
2014-06-19 15:31:56 -04:00
|
|
|
h1#site-slogan(data-i18n="home.slogan") Learn to Code by Playing a Game
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-06-27 13:21:38 -04:00
|
|
|
.code-languages
|
|
|
|
.primary-code-languages.row
|
|
|
|
.col-md-6
|
|
|
|
.code-language#javascript(data-code-language='javascript')
|
|
|
|
.code-wizard
|
|
|
|
h2 JavaScript
|
2014-07-17 23:12:59 -04:00
|
|
|
p(data-i18n="home.javascript_blurb") The language of the web. Great for writing websites, web apps, HTML5 games, and servers.
|
2014-08-30 02:09:38 -04:00
|
|
|
- var playCount = codeLanguageCountMap.javascript
|
|
|
|
if playCount
|
|
|
|
div.language-play-count
|
|
|
|
span.spr= playCount
|
|
|
|
span(data-i18n="resources.sessions") sessions
|
2014-06-27 13:21:38 -04:00
|
|
|
|
|
|
|
.col-md-6
|
|
|
|
.code-language.beta#python(data-code-language='python')
|
|
|
|
.code-wizard
|
|
|
|
.code-language-beta
|
|
|
|
h2 Python
|
2014-07-17 23:12:59 -04:00
|
|
|
p(data-i18n="home.python_blurb") Simple yet powerful, Python is a great general purpose programming language.
|
2014-08-30 02:09:38 -04:00
|
|
|
- var playCount = codeLanguageCountMap.python
|
|
|
|
if playCount
|
|
|
|
div.language-play-count
|
|
|
|
span.spr= playCount
|
|
|
|
span(data-i18n="resources.sessions") sessions
|
2014-06-27 13:21:38 -04:00
|
|
|
|
|
|
|
.secondary-code-languages.row
|
|
|
|
.col-md-3
|
|
|
|
.code-language.beta#coffeescript(data-code-language='coffeescript')
|
|
|
|
.code-language-logo
|
|
|
|
.code-wizard
|
|
|
|
.code-language-beta
|
|
|
|
h3 CoffeeScript
|
2014-07-17 23:12:59 -04:00
|
|
|
p(data-i18n="home.coffeescript_blurb") Nicer JavaScript syntax.
|
2014-08-30 02:09:38 -04:00
|
|
|
- var playCount = codeLanguageCountMap.coffeescript
|
|
|
|
if playCount
|
|
|
|
div.language-play-count
|
|
|
|
span.spr= playCount
|
|
|
|
span(data-i18n="resources.sessions") sessions
|
2014-06-27 13:21:38 -04:00
|
|
|
|
|
|
|
.col-md-3
|
|
|
|
.code-language.beta#clojure(data-code-language='clojure')
|
|
|
|
.code-language-logo
|
|
|
|
.code-wizard
|
|
|
|
.code-language-beta
|
|
|
|
h3 Clojure
|
2014-07-17 23:12:59 -04:00
|
|
|
p(data-i18n="home.clojure_blurb") A modern Lisp.
|
2014-08-30 02:09:38 -04:00
|
|
|
- var playCount = codeLanguageCountMap.clojure
|
|
|
|
if playCount
|
|
|
|
div.language-play-count
|
|
|
|
span.spr= playCount
|
|
|
|
span(data-i18n="resources.sessions") sessions
|
2014-06-27 13:21:38 -04:00
|
|
|
|
|
|
|
.col-md-3
|
|
|
|
.code-language.beta#lua(data-code-language='lua')
|
|
|
|
.code-language-logo
|
|
|
|
.code-wizard
|
|
|
|
.code-language-beta
|
|
|
|
h3 Lua
|
2014-07-17 23:12:59 -04:00
|
|
|
p(data-i18n="home.lua_blurb") Game scripting language.
|
2014-08-30 02:09:38 -04:00
|
|
|
- var playCount = codeLanguageCountMap.lua
|
|
|
|
if playCount
|
|
|
|
div.language-play-count
|
|
|
|
span.spr= playCount
|
|
|
|
span(data-i18n="resources.sessions") sessions
|
2014-06-27 13:21:38 -04:00
|
|
|
|
|
|
|
.col-md-3
|
|
|
|
.code-language.beta#io(data-code-language='io', title="Careful: Io is still quite buggy")
|
|
|
|
.code-language-logo
|
|
|
|
.code-wizard
|
|
|
|
.code-language-beta
|
|
|
|
h3 Io
|
2014-07-17 23:12:59 -04:00
|
|
|
p(data-i18n="home.io_blurb") Simple but obscure.
|
2014-08-30 02:09:38 -04:00
|
|
|
- var playCount = codeLanguageCountMap.io
|
|
|
|
if playCount
|
|
|
|
div.language-play-count
|
|
|
|
span.spr= playCount
|
|
|
|
span(data-i18n="resources.sessions") sessions
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-03-16 19:59:48 -04:00
|
|
|
.alert.alert-danger.lt-ie10
|
|
|
|
strong(data-i18n="home.no_ie") CodeCombat does not run in Internet Explorer 9 or older. Sorry!
|
2014-01-03 13:32:13 -05:00
|
|
|
|
|
|
|
if isMobile
|
2014-03-16 19:59:48 -04:00
|
|
|
.alert.alert-danger.mobile
|
|
|
|
strong(data-i18n="home.no_mobile") CodeCombat wasn't designed for mobile devices and may not work!
|
2014-01-03 13:32:13 -05:00
|
|
|
if isOldBrowser
|
2014-03-16 19:59:48 -04:00
|
|
|
.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.
|
2014-04-03 18:10:24 -04:00
|
|
|
|
2014-03-16 19:59:48 -04:00
|
|
|
a#beginner-campaign(href="/play/level/rescue-mission")
|
|
|
|
div.game-mode-wrapper
|
|
|
|
if isEnglish
|
|
|
|
img(src="/images/pages/home/campaign.jpg").img-rounded
|
|
|
|
else
|
|
|
|
img(src="/images/pages/home/campaign_notext.jpg").img-rounded
|
|
|
|
h3(data-i18n="home.campaign") Campaign
|
2014-03-16 23:50:49 -04:00
|
|
|
h4(data-i18n="home.for_beginners") For Beginners
|
2014-03-16 20:48:16 -04:00
|
|
|
.play-text(data-i18n="home.play") Play
|
2014-06-19 17:55:16 -04:00
|
|
|
.code-language-logo
|
2014-03-16 19:59:48 -04:00
|
|
|
|
2014-05-19 14:58:45 -04:00
|
|
|
a#multiplayer(href="/play/ladder")
|
2014-03-16 19:59:48 -04:00
|
|
|
div.game-mode-wrapper
|
|
|
|
if isEnglish
|
|
|
|
img(src="/images/pages/home/multiplayer.jpg").img-rounded
|
|
|
|
else
|
|
|
|
img(src="/images/pages/home/multiplayer_notext.jpg").img-rounded
|
|
|
|
h3(data-i18n="home.multiplayer") Multiplayer
|
2014-03-16 23:50:49 -04:00
|
|
|
h4(data-i18n="home.for_developers") For Developers
|
2014-03-16 20:48:16 -04:00
|
|
|
.play-text(data-i18n="home.play") Play
|
2014-06-19 17:55:16 -04:00
|
|
|
.code-language-logo
|
2014-03-16 19:59:48 -04:00
|
|
|
|
|
|
|
.clearfix
|