update labs, update about page, create TOS and privacy view

This commit is contained in:
Quincy Larson
2016-01-09 02:30:12 -06:00
committed by Berkeley Martinez
parent 4da8e5565c
commit 93ebfd4515
5 changed files with 300 additions and 56 deletions

View File

@ -35,7 +35,8 @@ module.exports = function(app) {
router.get('/labs', showLabs);
router.get('/stories', showTestimonials);
router.get('/all-stories', showAllTestimonials);
router.get('/links', showLinks);
router.get('/about', showLinks);
router.get('/terms-and-privacy', termsAndPrivacy);
router.get(
'/the-fastest-web-page-on-the-internet',
theFastestWebPageOnTheInternet
@ -197,11 +198,17 @@ module.exports = function(app) {
function showLinks(req, res) {
res.render('resources/links', {
title: 'Links to external Free Code Camp resources and ' +
'social media communities'
title: 'About our Open Source Community, our social media presence, ' +
'and how to contact us'
});
}
function termsAndPrivacy(req, res) {
res.render('resources/terms-and-privacy', {
title: 'Terms of Service, Privacy Policy, and Code of Conduct'
});
}
function theFastestWebPageOnTheInternet(req, res) {
res.render('resources/the-fastest-web-page-on-the-internet', {
title: 'This is the fastest web page on the internet'