-
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.
- Loading branch information
Showing
7 changed files
with
162 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Create Account</title> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"> | ||
</head> | ||
<body> | ||
<section class="section"> | ||
<div class="container"> | ||
<h1 class="title">Create Account</h1> | ||
<form> | ||
<div class="field"> | ||
<label class="label">Email</label> | ||
<div class="control"> | ||
<input class="input" type="email" placeholder="Enter your email" required> | ||
</div> | ||
</div> | ||
|
||
<div class="field"> | ||
<label class="label">Password</label> | ||
<div class="control"> | ||
<input class="input" type="password" placeholder="Enter your password" required> | ||
</div> | ||
</div> | ||
|
||
<div class="field"> | ||
<label class="label">Confirm Password</label> | ||
<div class="control"> | ||
<input class="input" type="password" placeholder="Confirm your password" required> | ||
</div> | ||
</div> | ||
|
||
<div class="field"> | ||
<div class="control"> | ||
<button class="button is-primary">Create Account</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</section> | ||
</body> | ||
</html> |
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,41 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Login</title> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.9.3/css/bulma.min.css"> | ||
</head> | ||
<body> | ||
<section class="hero is-fullheight"> | ||
<div class="hero-body"> | ||
<div class="container"> | ||
<div class="columns is-centered"> | ||
<div class="column is-4-desktop"> | ||
<form class="box"> | ||
<h1 class="title has-text-centered">Login</h1> | ||
<div class="field"> | ||
<label class="label">Email</label> | ||
<div class="control"> | ||
<input class="input" type="email" placeholder="e.g. [email protected]" required> | ||
</div> | ||
</div> | ||
<div class="field"> | ||
<label class="label">Password</label> | ||
<div class="control"> | ||
<input class="input" type="password" placeholder="********" required> | ||
</div> | ||
</div> | ||
<div class="field"> | ||
<div class="control"> | ||
<button class="button is-primary is-fullwidth">Login</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
</body> | ||
</html> |
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,50 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Lost Password</title> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"> | ||
</head> | ||
<body> | ||
<section class="section"> | ||
<div class="container"> | ||
<h1 class="title">Lost Password</h1> | ||
<form action="/send_pin" method="post"> | ||
<div class="field"> | ||
<label class="label">Email</label> | ||
<div class="control"> | ||
<input class="input" type="email" name="email" placeholder="Enter your email" required> | ||
</div> | ||
</div> | ||
<div class="control"> | ||
<button class="button is-link" type="submit">Send PIN</button> | ||
</div> | ||
</form> | ||
<form action="/reset_password" method="post" style="margin-top: 20px;"> | ||
<div class="field"> | ||
<label class="label">PIN</label> | ||
<div class="control"> | ||
<input class="input" type="text" name="pin" placeholder="Enter the PIN" required> | ||
</div> | ||
</div> | ||
<div class="field"> | ||
<label class="label">New Password</label> | ||
<div class="control"> | ||
<input class="input" type="password" name="new_password" placeholder="Enter new password" required> | ||
</div> | ||
</div> | ||
<div class="field"> | ||
<label class="label">Confirm Password</label> | ||
<div class="control"> | ||
<input class="input" type="password" name="confirm_password" placeholder="Confirm new password" required> | ||
</div> | ||
</div> | ||
<div class="control"> | ||
<button class="button is-link" type="submit">Reset Password</button> | ||
</div> | ||
</form> | ||
</div> | ||
</section> | ||
</body> | ||
</html> |
Empty file.
Empty file.
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,27 @@ | ||
from pages.page import page | ||
|
||
from genhtml.web.html import html | ||
from genhtml.web.body import body | ||
from genhtml.web.para import para | ||
from genhtml.web.div import div | ||
|
||
from genhtml.web.script import script | ||
from genhtml.web.button import button | ||
|
||
from genhtml.builder.head_builder import head_builder | ||
|
||
class login(page): | ||
def __init__(self): | ||
pass | ||
|
||
def __str__(self): | ||
with html(head_builder()) as _html: | ||
with body() as _body: | ||
_body.append(para("Login")) | ||
with div() as _div: | ||
_div.append(para("Email")) | ||
_div.append(para("Password")) | ||
_div.append(button("Login")) | ||
|
||
_html.append(_body) | ||
return str(_html) |
Empty file.