Skip to content

Commit

Permalink
checkbox & confirm buttons #13
Browse files Browse the repository at this point in the history
  • Loading branch information
donia98 committed Oct 4, 2018
1 parent 7fad92d commit b8a4fbf
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 3 deletions.
51 changes: 48 additions & 3 deletions public/css/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
margin-bottom: 20px;


}

.card {
margin: 7px;
border-radius: 10px;
border: 2px solid #DCDCDC;
position: relative;
margin-left: 30px;
}



.card:hover .overlay {
position: absolute;
width: 100%;
Expand All @@ -23,7 +25,7 @@
right: 0;
bottom: 0;
background-color: rgba(0,0,0,0.5);
z-index:100;
z-index: 1;
cursor: pointer;
display: flex;
align-items: center;
Expand Down Expand Up @@ -65,9 +67,52 @@ background-color: #787878;
display: flex;
justify-content: space-between;
}
.check-box {
z-index: 2;
width: 20px;
height: 20px;
margin-top: -3px;

}
.search-view h2 {
padding: 20px;
padding-left: 35px;
font-family: 'Lato', sans-serif;
font-size: 30px;
background-color: #DCDCDC;
}

.confirm-btns {
display: flex;
text-align: center;
margin: 30px;
justify-content: center;
}

#confirm-book {
background-color: #00C2FF;
width: 420px;
height: 70px;
border: 0;
color: #FFFFFF;
font-family: 'Lato', sans-serif;
font-size: 30px;
}

#cancel-book {
background-color: #FF5454;
width: 420px;
height: 70px;
border: 0;
color: #FFFFFF;
font-family: 'Lato', sans-serif;
font-size: 30px;
}

#confirm-book:hover {
background-color: #194856;
}

#cancel-book:hover {
background-color: #b53636;
}
7 changes: 7 additions & 0 deletions src/views/home.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<div class="info">
<span>Price : {{price}}$</span>
<span>Room No. : {{room_num}}</span>
<input type="checkbox" class="check-box" id="{{room_num}}">
</div>
</div>
{{/each}}
Expand All @@ -37,6 +38,7 @@
<div class="info">
<span>Price : {{price}}$</span>
<span>Room No. : {{room_num}}</span>
<input type="checkbox" class="check-box" id="{{room_num}}">
</div>
</div>
{{/each}}
Expand All @@ -59,10 +61,15 @@
<div class="info">
<span>Price : {{price}}$</span>
<span>Room No. : {{room_num}}</span>
<input type="checkbox" class="check-box" id="{{room_num}}">
</div>
</div>
{{/each}}
</div>
</div>
{{/if}}
<div class="confirm-btns">
<button id="confirm-book" type="button" name="button">Confirm</button>
<button id="cancel-book" type="button" name="button">Cancel</button>
</div>
</section>

0 comments on commit b8a4fbf

Please sign in to comment.