Skip to content
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

feat: 이전글 다음글 바로가기 추가 #278

Merged
merged 3 commits into from
Dec 9, 2024

Conversation

PHJoon
Copy link
Contributor

@PHJoon PHJoon commented Dec 5, 2024

📝 개요

포스트 댓글 아래에 이전글 다음글 바로가기 및 목록으로 돌아가는 버튼 추가

🚀 변경사항

  • 이전글 다음글 이동 추가했습니다.
  • 이전글 다음글로 움직이면 목록으로 돌아갈때 뒤로가기로 가기 힘들어져서 목록으로 버튼도 추가했습니다.
스크린샷 2024-12-05 오후 7 22 24 스크린샷 2024-12-05 오후 7 22 33 스크린샷 2024-12-05 오후 7 22 49

피드백 반영 후

스크린샷 2024-12-06 오후 11 14 42 스크린샷 2024-12-06 오후 11 14 50 스크린샷 2024-12-06 오후 11 14 58

🔗 관련 이슈

#275

➕ 기타

@PHJoon PHJoon added the feature 새 기능 추가 label Dec 5, 2024
@PHJoon PHJoon requested a review from imdaxsz December 5, 2024 10:25
@PHJoon PHJoon self-assigned this Dec 5, 2024
@imdaxsz
Copy link
Contributor

imdaxsz commented Dec 6, 2024

  1. 게시글 목록 페이지랑 스타일을 맞춰서 폰트 색상을 '이전글/다음글'은 text-gray-500, 제목은 기본 폰트 색(검은색)으로 하는 건 어떨까요?
  2. 다음글이나 이전글이 없을 때는 그냥 해당 영역을 안 보여주는 건 어떨까요?

interface PostNavLinkProps {
type: '이전' | '다음';
category: string;
postLink: PostLinkData | null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

post나 postInfo 같은 이름이 더 좋을 것 같아요. postLink라고 하면 URL string이 와야할 것 같은 느낌이 들어요!

@@ -1,3 +1,10 @@
export interface PostLinkData {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

위에서 얘기한 props랑 관련해서 이것도 이름을 AdjacentPost, SiblingPost 이런 걸로 바꾸면 더 좋지 않을까 싶습니다 !

Copy link

Deploying abcdedu-frontend-dev with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1c1dfb0
Status: ✅  Deploy successful!
Preview URL: https://ed021848.abcdedu-frontend.pages.dev
Branch Preview URL: https://feat-post-navigation-phj.abcdedu-frontend.pages.dev

View logs

@PHJoon
Copy link
Contributor Author

PHJoon commented Dec 6, 2024

  1. 게시글 목록 페이지랑 스타일을 맞춰서 폰트 색상을 '이전글/다음글'은 text-gray-500, 제목은 기본 폰트 색(검은색)으로 하는 건 어떨까요?
  2. 다음글이나 이전글이 없을 때는 그냥 해당 영역을 안 보여주는 건 어떨까요?

타입명이랑 변수명 쓰면서도 애매했는데 수정하니까 훨씬 낫네요 👍
본문에 피드백 이후 화면 올려놨습니다!

Copy link
Contributor

@imdaxsz imdaxsz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다!

@PHJoon PHJoon merged commit 63154cd into develop Dec 9, 2024
2 checks passed
@PHJoon PHJoon deleted the feat/post-navigation/phj branch December 9, 2024 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 새 기능 추가
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants