-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
352 lines (327 loc) · 13.6 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
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
<!DOCTYPE html>
<html>
<head>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-beta/css/materialize.min.css">
<link rel="stylesheet" href="main.css">
<script defer src="https://use.fontawesome.com/releases/v5.0.9/js/all.js" integrity="sha384-8iPTk2s/jMVj81dnzb/iFR2sdA7u06vHJyyLlAd4snFpCl/SnyUjRrbdJsw1pGIl"
crossorigin="anonymous"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TravelFun</title>
</head>
<body id="home" class="scrollspy">
<div class="navbar-fixed"><!--navbar is a inbuild class of materialise which is used to fix the nav bar-->
<nav class="teal"><!--teal is a color-->
<div class="container">
<div class="nav-wrapper">
<a href="#" class="brand-logo">TravelFun</a>
<a href="#" data-target="mobile-nav" class="sidenav-trigger"><!--data target means that given code will only work in specific device-- >
<i class="material-icons">menu</i><!--material-icon is use to add inbuilt icons-->
</a>
<ul class="right hide-on-med-and-down">
<li>
<a href="#home">Home</a>
</li>
<li>
<a href="#search">Search</a>
</li>
<li>
<a href="#popular">Popular Places</a>
</li>
<li>
<a href="#gallery">Gallery</a>
</li>
<li>
<a href="#contact">Contact</a>
</li>
</ul>
</div>
</div>
</nav>
</div>
<ul class="sidenav" id="mobile-nav"><!--sidenav is use to open the pop-menu in mobile device which it took the value in id-->
<li>
<a href="#home">Home</a>
</li>
<li>
<a href="#search">Search</a>
</li>
<li>
<a href="#popular">Popular Places</a>
</li>
<li>
<a href="#gallery">Gallery</a>
</li>
<li>
<a href="#contact">Contact</a>
</li>
</ul>
<!-- Section: Slider --><!--See the difference between carousel and sliderie in slider pictures appear after some fixed time and in carousel same thing happen but there are two buttons through which user can see the pictures by its own also-->
<section class="slider">
<ul class="slides">
<li>
<img src="resort1.jpg">
<div class="caption center-align">
<h2>Take Your Dream Vacation</h2><!--- This tells the text will appear at which place-->
<!-- hide-on-small-devices is used to hide code on small devices-->
<h5 class="light grey-text text-lighten-3 hide-on-small-only">Lorem ipsum dolor sit amet consectetur adipisicing elit. Quidem, provident eos dicta unde debitis</h5>
</div>
</li>
<li>
<img src="resort2.jpg">
<!-- random image -->
<div class="caption left-align">
<h2>We Work With All Budgets</h2>
<h5 class="light grey-text text-lighten-3 hide-on-small-only">Lorem ipsum dolor sit amet consectetur adipisicing elit. Possimus delectus inventore neque impedit</h5>
</div>
</li>
<li>
<img src="resort3.jpg">
>
<div class="caption right-align">
<h2>Group & Individual Getaways</h2>
<h5 class="light grey-text text-lighten-3 hide-on-small-only">Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ipsum molestias excepturi doloremque</h5>
</div>
</li>
</ul>
</section>
<!-- Section: Search -->
<section id="search" class="section section-search teal darken-1 white-text center scrollspy"><!--section is use to add padding and some more stuff--><!--scrollspy is use to take the user at starting point of a page when something is searched-->
<div class="container">
<div class="row">
<div class="col s12">
<h3>Search Destinations</h3>
<div class="input-field">
<input type="text" class="white grey-text autocomplete" id="autocomplete-input" placeholder="Singapore, Dubai, etc..."><!--this autocomplete class help us in showing values as soon as we enter related values-->
</div>
</div>
</div>
</div>
</section>
<!-- Section: Icon Boxes -->
<section class="section section-icons grey lighten-4 center">
<div class="container">
<div class="row">
<div class="col s12 m4"><!--s12 means in small devices it will take whole screen and m4 means in medium devices it will take one forth width-->
<div class="card-panel"><!--this class has border shadow, padding and some more stuff-->
<i class="material-icons large teal-text">room</i><!--icon value is given b/w icon tags-->
<h4>Pick Where</h4>
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Accusamus, tempore?</p>
</div>
</div>
<div class="col s12 m4">
<div class="card-panel">
<i class="material-icons large teal-text">store</i>
<h4>Travel Shop</h4>
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Accusamus, tempore?</p>
</div>
</div>
<div class="col s12 m4">
<div class="card-panel">
<i class="material-icons large teal-text">airplanemode_active</i>
<h4>Fly Cheap</h4>
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Accusamus, tempore?</p>
</div>
</div>
</div>
</div>
</section>
<!-- Section: Popular Places -->
<section id="popular" class="section section-popular scrollspy">
<div class="container">
<div class="row">
<h4 class="center">
<span class="teal-text">Popular</span> Places</h4>
<div class="col s12 m4">
<div class="card">
<div class="card-image">
<img src="resort1.jpg" alt="">
<span class="card-title">Cancun, Mexico</span><!--card title is use to show title above pictures-->
</div>
<div class="card-content">
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Nostrum ea deserunt officia, dicta sint perferendis.
</div>
</div>
</div>
<div class="col s12 m4">
<div class="card">
<div class="card-image">
<img src="resort2.jpg" alt="">
<span class="card-title">The Bahamas</span>
</div>
<div class="card-content">
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Nostrum ea deserunt officia, dicta sint perferendis.
</div>
</div>
</div>
<div class="col s12 m4">
<div class="card">
<div class="card-image">
<img src="resort3.jpg" alt="">
<span class="card-title">Singapore </span>
</div>
<div class="card-content">
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Nostrum ea deserunt officia, dicta sint perferendis.
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Section: Follow -->
<section class="section section-follow teal darken-2 white-text center">
<div class="container">
<div class="row">
<div class="col s12">
<h4>Follow TravelFun </h4>
<p>Follow us on social media for special offers</p>
<a href="#" class="white-text">
<i class="fab fa-facebook fa-4x"></i>
</a>
<a href="#" class="white-text">
<i class="fab fa-twitter fa-4x"></i>
</a>
<a href="#" class="white-text">
<i class="fab fa-linkedin fa-4x"></i>
</a>
<a href="#" class="white-text">
<i class="fab fa-google-plus fa-4x"></i>
</a>
<a href="#" class="white-text">
<i class="fab fa-pinterest fa-4x"></i>
</a>
</div>
</div>
</div>
</section>
<!--Section gallery-->
<section id="gallery" class="section section-gallery scrollspy">
<div class="container">
<h4 class="center">
<span class="teal-text">Photo</span> Gallery
</h4>
<div class="row">
<div class="col s12 m3">
<img src="https://source.unsplash.com/1600x900/?beach" alt="" class="materialboxed responsive-img"><!--material-boxed responsive-img is use to enlarge the image on clicking on it-->
</div>
<div class="col s12 m3">
<img src="https://source.unsplash.com/1600x900/?travel" alt="" class="materialboxed responsive-img">
</div>
<div class="col s12 m3">
<img src="https://source.unsplash.com/1600x900/?nature" alt="" class="materialboxed responsive-img">
</div>
<div class="col s12 m3">
<img src="https://source.unsplash.com/1600x900/?beach, travel" alt="" class="materialboxed responsive-img">
</div>
</div>
<div class="row">
<div class="col s12 m3">
<img src="https://source.unsplash.com/1600x900/?water" alt="" class="materialboxed responsive-img">
</div>
<div class="col s12 m3">
<img src="https://source.unsplash.com/1600x900/?building" alt="" class="materialboxed responsive-img">
</div>
<div class="col s12 m3">
<img src="https://source.unsplash.com/1600x900/?trees" alt="" class="materialboxed responsive-img">
</div>
<div class="col s12 m3">
<img src="https://source.unsplash.com/1600x900/?cruise" alt="" class="materialboxed responsive-img">
</div>
</div>
<div class="row">
<div class="col s12 m3">
<img src="https://source.unsplash.com/1600x900/?beaches" alt="" class="materialboxed responsive-img">
</div>
<div class="col s12 m3">
<img src="https://source.unsplash.com/1600x900/?traveling" alt="" class="materialboxed responsive-img">
</div>
<div class="col s12 m3">
<img src="https://source.unsplash.com/1600x900/?bridge" alt="" class="materialboxed responsive-img">
</div>
<div class="col s12 m3">
<img src="https://source.unsplash.com/1600x900/?beach, travel,boat" alt="" class="materialboxed responsive-img">
</div>
</div>
</div>
</section>
<section id="contact" class="section section-contact scrollspy">
<div class="container">
<div class="row">
<div class="col s12 m6">
<div class="card-panel teal white-text center">
<i class="material-icons">email</i>
<h5>Contact Us For Booking</h5>
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Illo praesentium fugit tempore hic enim possimus molestias
quisquam impedit corrupti eveniet.</p>
</div>
<ul class="collection with-header">
<li class="collection-header">
<h4>Location</h4>
</li>
<li class="collection-item">TravelFun Agency</li>
<li class="collection-item">TravelFun , Sector 62,Block A</li>
<li class="collection-item">Noida, PinCode 201301</li>
</ul>
</div>
<div class="col s12 m6">
<div class="card-panel grey lighten-3">
<h5>Please fill out this form</h5>
<div class="input-field">
<input type="text" placeholder="Name">
</div>
<div class="input-field">
<input type="text" placeholder="Email">
</div>
<div class="input-field">
<input type="text" placeholder="Phone">
</div>
<div class="input-field">
<textarea class="materialize-textarea" placeholder="Enter Message"></textarea><!--for textarea we have to give a class for materialize-textarea-->
</div>
<input type="submit" value="Submit" class="btn">
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="section teal darken-2 white-text center">
<p class="flow-text">TravelFun © 2019</p>
</footer>
<!--JavaScript at end of body for optimized loading-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-beta/js/materialize.min.js"></script>
<script>
// Sidenav -:below code is for sidenav opening which is done using javascript
const sideNav = document.querySelector('.sidenav');
M.Sidenav.init(sideNav, {});
// Slider
const slider = document.querySelector('.slider');
M.Slider.init(slider, {
indicators: false,/*Indicator is use to represent bubbles below the image and bubbles get darkened when respective image is shown*/
height: 500,/*its the height of image*/
transition: 500,
interval: 6000,/*its the time till which one image will appear and its 6 second*/
});
// Autocomplete
const ac = document.querySelector('.autocomplete');
M.Autocomplete.init(ac, {
data: {
"Aruba": null,/*ALL VALUES of DATA will appear as soon as user enters one of the values inside search box*/
"Cancun Mexico": null,
"Hawaii": null,
"Florida": null,
"California": null,
"Jamacia": null,
"Europe": null,
}
});
// Material Boxed
/*this is use to show a full size image on clicking on Image.queryselector will apply this code only for first image but queryselectorall will do for all*/
const mb = document.querySelectorAll('.materialboxed');
M.Materialbox.init(mb, {});
// ScrollSpy
const ss = document.querySelectorAll('.scrollspy');
M.ScrollSpy.init(ss, {});
</script>
</body>
</html>