add chromebook promo

pull/2/head
Michael Q Larson 2014-12-11 21:24:44 -08:00
parent 5de070aca4
commit c72dfb32bd
5 changed files with 14 additions and 0 deletions

1
app.js
View File

@ -128,6 +128,7 @@ app.get('/learn-to-code', resourcesController.learnToCode);
app.get('/privacy', resourcesController.privacy); app.get('/privacy', resourcesController.privacy);
app.get('/jquery-exercises', resourcesController.jqueryExercises); app.get('/jquery-exercises', resourcesController.jqueryExercises);
app.get('/text-based-adventure-tutorial-app', resourcesController.textBasedAdventureTutorial); app.get('/text-based-adventure-tutorial-app', resourcesController.textBasedAdventureTutorial);
app.get('/chromebook', resourcesController.chromebook);
app.get('/programmer-interview-questions-app', resourcesController.programmerInterviewQuestionsApp); app.get('/programmer-interview-questions-app', resourcesController.programmerInterviewQuestionsApp);
app.get('/about', resourcesController.about); app.get('/about', resourcesController.about);
app.get('/login', userController.getLogin); app.get('/login', userController.getLogin);

View File

@ -15,6 +15,12 @@ exports.privacy = function(req, res) {
}); });
} }
exports.chromebook = function(req, res) {
res.render('chromebook', {
title: 'Win a Chromebook'
});
}
exports.jqueryExercises = function(req, res) { exports.jqueryExercises = function(req, res) {
res.render('jquery-exercises', { res.render('jquery-exercises', {
title: 'jQuery Exercises' title: 'jQuery Exercises'

7
views/chromebook.jade Normal file
View File

@ -0,0 +1,7 @@
extends layout
block content
.jumbotron
script(src='//widget-prime.rafflecopter.com/launch.js')
a#rcwidget_a7khonhd.rcptr(href='http://www.rafflecopter.com/rafl/display/d70901b10/', rel='nofollow', data-raflid='d70901b10', data-theme='classic', data-template='') a Rafflecopter giveaway