Skip to content

Commit

Permalink
Merge pull request #14 from SWDC-Team-GG/younghyun
Browse files Browse the repository at this point in the history
사전 페이지 리펙토링
  • Loading branch information
jyh071116 authored Nov 1, 2023
2 parents 2bbb718 + b5824eb commit 4bbb541
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
4 changes: 4 additions & 0 deletions src/pages/Dict/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,15 @@ function Dict() {
];
return (
<S.DictMain>
<S.MainText>
<S.Blue>단어</S.Blue>사전
</S.MainText>
<S.SearchBox>
<S.SearchImg src={search} />
<S.SearchBoxInput placeholder="Search" />
</S.SearchBox>
<S.WordArea>
<S.RecentText>검색기록</S.RecentText>
{data.map((item) => (
<Word item={item} />
))}
Expand Down
20 changes: 16 additions & 4 deletions src/pages/Dict/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,27 @@ export const DictMain = styled.div`
flex-direction: column;
align-items: center;
justify-content: center;
gap: 5rem;
gap: 2.5rem;
width: 100%;
margin-top: 5rem;
`;

export const MainText = styled.div`
font-size: 2.5rem;
font-weight: bold;
`;

export const Blue = styled.span`
color: #314fdd;
`;

export const SearchBox = styled.div`
display: flex;
align-items: center;
width: 35%;
border: 1px solid #ececec;
border-radius: 25px;
background-color: #fbfbfb42;
background-color: #fbfbfb;
gap: 0.5rem;
padding: 0.75rem 1rem;
`;
Expand All @@ -36,7 +45,10 @@ export const WordArea = styled.div`
width: 50%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 2rem;
`;

export const RecentText = styled.div`
font-size: 1.5rem;
font-weight: bold;
`;
2 changes: 1 addition & 1 deletion src/pages/Quiz/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const Line = styled.div`

export const SelectArea = styled.div`
display: flex;
gap: 0.75rem;
gap: 0.7rem;
flex-direction: column;
justify-content: center;
`;
Expand Down

0 comments on commit 4bbb541

Please sign in to comment.