From 8645ef96e7125b1760495337bb0dc154030f6879 Mon Sep 17 00:00:00 2001 From: Andrew Otto Date: Tue, 14 Feb 2012 11:34:34 -0800 Subject: [PATCH] styles and js --- lib/main.co | 1 + lib/server.co | 1 + www/css/kraken.styl | 2 ++ www/js/kraken-ui | 1 + www/layout.jade | 13 ++++++++++--- 5 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 lib/main.co create mode 100644 www/css/kraken.styl create mode 120000 www/js/kraken-ui diff --git a/lib/main.co b/lib/main.co new file mode 100644 index 0000000..9ca68c9 --- /dev/null +++ b/lib/main.co @@ -0,0 +1 @@ +console.log 'hi' \ No newline at end of file diff --git a/lib/server.co b/lib/server.co index 7f664bb..ce61012 100755 --- a/lib/server.co +++ b/lib/server.co @@ -71,6 +71,7 @@ app.configure -> app.use express.static WWW app.use express.static VAR + app.use express.static "#{CWD}/static" app.use express.errorHandler do dumpExceptions : true showStack : true diff --git a/www/css/kraken.styl b/www/css/kraken.styl new file mode 100644 index 0000000..7467fea --- /dev/null +++ b/www/css/kraken.styl @@ -0,0 +1,2 @@ +body + font-family menlo \ No newline at end of file diff --git a/www/js/kraken-ui b/www/js/kraken-ui new file mode 120000 index 0000000..58677dd --- /dev/null +++ b/www/js/kraken-ui @@ -0,0 +1 @@ +../../lib \ No newline at end of file diff --git a/www/layout.jade b/www/layout.jade index f22bb78..06361ed 100644 --- a/www/layout.jade +++ b/www/layout.jade @@ -1,3 +1,10 @@ -body - div - != body +!!! html +html + head + link(href="/css/kraken.css", type='text/css', media='screen', rel='stylesheet') + body + div + != body + .scripts + script(src="vendor/jquery.min.js") + script(src="/js/kraken-ui/main.js") -- 1.7.0.4