-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMainpage.vue
159 lines (132 loc) · 3.77 KB
/
Mainpage.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
<template>
<div class="mainpage">
<LastEvents v-if="$root.onMobile" />
<MainpageMap v-if="!$root.onMobile" />
<b-container>
<b-row class="partners">
<b-col>
<b-row class="d-flex justify-content-center header">
<h4>Партнёры проекта</h4>
</b-row>
<b-row class="d-flex align-items-center">
<b-col class="text-center" cols="6" md="3">
<img src="../assets/img/logos/mchs.png" class="img-responsive" id="logo-mchs" alt="МЧС России" />
<b-tooltip target="logo-mchs" title="МЧС России"></b-tooltip>
</b-col>
<b-col class="text-center" cols="6" md="3">
<img src="../assets/img/logos/sakhalin-government.png" class="img-responsive"
id="logo-sakhalin-government" alt="Правительство Сахалинской области" />
<b-tooltip target="logo-sakhalin-government" title="Правительство Сахалинской области"></b-tooltip>
</b-col>
<b-col class="text-center" cols="6" md="3">
<img src="../assets/img/logos/idg.jpg" class="img-responsive" id="logo-idg" alt="ИДГ РАН" />
<b-tooltip target="logo-idg" title="ИДГ РАН"></b-tooltip>
</b-col>
<b-col class="text-center" cols="6" md="3">
<img src="../assets/img/logos/vc.png" class="img-responsive" id="logo-vc" alt="ВЦ ДВО РАН" />
<b-tooltip target="logo-vc" title="ВЦ ДВО РАН"></b-tooltip>
</b-col>
</b-row>
</b-col>
</b-row>
</b-container>
</div>
</template>
<script>
import ChartByDatetime from '@/components/charts/ChartByDatetime'
import ChartByMagnitudeCumulative from '@/components/charts/ChartByMagnitudeCumulative'
import LastEvents from '@/components/event/LastEvents'
import MainpageMap from '@/components/maps/Mainpage'
export default {
components: {
ChartByDatetime,
ChartByMagnitudeCumulative,
LastEvents,
MainpageMap
}
}
</script>
<style lang="scss" scoped>
@import '~scss/_variables';
$border: 1px $color-gray-light solid;
.mainpage {
padding-top: 2%;
.map {
height: 700px;
}
.events-analytics-block {
border-top: $border;
height: auto;
margin-top: 3%;
h4 {
a {
color: $color-gray-dark;
}
}
.header {
padding-bottom: 3%;
padding-top: 3%;
}
}
.partners {
background-color: $color-gray-light-3;
border: $border;
margin-top: 3%;
padding-bottom: 3%;
padding-top: 3%;
.header {
padding-bottom: 3%;
}
@media screen and (max-width: 767px) {
.col-6:nth-child(3),
.col-6:nth-child(4) {
margin-top: 5%;
}
#logo-idg {
max-width: 80%;
}
}
@media screen and (min-width: 768px) {
img {
filter: grayscale(100%);
&:hover {
filter: grayscale(0%);
}
}
}
}
.event {
border-left: $border;
border-right: $border;
border-top: $border;
padding-bottom: 2%;
padding-top: 2%;
&:hover {
background-color: $color-white-2;
}
&:last-child {
border-bottom: $border;
}
.magnitude {
color: $color-orange;
font-size: 180%;
}
.datetime {
color: $color-gray-light-2;
font-size: 85%;
}
.moment-tensor {
img {
max-width: 100%;
}
}
a {
color: $color-gray-dark;
width: 100%;
&:hover {
text-decoration: none;
}
}
}
}
</style>