-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/#264: 어학 공지사항 기능 추가 #297
Changes from 8 commits
8374227
6a7eb68
28ffd71
798e03b
86d6934
3d3b677
4a006e9
0b32985
8ba3282
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import Icon from '@components/Common/Icon'; | ||
import styled from '@emotion/styled'; | ||
import useRouter from '@hooks/useRouter'; | ||
import { THEME } from '@styles/ThemeProvider/theme'; | ||
import { IconKind } from '@type/styles/icon'; | ||
|
||
interface InformHalfCardListProps { | ||
iconKind: IconKind; | ||
title: string; | ||
subTitle: string; | ||
link: string; | ||
} | ||
|
||
const InformHalfCardList = ({ | ||
iconKind, | ||
title, | ||
subTitle, | ||
link, | ||
}: InformHalfCardListProps) => { | ||
const { routerTo } = useRouter(); | ||
|
||
return ( | ||
<Container onClick={() => routerTo(link)}> | ||
<Icon kind={iconKind} size="45" color={THEME.PRIMARY} /> | ||
<TitleWrapper> | ||
<SubTitle>{subTitle}</SubTitle> | ||
<Title>{title}</Title> | ||
</TitleWrapper> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default InformHalfCardList; | ||
|
||
const Container = styled.div` | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
width: 39%; | ||
background-color: ${THEME.IVORY}; | ||
padding: 3% 5% 3% 4%; | ||
border-radius: 15px; | ||
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px; | ||
height: 55px; | ||
`; | ||
|
||
const TitleWrapper = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
padding-left: 7px; | ||
`; | ||
|
||
const Title = styled.h2` | ||
font-size: 16px; | ||
font-weight: bold; | ||
`; | ||
|
||
const SubTitle = styled.h3` | ||
color: ${THEME.TEXT.SEMIBLACK}; | ||
display: flex; | ||
justify-content: flex-end; | ||
font-size: 13px; | ||
padding-bottom: 6px; | ||
`; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import Carousel from '@components/Carousel'; | ||
import styled from '@emotion/styled'; | ||
import InformHalfCardList from '@pages/Home/components/InformHalfCardList'; | ||
import { THEME } from '@styles/ThemeProvider/theme'; | ||
|
||
import InformCardList from './components/InformCardList'; | ||
|
@@ -11,6 +12,20 @@ const Home = () => { | |
<InformTitle>학교</InformTitle> | ||
<InformCardList /> | ||
</InformCardWrapper> | ||
<HalfCardWrapper> | ||
<InformHalfCardList | ||
iconKind="account" | ||
title="취업 길라잡이" | ||
subTitle="채용 정보 확인" | ||
link="/announcement/recruit/normal" | ||
/> | ||
<InformHalfCardList | ||
iconKind="language" | ||
title="어학 공지사항" | ||
subTitle="어학 정보 확인" | ||
link="/announcement/language/normal" | ||
/> | ||
</HalfCardWrapper> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 그러면 InformHalfCardList -> InformHalfCard There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 예예 맞습니더 |
||
<InformCardWrapper> | ||
<InformTitle>비교과</InformTitle> | ||
<Carousel /> | ||
|
@@ -38,6 +53,12 @@ const InformCardWrapper = styled.div` | |
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px; | ||
`; | ||
|
||
const HalfCardWrapper = styled.div` | ||
display: flex; | ||
justify-content: space-between; | ||
margin-top: 5%; | ||
`; | ||
|
||
const InformTitle = styled.div` | ||
font-size: 20px; | ||
font-weight: bold; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
해당 컴포넌트는 리스트보다 하나의 카드를 보여주는 컴포넌트 같은데
List
를 컴포넌트 이름에서 제거하는게 어떨까요~?