-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.vue
104 lines (98 loc) · 2.08 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<template>
<div ref="app" id="app" class="theme-container">
<div class="page">
<nav-bar v-if="$self_render.navbarEnable" />
<div class="container flex-grow-1">
<error />
<div class="mt-5">
<transition name="fade" mode="out-in">
<router-view :key="$route.fullPath" class="view"></router-view>
</transition>
</div>
</div>
</div>
<vs-divider color="warning"> </vs-divider>
<app-footer/>
</div>
</template>
<script lang="ts">
import "reflect-metadata";
import Vue from "vue";
import { Component } from "vue-property-decorator";
import NavBar from "./components/NavBar.vue";
import Error from "./components/Error.vue";
import Footer from "./components/Footer.vue";
import vsDivider from "./components/vsDivider.vue";
import cookie from "./components/Cookie.vue";
@Component({
components: {
NavBar,
Error,
"app-footer": Footer,
"vs-divider": vsDivider
},
})
export default class App extends Vue {
metaInfo = {
title: '',
titleTemplate: 'Vein Gallery | %s'
}
async created()
{
this.$loader.close();
if (!this.$cookies.get("isAllowedCookie")) {
this.openNotificationCookie();
}
}
async mouted() {
this.$loader.close();
}
openNotificationCookie() {
this.$vs.notification({
duration: 'none',
content: cookie,
});
}
}
</script>
<style>
:root {
color-scheme: dark;
}
html {
scrollbar-width: thin;
}
.page {
transition: all .25s ease;
display: block;
}
#search > .vs-input-parent > .vs-input-content > input {
width: 900px;
}
#search {
padding-top: 10px !important;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
flex-wrap: wrap;
}
.view {
-moz-transition: 0.4s;
-o-transition: 0.4s;
-webkit-transition: 0.4s;
transition: 0.4s;
}
@media (min-width:1900px) {
.view {
padding-left: 20% !important;
padding-right: 20% !important;
}
}
@media (min-width:1200px) and (max-width:1900px) {
.view {
padding-left: 10% !important;
padding-right: 10% !important;
}
}
</style>