1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-12-28 23:38:57 +00:00

show welcome page before login page

This commit is contained in:
Lynne Megido 2019-08-29 11:15:47 +10:00
parent 994b88ec5e
commit c7e8aeabdb
3 changed files with 51 additions and 32 deletions

View file

@ -8,40 +8,19 @@
<body>
<div class="container">
<h1 class="display-3 centred">Welcome!</h1>
<h1 class="thin centred">Log in</h1>
</div>
<div class="container">
<div class="row">
<div class="col">
<div class="card">
<h5 class="card-header">Login</h5>
<div class="card-body">
<form>
<label for="email">Email</label><br>
<input type="email" class="form-control" name="email">
<label for="password">Password</label><br>
<input type="password" class="form-control" name="password">
</form>
</div>
</div>
</div>
<div class="col">
<div class="card">
<h5 class="card-header">Create account</h5>
<div class="card-body">
<form>
<label for="email">Email</label><br>
<input type="email" class="form-control" name="email">
<label for="password">Password</label><br>
<input type="password" class="form-control" name="password">
</form>
</div>
</div>
</div>
</div>
<hr />
<form>
<label for="email">Email</label><br>
<input type="email" name="email" placeholder="you@example.com">
<br>
<label for="password">Password</label><br>
<input type="password" name="password" placeholder="password">
</form>
</div>
</body>
{% include 'footer.html' %}
</body>
</html>

36
templates/welcome.html Normal file
View file

@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>FediBooks</title>
{% include 'imports.html' %}
</head>
<body>
<div class="container">
<h1 class="thin centred">Welcome!</h1>
</div>
<div class="container">
<div class="row">
<div class="column">
<p class="centred">
<a class="button btn-primary btn-large">Log in</a>
<br>
Log in to your existing account.
</p>
</div>
<div class="column">
<p class="centred">
<a class="button btn-primary btn-large">Sign up</a>
<br>
Create a new account.
</p>
</div>
</div>
</div>
{% include 'footer.html' %}
</body>
</html>

View file

@ -6,6 +6,10 @@ app = Flask(__name__)
def hello():
return render_template("front_page.html")
@app.route("/welcome")
def welcome():
return render_template("welcome.html")
@app.route("/login")
def show_login_page():
return render_template("login.html")