diff --git a/tiny0/routes.py b/tiny0/routes.py index cf35a0a..7a34f1a 100644 --- a/tiny0/routes.py +++ b/tiny0/routes.py @@ -12,7 +12,7 @@ def index(): # If the form was valid if form.validate_on_submit(): - return "Valid URL: " + form.url.data + return render_template("url.html", url=form.url.data) # If the form was invalid or not submitted else: diff --git a/tiny0/static/style.css b/tiny0/static/style.css index ecc85ea..6e3e731 100644 --- a/tiny0/static/style.css +++ b/tiny0/static/style.css @@ -9,7 +9,7 @@ body { } -.header { +.headers { position: absolute; margin-left: auto; margin-right: auto; @@ -19,9 +19,15 @@ body { text-align: center; } -.title { - color: #ffffff; +.title:link { + color: #bb86fc; + text-decoration: none; font-size: 50px; + font-weight: bold; +} + +.title:hover { + color: #7b59a5; } .desc { @@ -61,7 +67,7 @@ body { border-color: #7b59a5; } -.submit { +.button { background: #bb86fc; border: 2px solid #bb86fc; border-radius: 3px; @@ -71,7 +77,7 @@ body { margin: 0 3% 0 1%; } -.submit:hover { +.button:hover { background: #7b59a5; border-color: #7b59a5; } diff --git a/tiny0/templates/index.html b/tiny0/templates/index.html index 3063b0e..e45c483 100644 --- a/tiny0/templates/index.html +++ b/tiny0/templates/index.html @@ -3,58 +3,59 @@ {% block body %} {% if form.url.errors %}
-