Merge iDEAL link for nl on home

This commit is contained in:
Nick Winter 2016-03-18 11:14:10 -07:00
commit 4a737d3045
4 changed files with 24 additions and 2 deletions

View file

@ -40,6 +40,8 @@
margin-top: 10px
#learn-to-code-header
margin-top: 80px
&#ideal-tickets-well
margin-top: 20px
@media (max-width: $screen-md-min)
margin-top: 320px

View file

@ -191,7 +191,16 @@ $forest: #20572B
background-color: white
border: 1px solid $gold
color: $gold
.btn-purple
background-color: $purple
color: white
.btn-gold-alt
background-color: white
border: 1px solid $purple
color: $purple
.btn-lg
font-size: 18px

View file

@ -140,5 +140,6 @@
img(src="/images/pages/base/logo.png" alt="CodeCombat")
br.hidden-lg.hidden-md
span.spr(data-i18n="nav.help_pref")
a(href="mailto:team@codecombat.com") team@codecombat.com
- var supportEmail = (me.get('preferredLanguage', true) || 'en-US').split('-')[0] == 'nl' ? 'klantenservice@codecombat.nl' : 'team@codecombat.com';
a(href="mailto:" + supportEmail)= supportEmail
span.spl(data-i18n="nav.help_suff")

View file

@ -21,6 +21,10 @@ block content
a.btn.btn-forest.btn-lg.btn-block(href="/courses", data-i18n="new_home.student")
.col-xs-4
a.btn.btn-gold.btn-lg.btn-block(href=view.playURL, data-i18n="new_home.play_now")
if (me.get('preferredLanguage', true) || 'en-US').split('-')[0] == 'nl'
.row
.col-xs-12
a.btn.btn-purple.btn-lg.btn-block(href="http://codecombat.nl/kopen") Koop prepaid codes (iDeal)
.well.text-center.hidden-xs.hidden-sm
h6#classroom-edition-header(data-i18n="new_home.classroom_edition")
@ -31,6 +35,12 @@ block content
h6#learn-to-code-header(data-i18n="new_home.learn_to_code")
a.btn.btn-gold.btn-lg.btn-block(href=view.playURL, data-i18n="new_home.play_now")
if (me.get('preferredLanguage', true) || 'en-US').split('-')[0] == 'nl'
.well#ideal-tickets-well.text-center.hidden-xs.hidden-sm
h6 Thuis versie:
a.btn.btn-purple.btn-lg.btn-block(href="http://codecombat.nl/kopen") Prepaid codes (iDeal)
.row#learn-more-row
.col-xs-12.text-center
a#learn-more-link