create shop with link to tshirt
This commit is contained in:
@ -32,6 +32,7 @@ module.exports = function(app) {
|
|||||||
router.get('/submit-cat-photo', submitCatPhoto);
|
router.get('/submit-cat-photo', submitCatPhoto);
|
||||||
router.get('/labs', showLabs);
|
router.get('/labs', showLabs);
|
||||||
router.get('/stories', showTestimonials);
|
router.get('/stories', showTestimonials);
|
||||||
|
router.get('/shop', showShop);
|
||||||
router.get('/all-stories', showAllTestimonials);
|
router.get('/all-stories', showAllTestimonials);
|
||||||
router.get('/terms', terms);
|
router.get('/terms', terms);
|
||||||
router.get('/privacy', privacy);
|
router.get('/privacy', privacy);
|
||||||
@ -208,6 +209,13 @@ module.exports = function(app) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function showShop(req, res) {
|
||||||
|
res.render('resources/shop', {
|
||||||
|
title: 'Support Free Code Camp by Buying t-shirts, ' +
|
||||||
|
'stickers, and other goodies'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function submitCatPhoto(req, res) {
|
function submitCatPhoto(req, res) {
|
||||||
res.send('Submitted!');
|
res.send('Submitted!');
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,8 @@ nav.navbar.navbar-default.navbar-fixed-top.nav-height
|
|||||||
a(href='//github.com/FreeCodeCamp/freecodecamp/wiki/Home', target='_blank') Wiki
|
a(href='//github.com/FreeCodeCamp/freecodecamp/wiki/Home', target='_blank') Wiki
|
||||||
li
|
li
|
||||||
a(href='/jobs') Jobs
|
a(href='/jobs') Jobs
|
||||||
|
li
|
||||||
|
a(href='/shop') Shop
|
||||||
li
|
li
|
||||||
a(href='/about') About
|
a(href='/about') About
|
||||||
if !user
|
if !user
|
||||||
|
16
server/views/resources/shop.jade
Normal file
16
server/views/resources/shop.jade
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
extends ../layout
|
||||||
|
block content
|
||||||
|
h1.text-center Shop
|
||||||
|
hr
|
||||||
|
.row
|
||||||
|
.col-xs-12.col-sm-10.col-sm-offset-1
|
||||||
|
.row
|
||||||
|
.col-xs-12.text-center
|
||||||
|
a(href='https://teespring.com/free-code-camp-feb' target='_blank')
|
||||||
|
img.img-responsive.img-center(src='http://i.imgur.com/e50zjNy.jpg')
|
||||||
|
h3 Free Code Camp "function call" logo t-shirt
|
||||||
|
h4 100% Cotton. Unisex. $20 shipped.
|
||||||
|
h4 Only available until February 15.
|
||||||
|
h5 Are you outside the US? Ships from the EU  
|
||||||
|
a(href='#') here
|
||||||
|
| .
|
Reference in New Issue
Block a user