generated from ita-social-projects/DevTemplate
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into #269-ImplementFunctionalityOfProfileDetails
- Loading branch information
Showing
37 changed files
with
1,631 additions
and
149 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
110 changes: 55 additions & 55 deletions
110
FrontEnd/src/components/BreadCrumbs/BreadCrumbs.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,70 @@ | ||
.content { | ||
padding-left: 192px; | ||
display: flex; | ||
align-items: center; | ||
margin-bottom: 32px; | ||
padding-left: 10%; | ||
display: flex; | ||
align-items: center; | ||
margin-bottom: 32px; | ||
} | ||
|
||
.main-page__button { | ||
font-family: "Inter", sans-serif; | ||
font-size: 16px; | ||
font-weight: 600; | ||
line-height: 20px; | ||
letter-spacing: -0.01em; | ||
text-align: left; | ||
color: #8D959C; | ||
text-decoration: none; | ||
font-family: 'Inter', sans-serif; | ||
font-size: 16px; | ||
font-weight: 600; | ||
line-height: 20px; | ||
letter-spacing: -0.01em; | ||
text-align: left; | ||
color: #8d959c; | ||
text-decoration: none; | ||
} | ||
|
||
.current-page__button { | ||
font-family: "Inter", sans-serif; | ||
font-size: 16px; | ||
font-weight: 600; | ||
line-height: 20px; | ||
letter-spacing: -0.01em; | ||
text-align: left; | ||
color: #25292C; | ||
text-decoration: none; | ||
font-family: 'Inter', sans-serif; | ||
font-size: 16px; | ||
font-weight: 600; | ||
line-height: 20px; | ||
letter-spacing: -0.01em; | ||
text-align: left; | ||
color: #25292c; | ||
text-decoration: none; | ||
} | ||
|
||
.goback__button { | ||
display: flex; | ||
padding: 5px 15px; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 10px; | ||
border-radius: 4px; | ||
border: 1px solid var(--primary-green-80, #1f9a7c); | ||
background: var(--main-white, #fff); | ||
box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.02); | ||
color: var(--primary-green-80, #1f9a7c); | ||
text-align: center; | ||
font-feature-settings: "calt" off; | ||
font-family: "Inter", sans-serif; | ||
font-size: 16px; | ||
font-style: normal; | ||
font-weight: 600; | ||
line-height: 20px; | ||
letter-spacing: -0.16px; | ||
cursor: pointer; | ||
margin-right: 32px; | ||
} | ||
.goback__button { | ||
display: flex; | ||
padding: 5px 15px; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 10px; | ||
border-radius: 4px; | ||
border: 1px solid var(--primary-green-80, #1f9a7c); | ||
background: var(--main-white, #fff); | ||
box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.02); | ||
color: var(--primary-green-80, #1f9a7c); | ||
text-align: center; | ||
font-feature-settings: 'calt' off; | ||
font-family: 'Inter', sans-serif; | ||
font-size: 16px; | ||
font-style: normal; | ||
font-weight: 600; | ||
line-height: 20px; | ||
letter-spacing: -0.16px; | ||
cursor: pointer; | ||
margin-right: 32px; | ||
} | ||
|
||
.right { | ||
transform: rotate(-45deg); | ||
-webkit-transform: rotate(-45deg); | ||
border: solid #25292C; | ||
border-width: 0 2px 2px 0; | ||
display: inline-block; | ||
padding: 4px; | ||
margin: 0px 15px; | ||
transform: rotate(-45deg); | ||
-webkit-transform: rotate(-45deg); | ||
border: solid #25292c; | ||
border-width: 0 2px 2px 0; | ||
display: inline-block; | ||
padding: 4px; | ||
margin: 0px 15px; | ||
} | ||
|
||
.left { | ||
transform: rotate(135deg); | ||
-webkit-transform: rotate(135deg); | ||
border: solid #1f9a7c; | ||
border-width: 0 2px 2px 0; | ||
display: inline-block; | ||
padding: 4px; | ||
transform: rotate(135deg); | ||
-webkit-transform: rotate(135deg); | ||
border: solid #1f9a7c; | ||
border-width: 0 2px 2px 0; | ||
display: inline-block; | ||
padding: 4px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 39 additions & 10 deletions
49
FrontEnd/src/components/HeaderFooter/header/navbar/SearchBox.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,44 @@ | ||
import css from './SearchBox.module.css'; | ||
import { useState } from 'react'; | ||
import icon_search from './search-icon.svg'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import css from './SearchBox.module.css'; | ||
|
||
function SearchBox() { | ||
const navigate = useNavigate(); | ||
|
||
const [searchTerm, setSearchTerm] = useState(''); | ||
const searchPage = 'search'; | ||
|
||
function SearchBox () { | ||
return ( | ||
<div className={css['header-search-box']}> | ||
<div className={css['header-search-form']}> | ||
<input className={css['header-search-form__input']} placeholder="Пошук"></input> | ||
</div> | ||
<span className={css['header-search-form__addon']}><img src={icon_search} alt=""/></span> | ||
</div> | ||
); | ||
const handleSearch = (searchTerm, searchPage) => { | ||
if (searchTerm.trim() !== '') { | ||
navigate(`/${searchPage}/?name=${searchTerm}`); | ||
} | ||
}; | ||
return ( | ||
<div className={css['header-search-box']}> | ||
<div className={css['header-search-form']}> | ||
<input | ||
className={css['header-search-form__input']} | ||
value={searchTerm} | ||
type="text" | ||
placeholder="Пошук" | ||
onChange={(e) => setSearchTerm(e.target.value)} | ||
onKeyDown={(e) => { | ||
if (e.key === 'Enter') { | ||
handleSearch(searchTerm, searchPage); | ||
} | ||
}} | ||
/> | ||
</div> | ||
<button | ||
onClick={() => handleSearch(searchTerm, searchPage)} | ||
className={css['header-search-form__addon']} | ||
disabled={!searchTerm.trim()} | ||
> | ||
<img src={icon_search} alt="" /> | ||
</button> | ||
</div> | ||
); | ||
} | ||
|
||
export default SearchBox; |
Oops, something went wrong.