-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[FEAT] home 스타일 코드 분리 및 Learn 페이지 구현 준비
- Loading branch information
Showing
8 changed files
with
192 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import styled from "styled-components"; | ||
|
||
export const GridWrapper = styled.div` | ||
width: 100%; | ||
justify-content: center; | ||
align-items: flex-end; | ||
display: grid; | ||
grid-template-columns: repeat(3, 1fr); | ||
gap: 1rem; | ||
@media (max-width: 768px) { | ||
grid-template-columns: repeat(2, 1fr); | ||
} | ||
@media (max-width: 480px) { | ||
grid-template-columns: 1fr; | ||
} | ||
`; | ||
|
||
export const WordCard = styled.div` | ||
min-width: 220px; | ||
width: 100%; | ||
height: 56px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
font-size: 1.5rem; | ||
font-weight: 700; | ||
border-radius: 8px; | ||
border: 1px solid #dcdcdc; | ||
background-color: #f4f4f4; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import { | ||
CommonTitle, | ||
CommonTitleWrapper, | ||
ItemWrapper, | ||
MainWrapper, | ||
} from "@components/common/common.styled"; | ||
import * as S from "./Learn.styeld"; | ||
import TabBar from "@components/common/tabBar/TabBar"; | ||
|
||
const Learn = () => { | ||
const handleMoreClick = () => { | ||
console.log(1); | ||
}; | ||
return ( | ||
<> | ||
<MainWrapper> | ||
<CommonTitleWrapper> | ||
<CommonTitle>단어장</CommonTitle> | ||
<div className="more" onClick={handleMoreClick}> | ||
{"더보기 >"} | ||
</div> | ||
</CommonTitleWrapper> | ||
<S.GridWrapper> | ||
<S.WordCard>단어장</S.WordCard> | ||
<S.WordCard>단어장</S.WordCard> | ||
<S.WordCard>단어장</S.WordCard> | ||
<S.WordCard>단어장</S.WordCard> | ||
</S.GridWrapper> | ||
<CommonTitleWrapper> | ||
<CommonTitle>아직 학습하지 않은 동화</CommonTitle> | ||
<div className="more" onClick={handleMoreClick}> | ||
{"더보기 >"} | ||
</div> | ||
</CommonTitleWrapper> | ||
<ItemWrapper> | ||
<S.WordCard>단어장</S.WordCard> | ||
<S.WordCard>단어장</S.WordCard> | ||
<S.WordCard>단어장</S.WordCard> | ||
<S.WordCard>단어장</S.WordCard> | ||
</ItemWrapper> | ||
<CommonTitleWrapper> | ||
<CommonTitle>최근 학습한 동화</CommonTitle> | ||
<div className="more" onClick={handleMoreClick}> | ||
{"더보기 >"} | ||
</div> | ||
</CommonTitleWrapper> | ||
<ItemWrapper> | ||
<S.WordCard>단어장</S.WordCard> | ||
<S.WordCard>단어장</S.WordCard> | ||
<S.WordCard>단어장</S.WordCard> | ||
<S.WordCard>단어장</S.WordCard> | ||
</ItemWrapper> | ||
</MainWrapper> | ||
<TabBar /> | ||
</> | ||
); | ||
}; | ||
|
||
export default Learn; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters