forked from devedmonton/DES-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
89 lines (81 loc) · 1.88 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
<template>
<div class="flex flex-col justify-between min-h-screen">
<TheMenu />
<NuxtPage class="mb-auto pt-24 pb-4" />
<TheFooter />
<BannerAnnouncements
v-if="showBanner"
:name="bannerName"
message=""
short-msg=""
link=""
button-text="Click Here"
/>
</div>
</template>
<script>
import TheFooter from "~/components/TheFooter";
import TheMenu from "~/components/TheMenu";
import BannerAnnouncements from "~/components/BannerAnnouncements";
export default {
components: {
TheFooter,
TheMenu,
BannerAnnouncements,
},
data: function () {
return {
showBanner: false,
bannerName: "announcement-banner",
};
},
mounted: function () {
// uncomment to show banner on load
// this.showBanner =
// window.sessionStorage.getItem(this.bannerName) !== "false";
},
};
</script>
<style>
html {
box-sizing: border-box;
font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont,
"Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-size: 16px;
word-spacing: 1px;
text-size-adjust: 100%;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
}
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
}
.button--green {
display: inline-block;
padding: 10px 30px;
color: #3b8070;
text-decoration: none;
border: 1px solid #3b8070;
border-radius: 4px;
}
.button--green:hover {
color: #fff;
background-color: #3b8070;
}
.button--grey {
display: inline-block;
padding: 10px 30px;
margin-left: 15px;
color: #35495e;
text-decoration: none;
border: 1px solid #35495e;
border-radius: 4px;
}
.button--grey:hover {
color: #fff;
background-color: #35495e;
}
</style>