Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add contacts page #113

Merged
merged 1 commit into from
Jun 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion routes.js
Expand Up @@ -69,6 +69,8 @@ router.get('/resources', function(req, res){
res.render('resources', {active: '/resources'})
})


router.get('/contact', function(req, res){
res.render('contact', {active: '/contact'})
})

module.exports = router
29 changes: 29 additions & 0 deletions views/contact.pug
@@ -0,0 +1,29 @@
extends layout.pug

block content

.container

h1 Contact Us

table
tbody
tr
td MeetUp
td
a(href='https://www.meetup.com/codehub-bristol/' target='_blank') https://www.meetup.com/codehub-bristol/

tr
td Gitter
td
a(href='https://gitter.im/CodeHubOrg/discussions' target='_blank') CodeHubOrg/discussions

tr
td Twitter
td
a(href='https://twitter.com/codehubbs' target='_blank') @CodeHubBs

tr
td Email
td
a(href='mailto:mail@kdurrani.co.uk?subject=Hello%20from%20JS101%20:-)' target='_blank') Our organiser
32 changes: 19 additions & 13 deletions views/partials/nav.pug
Expand Up @@ -10,16 +10,22 @@ nav(class='navbar navbar-inverse navbar-fixed-top')
a(class='navbar-brand' href='/') JavaScript 101
#navbar(class='collapse navbar-collapse')
ul(class='nav navbar-nav')
- var nav_items = {'/about': 'About', '/getting-started': 'Getting Started', '/resources': 'Resources', '/projects': 'Projects', '/careers': 'Careers'}
each val, key in nav_items
if key == active
li.active
a(href=key)= val
else if active && active.indexOf(key) !== -1
li.active
a(href=key)= val
else
li
a(href=key)= val
li
a(href='mailto:mail@kdurrani.co.uk?subject=Hello%20:-)' target='_top') Contact
-
var nav_items = {
'/about': 'About',
'/getting-started': 'Getting Started',
'/resources': 'Resources',
'/projects': 'Projects',
'/careers': 'Careers',
'/contact': 'Contact Us'
}
each val, key in nav_items
if key == active
li.active
a(href=key)= val
else if active && active.indexOf(key) !== -1
li.active
a(href=key)= val
else
li
a(href=key)= val