diff --git a/TFR/server/__init__.py b/TFR/server/__init__.py index 053fc46..04a6baf 100644 --- a/TFR/server/__init__.py +++ b/TFR/server/__init__.py @@ -1,5 +1,3 @@ -from random import randint - from flask import Flask, render_template, abort from flask_assets import Bundle from werkzeug.exceptions import HTTPException @@ -53,8 +51,6 @@ def error_page(err): abort(500) return ( - render_template( - "error.html", error=err.code, msg=err.description, image=str(randint(1, 3)) - ), + render_template("error.html", error=err.code, msg=err.description), err.code, ) diff --git a/TFR/server/static/sass/profile-settings.sass b/TFR/server/static/sass/profile-settings.sass index 8219a87..4b613ac 100644 --- a/TFR/server/static/sass/profile-settings.sass +++ b/TFR/server/static/sass/profile-settings.sass @@ -12,6 +12,7 @@ flex-direction: column border: 1px solid RGBA($white, 0.1) + box-sizing: content-box > img height: 10rem @@ -67,7 +68,11 @@ gap: 0.5rem > .text-input - margin: 0 !important + margin: 0 + + > button + margin: 0 0 0 auto + width: auto @media (max-width: 621px) .profile-settings @@ -80,3 +85,7 @@ > img height: 13rem width: 13rem + + .other > button + margin: 0 + width: 100% \ No newline at end of file diff --git a/TFR/server/static/sass/style.sass b/TFR/server/static/sass/style.sass index fd0004f..716e30b 100644 --- a/TFR/server/static/sass/style.sass +++ b/TFR/server/static/sass/style.sass @@ -90,9 +90,16 @@ body padding: 0.5rem text-align: center - &.player - color: RGB($secondary) - text-shadow: 0 0 5px RGBA($secondary, 0.7) + > a + color: RGB($white) + text-decoration: none + + you + color: RGB($primary) + text-shadow: 0 0 5px RGBA($primary, 0.4) + + &:hover + text-decoration: underline > i padding: 0.25rem diff --git a/TFR/server/templates/error.html b/TFR/server/templates/error.html index 9dd1290..977574f 100644 --- a/TFR/server/templates/error.html +++ b/TFR/server/templates/error.html @@ -3,6 +3,6 @@
{{ msg }}
-Joined {{ user.joined_at.strftime('%Y-%m-%d') }}
-Best score: {{ scores[0].score | format_result }}
+Joined {{ user.joined_at|timesince }}