-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make style for main page and add some tag in hbs files
Relates #20
- Loading branch information
Showing
4 changed files
with
101 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
html { | ||
font-size: 18px; | ||
font-family: "Poppins", sans-serif; | ||
font-weight: 300; | ||
} | ||
|
||
.main-header { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
height: 10vh; | ||
background-color: #273c75; | ||
padding: 4px 10%; | ||
} | ||
|
||
.main-header__logo { | ||
font-family: "Kreon", serif; | ||
color: #fff; | ||
text-shadow: 2px 4px #0a1021; | ||
} | ||
|
||
.main-header_list { | ||
list-style: none; | ||
display: flex; | ||
} | ||
|
||
.main-header_list > li { | ||
margin-right: 15px; | ||
color: #fff; | ||
cursor: pointer; | ||
} | ||
|
||
.main__content { | ||
min-height: 80vh; | ||
width: 100%; | ||
background-color: #dcdde1; | ||
position: relative; | ||
} | ||
|
||
.all-books { | ||
width: 80%; | ||
display: flex; | ||
justify-content: space-between; | ||
margin: 0 auto; | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
} | ||
|
||
.all-books > button { | ||
width: 24%; | ||
height: 150px; | ||
padding: 3px 5px; | ||
font-size: 20px; | ||
border-radius: 5px; | ||
border: 2px solid #192a56; | ||
cursor: pointer; | ||
font-weight: 600; | ||
outline: 0; | ||
box-shadow: 2px 4px 10px #000; | ||
} | ||
|
||
.all-books > button:hover { | ||
background-color: #192a56; | ||
color: #fff; | ||
border: 2px solid #0a1021; | ||
box-shadow: 2px 4px 10px 5px #000; | ||
transition: all 0.5s ease-out; | ||
} | ||
|
||
.footer { | ||
height: 10vh; | ||
width: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
background-color: #273c75; | ||
} | ||
|
||
.footer p { | ||
color: #fff; | ||
font-size: 90%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
<main class="main"> | ||
<h1>Books</h1> | ||
<section class="all-books"> | ||
<div class="main__content"> | ||
<section class="all-books"> | ||
<button class="add-book-btn">Add Book</button> | ||
<button class="all-books-btn">Get All Books</button> | ||
<button class="available-btn">Get Available Books</button> | ||
<button class="reserved-btn">Get Reserved Books</button> | ||
</section> | ||
</section> | ||
</div> | ||
</main> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<link href="https://fonts.googleapis.com/css?family=Kreon:400,500,600|Poppins:300,400,500,600&display=swap" | ||
rel="stylesheet"> | ||
<link rel="stylesheet" href="./css/style.css"> | ||
<title>Books Share Center</title> | ||
</head> | ||
|
||
<body> | ||
|
||
{{> header}} | ||
|
||
{{{body}}} | ||
|
||
{{> footer}} | ||
|
||
<script src="./js/dom.js"></script> | ||
<script src="./js/logic.js"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters