From c7e8aeabdb4a2f37e32e19ffa031c11312548f29 Mon Sep 17 00:00:00 2001 From: Lynne Date: Thu, 29 Aug 2019 11:15:47 +1000 Subject: [PATCH] show welcome page before login page --- templates/login.html | 43 +++++++++++------------------------------- templates/welcome.html | 36 +++++++++++++++++++++++++++++++++++ webui.py | 4 ++++ 3 files changed, 51 insertions(+), 32 deletions(-) create mode 100644 templates/welcome.html diff --git a/templates/login.html b/templates/login.html index e1931ee..0998ec5 100644 --- a/templates/login.html +++ b/templates/login.html @@ -8,40 +8,19 @@
-

Welcome!

+

Log in

+
-
-
-
-
Login
-
-
-
- -
- -
-
-
-
- -
-
-
Create account
-
-
-
- -
- -
-
-
-
-
-
+
+
+ +
+
+ +
- + {% include 'footer.html' %} + diff --git a/templates/welcome.html b/templates/welcome.html new file mode 100644 index 0000000..2ca2817 --- /dev/null +++ b/templates/welcome.html @@ -0,0 +1,36 @@ + + + + + FediBooks + {% include 'imports.html' %} + + + +
+

Welcome!

+
+ +
+
+
+

+ Log in +
+ Log in to your existing account. +

+
+ +
+

+ Sign up +
+ Create a new account. +

+
+
+
+ + {% include 'footer.html' %} + + diff --git a/webui.py b/webui.py index b74f33f..a3e980c 100644 --- a/webui.py +++ b/webui.py @@ -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")