most views are now in place
This commit is contained in:
2
app.js
2
app.js
@ -269,7 +269,7 @@ app.post('/nonprofits', contactController.postNonprofitsForm);
|
|||||||
app.get('/nonprofits/home', nonprofitController.nonprofitsHome);
|
app.get('/nonprofits/home', nonprofitController.nonprofitsHome);
|
||||||
app.get('/nonprofits/are-you-with-a-registered-nonprofit', nonprofitController.areYouWithARegisteredNonprofit);
|
app.get('/nonprofits/are-you-with-a-registered-nonprofit', nonprofitController.areYouWithARegisteredNonprofit);
|
||||||
app.get('/nonprofits/how-can-free-code-camp-help-you', nonprofitController.howCanFreeCodeCampHelpYou);
|
app.get('/nonprofits/how-can-free-code-camp-help-you', nonprofitController.howCanFreeCodeCampHelpYou);
|
||||||
app.get('/nonprofits/are-there-people-already-benefiting-from-your-services', nonprofitController.areTherePeopleAlreadyBenefitingFromYourServices);
|
app.get('/nonprofits/are-there-people-that-are-already-benefiting-from-your-services', nonprofitController.areTherePeopleThatAreAlreadyBenefitingFromYourServices);
|
||||||
app.get('/nonprofits/in-exchange-we-ask', nonprofitController.inExchangeWeAsk);
|
app.get('/nonprofits/in-exchange-we-ask', nonprofitController.inExchangeWeAsk);
|
||||||
app.get('/nonprofits/ok-with-javascript', nonprofitController.okWithJavaScript);
|
app.get('/nonprofits/ok-with-javascript', nonprofitController.okWithJavaScript);
|
||||||
app.get('/nonprofits/other-solutions', nonprofitController.otherSolutions);
|
app.get('/nonprofits/other-solutions', nonprofitController.otherSolutions);
|
||||||
|
@ -38,8 +38,8 @@ exports.otherSolutions = function(req, res) {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.areTherePeopleAlreadyBenefitingFromYourServices = function(req, res) {
|
exports.areTherePeopleThatAreAlreadyBenefitingFromYourServices = function(req, res) {
|
||||||
res.render('nonprofits/are-there-people-already-benefiting-from-your-services', {
|
res.render('nonprofits/are-there-people-that-are-already-benefiting-from-your-services', {
|
||||||
title: 'Are there people already benefiting from your services'
|
title: 'Are there people already benefiting from your services'
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -7,6 +7,6 @@ block content
|
|||||||
.spacer
|
.spacer
|
||||||
.row
|
.row
|
||||||
.col-xs-6
|
.col-xs-6
|
||||||
a.btn.btn-primary.btn-big.btn-block(href='/nonprofits/') Yes
|
a.btn.btn-primary.btn-big.btn-block(href='/nonprofits/ok-with-javascript') Yes
|
||||||
.col-xs-6
|
.col-xs-6
|
||||||
a.btn.btn-warning.btn-big.btn-block(href='/nonprofits/') No
|
a.btn.btn-warning.btn-big.btn-block(href='/nonprofits/other-solutions') No
|
@ -39,4 +39,4 @@ block content
|
|||||||
h2.black-text.nonprofit-help-select-text-height ...and other tools
|
h2.black-text.nonprofit-help-select-text-height ...and other tools
|
||||||
input#websites-help.inline.checkbox(type='checkbox')
|
input#websites-help.inline.checkbox(type='checkbox')
|
||||||
.spacer
|
.spacer
|
||||||
a.btn.btn-primary.btn-big.btn-block(href='/nonprofits/') I've selected all that apply and am ready to move on
|
a.btn.btn-primary.btn-big.btn-block(href='/nonprofits/are-there-people-that-are-already-benefiting-from-your-services') I've selected all that apply and am ready to move on
|
@ -1,16 +1,17 @@
|
|||||||
extends ../layout
|
extends ../layout
|
||||||
block content
|
block content
|
||||||
.jumbotron.text-left
|
.jumbotron
|
||||||
h1.hug-top Nonprofit Sign Up
|
h1.hug-top.text-center Nonprofit Sign Up
|
||||||
.spacer
|
.spacer
|
||||||
h2 Great! In exchange for our help, we ask only that you:
|
h2 Great! In exchange for our help, we ask only that you:
|
||||||
ol
|
h3
|
||||||
li Appoint one principal stakeholder to serve on behalf of your organization.
|
ol
|
||||||
li Communicate with our campers on a regular basis, to answer questions and provide them with direction.
|
li Appoint one principal stakeholder to serve on behalf of your organization.
|
||||||
li Commit to using the solution that our campers build for your nonprofit.
|
li Communicate with our campers on a regular basis, to answer questions and provide them with direction.
|
||||||
|
li Commit to using the solution that our campers build for your nonprofit.
|
||||||
.spacer
|
.spacer
|
||||||
.row
|
.row
|
||||||
.col-xs-6
|
.col-xs-6
|
||||||
a.btn.btn-primary.btn-big.btn-block(href='/nonprofits/how-can-free-code-camp-help-you') Sounds good!
|
a.btn.btn-primary.btn-big.btn-block(href='/nonprofits/what-does-your-nonprofit-do') Sounds good!
|
||||||
.col-xs-6
|
.col-xs-6
|
||||||
a.btn.btn-warning.btn-big.btn-block(href='/nonprofits/other-solutions') This might not be for us.
|
a.btn.btn-warning.btn-big.btn-block(href='/nonprofits/other-solutions') This might not be for us.
|
10
views/nonprofits/link-us-to-your-website.jade
Normal file
10
views/nonprofits/link-us-to-your-website.jade
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
.jumbotron.text-center
|
||||||
|
h1.hug-top Nonprofit Sign Up
|
||||||
|
.spacer
|
||||||
|
h2 In 140 characters or less, what does your nonprofit do? For whom?
|
||||||
|
.spacer
|
||||||
|
.formgroup
|
||||||
|
.input-group
|
||||||
|
input.form-control.big-text-field.field-responsive(type='text', maxlength='140', autofocus='')
|
||||||
|
span.input-group-btn
|
||||||
|
button.btn.btn-big.btn-primary.btn-responsive(href='/nonprofits/tell-us-your-name') Submit
|
@ -7,6 +7,6 @@ block content
|
|||||||
.spacer
|
.spacer
|
||||||
.row
|
.row
|
||||||
.col-xs-6
|
.col-xs-6
|
||||||
a.btn.btn-primary.btn-big.btn-block(href='/nonprofits/how-can-free-code-camp-help-you') Sounds good!
|
a.btn.btn-primary.btn-big.btn-block(href='/nonprofits/in-exchange-we-ask') Sounds good!
|
||||||
.col-xs-6
|
.col-xs-6
|
||||||
a.btn.btn-warning.btn-big.btn-block(href='/nonprofits/other-solutions') This might not be for us.
|
a.btn.btn-warning.btn-big.btn-block(href='/nonprofits/other-solutions') This might not be for us.
|
@ -1,12 +1,5 @@
|
|||||||
extends ../layout
|
extends ../layout
|
||||||
block content
|
block content
|
||||||
.jumbotron.text-center
|
.jumbotron.text-center
|
||||||
h1.hug-top Nonprofit Sign Up
|
h1.hug-top Here are some other solutions we recommend
|
||||||
.spacer
|
.spacer
|
||||||
h2 Do you represent a nonprofit organization that is registered with your government?
|
|
||||||
.spacer
|
|
||||||
.row
|
|
||||||
.col-xs-6
|
|
||||||
a.btn.btn-primary.btn-big.btn-block(href='/nonprofits/how-can-free-code-camp-help-you') Yes
|
|
||||||
.col-xs-6
|
|
||||||
a.btn.btn-warning.btn-big.btn-block(href='/nonprofits/other-solutions') No
|
|
@ -5,19 +5,22 @@ block content
|
|||||||
.spacer
|
.spacer
|
||||||
h2 In 140 characters or less, what does your nonprofit do? For whom?
|
h2 In 140 characters or less, what does your nonprofit do? For whom?
|
||||||
.spacer
|
.spacer
|
||||||
.input-group
|
.formgroup
|
||||||
input.form-control.big-text-field.field-responsive(type='text', maxlength='140', autofocus='')
|
.input-group
|
||||||
span.input-group-btn
|
input.form-control.big-text-field.field-responsive#what-does-the-nonprofit-do(type='text', maxlength='140', autofocus='')
|
||||||
button.btn.btn-big.btn-primary.btn-responsive Submit
|
span.input-group-btn
|
||||||
#textarea-comment-feedback
|
button.btn.btn-big.btn-primary.btn-responsive(href='/nonprofits/link-us-to-your-website') Submit
|
||||||
script.
|
.text-left
|
||||||
var text_max = 140;
|
span#what-does-the-nonprofit-do-feedback
|
||||||
$('#textarea-comment-feedback').html(text_max + ' characters remaining');
|
|
||||||
$('#comment-to-comment-textinput').keyup(function (e) {
|
script.
|
||||||
if (e.which === 13 || e === 13) {
|
var text_max = 140;
|
||||||
$('#submit-comment-to-comment').click();
|
$('#what-does-the-nonprofit-do-feedback').html(text_max + ' characters remaining');
|
||||||
}
|
$('#what-does-the-nonprofit-do').keyup(function (e) {
|
||||||
var text_length = $('#comment-to-comment-textinput').val().length;
|
if (e.which === 13 || e === 13) {
|
||||||
var text_remaining = text_max - text_length;
|
$('#submit-comment-to-comment').click();
|
||||||
$('#textarea-comment-feedback').html(text_remaining + ' characters remaining');
|
}
|
||||||
});
|
var text_length = $('#what-does-the-nonprofit-do').val().length;
|
||||||
|
var text_remaining = text_max - text_length;
|
||||||
|
$('#what-does-the-nonprofit-do-feedback').html(text_remaining + ' characters remaining');
|
||||||
|
});
|
Reference in New Issue
Block a user