[COMPONENTS][Feed] Styling for the empty feed page added

This commit is contained in:
2021-12-29 19:31:28 +00:00
parent f28ed5e359
commit 49d247aec2
4 changed files with 27 additions and 6 deletions

View File

@@ -9,6 +9,7 @@
{% endblock stylesheets %}
{% block body %}
{% if notes is defined and notes is not empty %}
<header class="feed-header">
{% if page_title is defined %}
<h1>{{ page_title | trans }}</h1>
@@ -19,6 +20,7 @@
{% endfor %}
</nav>
</header>
{% endif %}
{# Backwards compatibility with hAtom 0.1 #}
<main class="feed" tabindex="0" role="feed">
@@ -35,7 +37,9 @@
{% endblock current_note %}
{% endfor %}
{% else %}
<div id="empty-notes"><h1>{% trans %}No notes here.{% endtrans %}</h1></div>
<div class="feed-empty">
{{ icon('logo', 'icon feed-background') | raw }}
</div>
{% endif %}
</div>
</main>