Redesigned headerbar
This commit is contained in:
@@ -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; }
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user