Skip to content
Open
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
3 changes: 3 additions & 0 deletions login_view/index.handlebars
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div class="contain row">
<h1>Hi, Welcome to your dashboard. You are logged in</h1>
</div>
50 changes: 50 additions & 0 deletions login_view/layout/main.handlebars
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<html lang="en-CA">
<head>
<title>
{{#if loggedin}}
Welcome {{username}}
{{else}}
NodeJS
{{/if}}
</title>
</head>

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Good Game Login</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
</head>

<body class="container">
<div class="page-header">
<h1>Get start by loggin into you account</h1>
</div>
<nav class="navbar navbar-default">
<div class="rd-navbar-brand"><a href="index.html" class="brand-name"><img src="images/brand.png" alt=""></a></div>
<div class="colapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="/">Home</a></li>
<li><a href="/signup">Sign up</a></li>
</ul>
<ul class="navbar fixed-top navbar-dark bg-dark">
{{# if loggedin}}
<li><a href="logout">Logout</a></li>
{{else}}
<li><a href="login">Login</a></li>
{{/if}}

</ul>
</div>
<form class="form-inline">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
</nav>


{{{ body }}}
</body>

</html>
<script src="handlebars.js"></script>
23 changes: 23 additions & 0 deletions login_view/signup.handlebars
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@


<h1 id="welcomeMessage">Welcome to Game-helper</h1>
<h3 id="loginInfo">Login Into Your Personal Account</h3>
{{#if message}}
<form action="/users/login" method="POST">
{{#each loginUser}}
<div class="form-group">
<input type="hidden" name="Username" value= {{{loginUser}}}>
</div>
<div class="form-group">
{{password_validation "password" "" errors}}
</div>
<div class="form-group">
<label class="form-check-label">
{{checkbox_validation "title" 1 false errors}} <p>Remember me</p> {{!--Please check the correct checkbox 'note' if it is in the correct syntax--}}
</div>
{{button "save" "Login"}}
{{/each}}
</form>
<p class="lead mt-4">No Account?<a href="/users/register"> Register</a></p>