-
Notifications
You must be signed in to change notification settings - Fork 0
/
rent.html
86 lines (82 loc) · 3.84 KB
/
rent.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rent Now</title>
<!-- Bootstrap CSS -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome for icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<!-- Custom CSS -->
<style>
body {
background-image: url('./img/about.png');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.card {
opacity: 0.9; /* Slight transparency to card */
}
</style>
</head>
<body>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-6">
<div class="card">
<div class="card-body">
<h5 class="card-title text-center mb-4">Rent Now</h5>
<form id="rentForm">
<div class="form-group">
<label for="name">Full Name</label>
<input type="text" class="form-control" id="name" placeholder="Enter your full name" required>
</div>
<div class="form-group">
<label for="email">Email address</label>
<input type="email" class="form-control" id="email" placeholder="Enter your email" required>
</div>
<div class="form-group">
<label for="phone">Phone Number</label>
<input type="tel" class="form-control" id="phone" placeholder="Enter your phone number" required>
</div>
<div class="form-group">
<label for="carModel">Car Model</label>
<input type="text" class="form-control" id="carModel" placeholder="Enter car model" required>
</div>
<div class="form-group">
<label for="pickupDate">Pick-Up Date</label>
<input type="date" class="form-control" id="pickupDate" required>
</div>
<div class="form-group">
<label for="returnDate">Return Date</label>
<input type="date" class="form-control" id="returnDate" required>
</div>
<button type="submit" class="btn btn-primary btn-block">Book Now</button>
</form>
<div id="message" class="text-center mt-3"></div>
</div>
</div>
</div>
</div>
</div>
<!-- Bootstrap JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script>
$(document).ready(function(){
$('#rentForm').submit(function(e){
e.preventDefault(); // Prevent form submission
// Display message
$('#message').html('<div class="alert alert-success" role="alert">Booking successful! We will contact you shortly.</div>');
// You can add additional code here to handle form submission, like sending data to server
});
});
</script>
</body>
</html>