From a55488e5eb1b2a625461e1f317a293a67689e279 Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Fri, 5 Feb 2016 21:06:30 -0800 Subject: [PATCH] create shop with link to tshirt --- server/boot/randomAPIs.js | 8 ++++++++ server/views/partials/navbar.jade | 2 ++ server/views/resources/shop.jade | 16 ++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 server/views/resources/shop.jade diff --git a/server/boot/randomAPIs.js b/server/boot/randomAPIs.js index 73042bae33b..a83a0dbd1e6 100644 --- a/server/boot/randomAPIs.js +++ b/server/boot/randomAPIs.js @@ -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!'); } diff --git a/server/views/partials/navbar.jade b/server/views/partials/navbar.jade index ebe2b0a855d..01e5224c15c 100644 --- a/server/views/partials/navbar.jade +++ b/server/views/partials/navbar.jade @@ -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 diff --git a/server/views/resources/shop.jade b/server/views/resources/shop.jade new file mode 100644 index 00000000000..cfe2d770afd --- /dev/null +++ b/server/views/resources/shop.jade @@ -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 + | . \ No newline at end of file