-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FE] feat: 리뷰 링크 관리 페이지와 라우터 설정 추가 (#1032)
* refactor: 리뷰미 로고 글자 간격 및 크기 조정 * refactor: 푸터에 border 추가 * feat: 리뷰 링크 관리 페이지 레이아웃 구현 * feat: 리뷰 링크 관리 페이지 구현 및 레이아웃 적용 * feat: 라우터 설정 * fix: Amplitude 방문 이벤트에 리뷰 링크 관리 페이지 추가 * refactor: ErrorSuspenseContainer로 감싼 후, ReviewLinkManagementPage에서 ReviewLinkDashboard로 분리 * feat: ReviewLinkLayout 컴포넌트 추가 및 반응형 스타일 적용 * feat: 모바일 환경에서 CardList의 max-height를 none으로 설정 및 반응형 세부 수정 * fix: ReviewCard 컴포넌트 flex-start로 상단 정렬 및 위치 비워두기 * refactor: 리뷰 링크 관리 페이지 경로명 및 폴더명 변경
- Loading branch information
Showing
12 changed files
with
208 additions
and
8 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
27 changes: 27 additions & 0 deletions
27
frontend/src/pages/ReviewLinkPage/components/ReviewLinkDashboard/index.tsx
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,27 @@ | ||
import { URLGeneratorForm } from '@/pages/HomePage/components'; | ||
|
||
import ReviewLinkLayout from '../layouts/ReviewLinkLayout'; | ||
|
||
import * as S from './styles'; | ||
|
||
const ReviewLinkDashboard = () => { | ||
return ( | ||
<S.ReviewLinkDashboardContainer> | ||
<S.FormSection> | ||
<URLGeneratorForm /> | ||
</S.FormSection> | ||
<S.Separator /> | ||
<S.LinkSection> | ||
<ReviewLinkLayout | ||
title="생성한 리뷰 링크를 확인해보세요" | ||
subTitle="클릭하면 해당 프로젝트의 리뷰 목록으로 이동해요" | ||
> | ||
{/* TODO: ReviewCard 컴포넌트 추가 및 생성한 리뷰 링크가 없을 경우, 돋보기 컴포넌트 추가 */} | ||
<></> | ||
</ReviewLinkLayout> | ||
</S.LinkSection> | ||
</S.ReviewLinkDashboardContainer> | ||
); | ||
}; | ||
|
||
export default ReviewLinkDashboard; |
78 changes: 78 additions & 0 deletions
78
frontend/src/pages/ReviewLinkPage/components/ReviewLinkDashboard/styles.ts
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,78 @@ | ||
import styled from '@emotion/styled'; | ||
|
||
import media from '@/utils/media'; | ||
|
||
export const ReviewLinkDashboardContainer = styled.div` | ||
display: flex; | ||
justify-content: center; | ||
gap: 7rem; | ||
width: 100%; | ||
${media.medium} { | ||
gap: 4rem; | ||
} | ||
@media screen and (max-width: 900px) { | ||
gap: 2rem; | ||
} | ||
${media.small} { | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
`; | ||
|
||
export const FormSection = styled.section` | ||
section { | ||
width: auto; | ||
} | ||
padding: 5rem 0; | ||
${media.medium} { | ||
section { | ||
padding: 0; | ||
} | ||
} | ||
${media.small} { | ||
width: 100%; | ||
padding: 0; | ||
} | ||
`; | ||
|
||
export const Separator = styled.div` | ||
width: 0.1rem; | ||
// 전체 영역에서 헤더(7rem)와 푸터(6rem) 영역 제외하고, 추후 네비게이션 탭이 추가되면 해당 영역도 제외 | ||
min-height: calc(100vh - 13rem); | ||
background-color: ${({ theme }) => theme.colors.lightGray}; | ||
${media.small} { | ||
display: none; | ||
} | ||
`; | ||
|
||
export const LinkSection = styled.section` | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: flex-start; | ||
gap: 3rem; | ||
width: 100%; | ||
padding: 5rem 0; | ||
${media.medium} { | ||
width: 50%; | ||
} | ||
${media.small} { | ||
width: 85%; | ||
} | ||
${media.xSmall} { | ||
width: 90%; | ||
} | ||
`; |
22 changes: 22 additions & 0 deletions
22
frontend/src/pages/ReviewLinkPage/components/layouts/ReviewLinkLayout/index.tsx
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,22 @@ | ||
import { EssentialPropsWithChildren } from '@/types'; | ||
|
||
import * as S from './styles'; | ||
|
||
interface ReviewLinkListLayoutProps { | ||
title: string; | ||
subTitle: string; | ||
} | ||
|
||
const ReviewLinkLayout = ({ title, subTitle, children }: EssentialPropsWithChildren<ReviewLinkListLayoutProps>) => { | ||
return ( | ||
<S.ReviewLinkLayout> | ||
<S.TitleWrapper> | ||
<S.Title>{title}</S.Title> | ||
<S.SubTitle>{subTitle}</S.SubTitle> | ||
</S.TitleWrapper> | ||
<S.CardList>{children}</S.CardList> | ||
</S.ReviewLinkLayout> | ||
); | ||
}; | ||
|
||
export default ReviewLinkLayout; |
58 changes: 58 additions & 0 deletions
58
frontend/src/pages/ReviewLinkPage/components/layouts/ReviewLinkLayout/styles.ts
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 media from '@/utils/media'; | ||
|
||
export const ReviewLinkLayout = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
gap: 4rem; | ||
`; | ||
|
||
export const TitleWrapper = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
gap: 0.8rem; | ||
`; | ||
|
||
export const Title = styled.h2` | ||
${media.medium} { | ||
font-size: 2rem; | ||
} | ||
${media.xSmall} { | ||
font-size: 1.8rem; | ||
} | ||
${media.xxSmall} { | ||
font-size: 1.6rem; | ||
} | ||
`; | ||
|
||
export const SubTitle = styled.span` | ||
color: ${({ theme }) => theme.colors.gray}; | ||
${media.xSmall} { | ||
font-size: 1.5rem; | ||
} | ||
${media.xxSmall} { | ||
font-size: 1.3rem; | ||
} | ||
`; | ||
|
||
export const CardList = styled.ul` | ||
display: flex; | ||
flex-direction: column; | ||
gap: 4rem; | ||
max-height: calc(100vh - 34rem); | ||
overflow-y: auto; | ||
padding-right: 2rem; | ||
${media.small} { | ||
max-height: none; | ||
padding-right: 0; | ||
} | ||
`; |
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,14 @@ | ||
import { ErrorSuspenseContainer } from '@/components'; | ||
|
||
import ReviewLinkDashboard from './components/ReviewLinkDashboard'; | ||
|
||
const ReviewLinkPage = () => { | ||
return ( | ||
<ErrorSuspenseContainer> | ||
{/* TODO: 네비게이션 탭 추가 */} | ||
<ReviewLinkDashboard /> | ||
</ErrorSuspenseContainer> | ||
); | ||
}; | ||
|
||
export default ReviewLinkPage; |
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