From 6992e66ea45e0f3e1db21f763f2eb4aa9bae2a34 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Tue, 19 Mar 2013 10:16:54 -0400 Subject: done some UI work, added ejs templates --- routes/index.js | 2 +- views/footer.ejs | 17 +++++++++++ views/header.ejs | 19 +++++++++++++ views/index.ejs | 6 ++-- views/login.ejs | 86 +++++++++----------------------------------------------- 5 files changed, 53 insertions(+), 77 deletions(-) create mode 100644 views/footer.ejs create mode 100644 views/header.ejs diff --git a/routes/index.js b/routes/index.js index f18f5ef..9e1f66e 100644 --- a/routes/index.js +++ b/routes/index.js @@ -18,5 +18,5 @@ exports.index = function(req, res){ */ exports.login = function(req, res) { - res.render('login', {title: 'Logg inn' }); + res.render('login', { title: 'Logg inn' }); } diff --git a/views/footer.ejs b/views/footer.ejs new file mode 100644 index 0000000..d633ff7 --- /dev/null +++ b/views/footer.ejs @@ -0,0 +1,17 @@ + + + + + + + + diff --git a/views/header.ejs b/views/header.ejs new file mode 100644 index 0000000..4d870de --- /dev/null +++ b/views/header.ejs @@ -0,0 +1,19 @@ + + + + + + + <%= title %> + + + + + + + + + + diff --git a/views/index.ejs b/views/index.ejs index e84eb71..edb09f7 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -1,4 +1,4 @@ - + @@ -18,8 +18,8 @@ - - + +

<%= title %>

Velkommen til <%= title %>

diff --git a/views/login.ejs b/views/login.ejs index 90a2f93..db1476c 100644 --- a/views/login.ejs +++ b/views/login.ejs @@ -1,76 +1,18 @@ - - - - - - Sign in · Twitter Bootstrap - - - - - - - - - - - - - - - - - - - - - +<% include header %> + +
- +
@@ -91,6 +33,4 @@ - - - +<% include footer %> -- cgit v1.2.3