From d8d2fe694db90806a53e3068e991cd321c29469c Mon Sep 17 00:00:00 2001 From: Michael Q Larson Date: Tue, 11 Nov 2014 00:58:22 -0800 Subject: [PATCH] update h2 text on home page and possibly fix persistant challenge.js bug --- controllers/challenges.js | 8 +------- public/css/styles.less | 4 ++++ views/home.jade | 6 +++--- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/controllers/challenges.js b/controllers/challenges.js index 77d44d11024..0efad1d924a 100644 --- a/controllers/challenges.js +++ b/controllers/challenges.js @@ -12,13 +12,7 @@ exports.returnChallenge = function(req, res) { video: c.video, time: c.time, steps: c.steps, - cc: req.user.challengesCompleted - }, function(err, html) { - if(err) { - res.redirect('/'); - } else { - res.end(html); - } + cc: req.user.challengesCompleted || [] }); }); }; \ No newline at end of file diff --git a/public/css/styles.less b/public/css/styles.less index 6fa5f842db0..ae81ded0856 100644 --- a/public/css/styles.less +++ b/public/css/styles.less @@ -257,4 +257,8 @@ ul { &:hover { color: #ddd; } +} + +.big-text { + font-size: 63px; } \ No newline at end of file diff --git a/views/home.jade b/views/home.jade index 1fa897112ea..999950d43bb 100644 --- a/views/home.jade +++ b/views/home.jade @@ -3,9 +3,9 @@ block content .jumbotron .text-center .animated.pulse - h1 Become a Software Engineer + h2.big-text Learn to Code .delay-1.animated.pulse.slow-animation - h2 Learn to code by collaborating on projects for nonprofits + h2 Become an Employable Software Engineer by Collaborating on Projects for Nonprofits .row .col-xs-12.col-sm-12.col-md-4 h3.delay-3.animated.pulse Technical Mastery @@ -61,7 +61,7 @@ block content p By pair programming with other Free Code Camp students on our coding challenges. Eventually, you'll work with people at nonprofits to build real-life software solutions. h2 What is 'pair programming', and what's so special about it? ul - p Pair programming is where two people code together on one computer. You discuss different approaches to solving problems, and keep each other motivated. The result is better code than either of you could have written by yourselves. Because of its benefits, many engineers pair program full time. And it's the best way to learn coding. Thanks to tools like Screen Hero, you can pair program online without needing to be in the same room. + p Pair programming is where two people code together on one computer. You discuss different approaches to solving problems, and keep each other motivated. The result is better code than either of you could have written by yourselves. Because of its benefits, many engineers pair program full time. And it's the best way to learn coding. Thanks to tools that allow two people to share mouse and keyboard inputs, you can pair program with a friend without needing to be in the same room. h2 How long does Free Code Camp take? ul p It takes about 1,000 hours of coding to develop the skills you'll need to get an entry level software engineering job. Many in-person coding bootcamps jam all this into 12 weeks of intensive study. Free Code Camp is fully-online, and there will always be other people at your skill level that you can pair program with, so you can learn at your own pace. Here are some example coding schedules: