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

library #16

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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"jest": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2017
},
"rules": {
"complexity": [0, 11],
"consistent-return": 2,
Expand Down
118 changes: 118 additions & 0 deletions src/library/css/article.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
.article_header,
.article_filter {
color: #444c63;
font-size: 22px;
height: 70px;
background-color: #eef1f7;
border-bottom: 1px solid #dadfea;
border-top: 1px solid #f4f6fa;
}

.article_header-label {
margin: 23px;
}

.article_filter {
display: flex;
align-items: center;
justify-content: space-between;
}

.article_filter ul {
display: flex;
width: 355px;
}

.article_filter li {
padding: 4px 11px;
margin: 0;
border-radius: 10px;
}

.article_filter li:hover {
background-color: #97b3ce;
}

.article_books {
display: flex;
flex-wrap: wrap;
}

.article_books img {
width: 200px;
height: 275px;
}

.article_books h3 {
color: #444c63;
font-size: 16px;
font-weight: normal;
margin: 0;
}

.article_books p {
color: #6f7d95;
font-size: 12px;
margin: 0;
}

.article_books_book {
margin: 30px 20px;
width: 200px;
}

.star_selected {
fill: #ffab00;
stroke: #ffab00;
stroke-width: 2px;
}

.star_unselected {
stroke: #ffab00;
fill: white;
stroke-width: 2px;
}

.star_tmpselected {
fill: #ffab00;
stroke: #ffab00;
}

.star_tmpunselected {
fill: white;
stroke: #facc6f;
}

.article_search {
width: 400px;
height: 32px;
border: 1px solid rgba(140, 151, 178, 0.4);
border-radius: 16px;
padding: 0 17px;
outline: none;
}

.article_search::-moz-placeholder {
color: #8c97b2;
}

.article_search::-webkit-input-placeholder {
color: #8c97b2;
}

.article_search-img {
position: absolute;
top: 9px;
right: 30px;
width: 13px;
height: 13px;
}

.article_search-label {
position: relative;
height: 32px;
}

.article_filter .selected-filter {
font-weight: bold;
}
20 changes: 20 additions & 0 deletions src/library/css/footer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.footer__item {
float: right;
background-color: #1f2637;
width: 55px;
height: 45px;
display: flex;
align-items: center;
justify-content: center;
}

.footer__item:hover {
background-color: #15a4fa;
;
}

.footer__item img {
float: center;
width: 14px;
height: 14px;
}
34 changes: 34 additions & 0 deletions src/library/css/header.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
.header__button {
color: #78829d;
font-size: 13px;
margin: 15px;
}

.header__marker {
border: 2px solid #19202e;
border-radius: 100%;
}

.header__user {
color: #ffffff;
font-size: 13px;
width: 158px;
background-color: #15a4fa;
height: 100%;
border-top-right-radius: 4px;
display: flex;
justify-content: space-around;
align-items: center;
}

.header__user-icons {
width: 12px;
height: 12px;
}

.header__user-photo {
width: 31px;
height: 32px;
border: 2px solid #eef1f7;
border-radius: 100%;
}
66 changes: 66 additions & 0 deletions src/library/css/library.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
@font-face {
font-family: "Proxima Nova";
src: url(../fonts/12093.ttf);
}

.library {
display: grid;
margin: 0;
font-family: "Proxima Nova";
grid-template-areas: "header header" "navigation article" "footer footer";
grid-template-columns: 200px 1fr;
}

.header {
grid-area: header;
height: 45px;
background-color: #2f364a;
display: flex;
flex-wrap: nowrap;
justify-content: flex-end;
align-items: center;
border-top-right-radius: 4px;
position: fixed;
width: 100%;
z-index: 1;
}

.navigation {
height: 100%;
grid-area: navigation;
background-color: #181e2c;
margin: 44px 0;
}

.article {
grid-area: article;
margin: 45px 0;
}

.footer {
height: 45px;
grid-area: footer;
background-color: #181e2c;
position: fixed;
bottom: 0px;
width: 100%;
}

.library ul {
padding: 0;
}

.library li {
color: #78829d;
font-size: 13px;
text-transform: capitalize;
padding: 0 0 0 46px;
list-style-type: none;
position: relative;
cursor: pointer;
}

.library li:hover {
color: white;
background-color: #15a4fa;
}
67 changes: 67 additions & 0 deletions src/library/css/modalWindow.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
.modal-window {
display: none;
position: absolute;
position: fixed;
z-index: 2;
margin: auto;
width: 100%;
height: 100%;
justify-content: center;
align-items: center;
background-color: rgba(49, 48, 48, 0.5)
}

.modal-window label {
width: 180px;
display: inline-block;
margin: 5px 10px;
}

.modal-window form {
background-color: #1f2637;
color: #78829d;
padding: 30px;
border-radius: 10px;
border: 1px solid black;
}

.modal-window p {
margin: 20px 20px 5px 20px;
}

.modal-window input {
border-radius: 3px;
}

.modal-window__buttons {
text-align: center;
}

.modal-window__button {
border-radius: 3px;
width: 90px;
height: 20px;
background-color: #f2795a;
color: white;
border: none;
font-size: 14px;
margin: 10px;
}

.modal-window__button:hover {
background-color: #f05a34;
}

.modal-window i {
color: red;
margin: 5px;
}

.modal-window__hint {
color: red;
display: none;
}

.modal-window__container-hint {
height: 20px;
}