forked from stopcovid19-okayama/covid19
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathActiveTokyoAlert.vue
74 lines (66 loc) · 1.32 KB
/
ActiveTokyoAlert.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
<template>
<span :class="$style.linkButton">
<external-link
:class="$style.textLink"
url="https://www.bousai.metro.tokyo.lg.jp/1007942/1008167.html"
>
<antenna-icon aria-hidden="true" :class="$style.svgIcon" />
<span :class="$style.text">
{{ $t('東京アラート発動中') }}
</span>
</external-link>
</span>
</template>
<script lang="ts">
import Vue from 'vue'
import ExternalLink from '@/components/ExternalLink.vue'
import AntennaIcon from '@/static/antenna.svg'
export default Vue.extend({
components: {
ExternalLink,
AntennaIcon
}
})
</script>
<style lang="scss" module>
.linkButton {
background-color: $alert;
border: 2px solid $alert;
color: $white;
border-radius: 3em;
padding: 4px 8px;
margin-right: 8px;
display: inline-flex;
font-weight: bold;
@include font-size(14);
.svgIcon path {
fill: $white;
}
&:hover {
background-color: $white;
.svgIcon path {
fill: $alert;
}
}
.textLink {
display: flex;
align-items: center;
color: $white !important;
text-decoration: none;
margin: -10px;
padding: 10px;
i {
color: inherit;
}
&:hover {
color: $alert !important;
}
}
.text {
margin: 0 4px;
}
@include lessThan($medium) {
margin-top: 8px;
}
}
</style>