-
Notifications
You must be signed in to change notification settings - Fork 0
/
PeakTravellers-Sample-02.html
321 lines (295 loc) · 11.5 KB
/
PeakTravellers-Sample-02.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Peak Traveller Taxi Service</title>
<!-- Bootstrap CSS CDN -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
padding-top: 60px; /* Adjust for fixed navbar */
background-color: #f8f9fa; /* Light gray background */
color: #343a40; /* Dark gray text color */
}
nav {
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
}
section {
padding: 20px;
}
.welcome {
background: url('welcome-background.jpg') center/cover no-repeat;
color: #fff;
text-align: center;
padding: 150px 0;
position: relative;
overflow: hidden;
}
.welcome h1 {
font-size: 3em;
animation: changeText 20s infinite, changeFont 20s infinite;
transition: color 1s;
}
@keyframes changeText {
0%, 20% {
content: "Discover the City with Peak Traveller";
color: #ffc107;
}
25%, 45% {
content: "Your Journey Begins with Us";
color: #4caf50;
}
50%, 70% {
content: "Experience Comfort, Safety, and Reliability";
color: #2196f3;
}
75%, 95% {
content: "Ride in Style with Peak Traveller Taxis";
color: #ff5722;
}
100% {
content: "Welcome to Peak Traveller Taxi Service";
color: #e91e63;
}
}
@keyframes changeFont {
0%, 20% {
font-family: 'Arial', sans-serif;
}
25%, 45% {
font-family: 'Courier New', monospace;
}
50%, 70% {
font-family: 'Georgia', serif;
}
75%, 95% {
font-family: 'Times New Roman', serif;
}
100% {
font-family: 'Verdana', sans-serif;
}
}
.cta-button {
background-color: #ffc107;
color: #333;
padding: 10px 20px;
font-size: 1.2em;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s;
}
.cta-button:hover {
background-color: #ff9800; /* Darker yellow on hover */
}
.services .card {
margin-bottom: 20px;
}
@keyframes moveTiles {
0% {
transform: translateX(0);
}
50% {
transform: translateX(50px);
}
100% {
transform: translateX(0);
}
}
.gallery {
position: relative;
overflow: hidden;
}
.gallery .tile {
animation: moveTiles 5s infinite;
}
.background-video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0.7;
animation: zoomInOut 15s infinite alternate;
}
@keyframes zoomInOut {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">Peak Traveller Taxi Service</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="#follow-us">Follow Us</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#about-us">About Us</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#gallery">Gallery</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#book-now">Book Now</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#offers">Offers</a>
</li>
</ul>
</div>
</nav>
<section class="welcome">
<div class="container">
<h1>Welcome to Peak Traveller Taxi Service</h1>
<a href="#book-now" class="cta-button">Book Now</a>
</div>
</section>
<section id="follow-us">
<div class="container">
<h2>Follow Us</h2>
<p>Stay connected with us on social media:</p>
<ul>
<li>Facebook: <a href="https://www.facebook.com/peaktraveller">Peak Traveller</a></li>
<li>Twitter: <a href="https://twitter.com/peaktraveller">@peaktraveller</a></li>
<li>Instagram: <a href="https://www.instagram.com/peaktraveller">@peaktraveller</a></li>
</ul>
</div>
</section>
<section id="about-us">
<div class="container">
<h2>About Us</h2>
<p>Welcome to Peak Traveller, your reliable taxi service. We are dedicated to providing safe and comfortable rides for our customers. Our experienced drivers and well-maintained vehicles ensure a pleasant journey for you.</p>
</div>
</section>
<section id="gallery" class="gallery">
<!-- Add an HTML5 video element for the background video -->
<video class="background-video" autoplay muted loop>
<source src="background-video.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="container">
<h2>Gallery</h2>
<div class="row">
<div class="col-md-4 tile">
<img src="../Peak Travelers/Media/p1.jpg" alt="Gallery Image 1" class="img-fluid">
</div>
<div class="col-md-4 tile">
<img src="../Peak Travelers/Media/p2.jpg" alt="Gallery Image 2" class="img-fluid">
</div>
<div class="col-md-4 tile">
<img src="../Peak Travelers/Media/p3.jpg" alt="Gallery Image 3" class="img-fluid">
</div>
<div class="col-md-4 tile">
<img src="../Peak Travelers/Media/p4.jpg" alt="Gallery Image 4" class="img-fluid">
</div>
</div>
</div>
</section>
<section id="book-now">
<div class="container">
<h2>Book Now</h2>
<p>Book your ride with Peak Traveller and experience convenient and reliable transportation.</p>
<form id="booking-form">
<div class="form-group">
<label for="name">Name:</label>
<input type="text" class="form-control" id="name" name="name" required>
</div>
<div class="form-group">
<label for="phone">Phone Number:</label>
<input type="tel" class="form-control" id="phone" name="phone" required>
</div>
<div class="form-group">
<label for="pickup-point">Pickup Point:</label>
<select class="form-control" id="pickup-point" name="pickup-point" required>
<option value="airport">Airport</option>
<option value="hotel">Hotel</option>
<option value="station">Station</option>
</select>
</div>
<div class="form-group">
<label for="budget">Budget:</label>
<select class="form-control" id="budget" name="budget" required>
<option value="standard">Standard</option>
<option value="premium">Premium</option>
<option value="luxury">Luxury</option>
</select>
</div>
<div class="form-group">
<label for="trip-from">Trip From:</label>
<input type="text" class="form-control" id="trip-from" name="trip-from" required>
</div>
<div class="form-group">
<label for="trip-to">Trip To:</label>
<input type="text" class="form-control" id="trip-to" name="trip-to" required>
</div>
<button type="button" class="btn btn-primary" onclick="submitBooking()">Submit</button>
</form>
</div>
</section>
<section id="offers">
<div class="container">
<h2>Special Offers</h2>
<p>Check out our latest offers and promotions:</p>
<ul>
<li>Weekend Special: 10% off on all rides</li>
<li>New User Discount: Get $5 off on your first ride</li>
</ul>
</div>
</section>
<!-- Bootstrap JS and Popper.js CDN -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<!-- Twilio SMS Integration Script -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
function submitBooking() {
// Collect form data
var name = $("#name").val();
var phone = $("#phone").val();
var pickupPoint = $("#pickup-point").val();
var budget = $("#budget").val();
var tripFrom = $("#trip-from").val();
var tripTo = $("#trip-to").val();
// Send SMS using Twilio
$.ajax({
type: "POST",
url: "YOUR_TWILIO_API_ENDPOINT",
data: {
name: name,
phone: phone,
pickupPoint: pickupPoint,
budget: budget,
tripFrom: tripFrom,
tripTo: tripTo
},
success: function(response) {
alert("Booking successful! You will receive an SMS shortly.");
// Reset form
$("#booking-form")[0].reset();
},
error: function(error) {
console.error("Error sending SMS:", error);
alert("Error sending SMS. Please try again later.");
}
});
}
</script>
</body>
</html>