2017-11-21 23:12:31 -05:00
|
|
|
<template>
|
2017-12-14 22:24:49 -05:00
|
|
|
<nav class="nav-section-component">
|
|
|
|
<div class="nav-section-component-mobile-header">
|
|
|
|
<button
|
|
|
|
class="nav-section-component-mobile-header-toggle"
|
|
|
|
:class="{ open: openNav }"
|
|
|
|
@click="openNav = !openNav">
|
2017-11-21 23:12:31 -05:00
|
|
|
|
2017-12-14 22:24:49 -05:00
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
2017-11-21 23:12:31 -05:00
|
|
|
|
2017-12-14 22:24:49 -05:00
|
|
|
<div class="nav-section-component-links" :class="{ open: openNav }">
|
|
|
|
<div class="nav-section-component-links-wrapper">
|
|
|
|
<router-link
|
|
|
|
v-for="link in navLinks"
|
|
|
|
class="navlink"
|
|
|
|
:to="link.path"
|
|
|
|
exact>
|
|
|
|
|
|
|
|
<span>{{ link.title }}</span>
|
|
|
|
</router-link>
|
2017-11-21 23:12:31 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-12-14 22:24:49 -05:00
|
|
|
|
|
|
|
<router-link class="nav-section-component-logo" to="/" exact>
|
|
|
|
<img src="/img/logo.png" />
|
|
|
|
</router-link>
|
2017-11-21 23:12:31 -05:00
|
|
|
</nav>
|
|
|
|
</template>
|
2017-12-14 22:24:49 -05:00
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
openNav: false,
|
|
|
|
|
|
|
|
navLinks: [
|
|
|
|
{ path: "/", title: "Home" },
|
2018-04-26 20:26:18 -04:00
|
|
|
{ path: "/blog", title: "Blog" },
|
2017-12-14 22:24:49 -05:00
|
|
|
{ path: "/contact", title: "Contact" }
|
|
|
|
]
|
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
watch: {
|
|
|
|
"$route"(to, from) {
|
|
|
|
this.openNav = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|