diff --git a/tiny0/routes.py b/tiny0/routes.py index 9a876a0..7e54400 100644 --- a/tiny0/routes.py +++ b/tiny0/routes.py @@ -44,6 +44,10 @@ def short_url(token): # Redirect to the url of the token return redirect(query.url) +# Donate route +@app.route("/donate") +def donate(): + return render_template("donate.html") # Error handling routes @app.errorhandler(404) diff --git a/tiny0/static/style.css b/tiny0/static/style.css index d5a3feb..6ab4a10 100644 --- a/tiny0/static/style.css +++ b/tiny0/static/style.css @@ -99,6 +99,17 @@ body { margin: 40vh auto 0 auto; } +.donation { + position: absolute; + left: 0; + right: 0; + color: #ffffff; + list-style: none; + text-align: center; + margin: 40vh auto 0 auto; +} + + .page-container { position: relative; min-height: 100vh; @@ -123,6 +134,7 @@ footer { .footer-list li { color: #ffffff; + display: inline; } .footer-list li a:link { @@ -130,6 +142,10 @@ footer { text-decoration: none; } +.footer-list li a:visited { + color: #bb86fc; +} + .footer-list li a:hover { color: #7b59a5; } diff --git a/tiny0/templates/donate.html b/tiny0/templates/donate.html new file mode 100644 index 0000000..76b677d --- /dev/null +++ b/tiny0/templates/donate.html @@ -0,0 +1,15 @@ +{% extends "layout.html" %} + +{% block body %} + +
+ tiny0 +

Custom URL Shortener

+
+ + + +{% endblock %} \ No newline at end of file diff --git a/tiny0/templates/error.html b/tiny0/templates/error.html index f91b805..e38b922 100644 --- a/tiny0/templates/error.html +++ b/tiny0/templates/error.html @@ -6,6 +6,7 @@ tiny0

Custom URL Shortener

+

{{ error_message }}

diff --git a/tiny0/templates/index.html b/tiny0/templates/index.html index 241447f..66faccf 100644 --- a/tiny0/templates/index.html +++ b/tiny0/templates/index.html @@ -14,6 +14,7 @@

{% endif %} +
{{ form.hidden_tag() }} diff --git a/tiny0/templates/layout.html b/tiny0/templates/layout.html index bf1b083..6370967 100644 --- a/tiny0/templates/layout.html +++ b/tiny0/templates/layout.html @@ -18,7 +18,10 @@ diff --git a/tiny0/templates/url.html b/tiny0/templates/url.html index f2b2538..c415b0d 100644 --- a/tiny0/templates/url.html +++ b/tiny0/templates/url.html @@ -7,12 +7,12 @@

Custom URL Shortener

-
-
- - -
+
+
+ +
+