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

add jwt function #33

Open
wants to merge 1 commit into
base: master
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
Binary file added public/css/raz.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 19 additions & 15 deletions public/css/style.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
body {
font-family: Arial, Helvetica, sans-serif;


}

* {
box-sizing: border-box
box-sizing: border-box;
}



input[type=text],
input[type=email],
input[type=password] {
Expand All @@ -31,7 +35,7 @@ hr {


button {
background-color:#0000FF;
background-color:#ff0054;
color: white;
padding: 12px 20px;
margin: 2px;
Expand All @@ -40,14 +44,14 @@ button {
width: 50%;
text-align: center;
margin: 0 auto;
display: flex;
justify-content: center;
display: flex;
justify-content: center;
font-weight: bold
}

button:hover {
opacity: 0.8;

}


Expand All @@ -73,10 +77,11 @@ form {

.title {
text-align: center
color:#ff0054;
}



.isa_success {
font-size: 30px;
text-align: center;
Expand All @@ -85,33 +90,32 @@ form {
color: #4F8A10;
background-color: #DFF2BF;
}

.isa_success i {
margin:10px 22px;
font-size:2em;
vertical-align:middle;
}
}

.isa_success, .isa_error {
margin: 10px 0px;
padding:12px;

}


.isa_error {
color: #D8000C;
background-color: #FFD2D2;
text-align: center
}

.isa_success i, .isa_error i {
margin:10px 22px;
font-size:2em;
vertical-align:middle;
}

h1{
color:#0000FF;
text-align:center
}
text-align: center;
color: #ff0054;
}
40 changes: 27 additions & 13 deletions public/css/style2.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@

body {
text-align: center;
background-image: url("raz.jpeg");

}

button {
color: black;
padding: 12px 20px;
margin: 2px;
border: none;
cursor: pointer;
width: 20%;
text-align: center;
margin: 0 auto;
float:right;
font-weight: bold
}

label{
margin-right: 10px;
}
Expand All @@ -14,62 +28,62 @@ body {
.add-book{
text-align: center;
}

h1 {
padding-bottom: 20px;
padding-top: 30px;
text-align: center;
font-size: 60px;
color: #5b380b;
color: #ff0054;
font-family: 'Lobster', cursive;
}

input[type=submit] {
font-size: 20px;
margin-top: 30px;
width: 130px;
height: 40px;
border: none;
background-color: #9f6314;
background-color: #ff0054;
font-weight:bold;
}

ul, li {
padding: 0;
margin: 0;
}
ul{
list-style-type:none;
}

ul li {
padding-bottom: 20px;
}

span {
display: inline-block;
width: 25%;
margin-right: 50px;
margin-top: 40px;
}

#reserveBook{
padding-top: 20px;
margin-top: 20px;
padding-bottom: 30px;

}
ul li:first-child{
color: #5b380b;

font-weight: bold;
font-size: 23px;
background-color: #f1c68e;
}
li:nth-child(odd) {
background-color: #fcf4e8

}
li:nth-child(even) {
background-color: #f9e8d2
}
}
4 changes: 4 additions & 0 deletions public/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,16 @@ request('GET', '/booksList', null, (err, books) => {
const bookNameLi = document.createElement('span');
const authorLi = document.createElement('span');
const yearLi = document.createElement('span');
const button = document.createElement('button');

bookNameLi.textContent = book_name;
authorLi.textContent = author;
yearLi.textContent = year;
li.appendChild(bookNameLi);
li.appendChild(authorLi);
li.appendChild(yearLi);
li.appendChild(button);

ul.appendChild(li);
})
container.replaceChild(ul, container.firstElementChild)
Expand Down
Loading