]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - index.html
Merge pull request #8 from fbartels/subdir
[github/bastienwirtz/homer.git] / index.html
index 6b75e497b197b09cd846e592cb5e52e51d0044f4..1883223d73002e5ffd27780d23d006497914e1d2 100644 (file)
@@ -14,7 +14,7 @@
 </head>
 
 <body>
-  <div id="app" v-if="config">
+  <div id="app" v-if="config" :class="[isDark ? 'is-dark' : 'is-light']">
     <div id="bighead">
       <section class="first-line">
         <div v-cloak class="container">
                 </a>
               </div>
               <div class="end">
-                <a v-on:click="vlayout = !vlayout" class="icon-button navbar-item"><i
+                  <a
+                    v-on:click="toggleTheme()"
+                    aria-label="Toggle dark mode"
+                    ><i class="fas fa-adjust"></i>
+                </a>
+                <a v-on:click="toggleLayout()" class="icon-button navbar-item"><i
                     :class="['fas', vlayout ? 'fa-list' : 'fa-columns']"></i></a>
                 <div class="search-bar">
                   <label for="search" class="search-label"></label>
         </div>
       </div>
     </section>
+    <footer class="footer">
+        <div class="container">
+          <div class="content has-text-centered">
+            <p>Created with <span class="has-text-danger">❤️</span> with <a href="https://bulma.io/">bulma</a>, <a
+                href="https://vuejs.org/">vuejs</a>
+              & <a href="https://fontawesome.com/">font awesome</a> // Fork me on <a href="https://github.com/bastienwirtz/homer"><i
+                  class="fab fa-github-alt"></i></a></p>
+          </div>
+        </div>
+      </footer>
   </div>
 
-  <footer class="footer">
-    <div class="container">
-      <div class="content has-text-centered">
-        <p>Created with <span class="has-text-danger">❤️</span> with <a href="https://bulma.io/">bulma</a>, <a
-            href="https://vuejs.org/">vuejs</a>
-          & <a href="#">font awesome</a> // Fork me on <a href="https://github.com/bastienwirtz/homer"><i
-              class="fab fa-github-alt"></i></a></p>
-      </div>
-    </div>
-  </footer>
-
   <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.min.js"></script>
   <script src="vendors/js-yaml.min.js"></script>
   <script src="app.js"></script>