Style the profile page a bit

This commit is contained in:
Andrew Godwin 2022-11-05 18:00:01 -06:00
parent e44a321ec5
commit fab75e097a
3 changed files with 46 additions and 2 deletions

View file

@ -225,3 +225,35 @@ form input[type=submit] {
form input[type=submit]:hover { form input[type=submit]:hover {
background: var(--color-button-main-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;
}

View file

@ -17,7 +17,7 @@
<menu> <menu>
<li> <li>
{% if user.is_authenticated %} {% if user.is_authenticated %}
{{ user.email }} Logout
{% else %} {% else %}
<a href="/auth/login/">Login</a> <a href="/auth/login/">Login</a>
{% endif %} {% endif %}

View file

@ -3,7 +3,19 @@
{% block title %}{{ identity }}{% endblock %} {% block title %}{{ identity }}{% endblock %}
{% block content %} {% 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 %} {% for status in statuses %}
{% include "statuses/_status.html" %} {% include "statuses/_status.html" %}