generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
232 lines (221 loc) · 11.8 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Travel Time</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<script src="https://kit.fontawesome.com/1c9dd84298.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/hover.css/2.3.1/css/hover-min.css" type="text/css">
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<!--Section: Callout -->
<section class="container-fluid callout-container">
<!-- Navbar-->
<nav class="navbar">
<div id="mySidenav" class="sidenav">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()"><i class="fas fa-times"></i></a>
<a onclick="closeNav()" href="#search" class="nav-link">Search</a>
<a onclick="closeNav()" href="#recommendations" class="nav-link">Recommendations</a>
<a onclick="closeNav()" href="#contact" class="nav-link">Contact</a>
</div>
<a onclick="openNav()" class="navbar-toggler hvr-shrink"><i class="fas fa-bars"></i></a>
<button onclick="document.location='#recommendations'" class="btn btn-orange btn-landing btn-large d-none d-sm-block ml-auto">Get Inspired!</button>
</nav>
<!-- Callout: text-->
<div id="main" class="d-none d-sm-block col-sm-6 callout-section">
<h1 class="callout-header">Travel Time</h1>
<p class="callout-text">Search for your next holiday destination or browse our hand-picked selection which recommends the greatest destinations in the world.</p>
</div>
<!-- Callout: mobile text-->
<div class="text-center d-sm-none callout-section-mobile">
<h1 class="callout-header-mobile">Travel Time</h1>
<p class="callout-text-mobile">Search for your next holiday destination or browse our hand-picked selection.</p>
</div>
</section>
<!--Section: Search -->
<section id="search" class="container-fluid search-container text-center">
<div class="row">
<div class="col-12">
<h2 class="search-header">Search for your next destination</h2>
</div>
</div>
<div class="row">
<div class=" mx-auto col-12 col-sm-8 mb-3">
<form class="search-form">
<input class="search-bar form-control-lg" id="autocomplete" placeholder="Enter a city..." type="text" />
</form>
</div>
</div>
</section>
<!-- Section: Recommendations -->
<section id="recommendations" class="container pb-5">
<div class="row">
<div class="col-12 text-center">
<h2 class="grey-header">Travel Time Picks</h2>
</div>
</div>
<div class="row">
<div class="top-picks guide-html feature-sydney feature col-12 col-md-6 col-lg-4 text-center hvr-shrink">
<div class="sydney" data-toggle="modal" data-target="#modal-page">
<h3 class="recommendation-city">Sydney</h3>
<span class="recommendation-country">Australia</span>
</div>
</div>
<div class="top-picks guide-html feature-toronto feature col-12 col-md-6 col-lg-4 text-center hvr-shrink">
<div class="toronto" data-toggle="modal" data-target="#modal-page">
<h3 class="recommendation-city">Toronto</h3>
<span class="recommendation-country">Canada</span>
</div>
</div>
<div class="top-picks guide-html feature-cape feature col-12 col-md-6 col-lg-4 text-center hvr-shrink">
<div class="cape" data-toggle="modal" data-target="#modal-page">
<h3 class="recommendation-city">Cape Town</h3>
<span class="recommendation-country">South Africa</span>
</div>
</div>
<div class="top-picks guide-html feature-zurich feature col-12 col-md-6 col-lg-4 text-center hvr-shrink">
<div class="zurich" data-toggle="modal" data-target="#modal-page">
<h3 class="recommendation-city">Zurich</h3>
<span class="recommendation-country">Switzerland</span>
</div>
</div>
<div class="top-picks guide-html feature-venice feature col-12 col-md-6 col-lg-4 text-center hvr-shrink">
<div class="venice" data-toggle="modal" data-target="#modal-page">
<h3 class="recommendation-city">Venice</h3>
<span class="recommendation-country">Italy</span>
</div>
</div>
<div class="top-picks guide-html feature-marrakech feature col-12 col-md-6 col-lg-4 text-center hvr-shrink">
<div class="marrakech" data-toggle="modal" data-target="#modal-page">
<h3 class="recommendation-city">Marrakech</h3>
<span class="recommendation-country">Morocco</span>
</div>
</div>
</div>
</section>
<!-- Section: Modal -->
<div class="modal fade" id="modal-page" aria-hidden="true">
<div class="modal-dialog modal-xl">
<div class="modal-content container">
<div class="row">
<div class="col-12">
<button type="button" class="close ml-auto btn-close-modal" data-dismiss="modal" aria-label="Close" onclick="removeCards()">
<span aria-hidden="true">×</span>
</button>
</div>
</div>
<div class="row">
<div class="col-12 text-center">
<h2 id="modal-auto-header" class="orange-modal-header"></h2>
<span id="modal-auto-country" class="modal-auto-country"></span>
</div>
</div>
<div id="quick-guide" class="row"></div>
<div class="container">
<div class="col-12">
<h5 class="grey-modal-title">Points of Interest</h5>
</div>
</div>
<div id="mapAuto"></div>
<div class="modal-body">
<div class="col-12">
<h2 class=" text-center attraction-grey-header">Top Attractions</h2>
</div>
<div id="attractionCards" class="row"></div>
<div class="col-12">
<h2 class=" text-center attraction-grey-header">Hotels</h2>
</div>
<div id="topPicks" class="row"></div>
<div id="hotelCards" class="row"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-grey" data-dismiss="modal" onclick="removeCards()">Close</button>
</div>
</div>
</div>
</div>
<!-- Section: Contact -->
<section id="contact" class="container-fluid contact-container p-2">
<div class="row">
<div class="col-12 text-center">
<h2 class="white-header">Contact Us</h2>
</div>
</div>
<form onsubmit="return sendMail(this);" class="container" id="contactForm">
<div class="row">
<div class="col-12 col-md-6">
<div class="row">
<div class="col-12 mb-3">
<input type="text" name="name" class="form-control" id="name" placeholder="Name" required>
</div>
</div>
<div class="row">
<div class="col-12 mb-3">
<input type="email" name="email" class="form-control" id="email" placeholder="Email Address" required>
</div>
</div>
<div class="row">
<div class="col-12 mb-3">
<input type="text" name="number" class="form-control" id="number" placeholder="Contact Number">
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="form-group">
<textarea class="form-control" name="text" rows="10" id="enquiry" placeholder="Please type your enquiry here..." required></textarea>
</div>
<div class="text-right">
<button type="submit" class="btn btn-white btn-lg mt-1 mb-2">Send</button>
</div>
</div>
</div>
</form>
</section>
<!-- Section: Contact Form Success Message-->
<div class="modal fade" id="successModal" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title success-modal-title">Success!</h4>
</div>
<div class="modal-body">
<p class="success-text">Your message has now been sent to the Travel Time team.</p>
<p class="success-text">Please allow up to 24 hours for a response.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-orange" data-dismiss="modal" onclick="removeText()">Close</button>
</div>
</div>
</div>
</div>
<!-- Section: Footer-->
<footer class="container-fluid footer-container">
<div class="row">
<div class="col-sm-6">
<h5 class="m-3">Travel Time 2020 <i class="far fa-copyright"></i></h5>
</div>
<div class="col-sm-6">
<ul class="list-inline m-3 text-right">
<li class="list-inline-item"><a class="footer-icon" href="https://en-gb.facebook.com/" target="_blank" rel="noopener noreferrer"><i class="fab fa-facebook"></i></a></li>
<li class="list-inline-item"><a class="footer-icon" href="https://twitter.com/login?lang=en-gb" target="_blank" rel="noopener noreferrer"><i class="fab fa-twitter"></i></a></li>
<li class="list-inline-item"><a class="footer-icon" href="https://www.instagram.com/" target="_blank" rel="noopener noreferrer"><i class="fab fa-instagram"></i></a></li>
</ul>
</div>
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
<script src="assets/js/script.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCdBqz5aZKn5u3_GeKoUVzRZS6bsw33p_o&libraries=places" defer></script>
<script src="assets/js/sendEmail.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/emailjs-com@2/dist/email.min.js"></script>
<script type="text/javascript">
(function(){
emailjs.init("user_c2NKEhzlIuDc2DhsKTqIF");
})();
</script>
</body>
</html>