-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Petition Project, Register and Log In
- Loading branch information
Showing
8 changed files
with
221 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
CREATE TABLE users ( | ||
id SERIAL PRIMARY KEY, | ||
first VARCHAR (255) NOT NULL, | ||
last VARCHAR (255) NOT NULL, | ||
email VARCHAR(255) NOT NULL UNIQUE, | ||
password VARCHAR (100) NOT NULL, | ||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<div class="main"> | ||
|
||
<div class="picture"> | ||
<img src="/pizza.jpg" id="ananas"> | ||
</div> | ||
|
||
<h1>Please log in</h1> | ||
|
||
<div class="form"> | ||
<form method="post"> | ||
<input type="text" name="email" value="" placeholder="Email Address" class="input-field"><br/><br/> | ||
<input type="text" name="password" value="" placeholder="Password" class="input-field"><br/><br/> | ||
<br><br> | ||
{{#error}} | ||
<div class="error">Oooops! Something went wrong. Try again</div> | ||
{{/error}} | ||
<input type="submit" value="Log In" id="submit-btn"> | ||
</form> | ||
</div> | ||
|
||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<div class="main"> | ||
<h1>Register for our good cause</h1> | ||
|
||
<div class="picture"> | ||
<img src="/pizza.jpg" id="ananas"> | ||
</div> | ||
|
||
<div class="form"> | ||
<form method="post"> | ||
|
||
<input type="text" name="first" value="" placeholder="First Name" class="input-field"><br/><br/> | ||
<input type="text" name="last" value="" placeholder="Last Name" class="input-field"><br/><br/> | ||
<input type="text" name="email" value="" placeholder="Email Address" class="input-field"><br/><br/> | ||
<input type="text" name="password" value="" placeholder="Password" class="input-field"><br/><br/> | ||
<br> | ||
{{#error}} | ||
<div class="error">Oooops! Something went wrong. Try again</div> | ||
{{/error}} | ||
<br> | ||
<input type="submit" value="Sign Up" id="submit-btn"> | ||
</form> | ||
</div> | ||
|
||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters