-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdefault.vue
58 lines (51 loc) · 949 Bytes
/
default.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
50
51
52
53
54
55
56
57
<template>
<div
class="site-wrapper"
:class="{
'nav-open': mobileNavDisplay,
'tv-mode': layout === 'tv'
}"
>
<off-canvas-nav />
<div
class="page"
@click.stop="$store.commit('system/setMobileNavDisplay', false)"
>
<no-ssr>
<easter-egg />
</no-ssr>
<site-header />
<div class="page-content">
<nuxt />
</div>
<site-footer />
</div>
</div>
</template>
<script>
import {mapState} from 'vuex'
export default {
computed: {
...mapState({
mobileNavDisplay: state => state.system.mobileNavDisplay,
layout: state => state.viewMode
})
}
}
</script>
<style lang="scss" scoped>
.site-wrapper {
&.nav-open {
& > .page {
transform: translate3d(-250px, 0, 0);
transition: transform .5s;
}
}
& > .page {
transition: transform .5s;
}
.page-content {
background-color: #fff;
}
}
</style>