about summary refs log tree commit diff
path: root/components/NavBar.vue
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-10-21 11:00:33 +0200
committerGitHub <noreply@github.com>2019-10-21 11:00:33 +0200
commitd1c6e2eaed90891fc8e187f147af224b352662c8 (patch)
tree982bd663d60b22b14f719af03cd459e5ee3b3ed4 /components/NavBar.vue
parent72549ed7b81fc01445fecdb7889bab4cf2a1590f (diff)
parent07ac4a05a3e02c95ba9482f94f19589b8ab7fd3c (diff)
downloadpuszcza-d1c6e2eaed90891fc8e187f147af224b352662c8.tar.gz
puszcza-d1c6e2eaed90891fc8e187f147af224b352662c8.zip
Merge pull request #3 from 19pdh/kronika
Kronika
Diffstat (limited to 'components/NavBar.vue')
-rw-r--r--components/NavBar.vue18
1 files changed, 13 insertions, 5 deletions
diff --git a/components/NavBar.vue b/components/NavBar.vue
index e564fb0..4bbae72 100644
--- a/components/NavBar.vue
+++ b/components/NavBar.vue
@@ -8,14 +8,21 @@
     <button @click="toggleMenu" class="menu-toggler">Menu</button>
     <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 v-for="route in routes" :key="route.path" :link="route.path" :name="route.name" />
+      <NavLink
+        v-for="route in staticRoutes"
+        :key="route.path"
+        :link="route.path"
+        :name="route.name"
+        pure
+      />
       <NavLink
         v-for="route in externalRoutes"
         :key="route.path"
         :link="route.path"
         :name="route.name"
-        :external="true"
-      ></NavLink>
+        external
+      />
     </ul>
   </nav>
 </template>
@@ -30,6 +37,7 @@ export default {
   props: {
     routes: Array,
     externalRoutes: Array,
+    staticRoutes: Array,
     title: String,
     logo: String
   },
@@ -161,10 +169,10 @@ export default {
     display: flex !important;
     flex-direction: column;
     justify-content: center;
-    align-items: center;
+    align-items: flex-start;
 
     margin-bottom: 0;
-    padding: 50px 0;
+    padding: 50px 10px;
 
     width: 100%;
     left: 0;