-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.vue
49 lines (41 loc) · 1.04 KB
/
App.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<template>
<div id="app" class="birdnest">
<!-- logo -->
<router-link v-on:click.native="closeMenu()" class="fab home-button" to="/">
<span class="birdnest-logo"></span>
</router-link>
<!-- nav components -->
<app-header></app-header>
<app-menu></app-menu>
<!-- page components -->
<transition name="fade" mode="out-in">
<keep-alive>
<router-view id="page-view"></router-view>
</keep-alive>
</transition>
<app-footer></app-footer>
</div>
<!-- /#app -->
</template>
<script>
// import components
const Header = () => import('@/components/Header');
const Menu = () => import('@/components/Menu');
const Footer = () => import('@/components/Footer');
export default {
name: 'App',
components: {
'app-header': Header,
'app-menu': Menu,
'app-footer': Footer
},
methods: {
/**
* Closes the menu and content
*/
closeMenu: function () {
document.body.classList.remove('nav-open');
}
}
}
</script>