Skip to content

Commit

Permalink
Merge pull request #337 from ita-social-projects/#137navigationViaLogo
Browse files Browse the repository at this point in the history
#137navigation via logo
  • Loading branch information
BelousSofiya authored Nov 30, 2023
2 parents e39d068 + 488e64f commit 41531b0
Show file tree
Hide file tree
Showing 12 changed files with 74 additions and 33 deletions.
Binary file added FrontEnd/public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added FrontEnd/public/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added FrontEnd/public/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FrontEnd/public/favicon.ico
Binary file not shown.
Binary file added FrontEnd/public/forum-logo.ico
Binary file not shown.
11 changes: 7 additions & 4 deletions FrontEnd/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet">
<title>React App</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap"
rel="stylesheet"
/>
<title>Forum</title>
</head>
<body>
<div id="root"></div>
Expand Down
32 changes: 22 additions & 10 deletions FrontEnd/src/components/HeaderFooter/header/navbar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,30 @@ import Menu from './Menu';
import SearchBox from './SearchBox';
import Profile from './Profile';
import Buttons from './Buttons';
import { Link } from 'react-router-dom';

function Navbar(props) {
return (
<div className={css['navbar-content']}>
<div className={css['navbar-logo__text']}>forum</div>
<div className={css['navbar-utility-bar']}>
{props.page === 'login' || props.page === 'registration' ? (null):
(<><Menu/><SearchBox></SearchBox></>)}
{props.isAuthorized === true ? (<Profile/>) : (<Buttons/>)}
</div>
</div>
);
return (
<div className={css['navbar-content']}>
<div className={css['navbar-logo__text']}>
<Link to="/">
<img
src={`${process.env.REACT_APP_PUBLIC_URL}/forum-logo.ico`}
alt="forum-logo"
></img>
</Link>
</div>
<div className={css['navbar-utility-bar']}>
{props.page === 'login' || props.page === 'registration' ? null : (
<>
<Menu />
<SearchBox></SearchBox>
</>
)}
{props.isAuthorized === true ? <Profile /> : <Buttons />}
</div>
</div>
);
}

export default Navbar;
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.navbar-content {
display: flex;
width: 1305px;
padding: 8px 104px;
align-items: center;
justify-content: space-between;
display: flex;
width: 1305px;
padding: 8px 104px;
align-items: center;
justify-content: space-between;
}

.navbar-logo__text {
/* .navbar-logo__text {
color: #292E32;
font-feature-settings: 'calt' off;
font-family: Geologica;
Expand All @@ -15,9 +15,14 @@
font-weight: 500;
line-height: 24px;
letter-spacing: -0.24px;
} */

.navbar-logo__img {
width: 600px;
height: 400px;
}

.navbar-utility-bar {
display: flex;
gap: 24px;
display: flex;
gap: 24px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
align-items: flex-start;
gap: 10px;
flex: 1 0 0;
position: relative;
}

.header-search-form::after {
content: "";
position: absolute;
border-right: 1px solid #d9d9d9;
height: 32px;
top: -3.5px;
right: 0;
}

.header-search-form__input {
Expand All @@ -27,9 +37,15 @@
}

.header-search-form__addon {
display: flex;
padding: 6px;
justify-content: center;
align-items: center;
gap: 8px;
align-self: stretch;
background-color: transparent;
cursor: pointer;
border: 1px solid rgba(0, 0, 0, 0.25);
border: none;
}

.header-search-form__addon img {
Expand All @@ -52,4 +68,4 @@ textarea:focus,
.header-search-form__input:focus {
border: none;
outline: none;
}
}
9 changes: 7 additions & 2 deletions FrontEnd/src/components/SearchPage/Search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,15 @@ export function Search({ isAuthorized, userData }) {
<img className={styles['frame-img-right']} src={frame42} alt="frame" />
<div className={styles['new-companies-search_count']}>
{searchResults && (
<h3 className={styles['search_results_text']}>
<div><h3 className={styles['search_results_text']}>
РЕЗУЛЬТАТІВ ЗА ПОШУКОМ{' '}
<span className={styles['search_field_entered_value']}>
{searchTerm}
</span>{' '}
: {searchResults.length > 0 ? searchResults.length : 0}
</h3>
<br/>
</div>
)}
<br />
</div>
Expand All @@ -99,14 +101,17 @@ export function Search({ isAuthorized, userData }) {
/>
<br />
</>
) : (
) : ( <div>
<br />
<p className={styles['search_result_error']}>
Пошук не дав результатів: компанії з іменем{' '}
<span className={styles['.search_result_error']}>
{searchTerm}
</span>{' '}
не було виявлено на даний момент
</p>
<br />
</div>
)}
</div>
<div className={styles['new-companies-result_pages']}>
Expand Down
7 changes: 4 additions & 3 deletions FrontEnd/src/components/SearchPage/search_page.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
}

.search_field_entered_value {
color: var(----main-style-signs-color);
font: Inter;
color: #0b6c61;
font: normal normal normal 20px/2 Inter;
font-weight: 600;
font-style: italic;
}
Expand All @@ -34,7 +34,8 @@
.search_result_error {
font-weight: 600;
color: var(--text-color);
font: Inter;
font: normal normal bold 20px/2 Inter;
margin: 145px;
}

.frame-img-right {
Expand Down
7 changes: 3 additions & 4 deletions FrontEnd/src/components/cookieacception/CookieMod.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
padding: 20px;
border-radius: 12px;
background-color: white;
height: 230px;
width: 300px;
}

Expand All @@ -30,8 +29,8 @@
border-style: solid;
font-size: 15px;
border-radius: 4px;
margin: 10px;
margin-right: 40px;
margin: 14px;
margin-right: 50px;
padding: 4px;
}

Expand All @@ -48,7 +47,7 @@
}

.cookie-image {
margin-left: 55px;
margin-left: 95px;
margin-right: 50px;
width: 100px;
height: 70px;
Expand Down

0 comments on commit 41531b0

Please sign in to comment.