From fab75e097a25d4555cb1cdc43cc9346e0efa4bb3 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 5 Nov 2022 18:00:01 -0600 Subject: Style the profile page a bit --- static/css/style.css | 32 ++++++++++++++++++++++++++++++++ templates/base.html | 2 +- templates/identity/view.html | 14 +++++++++++++- 3 files changed, 46 insertions(+), 2 deletions(-) diff --git a/static/css/style.css b/static/css/style.css index 6876156..93672c0 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -225,3 +225,35 @@ form input[type=submit] { form input[type=submit]:hover { background: var(--color-button-main-hover); } + +/* Identities */ + +h1.identity { + margin: 0 0 20px 0; +} + +h1.identity .icon { + width: 80px; + height: 80px; + float: left; + margin: 0 20px 0 0; +} + +h1.identity small { + display: block; + font-size: 80%; + font-weight: normal; + color: var(--color-text-dull); + margin: -10px 0 0 0; +} + +.system-note { + background: var(--color-bg2); + color: var(--color-text-dull); + border-radius: 3px; + padding: 5px 8px; +} + +.system-note a { + color: inherit; +} diff --git a/templates/base.html b/templates/base.html index 79a5e87..4dc62ca 100644 --- a/templates/base.html +++ b/templates/base.html @@ -17,7 +17,7 @@
  • {% if user.is_authenticated %} - {{ user.email }} + Logout {% else %} Login {% endif %} diff --git a/templates/identity/view.html b/templates/identity/view.html index f0a8a02..68bb7a3 100644 --- a/templates/identity/view.html +++ b/templates/identity/view.html @@ -3,7 +3,19 @@ {% block title %}{{ identity }}{% endblock %} {% block content %} -

    {{ identity }} {{ identity.handle }}

    +

    + {% if identity.icon_uri %} + + {% endif %} + {{ identity }} {{ identity.handle }} +

    + + {% if not identity.local %} +

    + This user is a member of another server. + See their original profile +

    + {% endif %} {% for status in statuses %} {% include "statuses/_status.html" %} -- cgit v1.2.3