Newer
Older
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
<template>
<div>
<WindowSize v-if="typeOfEnv === '-test build-'" />
<HeaderUSWDSBanner v-if="typeOfEnv !== '-test build-'" />
<HeaderUSGS />
<WorkInProgressWarning v-if="typeOfEnv === '-beta build-'" />
<RouterView />
<FooterUSGS />
</div>
</template>
<script setup>
import { onMounted } from "vue";
import { RouterView } from 'vue-router'
import WindowSize from "./components/WindowSize.vue";
import HeaderUSWDSBanner from "./components/HeaderUSWDSBanner.vue";
import HeaderUSGS from './components/HeaderUSGS.vue';
import WorkInProgressWarning from "./components/WorkInProgressWarning.vue";
import FooterUSGS from './components/FooterUSGS.vue';
import { useWindowSizeStore } from './stores/WindowSizeStore';
const windowSizeStore = useWindowSizeStore();
const typeOfEnv = import.meta.env.VITE_APP_TIER;
// Declare behavior on mounted
// functions called here
onMounted(() => {
// Add window size tracking by adding a listener
window.addEventListener('resize', handleResize);
handleResize();
});
// Functions
function handleResize() {
// store the window size values in the Pinia state
windowSizeStore.windowWidth = window.innerWidth;
windowSizeStore.windowHeight = window.innerHeight;
}
</script>
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<style lang="scss" scoped>
/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@200;300;400;500;600;700;800&display=swap');
$SourceSans: 'Source Sans Pro', sans-serif;
$textcolor: #7d4e57;
$linkcolor: #d66853;
html {
/* Make base font-size 100% of browser font-size */
font-size: 100%;
}
@media (prefers-reduced-motion: no-preference) {
html {
scroll-behavior: smooth;
}
}
img {
/* For responsive images that adjust & adapt */
height: auto;
max-width: 100%;
user-select: none;
}
button {
color: inherit;
}
a, button {
touch-action: manipulation; /* Element doesn't want double-tap on mobile to zoom */
}
svg {
/* SVGs fit the parent container by default */
height: 100%;
width: 100%;
fill: currentColor;
pointer-events: none;
}
iframe, video {
/* Make iframes & videos fit the parent container by default */
height: 100%;
width: 100%
}
body {
height: 100%;
background-color: white;
margin: 0;
padding: 0;
line-height: 1.2;
font-size: 1.95rem;
font-weight: 400;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
width: 100%;
@media screen and (max-width: 600px) {
font-size: 1.6rem;
}
}
h1{
font-size: 4.5rem;
font-weight: 500;
font-family: $SourceSans;
line-height: 1;
text-align: left;
text-shadow: 1px 1px 100px rgba(0,0,0,.8);
color: $textcolor;
@media screen and (max-width: 600px) {
font-size: 4.75rem;
}
}
h2{
font-weight: 700;
text-align: left;
font-family: $SourceSans;
font-size: 6rem;
margin-top: 5px;
line-height: 1.2;
color: $textcolor;
@media screen and (max-width: 600px) {
font-size: 4rem;
line-height: 1.1;
}
}
h3{
font-size: 3.5rem;
padding-top: 1em;
padding-bottom: .25em;
font-family: $SourceSans;
font-weight: 700;
color: $textcolor;
@media screen and (max-width: 600px) {
font-size: 3.2rem;
}
}
h4{
font-size: 2.5rem;
padding-top: 0em;
padding-bottom: .25em;
font-family: $SourceSans;
font-weight: 600;
color: $textcolor;
@media screen and (max-width: 600px) {
font-size: 1.8rem;
}
}
p, text {
// padding: 1em 0 0 0;
font-family: $SourceSans;
color: $textcolor;
}
a:link {
color:#032a56;
}
a:visited {
color: #032a56;
}
a:hover {
color: #032a56;
}
a:active {
color: #032a56;
}