Skip to content

Commit

Permalink
change some tage in home and attr href to make request and edit some …
Browse files Browse the repository at this point in the history
…styel

Relates #25
  • Loading branch information
asem1789 committed Aug 21, 2019
1 parent ae5a39d commit 70073cc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
12 changes: 8 additions & 4 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ html {
cursor: pointer;
}

.main__content {
.main {
min-height: 80vh;
width: 100%;
background-color: #dcdde1;
Expand All @@ -54,10 +54,14 @@ html {
transform: translate(-50%, -50%);
}

.all-books > button {
.all-books > a {
display: block;
line-height: 150px;
text-align: center;
text-decoration: none;
width: 24%;
height: 150px;
padding: 3px 5px;
padding: 0;
font-size: 20px;
border-radius: 5px;
border: 2px solid #192a56;
Expand All @@ -67,7 +71,7 @@ html {
box-shadow: 2px 4px 10px #000;
}

.all-books > button:hover {
.all-books > a:hover {
background-color: #192a56;
color: #fff;
border: 2px solid #0a1021;
Expand Down
16 changes: 6 additions & 10 deletions src/views/home.hbs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<main class="main">
<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>
</div>
</main>
<section class="all-books">
<a href="/add-books" class="add-book-btn">Add Book</a>
<a href="/allbooks" class="all-books-btn">Get All Books</a>
<a href="/available-books" class="available-btn">Get Available Books</a>
<a href="/reserved-books" class="reserved-btn">Get Reserved Books</a>
</section>
5 changes: 3 additions & 2 deletions src/views/layouts/main.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
<body>

{{> header}}

{{{body}}}
<main class="main">
{{{body}}}
</main>

{{> footer}}

Expand Down

0 comments on commit 70073cc

Please sign in to comment.