Redesigned headerbar

This commit is contained in:
2025-12-15 17:07:42 +01:00
parent 35ba9e08ed
commit cfebe0a535
3 changed files with 35 additions and 11 deletions
+5
View File
@@ -51,6 +51,11 @@ hr {
#infinite-scroll-indicator { #infinite-scroll-indicator {
text-align: center; } text-align: center; }
#headerbar {
display: flex;
flex-direction: row;
justify-content: space-between; }
form { form {
display: flex; display: flex;
flex-direction: column; } flex-direction: column; }
+14
View File
@@ -68,6 +68,20 @@ hr {
text-align: center; text-align: center;
} }
#headerbar {
display: flex;
flex-direction: row;
justify-content: space-between;
// .headerbar-left {
// background-color: red;
// }
// .headerbar-right {
// background-color: green;
// }
}
// // @font-face { // // @font-face {
// // font-family: 'avenir'; // // font-family: 'avenir';
+6 -1
View File
@@ -1,3 +1,5 @@
<div id="headerbar">
<div class="headerbar-left">
{% if loggedin %} {% if loggedin %}
<button hx-get="/auth/sessioninfo" hx-target="#main-frame">Username</button> <button hx-get="/auth/sessioninfo" hx-target="#main-frame">Username</button>
<button onclick="if(confirm('Abmelden?')){location.href = '/auth/logout';}">Abmelden</button> <button onclick="if(confirm('Abmelden?')){location.href = '/auth/logout';}">Abmelden</button>
@@ -5,7 +7,10 @@
<button hx-get="/auth/login" hx-target="#main-frame">Anmelden</button> <button hx-get="/auth/login" hx-target="#main-frame">Anmelden</button>
<button hx-get="/auth/newuser" hx-target="#main-frame">Neuen Account erstellen</button> <button hx-get="/auth/newuser" hx-target="#main-frame">Neuen Account erstellen</button>
{% endif %} {% endif %}
</div>
<div class="headerbar-right">
<a href="/docs/impressum.html">Impressum</a> <a href="/docs/impressum.html">Impressum</a>
<a href="/docs/datenschutz.html">Datenschutz</a> <a href="/docs/datenschutz.html">Datenschutz</a>
<a href="/docs/kontakt.html">Kontakt</a> <a href="/docs/kontakt.html">Kontakt</a>
</div>
</div>