Skip to content

Commit

Permalink
Added hbs files
Browse files Browse the repository at this point in the history
  • Loading branch information
arvention committed Mar 28, 2020
1 parent e50500c commit 96c642d
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 0 deletions.
20 changes: 20 additions & 0 deletions views/error.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<title> File Not Found </title>
<link href="https://fonts.googleapis.com/css?family=Roboto|Rubik&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/css/main.css">
</head>
<body>

{{> header}}

<div id="container">
<div id="content">
<h1 id="title"> 404 </h1>
<p> Sorry, file not found </p>
</div>
</div>

</body>
</html>
22 changes: 22 additions & 0 deletions views/index.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<title> Home </title>
<link href="https://fonts.googleapis.com/css?family=Roboto|Rubik&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/css/main.css">
</head>
<body>

{{> header}}

<div id="container">
<div id="content">
<h1 id="title"> Hello World. </h1>
<a href="/signup">
<button class="bigbutton"> Sign Up </button>
</a>
</div>
</div>

</body>
</html>
21 changes: 21 additions & 0 deletions views/profile.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<title> {{fName}} {{lName}} | Profile </title>
<link href="https://fonts.googleapis.com/css?family=Roboto|Rubik&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/css/main.css">
<link rel="stylesheet" type="text/css" href="/css/profile.css">
</head>
<body>

{{> header}}

<div id="container">
<div id="content">
<h1 id="title"> {{fName}} {{lName}} </h1>
<h2 id="idNum"> @{{idNum}} </h2>
</div>
</div>

</body>
</html>
27 changes: 27 additions & 0 deletions views/signup.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<title> Sign Up </title>
<link href="https://fonts.googleapis.com/css?family=Roboto|Rubik&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/css/main.css">
<link rel="stylesheet" type="text/css" href="/css/signup.css">
</head>
<body>

{{> header}}

<div id="container">
<div id="content">
<h1 id="title"> Sign Up. </h1>
<form id="signup" method="post">
<input type="text" name="fName" id="fName" class="field" placeholder="First Name" required> <br>
<input type="text" name="lName" id="lName" class="field" placeholder="Last Name" required> <br>
<input type="number" name="idNum" id="idNum" class="field" placeholder="Id Number" required> <br>
<input type="password" name="pw" id="pw" class="field" placeholder="Password"> <br>
<input type="submit" id="submit" value="SUBMIT">
</form>
</div>
</div>

</body>
</html>
20 changes: 20 additions & 0 deletions views/success.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<title> Welcome! </title>
<link href="https://fonts.googleapis.com/css?family=Roboto|Rubik&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/css/main.css">
</head>
<body>

{{> header}}

<div id="container">
<div id="content">
<h1 id="title"> Welcome {{fName}} {{lName}}!</h1>
<p> Go to your profile <a href="/profile/{{idNum}}">here</a></p>
</div>
</div>

</body>
</html>

0 comments on commit 96c642d

Please sign in to comment.