Skip to content

Commit

Permalink
feat: 회고 리스트 페이지 ui 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
yunn23 committed Nov 18, 2024
1 parent 6a39d1f commit a560a45
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/RetroList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const RetroList = () => {

const RetroListWrapper = styled.div<RetroListProps>`
border-radius: 0.8rem;
border: 0.1rem solid #D4D4DB;
border: 0.13rem solid #D4D4DB;
display: flex;
flex-direction: column;
margin: 1rem;
Expand Down
58 changes: 58 additions & 0 deletions src/components/RetroSummary.tsx
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;
42 changes: 40 additions & 2 deletions src/pages/Retro.tsx
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

0 comments on commit a560a45

Please sign in to comment.