Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enhance book hotel form #1127

Merged
merged 2 commits into from
Jul 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 32 additions & 19 deletions hotel.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,60 +5,70 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hotel Booking Form</title>
<style>
a:link, a:visited {
background-color: #068e04;
color: white;
padding: 14px 25px;
text-align: center;
text-decoration: none;
display: inline-block;
}

a:hover, a:active {
background-color: rgb(8, 233, 23);
}
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
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 {
background-color: #fff;

padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
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: #333;
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"] {
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 {
input[type="submit"]:hover, .btn-book:hover {
background-color: #45a049;
}
.btn-book {
text-decoration: none;
}

</style>
</head>
<body>
Expand Down Expand Up @@ -99,9 +109,12 @@ <h2>Hotel Booking Form</h2>

<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">Book Now</a>
<a href="./Thank.html" target="_blank" class="btn-book">Book Now</a>
</form>

</div>



</body>
</html>
Loading