From 7f0be44f9814a998df6daf2805e0e40bbbd3278b Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Sun, 10 Jan 2016 00:53:46 -0600 Subject: [PATCH] additional cleanup of nonprofit directory --- client/less/main.less | 1 - server/utils/index.js | 15 +-------------- server/views/home.jade | 16 ++++++++-------- server/views/resources/nonprofits.jade | 3 ++- 4 files changed, 11 insertions(+), 24 deletions(-) diff --git a/client/less/main.less b/client/less/main.less index 86f11b3eb7..48b37e4045 100644 --- a/client/less/main.less +++ b/client/less/main.less @@ -246,7 +246,6 @@ ul { @media (min-width: 767px) { font-size: 24px; } - } .capitalize { diff --git a/server/utils/index.js b/server/utils/index.js index 0975ee3662..d830b55850 100644 --- a/server/utils/index.js +++ b/server/utils/index.js @@ -1,13 +1,11 @@ var cheerio = require('cheerio'), request = require('request'), MDNlinks = require('../../seed/bonfireMDNlinks'), - resources = require('./resources.json'), - nonprofits = require('../../seed/nonprofits.json'); + resources = require('./resources.json'); /** * Cached values */ -var allNonprofitNames; module.exports = { dasherize: function dasherize(name) { @@ -44,17 +42,6 @@ module.exports = { ]; }, - allNonprofitNames: function() { - if (allNonprofitNames) { - return allNonprofitNames; - } else { - allNonprofitNames = nonprofits.map(function(elem) { - return {name: elem.name}; - }); - return allNonprofitNames; - } - }, - whichEnvironment: function() { return process.env.NODE_ENV; }, diff --git a/server/views/home.jade b/server/views/home.jade index 9c59ed0b96..197683a041 100644 --- a/server/views/home.jade +++ b/server/views/home.jade @@ -84,17 +84,17 @@ block content .spacer hr .spacer - .col-xs-offset-0.col-sm-offset-1.text-left + .col-xs-offset-0.col-sm-offset-1.text-left.large-p h2 Here's why you should join our open source community right now: .spacer ul.large-li - li.ion-code.large-p   You'll get help in real time from our community chat rooms. - li.ion-code.large-p   You'll meet up with other coders in your city. - li.ion-code.large-p   You'll learn to code at your own pace, in your browser or on your phone. - li.ion-code.large-p   You'll work through our focused, interactive courses and tutorials. - li.ion-code.large-p   You'll learn state-of-the-art full stack JavaScript technologies. - li.ion-code.large-p   You'll build projects that help nonprofits carry out their missions more effectively. - li.ion-code.large-p   You'll assemble a portfolio of real apps used by real people. + li.ion-code   You'll get help in real time from our community chat rooms. + li.ion-code   You'll meet up with other coders in your city. + li.ion-code   You'll learn to code at your own pace, in your browser or on your phone. + li.ion-code   You'll work through our focused, interactive courses and tutorials. + li.ion-code   You'll learn state-of-the-art full stack JavaScript technologies. + li.ion-code   You'll build projects that help nonprofits carry out their missions more effectively. + li.ion-code   You'll assemble a portfolio of real apps used by real people. .big-break .row .col-xs-12.col-sm-8.col-sm-offset-2 diff --git a/server/views/resources/nonprofits.jade b/server/views/resources/nonprofits.jade index aea1345642..731c463d3e 100644 --- a/server/views/resources/nonprofits.jade +++ b/server/views/resources/nonprofits.jade @@ -59,8 +59,9 @@ block content .spacer hr .spacer - .large-p.text-left.col-xs-offset-0.col-sm-offset-1 + .col-xs-offset-0.col-sm-offset-1.text-left.large-p h2 Our developers build projects for nonprofits who: + .spacer ul.large-li li.ion-code   already have people who benefit from their services. li.ion-code   are registered with their government and have tax-exempt status.