From 8f031c432fab0d82ba9d0f9a1dc3def4bbdfdbee Mon Sep 17 00:00:00 2001
From: Samuel ORTION
Date: Fri, 27 May 2022 10:19:49 +0200
Subject: [PATCH] Add about route, fix bootstrap form styles
---
TODO | 0
app.py | 4 ++++
sync.sh | 2 ++
templates/about/index.html | 6 ++++++
templates/auth/login.html | 14 +++++++++-----
templates/auth/signup.html | 22 ++++++++++++++--------
6 files changed, 35 insertions(+), 13 deletions(-)
create mode 100644 TODO
create mode 100644 sync.sh
create mode 100644 templates/about/index.html
diff --git a/TODO b/TODO
new file mode 100644
index 0000000..e69de29
diff --git a/app.py b/app.py
index 3c912b1..2e5dde0 100644
--- a/app.py
+++ b/app.py
@@ -146,4 +146,8 @@ def game_answer():
return render_template("game/new.html")
+@app.route("/about")
+def about():
+ return render_template("about/index.html")
+
migrate = Migrate(app, db)
\ No newline at end of file
diff --git a/sync.sh b/sync.sh
new file mode 100644
index 0000000..d4a294b
--- /dev/null
+++ b/sync.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+rsync -avz ./ root@birdquizz.1ib.re:/var/www/birdquizz
\ No newline at end of file
diff --git a/templates/about/index.html b/templates/about/index.html
new file mode 100644
index 0000000..7111798
--- /dev/null
+++ b/templates/about/index.html
@@ -0,0 +1,6 @@
+{% extends "base.html" %}
+{% block content %}
+
+ {{ _('About BirdQuizz') }}
+
+{% endblock %}
\ No newline at end of file
diff --git a/templates/auth/login.html b/templates/auth/login.html
index 675e724..6148871 100644
--- a/templates/auth/login.html
+++ b/templates/auth/login.html
@@ -9,11 +9,15 @@
{% endif %}
{{ _('Sign up') }}
diff --git a/templates/auth/signup.html b/templates/auth/signup.html
index 39280d0..be58e2d 100644
--- a/templates/auth/signup.html
+++ b/templates/auth/signup.html
@@ -8,14 +8,20 @@
{% endif %}
-
{% endblock %}