half way done with the initial views and controllers
This commit is contained in:
5
app.js
5
app.js
@ -27,10 +27,12 @@ var express = require('express'),
|
|||||||
* Controllers (route handlers).
|
* Controllers (route handlers).
|
||||||
*/
|
*/
|
||||||
homeController = require('./controllers/home'),
|
homeController = require('./controllers/home'),
|
||||||
challengesController = require('./controllers/challenges'),
|
|
||||||
resourcesController = require('./controllers/resources'),
|
resourcesController = require('./controllers/resources'),
|
||||||
userController = require('./controllers/user'),
|
userController = require('./controllers/user'),
|
||||||
contactController = require('./controllers/contact'),
|
contactController = require('./controllers/contact'),
|
||||||
|
ziplineController = require('./controllers/ziplines'),
|
||||||
|
basejumpController = require('./controllers/basejumps'),
|
||||||
|
nonprofitController = require('./controllers/nonprofits'),
|
||||||
bonfireController = require('./controllers/bonfire'),
|
bonfireController = require('./controllers/bonfire'),
|
||||||
coursewareController = require('./controllers/courseware'),
|
coursewareController = require('./controllers/courseware'),
|
||||||
|
|
||||||
@ -264,6 +266,7 @@ app.post('/email-signup', userController.postEmailSignup);
|
|||||||
app.post('/email-signin', userController.postSignin);
|
app.post('/email-signin', userController.postSignin);
|
||||||
app.get('/nonprofits', contactController.getNonprofitsForm);
|
app.get('/nonprofits', contactController.getNonprofitsForm);
|
||||||
app.post('/nonprofits', contactController.postNonprofitsForm);
|
app.post('/nonprofits', contactController.postNonprofitsForm);
|
||||||
|
app.get('/nonprofits/home', nonprofitController.nonprofitsHome);
|
||||||
|
|
||||||
app.get(
|
app.get(
|
||||||
'/done-with-first-100-hours',
|
'/done-with-first-100-hours',
|
||||||
|
21
controllers/basejumps.js
Normal file
21
controllers/basejumps.js
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
var async = require('async'),
|
||||||
|
User = require('../models/User'),
|
||||||
|
Challenge = require('./../models/Challenge'),
|
||||||
|
Bonfire = require('./../models/Bonfire'),
|
||||||
|
Story = require('./../models/Story'),
|
||||||
|
Comment = require('./../models/Comment'),
|
||||||
|
resources = require('./resources.json'),
|
||||||
|
steps = resources.steps,
|
||||||
|
secrets = require('./../config/secrets'),
|
||||||
|
moment = require('moment'),
|
||||||
|
https = require('https'),
|
||||||
|
debug = require('debug')('freecc:cntr:resources'),
|
||||||
|
cheerio = require('cheerio'),
|
||||||
|
request = require('request'),
|
||||||
|
R = require('ramda');
|
||||||
|
|
||||||
|
nonprofitHome: function nonprofitHome(req, res) {
|
||||||
|
res.render('nonprofits/home', {
|
||||||
|
title: 'A guide to our Nonprofit Projects'
|
||||||
|
});
|
||||||
|
}
|
21
controllers/nonprofits.js
Normal file
21
controllers/nonprofits.js
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
var async = require('async'),
|
||||||
|
User = require('../models/User'),
|
||||||
|
Challenge = require('./../models/Challenge'),
|
||||||
|
Bonfire = require('./../models/Bonfire'),
|
||||||
|
Story = require('./../models/Story'),
|
||||||
|
Comment = require('./../models/Comment'),
|
||||||
|
resources = require('./resources.json'),
|
||||||
|
steps = resources.steps,
|
||||||
|
secrets = require('./../config/secrets'),
|
||||||
|
moment = require('moment'),
|
||||||
|
https = require('https'),
|
||||||
|
debug = require('debug')('freecc:cntr:resources'),
|
||||||
|
cheerio = require('cheerio'),
|
||||||
|
request = require('request'),
|
||||||
|
R = require('ramda');
|
||||||
|
|
||||||
|
exports.nonprofitsHome = function(req, res) {
|
||||||
|
res.render('nonprofits/home', {
|
||||||
|
title: 'A guide to our Nonprofit Projects'
|
||||||
|
});
|
||||||
|
};
|
21
controllers/ziplines.js
Normal file
21
controllers/ziplines.js
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
var async = require('async'),
|
||||||
|
User = require('../models/User'),
|
||||||
|
Challenge = require('./../models/Challenge'),
|
||||||
|
Bonfire = require('./../models/Bonfire'),
|
||||||
|
Story = require('./../models/Story'),
|
||||||
|
Comment = require('./../models/Comment'),
|
||||||
|
resources = require('./resources.json'),
|
||||||
|
steps = resources.steps,
|
||||||
|
secrets = require('./../config/secrets'),
|
||||||
|
moment = require('moment'),
|
||||||
|
https = require('https'),
|
||||||
|
debug = require('debug')('freecc:cntr:resources'),
|
||||||
|
cheerio = require('cheerio'),
|
||||||
|
request = require('request'),
|
||||||
|
R = require('ramda');
|
||||||
|
|
||||||
|
nonprofitHome: function nonprofitHome(req, res) {
|
||||||
|
res.render('nonprofits/home', {
|
||||||
|
title: 'A guide to our Nonprofit Projects'
|
||||||
|
});
|
||||||
|
}
|
@ -335,6 +335,10 @@ ul {
|
|||||||
margin-bottom: -10px;
|
margin-bottom: -10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nonprofit-landing {
|
||||||
|
font-size: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
.big-text {
|
.big-text {
|
||||||
font-size: 63px;
|
font-size: 63px;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ block content
|
|||||||
a.btn.btn-cta.signup-btn(href="/login") Start learning to code (it's free)
|
a.btn.btn-cta.signup-btn(href="/login") Start learning to code (it's free)
|
||||||
br
|
br
|
||||||
br
|
br
|
||||||
a.btn.nonprofit-cta.btn-success(href="/nonprofits") I'm with a nonprofit and want help coding something
|
a.btn.nonprofit-cta.btn-success(href="/nonprofits") Get pro bono help for my nonprofit
|
||||||
.big-break
|
.big-break
|
||||||
h2 Campers you'll hang out with:
|
h2 Campers you'll hang out with:
|
||||||
.row
|
.row
|
||||||
|
@ -1,30 +1,10 @@
|
|||||||
extends layout
|
extends ../layout
|
||||||
block content
|
block content
|
||||||
.jumbotron
|
.jumbotron
|
||||||
.text-center
|
.text-center
|
||||||
h1.hug-top We code for a cause
|
h2.nonprofit-landing.hug-top We'll code for your nonprofit, pro bono
|
||||||
h2 We'll code software solutions for your nonprofit, for free!
|
|
||||||
.row
|
|
||||||
.col-xs-12.col-sm-12.col-md-3
|
|
||||||
h3.nowrap Get Connected
|
|
||||||
img.img-responsive.landing-icon.img-center(src= 'https://s3.amazonaws.com/freecodecamp/landingIcons_connect.svg.gz', title='Get great references and connections to help you get a job')
|
|
||||||
p.landing-p Join a community of busy, motivated professionals.
|
|
||||||
.col-xs-12.col-sm-12.col-md-3
|
|
||||||
h3.nowrap Learn JavaScript
|
|
||||||
img.img-responsive.landing-icon.img-center(src= 'https://s3.amazonaws.com/freecodecamp/landingIcons_learn.svg.gz', title='Learn to code')
|
|
||||||
p.landing-p Work together on Full Stack JavaScript coding challenges.
|
|
||||||
.col-xs-12.col-sm-12.col-md-3
|
|
||||||
h3.nowrap Build your Portfolio
|
|
||||||
img.img-responsive.landing-icon.img-center(src= 'https://s3.amazonaws.com/freecodecamp/landingIcons_portfolio.svg.gz', title='Build a portfolio of apps for nonprofits')
|
|
||||||
p.landing-p Build apps that solve real problems for real people.
|
|
||||||
.col-xs-12.col-sm-12.col-md-3
|
|
||||||
h3.nowrap Help Nonprofits
|
|
||||||
img.img-responsive.landing-icon.img-center(src= 'https://s3.amazonaws.com/freecodecamp/landingIcons_nonprofits.svg.gz', title='Help nonprofits')
|
|
||||||
p.landing-p Give nonprofits a boost by empowering them with code.
|
|
||||||
.big-break
|
.big-break
|
||||||
a.btn.btn-cta.signup-btn(href="/with-a-nonprofit") I'm with a nonprofit and want help coding something
|
h2 Some of our success stories
|
||||||
.big-break
|
|
||||||
h2 Nonprofits we've helped
|
|
||||||
.row
|
.row
|
||||||
.col-xs-12.col-sm-12.col-md-4
|
.col-xs-12.col-sm-12.col-md-4
|
||||||
img.img-responsive.testimonial-image.img-center(src="https://s3.amazonaws.com/freecodecamp/testimonial-jen.jpg", alt="@jenthebest's testimonial image")
|
img.img-responsive.testimonial-image.img-center(src="https://s3.amazonaws.com/freecodecamp/testimonial-jen.jpg", alt="@jenthebest's testimonial image")
|
||||||
@ -39,6 +19,23 @@ block content
|
|||||||
.testimonial-copy I'm currently working through Free Code Camp to improve my JavaScript. The community is very welcoming!
|
.testimonial-copy I'm currently working through Free Code Camp to improve my JavaScript. The community is very welcoming!
|
||||||
h3 - @cynthialanel
|
h3 - @cynthialanel
|
||||||
.big-break
|
.big-break
|
||||||
|
a.btn.btn-cta.signup-btn(href="/with-a-nonprofit") Get pro bono help for my nonprofit
|
||||||
|
.big-break
|
||||||
|
h2 Our process
|
||||||
|
.row
|
||||||
|
.col-xs-12.col-sm-12.col-md-4
|
||||||
|
h3.nowrap Your idea
|
||||||
|
img.img-responsive.landing-icon.img-center(src= 'https://s3.amazonaws.com/freecodecamp/landingIcons_portfolio.svg.gz', title='Get great references and connections to help you get a job')
|
||||||
|
p.landing-p You tell us how we can help you.
|
||||||
|
.col-xs-12.col-sm-12.col-md-4
|
||||||
|
h3.nowrap Our team
|
||||||
|
img.img-responsive.landing-icon.img-center(src= 'https://s3.amazonaws.com/freecodecamp/landingIcons_nonprofits.svg.gz', title='Build a portfolio of apps for nonprofits')
|
||||||
|
p.landing-p We'll hand pick developers and a project manager.
|
||||||
|
.col-xs-12.col-sm-12.col-md-4
|
||||||
|
h3.nowrap Your solution
|
||||||
|
img.img-responsive.landing-icon.img-center(src= 'https://s3.amazonaws.com/freecodecamp/landingIcons_connect.svg.gz', title='Help nonprofits')
|
||||||
|
p.landing-p Together we'll set milestones and complete your project.
|
||||||
|
.big-break
|
||||||
h2 Solutions we can help you build:
|
h2 Solutions we can help you build:
|
||||||
.text-center.negative-35
|
.text-center.negative-35
|
||||||
.col-xs-12.col-sm-12.col-md-3
|
.col-xs-12.col-sm-12.col-md-3
|
||||||
|
Reference in New Issue
Block a user