이승윤

style: styled component 수정

......@@ -13,7 +13,6 @@ const HeaderHeight = '170px';
const HeaderTop = styled.div`
background-color: black;
float: up;
height: 20px;
`;
const MainContainer = styled.div`
......@@ -32,9 +31,9 @@ const MenuContainer = styled.div`
`;
const LogoContainer = styled.div`
margin-top: 10px;
float: left;
padding: 20px;
padding-right: 20px;
padding-left: 20px;
padding-top: 1%;
img {
width: 130px;
......@@ -44,13 +43,15 @@ const LogoContainer = styled.div`
`;
const SearchContainer = styled.div`
display: flex;
width: 70%;
position: relative;
margin-top: 20px;
`;
const SLink = styled(NavLink)`
list-style-type: none;
color: black;
float: left;
line-height: 55px;
vertical-align: middle;
text-align: center;
......@@ -75,16 +76,13 @@ const SLink = styled(NavLink)`
}
`;
const DropDownWrap = styled.div``;
const SearchOptionContainer = styled.div`
float: left;
`;
const SearchOptionContainer = styled.div``;
const SortOptionContainer = styled.div`
float: left;
`;
const SortOptionContainer = styled.div``;
const OptionContainer = styled.div`
position: absolute;
display: flex;
top: 132px;
left: 750px;
`;
......@@ -100,9 +98,7 @@ const AirContainer = styled.div`
height: ${HeaderHeight};
`;
const DropDownContainer = styled.div`
flex-direction: column;
`;
const DropDownContainer = styled.div``;
const Header = () => {
const [showModal, setShowModal] = useState(false);
......@@ -117,10 +113,10 @@ const Header = () => {
<>
<MainContainer>
<HeaderTop />
<LogoContainer onClick={onMainClick}>
<img src="eDrive_logo_v2.png" alt="" />
</LogoContainer>
<SearchContainer>
<LogoContainer onClick={onMainClick}>
<img src="eDrive_logo_v2.png" alt="" />
</LogoContainer>
<DropDownContainer>
<DropDownWrap>
<DropDownButton
......@@ -134,7 +130,7 @@ const Header = () => {
/>
</DropDownWrap>
</DropDownContainer>
<InputBlock color="blue" fontsize="20px" width="850px" display="">
<InputBlock color="blue" fontsize="20px" width="70%" display>
<input />
</InputBlock>
</SearchContainer>
......
......@@ -7,23 +7,25 @@ import { inputColorMap } from '../../lib/styles/palette';
const InputBlock = styled.div`
width: ${props => props.width};
float: ${props => props.float || 'left'};
height: ${props => props.height};
position: relative;
`;
const InputWrap = styled.div`
padding-top: ${props => props.paddingsize};
position: relative;
padding-left: 10px;
width: 70%;
height: 100%;
color: ${props => inputColorMap[props.color].color};
outline: none;
font-size: ${props => props.size};
border: 3px solid ${props => inputColorMap[props.color].borderColor};
float: left;
width: 100%;
`;
const SearchIconWrap = styled.div`
float: left;
position: absolute;
right: 0;
top: 0;
`;
const MyInput = ({
......
......@@ -9,7 +9,6 @@ const Main = styled.div`
display: flex;
align-items: center;
justify-content: center;
padding-left: 7%;
`;
const Container = styled.div`
......@@ -27,9 +26,8 @@ const LogoWrap = styled.div`
`;
const SearchBlock = styled.div`
display: inline-block;
width: 100%;
margin-left: 23%;
display: flex;
width: 50%;
`;
const LoginButtonBlock = styled.div`
position: fixed;
......@@ -57,9 +55,8 @@ const HomePage = () => {
{ id: 2, name: '개인' },
{ id: 3, name: '부서' },
]}
float="left"
/>
<Input color="blue" paddingsize="10px" width="700px" display />
<Input color="blue" paddingsize="10px" width="100%" display />
</SearchBlock>
{/* Todo : 로그인 했을 경우 로그인 버튼 숨기기 */}
......