more improvements to look of challengeMap

This commit is contained in:
Michael Q Larson
2015-04-03 20:50:27 -07:00
parent fbeff58477
commit c9b4a90f57
3 changed files with 59 additions and 38 deletions

View File

@ -53,8 +53,6 @@ module.exports = {
basejumps = coursewareList.filter(function(challenge) {
if (challenge.challengeType === 4) { return challenge }
});
console.log('completed', completedCoursewareList);
console.log('waypoints', waypoints);
res.render('challengeMap/show', {
title: "A map of all Free Code Camp's Challenges",

View File

@ -894,6 +894,11 @@ iframe.iphone {
padding: 5px;
}
.svg-challenge-map {
fill: #333;
height: 40px;
}
//uncomment this to see the dimensions of all elements outlined in red
//* {
// border-color: red;

View File

@ -5,8 +5,14 @@ block content
.panel-heading.text-center
h1 Challenge Map
.panel-body
h3 Waypoints
ol.col-md-offset-2
.col-md-offset-2
h2
span.fa.fa-flag
|   Waypoints
.col-xs-12
h3.negative-15
ol
for waypoint in waypoints
if completedCoursewareList.indexOf(waypoint._id) > -1
li.strikethrough
@ -14,8 +20,12 @@ block content
else
li
a(href="/challenges/#{waypoint.name}")= waypoint.name
h3 Bonfires
ol.col-md-offset-2
h2
span.ion-bonfire
|   Bonfires
.col-xs-12
h3.negative-15
ol
for bonfire in bonfires
if completedBonfireList.indexOf(bonfire._id) > -1
li.strikethrough
@ -23,8 +33,12 @@ block content
else
li
a(href="/bonfires/#{bonfire.name}")= bonfire.name
h3 Ziplines
ol.col-md-offset-2
h2
span.fa.fa-angle-double-right
|   Ziplines
.col-xs-12
h3.negative-15
ol
for zipline in ziplines
if completedCoursewareList.indexOf(zipline._id) > -1
li.strikethrough
@ -32,8 +46,12 @@ block content
else
li
a(href="/challenges/#{zipline.name}")= zipline.name
h3 Basejumps
ol.col-md-offset-2
h2
span.fa.fa-level-down
|   Basejumps
.col-xs-12
h3.negative-15
ol
for basejump in basejumps
if completedCoursewareList.indexOf(basejump._id) > -1
li.strikethrough