further build up challengemap

This commit is contained in:
Quincy Larson
2016-01-11 18:25:20 -06:00
committed by Berkeley Martinez
parent f410a94b54
commit c36b8352d2
5 changed files with 36 additions and 25 deletions

View File

@@ -1,6 +1,6 @@
extends ../layout extends ../layout
block content block content
.jumbotron.text-center .text-center
h2 Sign in with one of these options: h2 Sign in with one of these options:
a.btn.btn-lg.btn-block.btn-github.btn-social(href='/auth/github') a.btn.btn-lg.btn-block.btn-github.btn-social(href='/auth/github')
i.fa.fa-github i.fa.fa-github

View File

@@ -1,6 +1,6 @@
extends ../layout-wide extends ../layout-wide
block content block content
.col-xs-12.col-sm-3.col-sm-offset-9 .col-xs-12.col-sm-4.col-sm-offset-8
for superBlock, index in superBlocks for superBlock, index in superBlocks
for challengeBlock in superBlock.blocks for challengeBlock in superBlock.blocks
h4.bold #{challengeBlock.name} (#{challengeBlock.time}) h4.bold #{challengeBlock.name} (#{challengeBlock.time})
@@ -11,22 +11,32 @@ block content
= challenge.title = challenge.title
span.sr-only= " Complete" span.sr-only= " Complete"
else else
p.negative-15 if challenge.type === "bonfire"
a(name="#{challenge.dashedName}" href="/challenges/#{challenge.dashedName}" class=challenge.isComingSoon ? 'disabled' : '') p.ion-asterisk.padded-ionic-icon.negative-15(name="#{challenge.dashedName}")  
span= challenge.title a(name="#{challenge.dashedName}" href="/challenges/#{challenge.dashedName}" class=challenge.isComingSoon ? 'disabled' : '')
span.sr-only= " Incomplete" span= challenge.title
if challenge.markNew span.sr-only= " Incomplete"
span.text-success.small     if challenge.markNew
strong span.text-success.small    
em New strong
if challengeBlock.isComingSoon em New
span.text-success.small     if challengeBlock.isComingSoon
strong span.text-success.small    
em Coming Soon strong
if challenge.type === "bonfire" em Coming Soon
span.text-info.small     else
strong p.ion-ios-circle-outline.padded-ionic-icon.negative-15(name="#{challenge.dashedName}")  
em Required a(name="#{challenge.dashedName}" href="/challenges/#{challenge.dashedName}" class=challenge.isComingSoon ? 'disabled' : '')
span= challenge.title
span.sr-only= " Incomplete"
if challenge.markNew
span.text-success.small    
strong
em New
if challengeBlock.isComingSoon
span.text-success.small    
strong
em Coming Soon
if (index < superBlocks.length) if (index < superBlocks.length)
hr hr

View File

@@ -23,13 +23,12 @@ block content
else else
p.wrappable.negative-10!= sentence p.wrappable.negative-10!= sentence
if (MDNlinks.length) if (MDNlinks.length)
.negative-30-bottom #MDN-links
#MDN-links p.negative-10 Here are some helpful links:
p.negative-10 Here are some helpful links: for link, index in MDNlinks
for link, index in MDNlinks .negative-10
.negative-10 ul: li: a(href=""+link, target="_blank") !{MDNkeys[index]}
ul: li: a(href=""+link, target="_blank") !{MDNkeys[index]} .button-spacer
if (user) if (user)
label.negative-10.btn.btn-primary.btn-block.btn-lg#submitButton label.negative-10.btn.btn-primary.btn-block.btn-lg#submitButton
i.fa.fa-play i.fa.fa-play

View File

@@ -19,6 +19,7 @@ block content
for sentence in details for sentence in details
p.wrappable.negative-10!= sentence p.wrappable.negative-10!= sentence
.negative-bottom-margin-30 .negative-bottom-margin-30
.button-spacer
label.negative-10.btn.btn-primary.btn-lg.btn-block#submitButton label.negative-10.btn.btn-primary.btn-lg.btn-block#submitButton
i.fa.fa-play i.fa.fa-play
| &nbsp; Run tests (ctrl + enter) | &nbsp; Run tests (ctrl + enter)

View File

@@ -29,6 +29,7 @@ block content
for link, index in MDNlinks for link, index in MDNlinks
.negative-10 .negative-10
ul: li: a(href="" + link, target="_blank") !{MDNkeys[index]} ul: li: a(href="" + link, target="_blank") !{MDNkeys[index]}
.button-spacer
if (user) if (user)
form.form-horizontal(novalidate='novalidate', name='completedWithForm') form.form-horizontal(novalidate='novalidate', name='completedWithForm')
.form-group.text-center.negative-10 .form-group.text-center.negative-10