Skip to content

Commit

Permalink
Adapted error on search page
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSychev2005 committed Nov 20, 2024
1 parent cfd667a commit 560300b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 26 deletions.
6 changes: 1 addition & 5 deletions FrontEnd/src/pages/SearchPage/Search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,7 @@ export function Search({ isAuthorized }) {
) : (
<div className={styles['new-companies-main__error']}>
<p className={styles['search_result_error']}>
Пошук не дав результатів: компанії з іменем
<span className={styles['search_result_error_color']}>
{` ${searchTerm} `}
</span>
не було виявлено на даний момент
Пошук не дав результатів
</p>
</div>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

.col {
flex: 0 0 auto;
align-items: center;
margin-bottom: 32px;
}

Expand Down
37 changes: 17 additions & 20 deletions FrontEnd/src/pages/SearchPage/search.module.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
.main_block_outer {
padding-top: 10px;
min-height: var(--min-height-block-main);
}

.new-companies-main__error {
background-color: rgba(249, 245, 236, 1);
display: flex;
min-height: 539px;
justify-content: center;
align-items: center;
min-height: 288px;
margin-top: 3%;
align-content: center;
text-align: center;

}

.main_block {
Expand Down Expand Up @@ -35,23 +38,11 @@
}

.search_result_error {
margin-left: 140px;
margin-top: 15%;
width: 80%;
flex-direction: row;
font-weight: 600;
width: 100%;
max-width: 80%;
color: var(--search-text-color);
font: normal normal bold 20px/2 var(--font-main);
}

.search_result_error_color {
color: #0b6c61;
font: normal normal normal 20px/2 var(--font-main);
font-weight: 600;
}

.new-companies-result_pages {
padding: 40px;
font: normal normal bold 29px/2 var(--font-main);
text-align: center;
}

.pagination {
Expand Down Expand Up @@ -88,6 +79,10 @@
.search_field_entered_value {
font-size: 41px;
}

.search_result_error {
font: normal normal bold 48px/2 var(--font-main);
}
}

@media only screen and (min-width: 768px){
Expand All @@ -97,5 +92,7 @@
.search_field_entered_value {
font-size: 34px;
}

.search_result_error {
font: normal normal bold 48px/2 var(--font-main);
}
}

0 comments on commit 560300b

Please sign in to comment.