Fleshed out tournament prizes tab.

This commit is contained in:
Nick Winter 2014-05-19 17:39:56 -07:00
parent b410d91203
commit af31bcf008
4 changed files with 611 additions and 69 deletions
app
locale
styles/play/ladder
templates/play/ladder
views/play/ladder

View file

@ -681,6 +681,27 @@
watch_victory: "Watch your victory" watch_victory: "Watch your victory"
defeat_the: "Defeat the" defeat_the: "Defeat the"
ladder_prizes:
title: "Tournament Prizes"
blurb_1: "These prizes will be awarded according to"
blurb_2: "the tournament rules"
blurb_3: "to the top human and ogre players."
blurb_4: "Two teams means double the prizes!"
blurb_5: "(There will be two first place winners, two second-place winners, etc.)"
rank: "Rank"
prizes: "Prizes"
total_value: "Total Value"
in_cash: "in cash"
custom_wizard: "Custom CodeCombat Wizard"
custom_avatar: "Custom CodeCombat avatar"
heap: "span for six months of \"Startup\" access"
credits: "credits"
one_month_coupon: "coupon: choose either Rails or HTML"
one_month_discount: "discount, 30% off: choose either Rails or HTML"
license: "license"
oreilly: "ebook of your choice"
multiplayer_launch: multiplayer_launch:
introducing_dungeon_arena: "Introducing Dungeon Arena" introducing_dungeon_arena: "Introducing Dungeon Arena"
new_way: "The new way to compete with code." new_way: "The new way to compete with code."

View file

@ -76,12 +76,33 @@
#prize_table #prize_table
width: 960px width: 960px
font-weight: bold
#prize_table td thead
width: 200px font-size: 24px
vertical-align: top
tbody
tr:not(:first-child)
border-top: 10px solid #ddd
td
vertical-align: middle
&:nth-child(1), &:nth-child(3)
text-align: center
font-size: 24px
li
list-style: none
&:not(:last-child)
margin-bottom: 10px
border-bottom: 1px solid #ddd
img
margin-right: 10px
@media only screen and (max-width: 800px) @media only screen and (max-width: 800px)
#ladder-view #ladder-view
#level-column img #level-column img
width: 100% width: 100%

View file

@ -45,72 +45,570 @@ block content
.tab-pane.well#simulate .tab-pane.well#simulate
#simulate-tab-view #simulate-tab-view
.tab-pane.well#prizes .tab-pane.well#prizes
h1(data-i18n="ladder.prizes_remember_to_add_i18n_tags") Tournament Prizes h1(data-i18n="ladder_prizes.title") Tournament Prizes
p(data-i18n="ladder.prizes_but_this_is_just_placeholder") Want to know what you can expect to receive for competing in our challenge? Look no farther! p
span(data-i18n="ladder_prizes.blurb_1") These prizes will be awarded according to
|
a(href="#rules", data-i18n="ladder_prizes.blurb_2") the tournament rules
|
span(data-i18n="ladder_prizes.blurb_3") to the top human and ogre players.
|
strong(data-i18n="ladder_prizes.blurb_4") Two teams means double the prizes!
|
span(data-i18n="ladder_prizes.blurb_5") (There will be two first place winners, two second-place winners, etc.)
- var base = "/images/pages/play/ladder/prize_";
table#prize_table.table table#prize_table.table
tr thead
td Rank tr
td Prizes td(data-i18n="ladder_prizes.rank") Rank
td Value td(data-i18n="ladder_prizes.prizes") Prizes
tr td(data-i18n="ladder_prizes.total_value") Total Value
td 1st tbody
td tr
ul td 1st
li $512 in cash td
li Custom CodeCombat Wizard ul.list-unstyled
li Custom CodeCombat Avatar li
li Free One Month Coupon (choose either Rails or HTML) img(src=base + "cash1.png")
li 6 Months of "Startup" access on Heap Analytics span $512
li 1 Webstorm IDE License span(data-i18n="ladder_prizes.in_cash") in cash
li $300 in FireBase credits li
td $2,054 img(src=base + "custom_wizard.png")
tr span(data-i18n="ladder_prizes.custom_wizard") Custom CodeCombat Wizard
td 2nd li
td img(src=base + "custom_avatar.png")
ul span(data-i18n="ladder_prizes.custom_avatar") Custom CodeCombat avatar
li $256 in cash li
li Custom CodeCombat Avatar img(src=base + "heap.png")
li 30% off any One Month course span
li 6 Months of "Startup" access on Heap Analytics a(href="https://heapanalytics.com/") Heap Analytics
li 1 Webstorm IDE License |
li $300 in FireBase credits span(data-i18n="ladder_prizes.heap") span for six months of "Startup" access
td $2,000 | - $354
tr li
td 3rd img(src=base + "firebase.png")
td more stuff span
td $2,000 a(href="https://www.firebase.com/") Firebase
tr |
td 4th span(data-i18n="ladder_prizes.credits") credits
td more stuff | - $300
td $2,000 li
tr img(src=base + "one_month.png")
td 5th span
td more stuff a(href="https://onemonthrails.com/") One Month Rails
td $2,000 |
tr span(data-i18n="ladder_prizes.one_month_coupon") coupon: choose either Rails or HTML
td 6th | - $99
td more stuff li
td $2,000 img(src=base + "webstorm.png")
tr span
td 7th a(href="http://www.jetbrains.com/webstorm/") Webstorm
td more stuff |
td $2,000 span(data-i18n="ladder_prizes.license") license
tr | - $49
td 8th li
td more stuff img(src=base + "oreilly.png")
td $2,000 span
tr a(href="http://shop.oreilly.com/category/ebooks.do") O'Reilly
td 9th |
td more stuff span(data-i18n="ladder_prizes.oreilly") ebook of your choice
td $2,000 | - $40
tr li
td 10th img(src=base + "aws.png")
td more stuff span
td $2,000 a(href="http://aws.amazon.com/") Amazon Web Services
tr |
td 11 - 40 span(data-i18n="ladder_prizes.credits") credits
td more stuff | - $50
td $2,000 td $2054
tr
td 2nd
td
ul.list-unstyled
li
img(src=base + "cash2.png")
span $256
span(data-i18n="ladder_prizes.in_cash") in cash
li
img(src=base + "custom_avatar.png")
span(data-i18n="ladder_prizes.custom_avatar") Custom CodeCombat avatar
li
img(src=base + "heap.png")
span
a(href="https://heapanalytics.com/") Heap Analytics
|
span(data-i18n="ladder_prizes.heap") span for six months of "Startup" access
| - $354
li
img(src=base + "firebase.png")
span
a(href="https://www.firebase.com/") Firebase
|
span(data-i18n="ladder_prizes.credits") credits
| - $300
li
img(src=base + "one_month.png")
span
a(href="https://onemonthrails.com/") One Month Rails
|
span(data-i18n="ladder_prizes.one_month_discount") discount, 30% off: choose either Rails or HTML
| - $30
li
img(src=base + "webstorm.png")
span
a(href="http://www.jetbrains.com/webstorm/") Webstorm
|
span(data-i18n="ladder_prizes.license") license
| - $49
li
img(src=base + "oreilly.png")
span
a(href="http://shop.oreilly.com/category/ebooks.do") O'Reilly
|
span(data-i18n="ladder_prizes.oreilly") ebook of your choice
| - $40
li
img(src=base + "aws.png")
span
a(href="http://aws.amazon.com/") Amazon Web Services
|
span(data-i18n="ladder_prizes.credits") credits
| - $50
td $1229
tr
td 3rd
td
ul.list-unstyled
li
img(src=base + "cash2.png")
span $128
span(data-i18n="ladder_prizes.in_cash") in cash
li
img(src=base + "custom_avatar.png")
span(data-i18n="ladder_prizes.custom_avatar") Custom CodeCombat avatar
li
img(src=base + "heap.png")
span
a(href="https://heapanalytics.com/") Heap Analytics
|
span(data-i18n="ladder_prizes.heap") span for six months of "Startup" access
| - $354
li
img(src=base + "firebase.png")
span
a(href="https://www.firebase.com/") Firebase
|
span(data-i18n="ladder_prizes.credits") credits
| - $300
li
img(src=base + "one_month.png")
span
a(href="https://onemonthrails.com/") One Month Rails
|
span(data-i18n="ladder_prizes.one_month_discount") discount, 30% off: choose either Rails or HTML
| - $30
li
img(src=base + "webstorm.png")
span
a(href="http://www.jetbrains.com/webstorm/") Webstorm
|
span(data-i18n="ladder_prizes.license") license
| - $49
li
img(src=base + "oreilly.png")
span
a(href="http://shop.oreilly.com/category/ebooks.do") O'Reilly
|
span(data-i18n="ladder_prizes.oreilly") ebook of your choice
| - $40
li
img(src=base + "aws.png")
span
a(href="http://aws.amazon.com/") Amazon Web Services
|
span(data-i18n="ladder_prizes.credits") credits
| - $50
td $1101
tr
td 4th
td
ul.list-unstyled
li
img(src=base + "cash3.png")
span $64
span(data-i18n="ladder_prizes.in_cash") in cash
li
img(src=base + "heap.png")
span
a(href="https://heapanalytics.com/") Heap Analytics
|
span(data-i18n="ladder_prizes.heap") span for six months of "Startup" access
| - $354
li
img(src=base + "firebase.png")
span
a(href="https://www.firebase.com/") Firebase
|
span(data-i18n="ladder_prizes.credits") credits
| - $300
li
img(src=base + "one_month.png")
span
a(href="https://onemonthrails.com/") One Month Rails
|
span(data-i18n="ladder_prizes.one_month_discount") discount, 30% off: choose either Rails or HTML
| - $30
li
img(src=base + "webstorm.png")
span
a(href="http://www.jetbrains.com/webstorm/") Webstorm
|
span(data-i18n="ladder_prizes.license") license
| - $49
li
img(src=base + "oreilly.png")
span
a(href="http://shop.oreilly.com/category/ebooks.do") O'Reilly
|
span(data-i18n="ladder_prizes.oreilly") ebook of your choice
| - $40
li
img(src=base + "aws.png")
span
a(href="http://aws.amazon.com/") Amazon Web Services
|
span(data-i18n="ladder_prizes.credits") credits
| - $50
td $887
tr
td 5th
td
ul.list-unstyled
li
img(src=base + "cash3.png")
span $32
span(data-i18n="ladder_prizes.in_cash") in cash
li
img(src=base + "heap.png")
span
a(href="https://heapanalytics.com/") Heap Analytics
|
span(data-i18n="ladder_prizes.heap") span for six months of "Startup" access
| - $354
li
img(src=base + "firebase.png")
span
a(href="https://www.firebase.com/") Firebase
|
span(data-i18n="ladder_prizes.credits") credits
| - $300
li
img(src=base + "one_month.png")
span
a(href="https://onemonthrails.com/") One Month Rails
|
span(data-i18n="ladder_prizes.one_month_discount") discount, 30% off: choose either Rails or HTML
| - $30
li
img(src=base + "webstorm.png")
span
a(href="http://www.jetbrains.com/webstorm/") Webstorm
|
span(data-i18n="ladder_prizes.license") license
| - $49
li
img(src=base + "oreilly.png")
span
a(href="http://shop.oreilly.com/category/ebooks.do") O'Reilly
|
span(data-i18n="ladder_prizes.oreilly") ebook of your choice
| - $40
li
img(src=base + "aws.png")
span
a(href="http://aws.amazon.com/") Amazon Web Services
|
span(data-i18n="ladder_prizes.credits") credits
| - $50
td $855
tr
td 6th
td
ul.list-unstyled
li
img(src=base + "cash3.png")
span $16
span(data-i18n="ladder_prizes.in_cash") in cash
li
img(src=base + "firebase.png")
span
a(href="https://www.firebase.com/") Firebase
|
span(data-i18n="ladder_prizes.credits") credits
| - $300
li
img(src=base + "one_month.png")
span
a(href="https://onemonthrails.com/") One Month Rails
|
span(data-i18n="ladder_prizes.one_month_discount") discount, 30% off: choose either Rails or HTML
| - $30
li
img(src=base + "webstorm.png")
span
a(href="http://www.jetbrains.com/webstorm/") Webstorm
|
span(data-i18n="ladder_prizes.license") license
| - $49
li
img(src=base + "oreilly.png")
span
a(href="http://shop.oreilly.com/category/ebooks.do") O'Reilly
|
span(data-i18n="ladder_prizes.oreilly") ebook of your choice
| - $40
li
img(src=base + "aws.png")
span
a(href="http://aws.amazon.com/") Amazon Web Services
|
span(data-i18n="ladder_prizes.credits") credits
| - $50
td $485
tr
td 7th
td
ul.list-unstyled
li
img(src=base + "cash3.png")
span $8
span(data-i18n="ladder_prizes.in_cash") in cash
li
img(src=base + "firebase.png")
span
a(href="https://www.firebase.com/") Firebase
|
span(data-i18n="ladder_prizes.credits") credits
| - $300
li
img(src=base + "one_month.png")
span
a(href="https://onemonthrails.com/") One Month Rails
|
span(data-i18n="ladder_prizes.one_month_discount") discount, 30% off: choose either Rails or HTML
| - $30
li
img(src=base + "webstorm.png")
span
a(href="http://www.jetbrains.com/webstorm/") Webstorm
|
span(data-i18n="ladder_prizes.license") license
| - $49
li
img(src=base + "oreilly.png")
span
a(href="http://shop.oreilly.com/category/ebooks.do") O'Reilly
|
span(data-i18n="ladder_prizes.oreilly") ebook of your choice
| - $40
li
img(src=base + "aws.png")
span
a(href="http://aws.amazon.com/") Amazon Web Services
|
span(data-i18n="ladder_prizes.credits") credits
| - $50
td $477
tr
td 8th
td
ul.list-unstyled
li
img(src=base + "cash3.png")
span $4
span(data-i18n="ladder_prizes.in_cash") in cash
li
img(src=base + "firebase.png")
span
a(href="https://www.firebase.com/") Firebase
|
span(data-i18n="ladder_prizes.credits") credits
| - $300
li
img(src=base + "one_month.png")
span
a(href="https://onemonthrails.com/") One Month Rails
|
span(data-i18n="ladder_prizes.one_month_discount") discount, 30% off: choose either Rails or HTML
| - $30
li
img(src=base + "webstorm.png")
span
a(href="http://www.jetbrains.com/webstorm/") Webstorm
|
span(data-i18n="ladder_prizes.license") license
| - $49
li
img(src=base + "oreilly.png")
span
a(href="http://shop.oreilly.com/category/ebooks.do") O'Reilly
|
span(data-i18n="ladder_prizes.oreilly") ebook of your choice
| - $40
li
img(src=base + "aws.png")
span
a(href="http://aws.amazon.com/") Amazon Web Services
|
span(data-i18n="ladder_prizes.credits") credits
| - $50
td $473
tr
td 9th
td
ul.list-unstyled
li
img(src=base + "cash3.png")
span $2
span(data-i18n="ladder_prizes.in_cash") in cash
li
img(src=base + "firebase.png")
span
a(href="https://www.firebase.com/") Firebase
|
span(data-i18n="ladder_prizes.credits") credits
| - $300
li
img(src=base + "one_month.png")
span
a(href="https://onemonthrails.com/") One Month Rails
|
span(data-i18n="ladder_prizes.one_month_discount") discount, 30% off: choose either Rails or HTML
| - $30
li
img(src=base + "webstorm.png")
span
a(href="http://www.jetbrains.com/webstorm/") Webstorm
|
span(data-i18n="ladder_prizes.license") license
| - $49
li
img(src=base + "oreilly.png")
span
a(href="http://shop.oreilly.com/category/ebooks.do") O'Reilly
|
span(data-i18n="ladder_prizes.oreilly") ebook of your choice
| - $40
li
img(src=base + "aws.png")
span
a(href="http://aws.amazon.com/") Amazon Web Services
|
span(data-i18n="ladder_prizes.credits") credits
| - $50
td $471
tr
td 10th
td
ul.list-unstyled
li
img(src=base + "cash3.png")
span $1
span(data-i18n="ladder_prizes.in_cash") in cash
li
img(src=base + "firebase.png")
span
a(href="https://www.firebase.com/") Firebase
|
span(data-i18n="ladder_prizes.credits") credits
| - $300
li
img(src=base + "one_month.png")
span
a(href="https://onemonthrails.com/") One Month Rails
|
span(data-i18n="ladder_prizes.one_month_discount") discount, 30% off: choose either Rails or HTML
| - $30
li
img(src=base + "webstorm.png")
span
a(href="http://www.jetbrains.com/webstorm/") Webstorm
|
span(data-i18n="ladder_prizes.license") license
| - $49
li
img(src=base + "oreilly.png")
span
a(href="http://shop.oreilly.com/category/ebooks.do") O'Reilly
|
span(data-i18n="ladder_prizes.oreilly") ebook of your choice
| - $40
li
img(src=base + "aws.png")
span
a(href="http://aws.amazon.com/") Amazon Web Services
|
span(data-i18n="ladder_prizes.credits") credits
| - $50
td $470
tr
td 11 - 40
td
ul.list-unstyled
li
img(src=base + "webstorm.png")
span
a(href="http://www.jetbrains.com/webstorm/") Webstorm
|
span(data-i18n="ladder_prizes.license") license
| - $49
li
img(src=base + "oreilly.png")
span
a(href="http://shop.oreilly.com/category/ebooks.do") O'Reilly
|
span(data-i18n="ladder_prizes.oreilly") ebook of your choice
| - $40
li
img(src=base + "aws.png")
span
a(href="http://aws.amazon.com/") Amazon Web Services
|
span(data-i18n="ladder_prizes.credits") credits
| - $50
td $139
tr
td 41 - 100
td
ul.list-unstyled
li
img(src=base + "oreilly.png")
span
a(href="http://shop.oreilly.com/category/ebooks.do") O'Reilly
|
span(data-i18n="ladder_prizes.oreilly") ebook of your choice
| - $40
li
img(src=base + "aws.png")
span
a(href="http://aws.amazon.com/") Amazon Web Services
|
span(data-i18n="ladder_prizes.credits") credits
| - $50
td $90
tr
td 101+
td
ul.list-unstyled
li
img(src=base + "aws.png")
span
a(href="http://aws.amazon.com/") Amazon Web Services
|
span(data-i18n="ladder_prizes.credits") credits
| - $50
td $50
.tab-pane.well#rules .tab-pane.well#rules
h1(data-i18n="ladder.rules_remember_to_add_i18n_tags") Tournament Rules h1(data-i18n="ladder.rules_remember_to_add_i18n_tags") Tournament Rules

View file

@ -100,6 +100,8 @@ module.exports = class LadderView extends RootView
e.stopPropagation() e.stopPropagation()
e.preventDefault() e.preventDefault()
@showApologeticSignupModal() @showApologeticSignupModal()
if link and /#rules$/.test link
@$el.find('a[href="#rules"]').tab('show')
destroy: -> destroy: ->
clearInterval @refreshInterval clearInterval @refreshInterval