Skip to content

Commit

Permalink
Added more functionality in the reservation section
Browse files Browse the repository at this point in the history
  • Loading branch information
ydpatel0309 committed Oct 13, 2023
1 parent 01894d7 commit a4f6071
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 19 deletions.
2 changes: 1 addition & 1 deletion home.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function learnMore()
{
window.location.href="about.html";
window.location.href="reservation.html";
}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<h1 class="logo">HOTEL_MAX</h1>
<ul class="nav-links">
<li><a href="#">Home</a></li>
<li><a href="/about.html">Reservation</a></li>
<li><a href="/reservation.html">Reservation</a></li>
<li><a href="/visit.html">Explor</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Booking</a></li>
Expand Down
32 changes: 29 additions & 3 deletions about.css → reservation.css
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,10 @@ ul
.form
{
box-sizing: border-box;
margin-top: 150px;
margin-top: 80px;
color: white;
width: 40%;
display: flex;

}
.container label
Expand Down Expand Up @@ -132,10 +133,11 @@ input[type=text]:focus, input[type=password]:focus {
outline: none;
}

input[type=text]:hover, input[type=password]:hover {

/* input[type=text]:hover, input[type=password]:hover {
background-color: rgba(0,0,0,0.80);
outline: none;
}
} */



Expand Down Expand Up @@ -185,6 +187,30 @@ button:hover {
clear: both;
display: table;
}
.dates
{
box-sizing: border-box;
display: flex;
justify-content: space-between;
align-items:baseline;
}

input[type=date],input[type=number] {
width: 30%;
padding: 10px;
margin: 5px 0 22px 0;
display: inline-block;
border: none;
background: rgba(0,0,0,0.80);
color: white;
font-size: 20px;

}

input[type=date]:focus:focus {
background-color: rgba(0,0,0,0.80);
outline: none;
}

/* Change styles for cancel button and signup button on extra small screens */
@media screen and (max-width: 300px) {
Expand Down
42 changes: 29 additions & 13 deletions about.html → reservation.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>About</title>
<link rel="stylesheet" href="about.css">
<link rel="stylesheet" href="reservation.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>

Expand All @@ -16,7 +16,7 @@
<h1 class="logo">HOTEL_MAX</h1>
<ul class="nav-links">
<li><a href="index.html">Home</a></li>
<li><a href="/about.html">Reservation</a></li>
<li><a href="/reservation.html">Reservation</a></li>
<li><a href="/visit.html">Explor</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Booking</a></li>
Expand All @@ -31,21 +31,37 @@ <h1 class="logo">HOTEL_MAX</h1>
<h1>Booking Form</h1>
<p>Please fill in this form for booking process.</p>
<hr>
<label for="name"><b>Name</b></label>
<input type="text" placeholder="Enter Name" name="data[name]" required>

<label for="email"><b>Email</b></label>
<input type="text" placeholder="Enter Email" name="data[email]" required>

<label for="psw"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="data[psw]" required>

<label for="psw repeat"><b>Repeat Password</b></label>
<input type="password" placeholder="Repeat Password" name="data[psw repeat]" required>

<label for="psw repeat"><b>age</b></label>
<input type="password" placeholder="Repeat Password" name="data[age]" required>

<div class="dates">
<label for="sdate"><b>Start Date :</b></label>
<input type="date" placeholder="Enter Start Date" name="data[sdate]" required>



<label for="edate"><b>End Date :</b></label>
<input type="date" placeholder="Enter End Date" name="data[edate]" required>

</div>

<div class="dates">
<label for="age"><b>Age :</b></label>
<input type="number" placeholder="Age" name="data[age]" required>


<label for="members"><b>Members :</b></label>
<input type="number" placeholder="Total Members" name="data[member]" required>

</div>
<div class="room">
<label for="room"><b>Room :</b></label>
<input type="select" placeholder="Type of Room" name="data[room]" >
</div>
<br>

<label>
<input type="checkbox" checked="checked" name="remember" style="margin-bottom:15px"> Remember me
</label>
Expand Down Expand Up @@ -73,7 +89,7 @@ <h1>Booking Form</h1>
response => response.json()
).then((html) => {
// you can put any JS code here
window.open('page2.html', '_blank');
alert("Successfully Booked");

});
});
Expand Down
1 change: 1 addition & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ header{
border-radius: 30px;
color: white;
opacity: .8;

}

.navbar1
Expand Down
2 changes: 1 addition & 1 deletion visit.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<h1 class="logo">HOTEL_MAX</h1>
<ul class="nav-links">
<li><a href="index.html">Home</a></li>
<li><a href="/about.html">Reservation</a></li>
<li><a href="/reservation.html">Reservation</a></li>
<li><a href="/visit.html">Explor</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Booking</a></li>
Expand Down

0 comments on commit a4f6071

Please sign in to comment.