Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
GCL_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
이승윤
2021-05-07 00:14:52 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e84f414010a206d9c041574af08f7a54a52cd94d
e84f4140
1 parent
df7c7717
feat: 고급검색 modal 기능 추가
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
frontend/src/components/Header.js
frontend/src/components/Header.js
View file @
e84f414
...
...
@@ -5,7 +5,7 @@ import InputBlock from './common/Input';
import
SearchBox
from
'./common/SearchBox'
;
import
DropDownButton
from
'./common/DropdownButton'
;
import
Button
from
'./common/Button'
;
import
Modal
from
'./SearchOptionModal'
;
// 헤더 사이즈
const
HeaderHeight
=
'170px'
;
...
...
@@ -22,7 +22,7 @@ const MainContainer = styled.div`
width: 100%;
z-index: 999;
background-color: #ffffff;
border-bottom: 1px solid
black
;
border-bottom: 1px solid
#868e96
;
`
;
const
MenuContainer
=
styled
.
div
`
position: fixed;
...
...
@@ -86,11 +86,22 @@ const OptionContainer = styled.div`
left: 650px;
`
;
const
UserContainer
=
styled
.
div
`
position: fixed;
top: 35px;
right: 0;
padding-right: 20px;
`
;
const
AirContainer
=
styled
.
div
`
height:
${
HeaderHeight
}
;
`
;
const
Header
=
()
=>
{
const
[
showModal
,
setShowModal
]
=
useState
(
false
);
const
openModal
=
()
=>
{
setShowModal
(
prev
=>
!
prev
);
};
const
[
setQuery
]
=
useState
(
''
);
const
history
=
useHistory
();
const
onMainClick
=
()
=>
{
...
...
@@ -127,9 +138,10 @@ const Header = () => {
<
/ul
>
<
/MenuContainer
>
<
OptionContainer
>
<
SearchOptionContainer
>
<
Button
color
=
"white"
>
고급검색
<
/Button
>
<
SearchOptionContainer
onClick
=
{
openModal
}
>
<
Button
color
=
"white"
>
고급
검색
<
/Button
>
<
/SearchOptionContainer
>
<
Modal
showModal
=
{
showModal
}
setShowModal
=
{
setShowModal
}
/
>
<
SortOptionContainer
>
<
DropDownButton
color
=
"white"
...
...
@@ -141,6 +153,11 @@ const Header = () => {
<
/DropDownButton
>
<
/SortOptionContainer
>
<
/OptionContainer
>
<
UserContainer
>
<
Button
color
=
"white"
width
=
"100px"
height
=
"50px"
fontsize
=
"20px"
>
사용자
님
<
/Button
>
<
/UserContainer
>
<
/MainContainer
>
<
AirContainer
/>
<
/
>
...
...
Please
register
or
login
to post a comment