Skip to content

Commit

Permalink
Merge branch 'main' into SKRF-167-feat-tab-component
Browse files Browse the repository at this point in the history
  • Loading branch information
colorkite10 authored Oct 26, 2023
2 parents 6011b28 + a5ee957 commit 711175a
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 1 deletion.
38 changes: 38 additions & 0 deletions src/components/SearchInputForm/SearchInputForm.style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import Theme from '@/styles/Theme';
import styled from '@emotion/styled';

const SearchInputContainerStyled = styled.div`
display: flex;
justify-content: center;
align-items: center;
width: 60%;
height: 100%;
`;

const SearchBarStyled = styled.div`
display: flex;
justify-content: start;
align-items: center;
width: 90%;
height: 60%;
border: 0.05rem solid ${Theme.color.lineColor};
border-radius: 1rem;
`;

const SearchInputStyled = styled.input`
flex-grow: 1;
height: 70%;
margin: 0 1rem;
outline: none;
border: none;
`;

const IconContainerStyled = styled.div`
display: flex;
justify-content: center;
align-items: center;
margin-right: 0.5rem;
color: ${Theme.color.lineColor};
`;

export { SearchInputContainerStyled, SearchBarStyled, SearchInputStyled, IconContainerStyled };
23 changes: 23 additions & 0 deletions src/components/SearchInputForm/SearchInputForm.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { CiSearch } from 'react-icons/ci';

import {
IconContainerStyled,
SearchBarStyled,
SearchInputContainerStyled,
SearchInputStyled,
} from './SearchInputForm.style';

const SearchInputForm = () => {
return (
<SearchInputContainerStyled>
<SearchBarStyled>
<SearchInputStyled />
<IconContainerStyled>
<CiSearch size="1.5rem" />
</IconContainerStyled>
</SearchBarStyled>
</SearchInputContainerStyled>
);
};

export default SearchInputForm;
11 changes: 10 additions & 1 deletion src/pages/MainPage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
import SearchInputForm from '@/components/SearchInputForm/SearchInputForm';
import Header from '@/components/common/Header/Header';

const MainPage = () => {
return <div>main</div>;
return (
<div>
<Header>
<SearchInputForm />
</Header>
</div>
);
};

export default MainPage;

0 comments on commit 711175a

Please sign in to comment.