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) { basejumps = coursewareList.filter(function(challenge) {
if (challenge.challengeType === 4) { return challenge } if (challenge.challengeType === 4) { return challenge }
}); });
console.log('completed', completedCoursewareList);
console.log('waypoints', waypoints);
res.render('challengeMap/show', { res.render('challengeMap/show', {
title: "A map of all Free Code Camp's Challenges", title: "A map of all Free Code Camp's Challenges",

View File

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

View File

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