Skip to content

Commit

Permalink
Merge pull request #1127 from ANKeshri/feat/improve-ui-of-hotel-booki…
Browse files Browse the repository at this point in the history
…ng-form

feat: enhance book hotel form
  • Loading branch information
apu52 authored Jul 21, 2024
2 parents 51e046a + 2904d42 commit 71ed711
Showing 1 changed file with 32 additions and 19 deletions.
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>

0 comments on commit 71ed711

Please sign in to comment.