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

hotel #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
99 changes: 99 additions & 0 deletions hotel.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: 'Roboto', sans-serif;
}

body::before {
content: '';
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;

z-index: -1;
}

body {
position: relative;
z-index: 1;
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-image: url('https://1.bp.blogspot.com/-nMGnNUrhJR8/YFxrk8a6LmI/AAAAAAAAEls/gm1mZm76DN4OzsolsjKtidbv-LTTUIgSACLcBGAsYHQ/s16000/ssss.jpg');
background-position: center;
background-size: cover;
background-repeat: no-repeat;
}

.container {
width: 432px;
height: 496px;
max-height: 80%;
max-width: 80%;
background: #E8ECF0;
box-shadow: 0px 30px 20px rgba(0, 0, 0, 0.2);
border-radius: 10px;
padding: 20px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 1;
}

form {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}

.input-group {
display: flex;
width: 100%;
flex-direction: column;
justify-content: center;
padding: 5px;
}

.check-in,check-out,
.room {
display: flex;
justify-content: center;
align-items: center;
}

input {
width: 100%;
box-shadow: 4px 10px 20px rgba(0, 0, 0, 0.08);
border-radius: 5px;
border: none;
padding: 20px;
outline: none;
font-size: 21px;
}

label {
font-size: 17px;
align-items: center;
padding: 5px 0;
color: rgba(0, 0, 0, 0.5);
}

.properties {
background-color: #FF455B;
max-width: 60%;
color: white;
padding: 20px;
border-radius: 10px;
margin-top: -10px;
text-align: center;
font-size: 22px;
}
50 changes: 50 additions & 0 deletions hotel.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Form Booking Hotel - Syarif</title>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<link href="https://repo.rachmat.id/jquery-ui-1.12.1/jquery-ui.css" rel="stylesheet">
<script type="text/javascript" src="https://repo.rachmat.id/jquery-1.12.4.js"></script>
<script type="text/javascript" src="https://repo.rachmat.id/jquery-ui-1.12.1/jquery-ui.js"></script>
</head>
<body>
<div class="container">
<form>
<h1>Hotel Booking</h1>
<div class="input-group">
<label for="location">Location</label>
<input type="text" id="location">
</div>
<div class="check-in">
<div class="input-group">
<label for="check-in">Check-in</label>
<input type="text" id="datepicker1">
</div>
<div class="check-out">
<div class="input-group">
<label for="check-out">Check-out</label>
<input type="text" id="datepicker2">
</div>
</div>
</div>
<div class="room">
<div class="input-group">
<label for="room">Room</label>
<input type="number" id="room" min="1">
</div>
<div class="input-group">
<label for="adults">Adults</label>
<input type="number" id="adults" min="0">
</div>
<div class="input-group">
<label for="kids">Kids</label>
<input type="number" id="kids" min="0">
</div>
</div>
</form>
</div>
<div class="properties">
<h2>Show 389 Properties</h2>
</div>

</body>
3 changes: 3 additions & 0 deletions hotel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
$(function() {
$( "#datepicker1, #datepicker2" ).datepicker();
});