Showing
1 changed file
with
21 additions
and
4 deletions
... | @@ -5,7 +5,7 @@ import InputBlock from './common/Input'; | ... | @@ -5,7 +5,7 @@ import InputBlock from './common/Input'; |
5 | import SearchBox from './common/SearchBox'; | 5 | import SearchBox from './common/SearchBox'; |
6 | import DropDownButton from './common/DropdownButton'; | 6 | import DropDownButton from './common/DropdownButton'; |
7 | import Button from './common/Button'; | 7 | import Button from './common/Button'; |
8 | - | 8 | +import Modal from './SearchOptionModal'; |
9 | // 헤더 사이즈 | 9 | // 헤더 사이즈 |
10 | const HeaderHeight = '170px'; | 10 | const HeaderHeight = '170px'; |
11 | 11 | ||
... | @@ -22,7 +22,7 @@ const MainContainer = styled.div` | ... | @@ -22,7 +22,7 @@ const MainContainer = styled.div` |
22 | width: 100%; | 22 | width: 100%; |
23 | z-index: 999; | 23 | z-index: 999; |
24 | background-color: #ffffff; | 24 | background-color: #ffffff; |
25 | - border-bottom: 1px solid black; | 25 | + border-bottom: 1px solid #868e96; |
26 | `; | 26 | `; |
27 | const MenuContainer = styled.div` | 27 | const MenuContainer = styled.div` |
28 | position: fixed; | 28 | position: fixed; |
... | @@ -86,11 +86,22 @@ const OptionContainer = styled.div` | ... | @@ -86,11 +86,22 @@ const OptionContainer = styled.div` |
86 | left: 650px; | 86 | left: 650px; |
87 | `; | 87 | `; |
88 | 88 | ||
89 | +const UserContainer = styled.div` | ||
90 | + position: fixed; | ||
91 | + top: 35px; | ||
92 | + right: 0; | ||
93 | + padding-right: 20px; | ||
94 | +`; | ||
95 | + | ||
89 | const AirContainer = styled.div` | 96 | const AirContainer = styled.div` |
90 | height: ${HeaderHeight}; | 97 | height: ${HeaderHeight}; |
91 | `; | 98 | `; |
92 | 99 | ||
93 | const Header = () => { | 100 | const Header = () => { |
101 | + const [showModal, setShowModal] = useState(false); | ||
102 | + const openModal = () => { | ||
103 | + setShowModal(prev => !prev); | ||
104 | + }; | ||
94 | const [setQuery] = useState(''); | 105 | const [setQuery] = useState(''); |
95 | const history = useHistory(); | 106 | const history = useHistory(); |
96 | const onMainClick = () => { | 107 | const onMainClick = () => { |
... | @@ -127,9 +138,10 @@ const Header = () => { | ... | @@ -127,9 +138,10 @@ const Header = () => { |
127 | </ul> | 138 | </ul> |
128 | </MenuContainer> | 139 | </MenuContainer> |
129 | <OptionContainer> | 140 | <OptionContainer> |
130 | - <SearchOptionContainer> | 141 | + <SearchOptionContainer onClick={openModal}> |
131 | - <Button color="white">고급검색</Button> | 142 | + <Button color="white">고급 검색</Button> |
132 | </SearchOptionContainer> | 143 | </SearchOptionContainer> |
144 | + <Modal showModal={showModal} setShowModal={setShowModal} /> | ||
133 | <SortOptionContainer> | 145 | <SortOptionContainer> |
134 | <DropDownButton | 146 | <DropDownButton |
135 | color="white" | 147 | color="white" |
... | @@ -141,6 +153,11 @@ const Header = () => { | ... | @@ -141,6 +153,11 @@ const Header = () => { |
141 | </DropDownButton> | 153 | </DropDownButton> |
142 | </SortOptionContainer> | 154 | </SortOptionContainer> |
143 | </OptionContainer> | 155 | </OptionContainer> |
156 | + <UserContainer> | ||
157 | + <Button color="white" width="100px" height="50px" fontsize="20px"> | ||
158 | + 사용자 님 | ||
159 | + </Button> | ||
160 | + </UserContainer> | ||
144 | </MainContainer> | 161 | </MainContainer> |
145 | <AirContainer /> | 162 | <AirContainer /> |
146 | </> | 163 | </> | ... | ... |
-
Please register or login to post a comment