diff --git a/server/boot/randomAPIs.js b/server/boot/randomAPIs.js index 890783e3642..704799238bf 100644 --- a/server/boot/randomAPIs.js +++ b/server/boot/randomAPIs.js @@ -24,9 +24,8 @@ module.exports = function(app) { router.get('/get-started', getStarted); router.get('/submit-cat-photo', submitCatPhoto); router.get('/stories', showTestimonials); - router.get('/shop', showShop); - router.get('/shop/cancel-stickers', cancelStickers); - router.get('/shop/confirm-stickers', confirmStickers); + router.get('/cancel-stickers', cancelStickers); + router.get('/confirm-stickers', confirmStickers); router.get('/all-stories', showAllTestimonials); router.get('/terms', terms); router.get('/welcome', welcome); @@ -115,19 +114,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 confirmStickers(req, res) { req.flash('success', { - msg: 'Thank you for supporting our community! You should receive ' + - 'your stickers in the mail soon!' + msg: 'Thank you for supporting our community! Depending on how far you ' + + 'live from San Francisco, these stickers may take several weeks ' + + 'to reach you.' }); - res.redirect('/shop'); + res.redirect('/map'); } function cancelStickers(req, res) { @@ -135,7 +128,7 @@ module.exports = function(app) { msg: 'You\'ve cancelled your purchase of our stickers. You can ' + 'support our community any time by buying some.' }); - res.redirect('/shop'); + res.redirect('/map'); } function submitCatPhoto(req, res) { res.send('Submitted!'); diff --git a/server/views/resources/shop.jade b/server/views/resources/shop.jade deleted file mode 100644 index 851e068c514..00000000000 --- a/server/views/resources/shop.jade +++ /dev/null @@ -1,90 +0,0 @@ -extends ../layout -block content - h2.text-center Buy cool gear and support our open source community: - .spacer - .row - .col-xs-12.col-sm-10.col-sm-offset-1.col-md-8.col-md-offset-2.text-center - img.img-responsive.img-center(src='//i.imgur.com/ytQETcTr.jpg') - h3 Free Code Camp laptop sticker pack - p Get all 4 of these designs for only $10, with free shipping anywhere! - p These durable 2" (5 cm) stickers sport a matte finish, and look great anywhere - especially on your laptop. - html. -
- - - - -
- - hr - .row - .col-xs-12.col-sm-10.col-sm-offset-1.col-md-8.col-md-offset-2.text-center - img.img-responsive.img-center(src='//i.imgur.com/FNFqn9Tg.jpg') - h3 Free Code Camp laptop stickers - p Get 4 for only $10, with free shipping anywhere! - p These durable 2" (5 cm) stickers sport a matte finish, and look great anywhere - especially on your laptop. - html. -
- - - - -
- - hr - .row - .col-xs-12.col-sm-10.col-sm-offset-1.col-md-8.col-md-offset-2.text-center - img.img-responsive.img-center(src='//i.imgur.com/Ev3dGx2.jpg') - h3 Bonfire Function Call Hoodie - $49.99 - p Stay warm and dress like a developer. This Free Code Camp hoodie comes with pockets and a zipper for maximum convenience. - p Fits great on men, women, and kids. - a.btn.btn-cta.signup-btn.btn-block(href='http://bit.ly/2cHlCx6' target='_blank' onClick="ga('send', 'event', 'Shop', 'clicked', 'bonfire function call hoodie');") Get this toasty hoodie - - hr - .row - .col-xs-12.col-sm-10.col-sm-offset-1.col-md-8.col-md-offset-2.text-center - img.img-responsive.img-center(src='//i.imgur.com/0JSMQlO.jpg') - h3 Bonfire Function Call T-shirt - $24.99 - p This comfortable jet black T-shirt features our community's iconic "bonfire function call" logo. - p Also available in high quality American Apparel women's fitted tee sizes. - a.btn.btn-cta.signup-btn.btn-block(href='http://bit.ly/2cIteT1' target='_blank' onClick="ga('send', 'event', 'Shop', 'clicked', 'bonfire function call tshirt');") Get this classic shirt - - hr - .row - .col-xs-12.col-sm-10.col-sm-offset-1.col-md-8.col-md-offset-2.text-center - img.img-responsive.img-center(src='//i.imgur.com/nlupFKM.jpg') - h3 It's all talk until the code runs T-shirt - $24.99 - p Ward Cunningham, inventor of the wiki, famously said, "It's all talk until the code runs." Spread his wisdom with this jet black t-shirt. - p Also available in high quality American Apparel women's fitted tee sizes. - a.btn.btn-cta.signup-btn.btn-block(href='http://bit.ly/2bQ97AU' target='_blank' onClick="ga('send', 'event', 'Shop', 'clicked', 'all talk tshirt');") Get this sweet shirt - - hr - - .big-break - h2.text-center These audiobooks are extremely popular with developers: - .spacer - .row - .col-xs-12.col-sm-10.col-sm-offset-1.col-md-8.col-md-offset-2.text-center - img.img-responsive.img-center(src='//i.imgur.com/0aHcAtS.jpg') - h3 The Innovators: How a Group of Hackers, Geniuses, and Geeks Created the Digital Revolution - p Get this audiobook and another of your choosing for free with an Audible free trial. - a.btn.btn-cta.signup-btn.btn-block(target='_blank' href="http://amzn.to/2aZVCR6" onClick="ga('send', 'event', 'Shop', 'clicked', 'book-the-innovators');") Get this audiobook for free - - hr - .row - .col-xs-12.col-sm-10.col-sm-offset-1.col-md-8.col-md-offset-2.text-center - img.img-responsive.img-center(src='//i.imgur.com/1088eKE.jpg') - h3 The Master Switch: The Rise and Fall of Information Empires - p Get this audiobook and another of your choosing for free with an Audible free trial. - a.btn.btn-cta.signup-btn.btn-block(target='_blank' href="http://amzn.to/2cjtFDH" onClick="ga('send', 'event', 'Shop', 'clicked', 'book-master-switch');") Get this audiobook for free - - hr - .row - .col-xs-12.col-sm-10.col-sm-offset-1.col-md-8.col-md-offset-2.text-center - img.img-responsive.img-center(src='//i.imgur.com/kAzbbvk.jpg') - h3 Hackers: Heroes of the Computer Revolution - p Get this audiobook and another of your choosing for free with an Audible free trial. - a.btn.btn-cta.signup-btn.btn-block(target='_blank' href="http://amzn.to/2bIHlYP" onClick="ga('send', 'event', 'Shop', 'clicked', 'book-hackers');") Get this audiobook for free - - hr - h2.text-center Thanks for your support! \ No newline at end of file