-
Notifications
You must be signed in to change notification settings - Fork 2
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
[FE] feat: 리뷰 링크 관리 페이지와 라우터 설정 추가 #1032
Merged
chysis
merged 11 commits into
develop
from
fe/design/1028-review-link-management-page-layout
Jan 10, 2025
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
d2185cf
refactor: 리뷰미 로고 글자 간격 및 크기 조정
soosoo22 47e8253
refactor: 푸터에 border 추가
soosoo22 8580927
feat: 리뷰 링크 관리 페이지 레이아웃 구현
soosoo22 4ec2fa7
feat: 리뷰 링크 관리 페이지 구현 및 레이아웃 적용
soosoo22 a82450d
feat: 라우터 설정
soosoo22 bfa7a9d
fix: Amplitude 방문 이벤트에 리뷰 링크 관리 페이지 추가
soosoo22 281b115
refactor: ErrorSuspenseContainer로 감싼 후, ReviewLinkManagementPage에서 Re…
soosoo22 45d1585
feat: ReviewLinkLayout 컴포넌트 추가 및 반응형 스타일 적용
soosoo22 e869d38
feat: 모바일 환경에서 CardList의 max-height를 none으로 설정 및 반응형 세부 수정
soosoo22 3202a95
fix: ReviewCard 컴포넌트 flex-start로 상단 정렬 및 위치 비워두기
soosoo22 c747261
refactor: 리뷰 링크 관리 페이지 경로명 및 폴더명 변경
soosoo22 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
기존 로고 컴포넌트가 Topbar의 padding 때문에 영역을 벗어났는데, 해결되었네요👍🏻