Skip to content

Commit

Permalink
Added an html to main.handlebars file
Browse files Browse the repository at this point in the history
  • Loading branch information
JustineRobert committed Nov 7, 2019
1 parent 67fea9f commit d60d656
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 8 deletions.
9 changes: 1 addition & 8 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,8 @@ app.use(express.static(path.join(__dirname, 'public')));
app.get('/', (req, res) => res.send('TEAMWORK'));

//Team routes
app.use('/teams', require('./routes/teams'));
app.use('/users', require('./routes/users'));

const PORT = process.env.PORT || 5000;

app.listen(PORT, console.log(`server started on port ${PORT}`));







40 changes: 40 additions & 0 deletions views/layouts/main.handlebars
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU"
crossorigin="anonymous">


<link rel="stylesheet" href="public/css/style.css">
<title>Teamwork</title>
</head>

<body>
<header class="inner">
<h2><a href="/"><i class="fas fa-code"></i>
Teamwork</a></h2>
<nav>
<ul>
<li>
<a href="/">Home</a>
</li>
<li>
<a href="/users">All Users</a>
</li>
<li>
<a href="/users/add">Add User</a>
</li>
</ul>
</nav>
</header>

<div class="container">
{{{body}}}
</div>
</body>

</html>

0 comments on commit d60d656

Please sign in to comment.