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 %} +
+