diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-08-30 22:31:54 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-08-30 22:31:54 +0200 |
commit | 51b96f0c0bc9e00477e24d1d799dba0e3a519f24 (patch) | |
tree | 59fbd931207ba86976418cea57c928beee2e31cc /components/NavBar.vue | |
parent | f0d5b38eb23e85e993bf040f7e84c5b6b16d7566 (diff) | |
download | puszcza-51b96f0c0bc9e00477e24d1d799dba0e3a519f24.tar.gz puszcza-51b96f0c0bc9e00477e24d1d799dba0e3a519f24.zip |
Add NavBar test
Diffstat (limited to 'components/NavBar.vue')
-rw-r--r-- | components/NavBar.vue | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/components/NavBar.vue b/components/NavBar.vue index e9fa1f0..e564fb0 100644 --- a/components/NavBar.vue +++ b/components/NavBar.vue @@ -2,7 +2,7 @@ <nav :class="navbarClass"> <div class="title"> <img v-if="logo" class="logo" :src="logo" alt="ZHR" /> - <router-link :class="titleClass" to="/">{{ title }}</router-link> + <nuxt-link :class="titleClass" to="/">{{ title }}</nuxt-link> </div> <div class="space"></div> <button @click="toggleMenu" class="menu-toggler">Menu</button> @@ -21,7 +21,7 @@ </template> <script> -import NavLink from "./NavLink"; +import NavLink from './NavLink' export default { components: { @@ -36,42 +36,42 @@ export default { computed: { titleClass() { if (this.logo) { - return "title-name margin"; + return 'title-name margin' } - return "title-name"; + return 'title-name' }, navbarClass() { if (this.menuCollapsed) { - return "navbar"; + return 'navbar' } - return "navbar menu-open"; + return 'navbar menu-open' }, linksClass() { if (this.menuCollapsed) { - return "links"; + return 'links' } - return "links show"; + return 'links show' } }, data: function() { return { menuCollapsed: true - }; + } }, methods: { toggleMenu() { - this.menuCollapsed = !this.menuCollapsed; + this.menuCollapsed = !this.menuCollapsed }, linksClick() { - this.toggleMenu(); + this.toggleMenu() } } -}; +} </script> <style scoped> .navbar { - font-family: "Roboto Slab", serif; + font-family: 'Roboto Slab', serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; color: #181818; |