generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
294 lines (286 loc) · 13.3 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css">
<link rel="apple-touch-icon" sizes="180x180"
href="assets/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32"
href="assets/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16"
href="assets/favicons/favicon-16x16.png">
<link rel="stylesheet" href="assets/css/style.css">
<title>Skiers Destinations</title>
</head>
<body>
<header>
<!-- Navigation-->
<!--The navbar code got inspiration from Bootstrap -->
<nav class="navbar navbar-expand-md fixed-top bgr-white">
<a href="#" class="navbar-brand" aria-label="Navigate to top">
<img src="assets/images/logo-skiers-destinations.png"
class="logo d-inline-block align-top" alt="logo">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarText"
aria-controls="navbarText" aria-expanded="false"
aria-label="Toggle navigation">
<i class="fas fa-bars"></i>
</button>
<div class="collapse navbar-collapse" id="navbarText">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link js-collapse" href="#resorts"
aria-label="Navigate to map with resorts"
> Map with resorts </a>
</li>
<li class="nav-item">
<a class="nav-link js-collapse" href="#recommend"
aria-label="Navigate to top-10-list"
> Top-10 resorts </a>
</li>
<li class="nav-item">
<a class="nav-link js-collapse" href="#mail"
aria-label="Navigate to input form for resort wishes"
> Add ski resort </a>
</li>
</ul>
</div>
</nav>
<div class="banner"></div>
<div class="border-blue rounded-corners m-3 p-3">
<h1 class="text-center"
>Downhill Skiing Destinations in Europe</h1>
<!-- The carousel code got inspiration from Bootstrap-->
<div id="carousel" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img class="d-block w-100 rounded-corners"
src="assets/images/first-line.jpg"
alt="It is nice to be the first skier in a slope">
</div>
<div class="carousel-item">
<img class="d-block w-100 rounded-corners"
src="assets/images/freerider.jpg"
alt="Skiing in deep snow is fun">
</div>
<div class="carousel-item">
<img class="d-block w-100 rounded-corners"
src="assets/images/skier-happy.jpg"
alt="Skiing makes you happy">
</div>
<div class="carousel-item">
<img class="d-block w-100 rounded-corners"
src="assets/images/ski-lift.jpg"
alt="Many ski-lifts are high up in the air">
</div>
</div>
</div>
</div>
</header>
<!-- Skiing resorts in map -->
<section id="resorts">
<div class="banner"></div>
<div class="border-blue rounded-corners text-center m-2 p-1">
<div>
<h2>Map with Ski Resorts</h2>
<div id="user-markerinfo">
</div>
</div>
<div class="container-fluid">
<div class="row">
<div id="map" class="col-12 col-md-8 rounded-corners">
</div>
<div class="col-12 col-md-4 d-flex p-2">
<div id="map-loading" class="text-center"><img
src="assets/css/loader.gif" alt="loading..."/>
<span>loading markers...</span>
</div>
<div id="resort-info"
class="align-self-center p-2 rounded-corners bgr-blue">
<h4><strong>Click</strong> on a <img
src="assets/images/yellow-marker48.gif"
alt="yellow marker">
in the map!</h4>
<p>And information about a Ski Resort will appear
here and also close to the marker.</p>
<h5><u>Symbols in the map:</u></h5>
<p><img src="assets/images/yellow-marker48.gif"
alt="yellow marker">: Marker for a ski resort.
</p>
<p><img src="assets/images/m1.png"
alt="cluster marker">
: Cluster of markers (may have different
colors). Click on it until you see the markers.
</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- 10-Top-places -->
<section id="recommend" class="container">
<div class="banner"></div>
<div class="row border-blue rounded-corners m-2 p-1">
<div class="col-3 d-none d-sm-block hero-img rounded-corners">
</div>
<div class="col-12 col-md-9 text-center">
<h2 class="pt-2">Rating of Ski Resorts</h2>
<p>Cast your votes for different resorts by picking grades to
the right in the list!</p>
<p>When your are done voting: Submit <strong>all</strong>
your votes to us by clicking on the yellow button at the bottom
of the list.</p>
<p><strong>Notice:</strong> If your vote affects the order in
the list - the list is immediately updated as soon as you
have casted your vote.</p>
<div id="top-ten" class="text-center"></div>
<div id="submit-rating"
class="border-blue rounded-corners mt-5 p-3">
<p>Submit all your votes to us by clicking on the button:
</p>
<div>
<button id="submit-rating-btn" type="submit"
class="btn bgr-yellow"><strong>Submit</strong>
</button>
</div>
</div>
</div>
</div>
<!-- Below is code for modal called from javascript.
This modal is used both from top-10 section and mail-section-->
<!--This modal code got inspiration from Bootstrap -->
<div class="modal fade" id="mail-feedback" tabindex="-1"
aria-labelledby="mail-answer" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content border-blue rounded-corners p-1">
<div class="modal-header">
<h2 class="modal-title" id="mail-answer">Feedback from submit</h2>
<button type="button" class="close" data-dismiss=
"modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body bgr-blue"></div>
<div class="modal-footer">
<button type="button" class="btn bgr-yellow"
data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</section>
<!-- email -->
<section id="mail">
<div class="banner"></div>
<div class="container border-blue rounded-corners p-1">
<div>
<h2 class="text-center p-3">Information about other ski resort
in this page?</h2>
</div>
<div class="bgr-blue p-3 rounded-corners">
<p class="text-center">Which resort do you want us to add?
</p>
<form id="mail-form">
<div class="form-group">
<input type="text" class="form-control" id="resort"
name="resort" placeholder="Enter resort name"
required>
</div>
<div class="form-group">
<textarea class="form-control" rows="3" id="reason"
name="reason" placeholder=
"Enter reason for adding resort"></textarea>
</div>
<div class="form-group">
<input type="text" class="form-control" id="name"
name="name" placeholder="Enter your name" required>
</div>
<div class="form-group">
<input type="email" class="form-control" id="email"
name="email" placeholder="Enter your email adress"
required>
<small>We'll never share your email with anyone else.
</small>
</div>
<div class="form-group text-center">
<p id="mail-sending"></p>
<button type="submit" class="btn bgr-yellow"><strong>
Submit</strong></button>
</div>
</form>
</div>
</div>
</section>
<!-- Footer -->
<footer class="container-fluid pt-5">
<div class="row">
<div class="col-sm-6 text-center">
<strong>Contact</strong>
<p>
<i class="fas fa-envelope" aria-hidden="true"></i>
skiers.destinations@gmail.com
</p>
</div>
<div class="col-sm-6 text-center">
<strong>Social</strong>
<ul class="list-inline">
<li class="list-inline-item">
<a target="_blank" href="https://www.facebook.com/"
aria-label="Find us on Facebook" rel="noopener">
<i class="fab fa-facebook icon hover-lg"></i>
</a>
</li>
<li class="list-inline-item">
<a target="_blank" href="https://twitter.com/explore"
aria-label="Follow us on Twitter" rel="noopener">
<i class="fab fa-twitter icon hover-lg"></i>
</a>
</li>
<li class="list-inline-item">
<a target="_blank" href="https://www.linkedin.com/"
aria-label="Find us on LinkedIn" rel="noopener">
<i class="fab fa-linkedin icon hover-lg"></i>
</a>
</li>
<li class="list-inline-item">
<a target="_blank" href="https://www.instagram.com/"
aria-label="Find us on LinkedIn" rel="noopener">
<i class="fab fa-instagram icon hover-lg"></i>
</a>
</li>
<li class="list-inline-item">
<a target="_blank" href="https://www.youtube.com/"
aria-label="Find us on YouTube" rel="noopener">
<i class="fab fa-youtube icon hover-lg"></i>
</a>
</li>
</ul>
</div>
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script
src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js">
</script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js">
</script>
<script
src="https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/markerclusterer.js">
</script>
<script defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBX-O_fvMaggssq6tug8mVsSWNsaOrVNkE&callback=initMap">
</script>
<script
src="https://cdn.jsdelivr.net/npm/emailjs-com@2.3.2/dist/email.min.js">
</script>
<script src="assets/js/rating.js"></script>
<script src="assets/js/scripts.js"></script>
</body>
</html>