Prechádzať zdrojové kódy

presunutie language switchera

marek 1 mesiac pred
rodič
commit
bd59d10443

+ 1 - 1
assets/css/style.css

@@ -100,7 +100,7 @@ header > * {
     height: 1em;
 }
 
-header .end {
+header .links {
     font-size: 1.3em;
     display: flex;
     gap: 1em;

+ 5 - 2
templates/en/partials/topbar.eta

@@ -75,12 +75,15 @@
 <% const date = new Date() %>
 
 <header>
+    <div class="links">
+        <a role="button" href="/"><%~ skFlag %></a>
+    </div>
+
     <p><%~ timeIcon %> <span id="topbarTime"><%= date.toLocaleString('en-US', { hour: 'numeric', minute: 'numeric', second: 'numeric', hour12: true }) %></span></p>
     
     <p><%~ dateIcon %> <span id="topbarDate"><%= date.toLocaleDateString('en-US', { weekday: "long", year: "numeric", month: "long", day: "numeric" }) %></span></p>
         
-    <div class="end">
-        <a role="button" href="/"><%~ skFlag %></a>
+    <div class="links">
         <a role="button" href="/en"><%~ homeIcon %></a>
         <a role="button" href="/en/history"><%~ historyIcon %></a>
         <a role="button" href="/en/settings"><%~ settingsIcon %></a>

+ 5 - 2
templates/sk/partials/topbar.eta

@@ -72,12 +72,15 @@
 <% const date = new Date() %>
 
 <header>
+    <div class="links">
+        <a role="button" href="/en"><%~ usFlag %></a>
+    </div>
+
     <p><%~ timeIcon %> <span id="topbarTime"><%= date.toLocaleString('sk-SK', { hour: 'numeric', minute: 'numeric', second: 'numeric' }) %></span></p>
     
     <p><%~ dateIcon %> <span id="topbarDate"><%= date.toLocaleDateString('sk-SK', { weekday: "long", year: "numeric", month: "long", day: "numeric" }) %></span></p>
         
-    <div class="end">
-        <a role="button" href="/en"><%~ usFlag %></a>
+    <div class="links">
         <a role="button" href="/"><%~ homeIcon %></a>
         <a role="button" href="/history"><%~ historyIcon %></a>
         <a role="button" href="/settings"><%~ settingsIcon %></a>