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

adds resources page #2

Merged
merged 1 commit into from
Aug 10, 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
adds resources page
  • Loading branch information
joel-g committed Aug 10, 2017
commit 229a46b33089e525246b1657ce1066342ec01e41
5 changes: 2 additions & 3 deletions app/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ router.get('/', function(req,res) {
res.render('pages/index');
});

// test
router.get('/test', function(req,res) {
res.render('pages/test');
router.get('/resources', function(req,res) {
res.render('pages/resources');
});

// route for about page
Expand Down
47 changes: 0 additions & 47 deletions npm-debug.log

This file was deleted.

5 changes: 5 additions & 0 deletions public/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,8 @@ html, body {
height: 600px;
margin: 0 auto;
}

.page-container {
margin: 0 auto 150px;
width: 800px;
}
6 changes: 3 additions & 3 deletions views/layout.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
PoliceWatch
</h1>
<h2 class="subtitle">
Visualizing Officer-Involved Deaths (2015-2016)
Visualizing Officer-Involved Deaths in the US (2015-2016)
</h2>
</div>
</div>
</section>
<nav class="breadcrumb" aria-label="breadcrumbs">
<ul>
<li><a href="#">Home</a></li>
<li><a href="/">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Resources</a></li>
<li><a href="/resources">Resources</a></li>
</ul>
</nav>
<body>
Expand Down
13 changes: 13 additions & 0 deletions views/pages/resources.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<div class='page-container'>
<h1 class='title'>Resources</h1>
<p>PoliceWatch was created using data provided by <a href='https://www.theguardian.com/us-news/ng-interactive/2015/jun/01/about-the-counted'>The Guardian</a> and mapping technology by <a href='https://developers.google.com/maps/'>Google</a>. PoliceWatch is written in Javascript within the <a href='https://expressjs.com/'>Express.js</a> framework and hosted on Heroku.</p>
</div>
</body>
</html>