From d25cb2cc618c2d61c8ae8cb07ac47f4f455ca22e Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Mon, 8 May 2017 17:12:49 -0400 Subject: [PATCH 1/5] Added contact page --- config/routes/index.js | 8 ++++++++ views/contact.html | 10 ++++++++++ views/templates/header.html | 1 + 3 files changed, 19 insertions(+) create mode 100644 views/contact.html diff --git a/config/routes/index.js b/config/routes/index.js index 44fa002..13a0f42 100644 --- a/config/routes/index.js +++ b/config/routes/index.js @@ -18,6 +18,14 @@ module.exports = router res.render('help'); }) + // Contact + .get('/contact', (req,res)=>{ + res.render('contact'); + }) + .post('/contact', (req,res)=>{ + //TODO: Get contact stuff + }) + // Terms of Service and Privacy Policy .get('/terms', (req,res)=>{ res.render('terms'); diff --git a/views/contact.html b/views/contact.html new file mode 100644 index 0000000..16186f7 --- /dev/null +++ b/views/contact.html @@ -0,0 +1,10 @@ +{% extends 'templates/base.html' %} +{% block title %}{{super()}} | Contact{% endblock %} + +{% block main %} +
+ +

Contact

+ +
+{% endblock %} \ No newline at end of file diff --git a/views/templates/header.html b/views/templates/header.html index 1164e80..d446915 100644 --- a/views/templates/header.html +++ b/views/templates/header.html @@ -13,6 +13,7 @@