blob: af9b3d49d8de64f25a21893bea292b4d797823ef (
plain)
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
|
<template>
<section class="oboz">
<div class="header">
<div class="logo">
<img src="/assets/2020.svg" alt="" />
<h1>Obóz 2020</h1>
</div>
<div class="troops">
<h3>19 PDH Puszcza</h3>
<h3>7 PDH Binduga</h3>
<h3>7 PDH Watra</h3>
</div>
</div>
<no-ssr>
<div class="countdown">
Do obozu zostało: <span>{{ days }} dni</span>
</div>
</no-ssr>
<div class="mapouter">
<div class="gmap_canvas">
<iframe
id="gmap_canvas"
src="https://maps.google.com/maps?q=Jezioro%20Spore&t=&z=13&ie=UTF8&iwloc=&output=embed"
frameborder="0"
scrolling="no"
marginheight="0"
marginwidth="0"
/>
</div>
</div>
<h3 style="margin-top: 10vh">Tutaj niedługo znajdziesz relacje z obozu</h3>
<pure-post-list loading :posts="[]" />
<span class="fether" />
</section>
</template>
<script>
import PurePostList from '~/components/Posts/PostList/PurePostList'
export default {
components: {
PurePostList,
},
computed: {
days() {
let now = new Date(Date.now())
let oboz = new Date(2020, 7, 6)
return Math.round((oboz.getTime() - now.getTime()) / 86400000) - 30
},
},
}
</script>
<style scoped>
.oboz {
position: relative;
}
.header {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin: 10vmax 0 5vmax 0;
}
h1 {
font-size: 3em;
background: black;
color: white;
padding: 0.25em 0.75em;
width: max-content;
margin-top: -4px;
}
.troops {
display: flex;
flex-direction: row;
}
.troops h3 {
margin: 10px;
}
.countdown {
background: #ffffff;
box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
padding: 20px;
margin: 50px 10px;
}
.countdown span {
font-weight: 600;
}
@media (max-width: 480px) {
.troops {
flex-direction: column;
}
.logo img {
width: 100px;
}
h1 {
font-size: 2em;
}
}
.mapouter,
.gmap_canvas,
#gmap_canvas {
width: 100%;
height: 50vh;
max-height: 300px;
}
.oboz::after {
width: 100px;
height: 200px;
background: url('/assets/fether.svg');
background-repeat: no-repeat;
background-size: contain;
position: absolute;
bottom: 0;
right: 5%;
}
@media (min-width: 750px) {
.oboz::after {
content: '';
}
}
@media (min-width: 910px) {
.oboz::after {
content: none;
}
}
@media (min-width: 1210px) {
.oboz::after {
content: '';
}
}
</style>
|