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
70
71
72
73
|
<template>
<div v-bar>
<div>
<section class="hero is-fullheight has-text-centered">
<Navbar :isWhite="true" />
<div class="hero-body">
<nuxt-child id="app" />
</div>
<div class="hero-foot">
<Footer />
</div>
</section>
</div>
</div>
</template>
<script>
import Navbar from '~/components/navbar/Navbar.vue';
import Footer from '~/components/footer/Footer';
export default {
components: { Navbar, Footer },
computed: {
config() {
return this.$store.state.config;
},
alert() {
return this.$store.state.alert;
}
},
watch: {
alert() {
if (!this.alert) return;
this.$buefy.toast.open({
duration: 3500,
message: this.alert.text,
position: 'is-bottom',
type: this.alert.error ? 'is-danger' : 'is-success'
});
setTimeout(() => {
this.$store.dispatch('alert', null);
}, 3500);
}
},
mounted() {
console.log(`%c lolisafe %c v${this.config.version} %c`, 'background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff', 'background:#ff015b; padding: 1px; border-radius: 0 3px 3px 0; color: #fff', 'background:transparent');
}
};
</script>
<style lang="scss">
html { overflow: hidden !important; }
.is-fullheight { height: 100vh; }
.hero-body {
padding: 3rem 0 !important;
#app {
width: 100%;
& > .container {
margin-top: 5rem;
}
}
> .hero {
min-height: auto !important;
height: auto !important;
}
}
@import "~/assets/styles/style.scss";
@import "~/assets/styles/icons.min.css";
</style>
<style lang="scss" scoped>
.hero-body {
align-items: baseline !important;
}
</style>
|