-
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.
- Loading branch information
Showing
3 changed files
with
99 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import styled from '@emotion/styled'; | ||
import React from 'react'; | ||
|
||
interface RetroSummaryProps { | ||
content: string | ||
} | ||
|
||
const RetroSummary = ({ content }: RetroSummaryProps) => { | ||
return ( | ||
<> | ||
<RetroNoticeTitle>회고 요약</RetroNoticeTitle> | ||
<RetroNoticeWrapper> | ||
<RetroNoticeContent>{content}</RetroNoticeContent> | ||
</RetroNoticeWrapper> | ||
</> | ||
); | ||
}; | ||
|
||
const RetroNoticeWrapper = styled.div` | ||
border-radius: 0.8rem; | ||
border: 0.13rem solid #d4d4db; | ||
display: flex; | ||
flex-direction: column; | ||
margin: 1.5rem; | ||
width: 80rem; | ||
position: relative; | ||
`; | ||
|
||
const RetroNoticeTitle = styled.div` | ||
display: flex; | ||
width: 8rem; | ||
height: 2rem; | ||
position: absolute; | ||
background-color: white; | ||
z-index: 1; | ||
left: 30px; | ||
top: 0px; | ||
font-size: 1.5rem; | ||
align-items: center; | ||
justify-content: center; | ||
color: #878993; | ||
font-weight: 600; | ||
`; | ||
|
||
const RetroNoticeContent = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
box-sizing: border-box; | ||
width: 100%; | ||
height: 100%; | ||
padding: 1.7rem 3.2rem; | ||
font-size: 1.1rem; | ||
color: #505050; | ||
justify-content: space-between; | ||
white-space: pre-line; | ||
`; | ||
|
||
export default RetroSummary; |
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 |
---|---|---|
@@ -1,9 +1,47 @@ | ||
import React from 'react' | ||
import styled from '@emotion/styled' | ||
import RetroList from '../components/RetroList' | ||
import RetroSummary from '../components/RetroSummary' | ||
|
||
const Retro = () => { | ||
|
||
const summaryText = '회고 내용입니다.\n회고 요약 3줄 내용입니다.\n회고 요약 내용입니다.' | ||
return ( | ||
<div>Retro</div> | ||
<RetroWrapper> | ||
<Title>회고 리스트</Title> | ||
<Container> | ||
<RetroSummary content={summaryText} /> | ||
<RetroList /> | ||
</Container> | ||
</RetroWrapper> | ||
) | ||
} | ||
|
||
const RetroWrapper = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
width: 100%; | ||
height: calc(100vh - 13rem); | ||
position: relative; | ||
padding: 6rem 7.5rem; | ||
box-sizing: border-box; | ||
` | ||
|
||
const Title = styled.div` | ||
display: flex; | ||
justify-content: center; | ||
font-size: 1.7rem; | ||
color: #484848; | ||
font-weight: 600; | ||
margin-bottom: 3rem; | ||
` | ||
|
||
const Container = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100%; | ||
position: relative; | ||
line-height: 1.85rem; | ||
` | ||
export default Retro |