-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat/#49/datepicker-view
- Loading branch information
Showing
38 changed files
with
580 additions
and
277 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,79 @@ | ||
import styled from '@emotion/styled'; | ||
|
||
import sampleImg from '@/assets/images/sample.png'; | ||
|
||
interface TaskSummaryProps { | ||
text: string; | ||
data: number; | ||
unit: string; | ||
} | ||
|
||
function TaskSummary({ text, data, unit }: TaskSummaryProps) { | ||
return ( | ||
<TaskSummaryLayout> | ||
<ProfileImg src={sampleImg} alt="프로필" /> | ||
<TextWrapper> | ||
<SummaryText>{text}</SummaryText> | ||
<NumberTaskBox> | ||
<Number>{data}</Number> | ||
<NumberText>{unit}</NumberText> | ||
</NumberTaskBox> | ||
</TextWrapper> | ||
</TaskSummaryLayout> | ||
); | ||
} | ||
|
||
export default TaskSummary; | ||
|
||
const TaskSummaryLayout = styled.div` | ||
display: flex; | ||
flex: 1 0 0; | ||
flex-direction: column; | ||
gap: 2rem; | ||
align-items: flex-start; | ||
justify-content: center; | ||
box-sizing: border-box; | ||
width: 41.7rem; | ||
height: 18.8rem; | ||
padding-left: 2.8rem; | ||
background-color: ${({ theme }) => theme.palette.Grey.Grey1}; | ||
border-radius: 16px; | ||
`; | ||
|
||
const ProfileImg = styled.img` | ||
width: 4.4rem; | ||
height: 4.4rem; | ||
margin: 3rem 34.5rem 0 0; | ||
`; | ||
|
||
const TextWrapper = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
align-self: stretch; | ||
width: 38.9rem; | ||
height: 6.4rem; | ||
margin-bottom: 3rem; | ||
`; | ||
|
||
const SummaryText = styled.p` | ||
${({ theme }) => theme.fontTheme.HEADLINE_03} | ||
color: ${({ theme }) => theme.palette.Grey.Grey7} | ||
`; | ||
|
||
const NumberTaskBox = styled.div` | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
`; | ||
|
||
const Number = styled.p` | ||
${({ theme }) => theme.fontTheme.TITLE_02}; | ||
color: ${({ theme }) => theme.palette.Grey.Grey8}; | ||
`; | ||
|
||
const NumberText = styled.p` | ||
${({ theme }) => theme.fontTheme.HEADLINE_02}; | ||
color: ${({ theme }) => theme.palette.Grey.Grey7}; | ||
`; |
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,26 @@ | ||
import styled from '@emotion/styled'; | ||
|
||
function CategoryBox() { | ||
return ( | ||
<CategoryBoxLayout> | ||
<TitleSection>카테고리</TitleSection> | ||
</CategoryBoxLayout> | ||
); | ||
} | ||
|
||
const CategoryBoxLayout = styled.div` | ||
width: 31.7rem; | ||
height: 49rem; | ||
border: 1px solid #e4e4e4; | ||
border-radius: 12px; | ||
`; | ||
|
||
const TitleSection = styled.section` | ||
width: 100%; | ||
height: 6.6rem; | ||
padding: 2rem 0.8rem 1.8rem 2.8rem; | ||
${({ theme }) => theme.fontTheme.HEADLINE_02} | ||
`; | ||
export default CategoryBox; |
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
Oops, something went wrong.