Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated to aid in deployment

  • Loading branch information...
commit 7630b0e7f751d7f85d899e80d7c29dd8b1814997 1 parent 2f17155
Chad Burt authored
2  .gitignore
View
@@ -0,0 +1,2 @@
+node_modules
+.DS_Store
2  .ndistro
View
@@ -0,0 +1,2 @@
+module senchalabs connect
+module visionmedia express 2.8.6
0  .nodemonignore
View
No changes.
13 app.coffee
View
@@ -6,17 +6,24 @@ fs = require 'fs'
app = express.createServer()
# production
-static = 'http://share.underbluewaters.net/chadandjen.net/'
+# static = 'http://share.underbluewaters.net/chadandjen.net/'
# dev
-# static = './'
+static = './'
# Setup HAML template handling
app.configure ->
+ app.use express.static("#{__dirname}/transfer/public")
app.use('/static', express.static(__dirname + '/static'))
app.set 'view engine', 'haml'
+ app.set 'view options', layout: false
app.register '.haml', require('hamljs')
+try
+ require("#{__dirname}/transfer/photo_viewer").register app
+catch error
+ console.log 'could not register photo viewer'
+
# Favicon
app.get '/favicon.ico', (req, res) ->
fs.readFile __dirname + '/static/favicon.ico', (err, content) ->
@@ -29,4 +36,4 @@ app.get '/:email?', (req, res) ->
photos = (static + 'static/photos/' + file for file in files when file != 'portrait.jpg')
res.render 'index', layout: false, photos: photos, static: static
-app.listen 3000, '127.0.0.1'
+app.listen 3001, '127.0.0.1'
BIN  static/jen.pxm
View
Binary file not shown
14 static/style.css
View
@@ -370,3 +370,17 @@ p.desc {
#details ul.links.museum li a:hover {
text-decoration: underline;
}
+
+
+#photos a, #photos a:hover, #photos a:active, #photos a:visited {
+ color:white !important;
+ text-decoration:none;
+}
+
+#photos {
+ position:absolute;
+ top:320px;
+ left:340px;
+ z-index:100;
+/* width:auto;*/
+}
2  views/index.haml
View
@@ -23,6 +23,8 @@
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
%body
+ -# %h2#photos
+ -# %a{href: '/photos'} New! See photobooth sessions
#cloth
%img{src: static + 'static/jelly.jpg', width: 885, height: 1224}.jelly
%img{src: static + 'static/brittle.png', width: 357, height: 409}.brittle
Please sign in to comment.
Something went wrong with that request. Please try again.