-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathcovid19.vue
388 lines (378 loc) · 11.2 KB
/
covid19.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
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
<template>
<div>
<div class="title">
<covid-icon aria-hidden="true" />
<page-header class="text">
{{ $t('新型コロナウイルス感染症について') }}
</page-header>
<printer-button wrapper-class="printerButton" to="/print/covid19" />
</div>
<div class="container">
<h3 class="conHeading">
{{ $t('私たちにできる新型コロナウイルス感染予防') }}
</h3>
<div class="row DataBlock">
<div class="DataCard col-lg-6">
<div class="DataView v-card v-sheet theme--light priorityHigh">
<div class="DataView-Inner">
<h3 class="preventHeadingL">
{{ $t('しっかり手を洗う') }}
</h3>
<p class="preventText">
{{ $t('石けんを使い流水で20秒以上かけて洗いましょう') }}
</p>
<div class="preventImage">
<prevent-icon-hand />
</div>
</div>
</div>
</div>
<div class="DataCard col-lg-6">
<div class="DataView v-card v-sheet theme--light priorityHigh">
<div class="DataView-Inner">
<h3 class="preventHeadingL">
{{ $t('マスクを着用しよう') }}
</h3>
<p class="preventText">
{{ $t('マスクの表面は触らないようにしましょう') }}
</p>
<div class="preventImage">
<prevent-icon-mask />
</div>
</div>
</div>
</div>
<div class="DataCard col-lg-4 col-md-6">
<div class="DataView v-card v-sheet theme--light">
<div class="DataView-Inner">
<h3 class="preventHeadingL">{{ $t('距離をとる') }}</h3>
<p class="preventText">
{{ $t('お互いに手を伸ばして触れない距離を心がけましょう') }}
</p>
<div class="preventImage">
<prevent-icon-socialdistance />
</div>
</div>
</div>
</div>
<div class="DataCard col-lg-4 col-md-6">
<div class="DataView v-card v-sheet theme--light">
<div class="DataView-Inner">
<h3 class="preventHeadingL">
{{ $t('人の多い場所を避ける') }}
</h3>
<p class="preventText">
{{ $t('他者との安全な距離を保ちましょう') }}
</p>
<div class="preventImage">
<prevent-icon-crowded />
</div>
</div>
</div>
</div>
<div class="DataCard col-lg-4 col-md-6">
<div class="DataView v-card v-sheet theme--light">
<div class="DataView-Inner">
<h3 class="preventHeadingL">
{{ $t('しっかり換気をする') }}
</h3>
<p class="preventText">
{{ $t('ウイルスや菌は長時間空気中を浮遊します') }}
</p>
<div class="preventImage">
<prevent-icon-ventilation />
</div>
</div>
</div>
</div>
<div class="DataCard col-lg-4 col-md-6">
<div class="DataView v-card v-sheet theme--light">
<div class="DataView-Inner">
<h3 class="preventHeading">
{{ $t('風邪気味なら休む') }}
</h3>
<p class="preventText">
{{ $t('風邪症状のある場合は外出を控えしっかり休みましょう') }}
</p>
<div class="preventImage">
<prevent-icon-thermometer />
</div>
</div>
</div>
</div>
<div class="DataCard col-lg-4 col-md-6">
<div class="DataView v-card v-sheet theme--light">
<div class="DataView-Inner">
<h3 class="preventHeading">
{{ $t('目鼻口を触らない') }}
</h3>
<p class="preventText">
{{ $t('外出中は触らないように粘膜からの感染を防ぎましょう') }}
</p>
<div class="preventImage">
<prevent-icon-virus />
</div>
</div>
</div>
</div>
<div class="DataCard col-lg-4 col-md-6">
<div class="DataView v-card v-sheet theme--light">
<div class="DataView-Inner">
<h3 class="preventHeading">
{{ $t('咳の飛沫を飛ばさない') }}
</h3>
<p class="preventText">
{{
$t(
'咳やくしゃみをするときは手ではなく肘の内側で口や鼻を抑えましょう'
)
}}
</p>
<div class="preventImage">
<prevent-icon-cough />
</div>
</div>
</div>
</div>
<div class="DataCard col-lg-4 col-md-6">
<div class="DataView v-card v-sheet theme--light">
<div class="DataView-Inner">
<h3 class="preventHeading">
{{ $t('よく寝る') }}
</h3>
<p class="preventText">
{{ $t('しっかり寝て体を休ませましょう') }}
</p>
<div class="preventImage">
<prevent-icon-sleeping />
</div>
</div>
</div>
</div>
<div class="DataCard col-lg-4 col-md-6">
<div class="DataView v-card v-sheet theme--light">
<div class="DataView-Inner">
<h3 class="preventHeading">
{{ $t('よく食べる') }}
</h3>
<p class="preventText">
{{ $t('健康的な食事を心がけましょう') }}
</p>
<div class="preventImage">
<prevent-icon-eat />
</div>
</div>
</div>
</div>
<div class="DataCard col-lg-4 col-md-6">
<div class="DataView v-card v-sheet theme--light">
<div class="DataView-Inner">
<h3 class="preventHeading">
{{ $t('運動をする') }}
</h3>
<p class="preventText">
{{ $t('適度な運動で健康的な体づくりを心がけましょう') }}
</p>
<div class="preventImage">
<prevent-icon-play />
</div>
</div>
</div>
</div>
</div>
</div>
<static-card>
<h3>{{ $t('新型コロナウイルス感染症のQ&A') }}</h3>
<ul>
<li>
<app-link
to="https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/dengue_fever_qa_00001.html"
:icon-size="16"
>
{{
$t('新型コロナウイルスに関するQ&A(一般の方向け)|厚生労働省')
}}
</app-link>
</li>
<li>
<app-link
to="https://www3.nhk.or.jp/news/special/coronavirus/question-answer/"
:icon-size="16"
>
{{ $t('特設サイト 新型コロナウイルス 疑問・不安Q&A |NHK') }}
</app-link>
</li>
</ul>
</static-card>
</div>
</template>
<script lang="ts">
import Vue from 'vue'
import { MetaInfo } from 'vue-meta'
import AppLink from '@/components/AppLink.vue'
import PageHeader from '@/components/PageHeader.vue'
import PrinterButton from '@/components/PrinterButton.vue'
import StaticCard from '@/components/StaticCard.vue'
import CovidIcon from '@/static/covid-prevention.svg'
import preventIconCough from '@/static/covid19/prevent-icon-cough.svg'
import preventIconCrowded from '@/static/covid19/prevent-icon-crowded.svg'
import preventIconEat from '@/static/covid19/prevent-icon-eat.svg'
import preventIconHand from '@/static/covid19/prevent-icon-hand.svg'
import preventIconMask from '@/static/covid19/prevent-icon-mask.svg'
import preventIconPlay from '@/static/covid19/prevent-icon-play.svg'
import preventIconSleeping from '@/static/covid19/prevent-icon-sleeping.svg'
import preventIconSocialdistance from '@/static/covid19/prevent-icon-socialdistance.svg'
import preventIconThermometer from '@/static/covid19/prevent-icon-thermometer.svg'
import preventIconVentilation from '@/static/covid19/prevent-icon-ventilation.svg'
import preventIconVirus from '@/static/covid19/prevent-icon-virus.svg'
export default Vue.extend({
components: {
CovidIcon,
PrinterButton,
PageHeader,
preventIconHand,
preventIconMask,
preventIconSocialdistance,
preventIconEat,
preventIconSleeping,
preventIconCough,
preventIconPlay,
preventIconVirus,
preventIconVentilation,
preventIconThermometer,
preventIconCrowded,
StaticCard,
AppLink,
},
data() {
const data = {}
return data
},
computed: {},
head(): MetaInfo {
return {
title: this.$t('新型コロナウイルス感染症について') as string,
}
},
})
</script>
<style lang="scss" scoped>
/* stylelint-disable no-descending-specificity */
$fzSmall: 14;
$fzRegular: 16;
$fzMedium: 18;
$fzLarge: 20;
$fzHuge: 22;
$fzHeading: 20;
$fzHeadingL: 26;
$padding: 20;
$margin: 20;
.title {
display: flex;
align-items: center;
margin-bottom: $margin * 1px;
> svg {
width: 30px;
height: 30px;
> path:not(:first-of-type) {
fill: $gray-2;
}
}
.text {
margin-left: 8px;
}
.printerButton {
margin: 0 0 0 auto;
}
}
.container {
background-color: $white;
box-shadow: $shadow;
border: 0.5px solid $gray-4 !important;
border-radius: 4px;
padding: $padding * 1px;
line-height: 1.35;
color: $gray-2;
margin-bottom: 20px;
page-break-after: always;
@include font-size($fzRegular);
ul {
padding-left: 0; // override Vuetify style
}
}
.conHeading {
@include font-size($fzHeading);
}
.conHeadingQa {
margin-bottom: 12px;
@include font-size($fzHeading);
}
.prevent {
display: flex;
flex-wrap: wrap;
flex: 1 1 auto;
margin-right: -12px;
margin-left: -12px;
}
.preventHeadingL {
font-weight: bold;
margin-bottom: 10px;
@include font-size($fzHeadingL);
}
.preventHeading {
font-weight: bold;
margin-bottom: 10px;
@include font-size($fzHeading);
}
.preventText {
color: $green-1;
margin-bottom: 20px;
}
.preventImage {
height: 160px;
width: auto;
overflow: hidden;
box-sizing: border-box;
svg {
height: 160px;
width: 100%;
}
}
.qaHeading {
font-weight: bold;
display: flex;
justify-content: space-between;
@include font-size($fzHeading);
}
@media (max-width: 960px) {
.priorityHigh {
padding-top: 40px;
padding-bottom: 40px;
}
}
@media print {
.priorityHigh {
padding-top: 0;
padding-bottom: 0;
}
}
</style>
<style lang="scss" scope>
@media print {
.col-lg-6 {
width: 50% !important;
}
.col-lg-8 {
width: 66.6666666667% !important;
}
.col-lg-4 {
width: 33.3333333333% !important;
}
}
.v-expansion-panel-content {
display: block;
}
.v-expansion-panel-header {
font-size: 2rem;
}
</style>