Skip to content

Commit

Permalink
added some photo albumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesandberg committed Dec 22, 2013
1 parent 914cbcc commit 604b727
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 18 deletions.
2 changes: 1 addition & 1 deletion views/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
mixin item('Home', '/')
mixin item('Bride & Groom', '/bride-and-groom/')
mixin item('Wedding Party', '/wedding-party/')
div.countdown
mixin item('Photos', '/photos/')

!=body
script(src='http://code.jquery.com/jquery-latest.js')
Expand Down
27 changes: 27 additions & 0 deletions views/photos.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
div.row-fluid
div.span12.tile
div.notice
h1 The Wedding
| <embed type="application/x-shockwave-flash" src="https://static.googleusercontent.com/external_content/picasaweb.googleusercontent.com/slideshow.swf" width="100%" height="600" flashvars="host=picasaweb.google.com&captions=1&hl=en_US&feat=flashalbum&RGB=0x000000&feed=https%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F111919209156526992992%2Falbumid%2F5907280141123497089%3Falt%3Drss%26kind%3Dphoto%26authkey%3DGv1sRgCKKW9LDG2Onm5QE%26hl%3Den_US" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>

div.row-fluid
div.span12.tile
div.notice
h1 Honeymoon &mdash; Maldives
| <embed type="application/x-shockwave-flash" src="https://static.googleusercontent.com/external_content/picasaweb.googleusercontent.com/slideshow.swf" width="100%" height="600" flashvars="host=picasaweb.google.com&noautoplay=1&captions=1&hl=en_US&feat=flashalbum&RGB=0x000000&feed=https%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F111919209156526992992%2Falbumid%2F5907305808690699329%3Falt%3Drss%26kind%3Dphoto%26authkey%3DGv1sRgCK3Ji9mgu-2f3wE%26hl%3Den_US" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
div.background

div.row-fluid
div.span12.tile
div.notice
h1 Honeymoon &mdash; Bangkok
| <embed type="application/x-shockwave-flash" src="https://static.googleusercontent.com/external_content/picasaweb.googleusercontent.com/slideshow.swf" width="100%" height="600" flashvars="host=picasaweb.google.com&noautoplay=1&captions=1&hl=en_US&feat=flashalbum&RGB=0x000000&feed=https%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F111919209156526992992%2Falbumid%2F5907314800449270721%3Falt%3Drss%26kind%3Dphoto%26authkey%3DGv1sRgCNLn37u_0c6oRw%26hl%3Den_US" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
div.background

div.row-fluid
div.span12.tile
div.notice
h1 Honeymoon &mdash; Chiang Mai
| <embed type="application/x-shockwave-flash" src="https://static.googleusercontent.com/external_content/picasaweb.googleusercontent.com/slideshow.swf" width="100%" height="600" flashvars="host=picasaweb.google.com&noautoplay=1&captions=1&hl=en_US&feat=flashalbum&RGB=0x000000&feed=https%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F111919209156526992992%2Falbumid%2F5907305975068585345%3Falt%3Drss%26kind%3Dphoto%26authkey%3DGv1sRgCLLk_JOkrefltQE%26hl%3Den_US" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
div.background

26 changes: 9 additions & 17 deletions web.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@ var utils = {
getDriveImageUrl: function(filename) {
return 'https://googledrive.com/host/0B6vNk5GSBIjUWG9xNklsYnVGaHc/' + filename;
},
getDaysToGo: function() {
var daysLeft = Math.round((new Date(2013, 6, 13) - new Date()) / (1000*60*60*24));
if (daysLeft < 0) {
return "";
}
if (daysLeft == 0 || daysLeft == 1) {
return "The Wedding is Soon!";
}
return daysLeft + " days to go!";
}
};

var app = express.createServer(express.logger());
Expand All @@ -32,25 +22,27 @@ app.configure(function() {
});

app.get('/', function(request, response) {
console.log(utils.getDaysToGo());
response.render('home.html', {
banner: utils.getDriveImageUrl('homepage_banner.jpg'),
active: 'Home',
daysToGo: utils.getDaysToGo()
active: 'Home'
});
});
app.get('/bride-and-groom/', function(request, response) {
response.render('bride_and_groom.html', {
banner: utils.getDriveImageUrl('bride_and_groom_banner.jpg'),
active: 'Bride & Groom',
daysToGo: utils.getDaysToGo()
active: 'Bride & Groom'
});
});
app.get('/wedding-party/', function(request, response) {
response.render('wedding_party.html', {
banner: utils.getDriveImageUrl('wedding_party.jpg'),
active: 'Wedding Party',
daysToGo: utils.getDaysToGo()
active: 'Wedding Party'
});
});
app.get('/photos/', function(request, response) {
response.render('photos.html', {
banner: utils.getDriveImageUrl('wedding_party.jpg'),
active: 'Photos'
});
});

Expand Down

0 comments on commit 604b727

Please sign in to comment.