create shop with link to tshirt
parent
bf2c944b87
commit
a55488e5eb
|
@ -32,6 +32,7 @@ module.exports = function(app) {
|
|||
router.get('/submit-cat-photo', submitCatPhoto);
|
||||
router.get('/labs', showLabs);
|
||||
router.get('/stories', showTestimonials);
|
||||
router.get('/shop', showShop);
|
||||
router.get('/all-stories', showAllTestimonials);
|
||||
router.get('/terms', terms);
|
||||
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) {
|
||||
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
|
||||
li
|
||||
a(href='/jobs') Jobs
|
||||
li
|
||||
a(href='/shop') Shop
|
||||
li
|
||||
a(href='/about') About
|
||||
if !user
|
||||
|
|
|
@ -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
|
||||
| .
|
Loading…
Reference in New Issue