forked from apu52/Travel_Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hotel.html
120 lines (101 loc) · 4.14 KB
/
hotel.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hotel Booking Form</title>
<style>
body {
font-family: Arial, sans-serif;
background-image: url(https://w0.peakpx.com/wallpaper/371/1012/HD-wallpaper-maldives-at-night-resort-maldives-beautiful-lights.jpg); /* Replace 'background.jpg' with your image path */
background-size: cover;
background-position: center;
color: #333;
padding: 20px;
transition: background-color 0.3s, color 0.3s;
}
.container {
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.9);
max-width: 600px;
margin: auto;
transition: background-color 0.3s, color 0.3s;
background-color: rgba(50, 50, 50, 0.9);
}
h2 {
text-align: center;
color: red;
}
label {
display: block;
margin-bottom: 8px;
font-weight: bold;
color: white;
}
input[type="text"], input[type="email"], input[type="date"], input[type="number"], select, textarea {
width: 100%;
background: #ccc;
padding: 10px;
margin-bottom: 20px;
color: black;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
transition: border-color 0.3s;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="date"]:focus, input[type="number"]:focus, select:focus, textarea:focus {
border-color: #4CAF50;
}
input[type="submit"], .btn-book {
background-color: #4CAF50;
margin-left: 15rem;
color: white;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s;
}
input[type="submit"]:hover, .btn-book:hover {
background-color: #45a049;
}
.btn-book {
text-decoration: none;
}
</style>
</head>
<body>
<div class="container">
<h2>Hotel Booking Form</h2>
<form action="#" method="post">
<label for="fname">First Name</label>
<input type="text" id="fname" name="firstname" placeholder="Your first name.." required>
<label for="lname">Last Name</label>
<input type="text" id="lname" name="lastname" placeholder="Your last name.." required>
<label for="email">Email</label>
<input type="email" id="email" name="email" placeholder="Your email.." required>
<label for="phone">Phone Number</label>
<input type="text" id="phone" name="phone" placeholder="Your phone number.." required>
<label for="checkin">Check-in Date</label>
<input type="date" id="checkin" name="checkin" required>
<label for="checkout">Check-out Date</label>
<input type="date" id="checkout" name="checkout" required>
<label for="adults">Number of Adults</label>
<input type="number" id="adults" name="adults" min="1" max="10" required>
<label for="children">Number of Children</label>
<input type="number" id="children" name="children" min="0" max="10">
<label for="room">Room Type</label>
<select id="room" name="room" required>
<option value="single">Single Room</option>
<option value="double">Double Room</option>
<option value="suite">Suite</option>
</select>
<label for="special-requests">Special Requests</label>
<textarea id="special-requests" name="special_requests" placeholder="Any special requests.." style="height:100px"></textarea>
<a href="./Thank.html" target="_blank" class="btn-book">Book Now</a>
</form>
</div>
</body>
</html>