From eaf87b24f2baf12bb4e8b2963d949dd8530cd501 Mon Sep 17 00:00:00 2001 From: pg Date: Fri, 18 Mar 2022 10:43:30 +0100 Subject: [PATCH] Added Contact and Donate Page --- faceitstalker_docker/app/main.py | 11 ++++++++--- faceitstalker_docker/app/templates/base.html | 17 +++++++++++++++++ faceitstalker_docker/app/templates/contact.html | 17 +++++++++++++++++ faceitstalker_docker/app/templates/donate.html | 14 ++++++++++++++ 4 files changed, 56 insertions(+), 3 deletions(-) create mode 100644 faceitstalker_docker/app/templates/contact.html create mode 100644 faceitstalker_docker/app/templates/donate.html diff --git a/faceitstalker_docker/app/main.py b/faceitstalker_docker/app/main.py index e8968e2..2f6a3c1 100644 --- a/faceitstalker_docker/app/main.py +++ b/faceitstalker_docker/app/main.py @@ -40,8 +40,13 @@ def index(): +@app.route("/contact") +def contact(): + return render_template('contact.html') - +@app.route("/donate") +def donate(): + return render_template('donate.html') @@ -94,8 +99,8 @@ def get_evererything(steamid): if __name__ == "__main__": - #app.run(host="127.0.0.1", port=8080, debug=True) - serve(app, host='0.0.0.0', port=8080) + app.run(host="127.0.0.1", port=8080, debug=True) + #serve(app, host='0.0.0.0', port=8080) diff --git a/faceitstalker_docker/app/templates/base.html b/faceitstalker_docker/app/templates/base.html index 2367ae8..5f7e726 100644 --- a/faceitstalker_docker/app/templates/base.html +++ b/faceitstalker_docker/app/templates/base.html @@ -60,6 +60,18 @@ .input-form-container textarea.status_screen_input { resize: none; } + + .footer { + position:absolute; + bottom:0; + width:100%; + background: #212121; + margin 0 auto; + } + + .text-muted{ + margin 0 auto; + } @@ -89,6 +101,11 @@ {% block content %} {% endblock %} + \ No newline at end of file diff --git a/faceitstalker_docker/app/templates/contact.html b/faceitstalker_docker/app/templates/contact.html new file mode 100644 index 0000000..71b6272 --- /dev/null +++ b/faceitstalker_docker/app/templates/contact.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} +{% block titel %}Faceit Elo Search by HerZ{% endblock %} +{% block content %} + +
+
+
Contact
+

You can reach out to me via the following methods

+
+ +
+{% endblock %} \ No newline at end of file diff --git a/faceitstalker_docker/app/templates/donate.html b/faceitstalker_docker/app/templates/donate.html new file mode 100644 index 0000000..3879922 --- /dev/null +++ b/faceitstalker_docker/app/templates/donate.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} +{% block titel %}Faceit Elo Search by HerZ{% endblock %} +{% block content %} + +
+
+
Donate
+

If u want to support this project u can donate some change via my StreamElements page

+
+ +
+{% endblock %} \ No newline at end of file