Fix author section

pull/3/head
beucismis 1 year ago
parent ea9ca479aa
commit 05d1fa0159
  1. 9
      ozgursozluk/static/style.css
  2. 28
      ozgursozluk/templates/author.html

@ -144,8 +144,9 @@ form input, form select, form button {
} }
.author { .author {
width: 50%; width: 45%;
margin: 3rem auto; text-align: center;
margin: 3rem auto 1rem auto;
background-color: var(--entry-bg); background-color: var(--entry-bg);
} }
@ -154,7 +155,7 @@ form input, form select, form button {
width: 100px; width: 100px;
height: 100px; height: 100px;
border-radius: 50%; border-radius: 50%;
margin-right: 0.5rem; padding-top: 0.5rem;
} }
.settings { .settings {
@ -178,7 +179,7 @@ form input, form select, form button {
width: 100%; width: 100%;
} }
nav, .title, .description { nav, .title, .description, .author {
text-align: left; text-align: left;
} }

@ -3,21 +3,14 @@
{% block main %} {% block main %}
<nav>{% include "navigation.html" %}</nav> <nav>{% include "navigation.html" %}</nav>
<div class="author"> <div class="author">
<div style="display: flex; padding: 0.5rem;"> <img class="avatar" src="{{ author.avatar_link }}">
<img class="avatar" src="{{ author.avatar_link }}"> <div style="padding: 0 0.5rem 0.5rem 0.5rem;">
<div style="display: flex; flex-wrap: wrap; align-items: center;"> {{ author.nickname }}
{{ author.nickname }} {% if author.level != "" %}
{% if author.level != "" %} -
-&nbsp; <span style="opacity: 0.5;">{{ author.level }}</span>
<span style="opacity: 0.5;">{{ author.level }}</span>
{% endif %}
</div>
</div>
<div style="padding: 0.5rem; padding-top: 1.3rem;">
{% if author.biography != "" %}
<small>{{ author.biography|safe }}</small>
</br>
{% endif %} {% endif %}
</br>
<small>{{ author.entry_total_count }} entry</small> <small>{{ author.entry_total_count }} entry</small>
- -
<small>{{ author.user_follower_count }} follower</small> <small>{{ author.user_follower_count }} follower</small>
@ -25,4 +18,11 @@
<small>{{ author.user_following_count }} following</small> <small>{{ author.user_following_count }} following</small>
</div> </div>
</div> </div>
{% if author.biography != "" %}
<div class="author" style="margin: 0 auto;">
<div style="padding: 0.5rem; text-align: left;">
{{ author.biography|safe }}
</div>
</div>
{% endif %}
{% endblock %} {% endblock %}

Loading…
Cancel
Save