-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
73 lines (62 loc) · 1.28 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
<template>
<header class="header p-h-3">
<VNavigation class="navigation" :navigation="navigation" />
</header>
<main class="main p-h-3">
<NuxtPage />
</main>
<footer class="footer d-flex wrap">
<VFooter />
</footer>
</template>
<script setup lang="ts">
import { ref } from "vue";
import { useEventBus } from "@vueuse/core";
import { ElNotification } from "element-plus";
import type { Ref } from "vue";
import type { INavigationItem } from "@/interfaces/navigation";
const { on } = useEventBus("vue-use-event-bus");
interface IElNotification {
type: string;
title: string;
message: string;
position: string;
}
on((params: IElNotification | any) => {
ElNotification(params);
});
const navigation: Ref<INavigationItem[]> = ref([
{
path: "/",
label: "Charts",
disabled: false,
},
{
path: "/map-pollution",
label: "Map Pollution",
disabled: false,
},
{
path: "/blog",
label: "Blog",
disabled: false,
},
]);
</script>
<style lang="scss">
@import "./assets/styles/main.scss";
.header,
.main,
.footer {
max-width: 1200px;
margin: auto;
}
.main {
min-height: calc(100vh - 95px - 60px);
}
.footer {
justify-content: space-between;
padding: 2rem 3rem;
border-top: 1px solid var(--el-menu-border-color);
}
</style>