-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.vue
69 lines (58 loc) · 1.18 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<template>
<div id="app" :class="className">
<Navbar/>
<div class="wrapper">
<router-view/>
</div>
<Footer/>
</div>
</template>
<script>
import { mapGetters } from 'vuex'
import Navbar from '@/components/Navbar'
import Footer from '@/components/Footer'
export default {
name: 'app',
components: {
Navbar,
Footer
},
metaInfo: {
title: 'Loading...', // set a title
titleTemplate: 'NyWater.info - %s', // title is now "NyWater.info - Loading..."
htmlAttrs: {
lang: 'en'
}
},
computed: {
...mapGetters({
showBgImage: 'main/splash'
}),
className () {
if (this.showBgImage) return 'splash'
return ''
}
}
}
</script>
<style lang="sass">
@import "./sass/vendor.sass"
html
height: 100%
body
height: 100%
#app
height: 100%
width: 100%
overflow: hidden
&.splash
background-image: url('https://farm9.staticflickr.com/8648/15726596829_e2fb399ebd_k_d.jpg')
background-repeat: no-repeat
background-size: cover
.wrapper
overflow-y: scroll
height: 100%
width: 100%
.container, .container-fluid
padding-top: 4.5rem
</style>