mirror of
https://github.com/Lynnesbian/FediBooks/
synced 2024-11-25 16:48:58 +00:00
show welcome page before login page
This commit is contained in:
parent
994b88ec5e
commit
c7e8aeabdb
3 changed files with 51 additions and 32 deletions
|
@ -8,40 +8,19 @@
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1 class="display-3 centred">Welcome!</h1>
|
<h1 class="thin centred">Log in</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<form>
|
||||||
<div class="col">
|
<label for="email">Email</label><br>
|
||||||
<div class="card">
|
<input type="email" name="email" placeholder="you@example.com">
|
||||||
<h5 class="card-header">Login</h5>
|
<br>
|
||||||
<div class="card-body">
|
<label for="password">Password</label><br>
|
||||||
<form>
|
<input type="password" name="password" placeholder="password">
|
||||||
<label for="email">Email</label><br>
|
</form>
|
||||||
<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 />
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
|
||||||
|
|
||||||
|
{% include 'footer.html' %}
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
36
templates/welcome.html
Normal file
36
templates/welcome.html
Normal 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>
|
4
webui.py
4
webui.py
|
@ -6,6 +6,10 @@ app = Flask(__name__)
|
||||||
def hello():
|
def hello():
|
||||||
return render_template("front_page.html")
|
return render_template("front_page.html")
|
||||||
|
|
||||||
|
@app.route("/welcome")
|
||||||
|
def welcome():
|
||||||
|
return render_template("welcome.html")
|
||||||
|
|
||||||
@app.route("/login")
|
@app.route("/login")
|
||||||
def show_login_page():
|
def show_login_page():
|
||||||
return render_template("login.html")
|
return render_template("login.html")
|
||||||
|
|
Loading…
Reference in a new issue