marek 1 månad sedan
förälder
incheckning
28fe915ced

+ 0 - 5
assets/css/style.css

@@ -96,12 +96,7 @@ header > * {
     height: 1em;
 }
 
-header .languageSwitcher {
-    font-size: 1.3em;
-}
-
 header .links {
-    font-size: 1.1em;
     display: flex;
     gap: 1em;
     align-items: center;

+ 1 - 3
templates/en/panel/index.eta

@@ -20,6 +20,4 @@
 <section>
     <h3>recent warnings</h3>
     <p>no recent warnings yet.</p>
-</section>
-
-<a role="button" class="danger" href="/en/auth/logout">logout</a>
+</section>

+ 8 - 1
templates/en/panel/partials/navbar.eta

@@ -51,8 +51,14 @@
   </svg>
 ` %>
 
+<% const logoutIcon = `
+    <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
+        <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m16 17l5-5l-5-5m5 5H9m0 9H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" />
+    </svg>
+` %>
+
 <header>
-    <div class="links languageSwitcher">
+    <div class="links">
         <a role="button" href="/panel"><%~ skFlag %></a>
         <a role="button" href="/en"><%~ homeIcon %></a>
     </div>
@@ -63,5 +69,6 @@
         <a role="button" href="/en/panel"><%~ dashboardIcon %> dashboard</a>
         <a role="button" href="/en/panel/stations"><%~ stationsIcon %> stations</a>
         <a role="button" href="/en/panel/settings"><%~ settingsIcon %> settings</a>
+        <a role="button" href="/en/auth/logout"><%~ logoutIcon %> logout</a>
     </div>
 </header>

+ 1 - 1
templates/en/partials/navbar.eta

@@ -34,7 +34,7 @@
 ` %>
 
 <header>
-    <div class="links languageSwitcher">
+    <div class="links">
         <a role="button" href="/"><%~ skFlag %></a>
     </div>
 

+ 1 - 3
templates/sk/panel/index.eta

@@ -20,6 +20,4 @@
 <section>
     <h3>posledné upozornenia</h3>
     <p>zatiaľ žiadne upozornenia.</p>
-</section>
-
-<a role="button" class="danger" href="/auth/logout">odhlásiť sa</a>
+</section>

+ 8 - 1
templates/sk/panel/partials/navbar.eta

@@ -48,8 +48,14 @@
   </svg>
 ` %>
 
+<% const logoutIcon = `
+    <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
+        <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m16 17l5-5l-5-5m5 5H9m0 9H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" />
+    </svg>
+` %>
+
 <header>
-    <div class="links languageSwitcher">
+    <div class="links">
         <a role="button" href="/en/panel"><%~ usFlag %></a>
         <a role="button" href="/"><%~ homeIcon %></a>
     </div>
@@ -60,5 +66,6 @@
         <a role="button" href="/panel"><%~ dashboardIcon %> dashboard</a>
         <a role="button" href="/panel/stations"><%~ stationsIcon %> stanice</a>
         <a role="button" href="/panel/settings"><%~ settingsIcon %> nastavenia</a>
+        <a role="button" href="/auth/logout"><%~ logoutIcon %> odhlásiť sa</a>
     </div>
 </header>

+ 1 - 1
templates/sk/partials/navbar.eta

@@ -31,7 +31,7 @@
 ` %>
 
 <header>
-    <div class="links languageSwitcher">
+    <div class="links">
         <a role="button" href="/en"><%~ usFlag %></a>
     </div>