-
Notifications
You must be signed in to change notification settings - Fork 143
/
ride.html
504 lines (468 loc) · 16.7 KB
/
ride.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
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="img/logo1.png" type="image/png">
<title>Cabshare</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- Link to CSS -->
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
<style>
/* Media queries for responsiveness */
@media (max-width: 575.98px) {
.form {
width: 90%;
margin: 0 auto;
}
h1 {
font-size: 1.5rem;
margin-left: 30%;
}
}
@media (min-width: 576px) and (max-width: 767.98px) {
.form {
width: 70%;
margin: 0 auto;
}
h1 {
font-size: 1.8rem;
margin-left: 25%;
}
}
@media (min-width: 768px) and (max-width: 991.98px) {
.form {
width: 60%;
margin: 0 auto;
}
h1 {
font-size: 2rem;
margin-left: 20%;
}
}
@media (min-width: 992px) and (max-width: 1199.98px) {
.form {
width: 50%;
margin: 0 auto;
}
h1 {
font-size: 2.2rem;
margin-left: 15%;
}
}
@media (min-width: 1200px) {
.form {
width: 40%;
margin: 0 auto;
}
h1 {
font-size: 2.5rem;
margin-left: 10%;
}
}
.video-container {
position: relative;
}
.circle {
height: 18px;
width: 18px;
border-radius: 24px;
background-color: #ff0000;
position: absolute;
top: 0;
left: 0;
z-index: 1000; /* Ensure the trail is above everything */
pointer-events: none; /* Prevent the circles from interfering with mouse events */
}
section {
display: flex;
flex-direction: column;
align-items: center;
padding: 110px 100px;
}
@media (max-width: 1000px) {
section {
padding: 100px 50px;
}
}
@media (max-width: 600px) {
section {
padding: 123px 30px;
}
}
.form-style-10 .inner-wrap {
padding: 30px;
background: #F8F8F8;
border-radius: 6px;
margin-bottom: 15px;
}
.form-style-10 h1 {
background: #80057c;
padding: 20px 30px 15px 30px;
margin: -30px -30px 30px -30px;
border-radius: 10px 10px 0 0;
color: #fff;
text-shadow: 1px 1px 3px rgba(214, 84, 175, 0.12);
font: normal 30px 'Bitter', serif;
}
.form-style-10 h1 > span {
display: block;
margin-top: 2px;
font: 13px Arial, Helvetica, sans-serif;
}
.form-style-10 label {
display: block;
font: 13px Arial, Helvetica, sans-serif;
color: #888;
margin-bottom: 15px;
}
.form-style-10 input[type="text"],
.form-style-10 input[type="date"],
.form-style-10 input[type="datetime"],
.form-style-10 input[type="email"],
.form-style-10 input[type="number"],
.form-style-10 input[type="search"],
.form-style-10 input[type="time"],
.form-style-10 input[type="url"],
.form-style-10 input[type="password"],
.form-style-10 textarea,
.form-style-10 select {
display: block;
box-sizing: border-box;
width: 100%;
padding: 8px;
border-radius: 6px;
border: 2px solid #fff;
box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.33);
}
.form-style-10 .section {
font: normal 20px 'Bitter', serif;
color: #000000;
margin-bottom: 5px;
}
.form-style-10 .section span {
background: #bc2bbc;
padding: 5px 10px;
position: absolute;
border-radius: 50%;
border: 4px solid #fff;
font-size: 14px;
margin-left: -45px;
color: #fff;
margin-top: -3px;
}
.form-style-10 input[type="button"],
.form-style-10 input[type="submit"] {
background: #91279b;
padding: 8px 20px;
border-radius: 5px;
color: #fff;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.12);
font: normal 30px 'Bitter', serif;
border: 1px solid #760f41;
font-size: 15px;
}
.form-style-10 input[type="button"]:hover,
.form-style-10 input[type="submit"]:hover {
background: #7b033f;
box-shadow: inset 0px 2px 2px 0px rgba(255, 255, 255, 0.28);
}
.form-style-10 .privacy-policy {
float: right;
width: 250px;
font: 12px Arial, Helvetica, sans-serif;
color: #4D4D4D;
margin-top: 10px;
text-align: right;
}
@media (max-width: 575.98px) {
.form {
width: 100%;
padding: 10px;
}
.form-style-10 {
margin: 30px auto;
padding: 20px;
}
.form-style-10 h1 {
font-size: 24px;
}
.form-style-10 .section {
font-size: 18px;
}
.footer a {
display: block;
margin-bottom: 5px;
}
}
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
background-color: #eeeff1;
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}
.logo img {
height: 40px;
}
.navbar {
display: flex;
gap: 20px;
padding-top: 20px;
list-style: none;
}
.navbar li a {
text-decoration: none;
color: #333;
padding: 10px 15px;
transition: 0.3s ease;
}
.navbar li a:hover {
color: #007bff;
}
.header-btn .sign-up {
padding: 10px 20px;
background-color: #007bff;
border-color: #007bff;
color: #fff;
text-decoration: none;
border-radius: 5px;
}
.header-btn .sign-up:hover {
background-color: red;
border-color: red;
}
/* Hide menu icon initially */
#menu-icon {
display: none;
}
/* Responsive styles for mobile sidebar */
@media (max-width: 600px) {
.navbar {
position: fixed;
top: 0;
left: -250px;
width: 250px;
height: 100%;
flex-direction: column;
align-items: start;
justify-content: flex-start;
padding: 20px;
transition: 0.3s;
z-index: 1000;
}
.navbar.active {
left: 0;
}
.navbar li {
width: 100%;
margin: 20px 0;
}
.navbar li a {
display: block;
width: 100%;
text-align: left;
padding: 10px 15px;
}
#menu-icon {
display: block;
font-size: 28px;
cursor: pointer;
position: absolute;
right: 20px;
}
.close-btn {
font-size: 28px;
cursor: pointer;
margin-left: auto;
margin-bottom: 20px;
}
}
</style>
</head>
<body class="col-md-12">
<!-- 20 circle elements -->
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<section>
<video autoplay muted loop id="background-video">
<source src="ride1.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</section>
<div class="video-container">
<script src="main.js"></script>
<!-- Header -->
<header style="display: flex !important;">
<a href="index.html" class="logo"><img src="img/logo.png" alt=""></a>
<a href="index.html" class="CabRental_logo"><img src="img/cabz.png.png" alt=""></a>
<div class="bx bx-menu" id="menu-icon"></div>
<ul class="navbar">
<li><a href="index.html">Home</a></li>
<li><a href="ride.html">Ride</a></li>
<li><a href="serv.html">Services</a></li>
<li><a href="about.html">About</a></li>
<li><a href="review.html">Reviews</a></li>
<li><a href="contactus.html">Contact</a></li>
</ul>
<div class="header-btn">
<a href="login.html" class="sign-up">Login</a>
</div>
<div class="theme-switch" id="theme-switch"></div>
</header>
<div class="form">
<div class="form-style-10">
<h1>Rider Details!<span></span></h1>
<form id="riderForm">
<div class="section"><span>1</span>First Name & Address</div>
<div class="inner-wrap">
<label>Your Full Name <input type="text" name="field1" /></label>
<label>Address <textarea name="field2"></textarea></label>
</div>
<div class="section"><span>2</span>Email & Phone</div>
<div class="inner-wrap">
<label>Email Address <input type="email" name="field3" /></label>
<label>Phone Number <input type="text" name="field4" /></label>
</div>
<div class="section"><span>3</span>Location & Time</div>
<div class="inner-wrap">
<label>Location <input type="text" name="field5" /></label>
<label>Time <input type="time" name="time" id="time" /></label>
<label>Date <input type="date" name="date" id="date" /></label>
</div>
<div class="button-section">
<input type="submit" value="Submit" />
<span class="privacy-policy">
<input type="checkbox" name="field7">You agree to our Terms and Policy.
</span>
</div>
</form>
</div>
</div>
<div id="topbtn" class="topbtn">
<a class="gotopbtn" href="#"><i class="fa-solid fa-angles-up"></i></a>
</div>
<!-- JavaScript for smooth scroll to top -->
<script>
document.getElementById('riderForm').addEventListener('submit', function(event) {
event.preventDefault(); // Prevent form submission to handle validation
// Check if any fields are empty
let form = event.target;
let isValid = true;
form.querySelectorAll('input[type="text"], input[type="email"], input[type="time"], input[type="date"], textarea').forEach(function(input) {
if (input.value.trim() === '') {
isValid = false;
input.classList.add('error');
} else {
input.classList.remove('error');
}
});
// If valid, submit the form and redirect
if (isValid) {
// Simulate form submission here (e.g., send data to backend)
alert('Form submitted successfully!');
window.location.href = 'index.html'; // Redirect to homepage
} else {
alert('Please fill out all required fields.');
}
});
</script>
<script src="script.js"></script>
<script>
const coords = { x: 0, y: 0 };
const circles = document.querySelectorAll(".circle");
// Assign initial positions to the circles
circles.forEach(function (circle) {
circle.x = 0;
circle.y = 0;
});
window.addEventListener("mousemove", function (e) {
// Use pageX and pageY to account for scroll distance
coords.x = e.pageX;
coords.y = e.pageY;
});
function animateCircles() {
let x = coords.x;
let y = coords.y;
circles.forEach(function (circle, index) {
circle.style.left = x - 12 + "px";
circle.style.top = y - 12 + "px";
circle.style.scale = (circles.length - index) / circles.length;
circle.x = x;
circle.y = y;
const nextCircle = circles[index + 1] || circles[0];
x += (nextCircle.x - x) * 0.3;
y += (nextCircle.y - y) * 0.3;
});
requestAnimationFrame(animateCircles);
}
animateCircles();
</script>
<!-- Footer
<footer class="footer">
<div class="footer-container container">
<h2>Cabshare</h2>
<div class="footer-box">
<h3>Quick Links</h3>
<a href="index.html">Home</a>
<a href="ride.html">Ride</a>
<a href="serv.html">Services</a>
<a href="about.html">About</a>
<a href="review.html">Reviews</a>
<a href="contact.html">Contact</a>
</div>
<div class="footer-box">
<h3>Follow Us</h3>
<div class="social">
<a href="#"><i class="bx bxl-facebook"></i></a>
<a href="#"><i class="bx bxl-twitter"></i></a>
<a href="#"><i class="bx bxl-instagram"></i></a>
<a href="#"><i class="bx bxl-google"></i></a>
<a href="#"><i class="bx bxl-skype"></i></a>
</div>
</div>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc2z6lnf65V2w4HmoRbHUXaB/91MoZl6fCJVN6eK" crossorigin="anonymous"></script>
-->
<script>
window.embeddedChatbotConfig = {
chatbotId: "2zn6LCEiOl1sZnaTGnPqp",
domain: "www.chatbase.co"
}
</script>
<script
src="https://www.chatbase.co/embed.min.js"
chatbotId="2zn6LCEiOl1sZnaTGnPqp"
domain="www.chatbase.co"
defer>
</script>
</body>
</html>