marc-leopold/layouts/default.vue

47 lines
652 B
Vue

<template>
<div class="page-container">
<SiteMenu
:is-open="isMenuOpen"
@toggleMenu="toggleMenu"
/>
<div class="page-content">
<nuxt />
</div>
</div>
</template>
<script>
import SiteMenu from '~/components/SiteMenu'
export default {
components: {
SiteMenu
},
data() {
return {
isMenuOpen: true,
}
},
methods: {
toggleMenu () {
this.isMenuOpen = !this.isMenuOpen
}
}
}
</script>
<style scoped lang="scss">
.page-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
background-color: orange; // TEMP
}
</style>