diff options
author | Andrew Godwin | 2022-11-05 18:00:01 -0600 |
---|---|---|
committer | Andrew Godwin | 2022-11-05 18:00:01 -0600 |
commit | fab75e097a25d4555cb1cdc43cc9346e0efa4bb3 (patch) | |
tree | b9122900a007dd98ba6bfee12265ad2d670d54e8 | |
parent | e44a321ec53bc84b5986ac0371b4122201fa3a5a (diff) | |
download | takahe-fab75e097a25d4555cb1cdc43cc9346e0efa4bb3.tar.gz takahe-fab75e097a25d4555cb1cdc43cc9346e0efa4bb3.tar.bz2 takahe-fab75e097a25d4555cb1cdc43cc9346e0efa4bb3.zip |
Style the profile page a bit
-rw-r--r-- | static/css/style.css | 32 | ||||
-rw-r--r-- | templates/base.html | 2 | ||||
-rw-r--r-- | 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 @@ <menu> <li> {% if user.is_authenticated %} - {{ user.email }} + Logout {% else %} <a href="/auth/login/">Login</a> {% 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 %} - <h1>{{ identity }} <small>{{ identity.handle }}</small></h1> + <h1 class="identity"> + {% if identity.icon_uri %} + <img src="{{identity.icon_uri}}" class="icon"> + {% endif %} + {{ identity }} <small>{{ identity.handle }}</small> + </h1> + + {% if not identity.local %} + <p class="system-note"> + This user is a member of another server. + <a href="{{ identity.profile_uri }}">See their original profile</a> + </p> + {% endif %} {% for status in statuses %} {% include "statuses/_status.html" %} |