forked from 07sumit1002/CabRental
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ride.html
325 lines (311 loc) · 11.6 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
<!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">
<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;
}
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;
}
header {
flex-direction: column;
}
.navbar {
flex-direction: column;
gap: 10px;
}
.footer a {
display: block;
margin-bottom: 5px;
}
}
</style>
</head>
<body class="col-md-12">
<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="#" class="logo"><img src="img/logo.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>
<!-- 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>
</body>
</html>