Skip to content

Commit

Permalink
fix: styling
Browse files Browse the repository at this point in the history
  • Loading branch information
unewMe committed May 15, 2024
1 parent 9a8a563 commit 2f52f2a
Show file tree
Hide file tree
Showing 8 changed files with 139 additions and 161 deletions.
12 changes: 5 additions & 7 deletions styles/Home.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

.page_container {
position: relative;
background-size: cover;
Expand All @@ -7,17 +6,16 @@
z-index: 1000;
}


.form_container {
background: rgba(255, 255, 255, 0.9);
background: rgba(255, 255, 255, 0.9);
border-radius: 8px;
padding: 20px;
max-width: 500px;
margin: 0 auto;
max-width: 500px;
margin: 0 auto;
}

.background_container {
background-image: url('/background.jpg');
background-image: url("/background.jpg");
background-size: cover;
background-position: center;
position: relative;
Expand All @@ -33,6 +31,6 @@
right: 0;
bottom: 0;
left: 0;
background-color: rgba(255, 255, 255, 0.5);
background-color: rgba(255, 255, 255, 0.5);
z-index: 0;
}
95 changes: 46 additions & 49 deletions styles/book-search.module.css
Original file line number Diff line number Diff line change
@@ -1,113 +1,110 @@

.box_field {
display: flex;
flex-direction: column;
margin-left: 20px;
}

.content_container {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 10px;
display: flex;
align-items: center;
justify-content: flex-start;
gap: 10px;
}

.nav_pages{
.nav_pages {
margin-left: auto;
display: flex;
justify-content: flex-end;
justify-content: flex-end;
align-items: center;
}

.page_button {
padding: 10px 15px;
margin: 0 5px;
border: 2px solid #007BFF;
border: 2px solid #007bff;
background-color: white;
color: #007BFF;
color: #007bff;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s, color 0.3s;
border-radius: 5px;
transition:
background-color 0.3s,
color 0.3s;
border-radius: 5px;
user-select: none;
}

.page_button:hover {
box-shadow: 0 2px 5px 0 rgba(0,123,255,0.5);
box-shadow: 0 2px 5px 0 rgba(0, 123, 255, 0.5);
}

.page_button:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(0,123,255,0.3);
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}


.language_button {
padding: 10px 15px;
margin: 0 5px;
border: 2px solid #007BFF;
border: 2px solid #007bff;
background-color: white;
color: #007BFF;
color: #007bff;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s, color 0.3s;
border-radius: 5px;
user-select: none;
transition:
background-color 0.3s,
color 0.3s;
border-radius: 5px;
user-select: none;
}

.language_button.active {
background-color: #007BFF;
color: white;
border-color: #0056b3;
background-color: #007bff;
color: white;
border-color: #0056b3;
}


.language_button:hover {
box-shadow: 0 2px 5px 0 rgba(0,123,255,0.5);
box-shadow: 0 2px 5px 0 rgba(0, 123, 255, 0.5);
}


.language_button:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(0,123,255,0.3);
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}


.search_box {
padding: 10px 15px;
width: 100%;
max-width: 400px;
border: 2px solid #007BFF;
border-radius: 25px;
outline: none;
font-size: 16px;
color: #333;
transition: border-color 0.3s;
width: 100%;
max-width: 400px;
border: 2px solid #007bff;
border-radius: 25px;
outline: none;
font-size: 16px;
color: #333;
transition: border-color 0.3s;
}

.search_box::placeholder {
color: #888;
.search_box::placeholder {
color: #888;
}

.search_box:focus {
.search_box:focus {
border-color: #0056b3;
box-shadow: 0 0 5px rgba(0,123,255,0.5);
box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}



.loading {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
width: 100vw;
font-size: 24px;
font-family: 'Arial', sans-serif;
color: #555;
height: 100vh;
width: 100vw;
font-size: 24px;
font-family: "Arial", sans-serif;
color: #555;
background-color: rgba(255, 255, 255, 0.8);
position: fixed;
position: fixed;
top: 0;
left: 0;
z-index: 0;
}
z-index: 0;
}
80 changes: 36 additions & 44 deletions styles/book.module.css
Original file line number Diff line number Diff line change
@@ -1,64 +1,56 @@


.book_item {
position: relative;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
margin: 10px 0;
background-color: white;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 4px;
}
position: relative;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
margin: 10px 0;
background-color: white;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 4px;
}

.book_title {
color: #333;
font-size: 1.2em;
font-weight: 600;
color: #333;
font-size: 1.2em;
font-weight: 600;
}

.book_author {
color: #666;
font-size: 1em;
margin-top: 4px;
color: #666;
font-size: 1em;
margin-top: 4px;
}

.heart_icon {
display: flex;
width: 24px;
height: auto;
cursor: pointer;
align-items: right;
display: flex;
width: 24px;
height: auto;
cursor: pointer;
align-items: right;
}


.favorite_container {
padding: 0;
border: none;
background: none;

padding: 0;
border: none;
background: none;
}

.book_link {
text-decoration: none;
color: inherit;
display: flex;
justify-content: flex-end;
margin-right: 20px;
margin-left: 20px;
transition: color 0.3s;
text-decoration: none;
color: inherit;
display: flex;
justify-content: flex-end;
margin-right: 20px;
margin-left: 20px;
transition: color 0.3s;
}

.book_link:hover {
color: #007bff;
color: #007bff;
}


.book_actions {
display: flex;
align-items: center;
display: flex;
align-items: center;
}



32 changes: 15 additions & 17 deletions styles/books-page.module.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
.background_container {
background-image: url('/background.jpg');
background-size: cover;
background-position: center;
position: relative;
z-index: 0;
}

.background_overlay {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: rgba(255, 255, 255, 0.5);
z-index: 0;
}

background-image: url("/background.jpg");
background-size: cover;
background-position: center;
position: relative;
z-index: 0;
}

.background_overlay {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: rgba(255, 255, 255, 0.5);
z-index: 0;
}
13 changes: 6 additions & 7 deletions styles/footer.module.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
.footer {
background-color: rgba(255, 255, 255, 0);
color: white;
text-align: center;
padding: 20px 0;
margin-top: auto;
}

background-color: rgba(255, 255, 255, 0);
color: white;
text-align: center;
padding: 20px 0;
margin-top: auto;
}
6 changes: 1 addition & 5 deletions styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ body {
sans-serif;
font-size: 16px;
height: 100vh;
} */


}
a {
color: inherit;
text-decoration: none;
Expand All @@ -34,7 +32,6 @@ img {
height: auto;
}


:root {
--background-color: #fff;
--text-color: #000;
Expand All @@ -49,4 +46,3 @@ body {
background-color: var(--background-color);
color: var(--text-color);
}

Loading

0 comments on commit 2f52f2a

Please sign in to comment.