about summary refs log tree commit diff
path: root/src/components/NavBar.vue
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-08-14 15:29:35 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-08-14 15:29:35 +0200
commitc07a0975cac41351dfbc7dce93718f5da28fdab8 (patch)
treeae136be1720c04ad7a8daa35b13637b3e00f0fda /src/components/NavBar.vue
parent5de4fe426fbd8b74d52768ca17b79ca6c1e15f65 (diff)
downloadpuszcza-c07a0975cac41351dfbc7dce93718f5da28fdab8.tar.gz
puszcza-c07a0975cac41351dfbc7dce93718f5da28fdab8.zip
Update NavBar
Diffstat (limited to 'src/components/NavBar.vue')
-rw-r--r--src/components/NavBar.vue24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue
index 327a093..ac114f9 100644
--- a/src/components/NavBar.vue
+++ b/src/components/NavBar.vue
@@ -1,12 +1,12 @@
 <template>
   <nav :class="navbarClass">
     <div class="title">
-      <img v-if="logo" class="logo" :src="logo" />
+      <img v-if="logo" class="logo" :src="logo" alt="ZHR" />
       <router-link :class="titleClass" to="/">{{ title }}</router-link>
     </div>
     <div class="space"></div>
     <button @click="toggleMenu" class="menu-toggler">Menu</button>
-    <div :class="linksClass" @click="toggleMenu">
+    <ul :class="linksClass" @click="toggleMenu">
       <!-- Loop for generating links -->
       <NavLink v-for="route in routes" :key="route.path" :link="route.path" :name="route.name"></NavLink>
       <NavLink
@@ -16,7 +16,7 @@
         :name="route.name"
         :external="true"
       ></NavLink>
-    </div>
+    </ul>
   </nav>
 </template>
 
@@ -156,12 +156,14 @@ export default {
   }
 
   .links.show {
-    display: block !important;
+    display: flex !important;
+    flex-direction: column;
+    justify-content: center;
+    align-items: center;
 
     width: 100%;
     left: 0;
     top: 0;
-    padding-bottom: 20px;
 
     background: #fff;
   }
@@ -176,10 +178,6 @@ export default {
   .navbar {
     margin-bottom: 40px;
   }
-
-  .links {
-    margin-top: 120px;
-  }
 }
 
 @media (max-width: 500px) {
@@ -191,14 +189,16 @@ export default {
     width: 85px;
   }
 
-  .title-name,
+  .title-name {
+    font-size: 20px;
+  }
+
   .title-name.margin {
     margin-left: 80px;
-    font-size: 20px;
   }
 
   .links.show {
-    height: 100%;
+    height: calc(100% - 80px);
   }
 }
 </style>
\ No newline at end of file