-
Notifications
You must be signed in to change notification settings - Fork 2
✨Feat: 공통 헤더 컴포넌트 작성 #22
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
Conversation
LeeCh0129
left a comment
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.
헤더 컴포넌트를 잘구현해주셨고, 상태 관리와 persist 미들웨어로 상태 유지 구현까지 미리 잘 작성해주셨네요. 고생하셨습니다~👍
Insung-Jo
left a comment
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.
리뷰 남겼습니다! 헤더 작성 잘해주셨고 논의 사항이나 궁금한 점은 리뷰로 남겨드렸습니다!
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.
이 부분은 저도 비슷하게 작성하고 있어서 제가 PR 올리기 전에 같이 살펴보고 결정하는 게 좋을 거 같아요!
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.
넵!!
| // alias 설정 | ||
| "@/*": ["./src/*"], | ||
| "@components/*": ["./src/app/shared/components/*"], | ||
| "@store/*": ["./src/app/shared/store/*"], |
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.
store로 바로 연결할 수 있게 추가해주셨군요!
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.
아무래도 자주 사용할 것 같아서 추가해놨습니당
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.
파비콘, 라이브러리 추가 감사합니다! 헤더 레이아웃 잘 잡아주셨네요👍, 고생하셨습니다~~
질문 하나 남겨뒀으니 확인 부탁드립니당
| const { user, logout } = useUserStore() // Zustand 상태 | ||
|
|
||
| return ( | ||
| <header className="flex items-center justify-between border-b border-gray-200 bg-white px-36 py-16 dark:border-gray-700 dark:bg-black"> |
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.
제가 global.css에 작성해둔 커스텀 유틸 클래스
BG-white, Border-section 사용하시면 더 간결하게 다크모드 적용 가능합니다!
혹시 직접 특정 색상을 사용하고 싶으셨던 건가요??
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.
일단 임시로 적어둔 거라 추후 수정할 계획입니당!!
📌 변경 사항 개요
헤더 공통 컴포넌트 작성
✨ 요약
📝 상세 내용
🎨style
✨Feat
Header.tsx에서 use client 사용 이유:
useRouter()가 서버 컴포넌트에서 호출하면 동작하지 않으며 클라이언트에서만 동작하는 기능이기 때문.
🔍 서버 컴포넌트에서 사용 불가한 이유
🔗 관련 이슈
#7
🖼️ 스크린샷
20250607_185856.mp4
✅ 체크리스트
💡 참고 사항