start shrinking down the views.

pull/936/head
Quincy Larson 2015-06-06 22:51:39 -07:00
parent 7cfca0b5f8
commit feb0678a46
3 changed files with 13 additions and 24 deletions

View File

@ -200,8 +200,7 @@ exports.returnIndividualChallenge = function(req, res, next) {
title: challenge.name,
dashedName: dashedName,
name: challenge.name,
brief: challenge.description[0],
details: challenge.description.slice(1),
details: challenge.description,
tests: challenge.tests,
challengeSeed: challenge.challengeSeed,
verb: resources.randomVerb(),
@ -218,8 +217,7 @@ exports.returnIndividualChallenge = function(req, res, next) {
title: challenge.name,
dashedName: dashedName,
name: challenge.name,
brief: challenge.description[0],
details: challenge.description.slice(1),
details: challenge.description,
tests: challenge.tests,
challengeSeed: challenge.challengeSeed,
verb: resources.randomVerb(),
@ -283,7 +281,6 @@ exports.returnIndividualChallenge = function(req, res, next) {
dashedName: dashedName,
name: challenge.name,
difficulty: Math.floor(+challenge.difficulty),
brief: challenge.description.shift(),
details: challenge.description,
tests: challenge.tests,
challengeSeed: challenge.challengeSeed,

View File

@ -251,6 +251,10 @@ ul {
margin-top: -20px;
}
.negative-bottom-margin-30 {
margin-bottom: -30px;
}
.large-p {
font-size: 18px;
}

View File

@ -25,26 +25,14 @@ block content
.well
.row
.col-xs-12
h2.text-center= name
h4.text-center.negative-10= name
.bonfire-instructions
p.wrappable!= brief
#brief-instructions
#more-info.btn.btn-primary.btn-block.btn-primary-ghost
span.ion-arrow-down-b
| More information
#long-instructions.row.hide
.col-xs-12
for sentence in details
p.wrappable!= sentence
#less-info.btn.btn-primary.btn-block.btn-primary-ghost
span.ion-arrow-up-b
| Less information
br
for sentence in details
p.wrappable.!= sentence
.negative-bottom-margin-30
if (user)
a.btn.btn-primary.btn-big.btn-block#next-courseware-button
| Go to my next challenge
br
| (ctrl + enter)
a.btn.btn-primary.btn-sm.btn-block.negative-10#next-courseware-button Go to my next challenge (ctrl + enter)
if (user.sentSlackInvite)
.button-spacer
.btn-group.input-group.btn-group-justified
@ -58,7 +46,7 @@ block content
script.
var userLoggedIn = true;
else
a.btn.btn-lg.signup-btn.btn-block(href='/login') Sign in so you can save your progress
a.btn.signup-btn.btn-block.btn-sm.btn-block.negative-15(href='/login') Sign in so you can save your progress
script.
var userLoggedIn = false;
.button-spacer