marc-leopold/layouts/default.vue

58 lines
792 B
Vue
Raw Normal View History

2019-01-02 21:11:40 +00:00
<template>
<div class="page-container">
2019-01-03 14:06:28 +00:00
<div class="page">
<nuxt />
</div>
2019-01-03 14:49:25 +00:00
<SiteMenu class="menu"
:is-open="isMenuOpen"
@toggleMenu="toggleMenu"
2019-01-02 22:14:56 +00:00
/>
2019-01-02 21:11:40 +00:00
</div>
</template>
<script>
import SiteMenu from '~/components/SiteMenu'
export default {
components: {
SiteMenu
},
2019-01-02 22:14:56 +00:00
2019-01-02 21:11:40 +00:00
data() {
return {
2019-01-02 22:14:56 +00:00
isMenuOpen: true,
}
},
methods: {
toggleMenu () {
this.isMenuOpen = !this.isMenuOpen
2019-01-02 21:11:40 +00:00
}
}
}
</script>
<style scoped lang="scss">
.page-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
2019-01-12 18:29:09 +00:00
background-color: #333;
2019-01-02 21:11:40 +00:00
}
2019-01-03 14:06:28 +00:00
.page {
2019-01-04 10:55:55 +00:00
z-index: $z-index__page;
2019-01-03 14:06:28 +00:00
position: relative;
width: 100%;
height: 100%;
}
2019-01-03 14:49:25 +00:00
.menu {
2019-01-04 10:55:55 +00:00
z-index: $z-index__menu;
2019-01-03 14:49:25 +00:00
}
2019-01-02 21:11:40 +00:00
</style>