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
block content
.jumbotron.text-center
.text-center
h2 Sign in with one of these options:
a.btn.btn-lg.btn-block.btn-github.btn-social(href='/auth/github')
i.fa.fa-github

View File

@ -1,6 +1,6 @@
extends ../layout-wide
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 challengeBlock in superBlock.blocks
h4.bold #{challengeBlock.name} (#{challengeBlock.time})
@ -11,22 +11,32 @@ block content
= challenge.title
span.sr-only= " Complete"
else
p.negative-15
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 challenge.type === "bonfire"
span.text-info.small    
strong
em Required
if challenge.type === "bonfire"
p.ion-asterisk.padded-ionic-icon.negative-15(name="#{challenge.dashedName}")  
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
else
p.ion-ios-circle-outline.padded-ionic-icon.negative-15(name="#{challenge.dashedName}")  
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)
hr

View File

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

View File

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

View File

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