-
Notifications
You must be signed in to change notification settings - Fork 4
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
[마이페이지] style qa를 위한 변경 사항 #399
Conversation
|
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 덕분에 한번에 확인 할 수 있었습니다!
고생하셨어요 :)
@@ -18,7 +18,7 @@ export const TextWrapper = styled.div` | |||
|
|||
export const Text = styled.div` | |||
${({ theme: { fonts } }) => fonts.heading_01}; | |||
> p { | |||
> span { |
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.
혹시 span태그로 바꾸신 이유가 뭔지 알 수 있을까요?? 지난 번 합숙 때 기본 p태그는 모바일에선 파란색인 것이라고 호은님께 배웠었는데, 혹시 그때문인지... 만약 이 이유로 바꾸신 것이라면 저도 바꿔야해서요!!
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.
흠 그 부분을 상기시켜 한것은 아닙니다!
p태그는 기본적으로 엔터를 동반한 태그이기 때문에, 한 문장안에서 부분적으로 스타일 적용을 하기 위해선 p태그가 아닌 span를 활용해야겠다고 생각했기 때문입니다!
// 컴포넌트가 언마운트될 때 이벤트 리스너 제거 | ||
return () => { | ||
window.removeEventListener('scroll', handleScroll); | ||
}; |
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.
p태그를 span으로 바꾸신 이유에 대한 질문을 리뷰에 남겼습니다!!
고생많으셨습니다 :)
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.
고생하셨습니다!!
@@ -10,11 +10,18 @@ interface DoneCardRoomType { | |||
} | |||
|
|||
const DoneCardRoom = ({ user, srcImage, userCount, onClick }: DoneCardRoomType) => { | |||
const multiline = user.length > 3 || (/[a-zA-Z]/.test(user) && user.length > 5); |
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 handleScroll = () => { | ||
const scrollTop = window.pageYOffset || document.documentElement.scrollTop; | ||
setIsTop(scrollTop === 0); // 스크롤이 맨 위에 있는지 여부를 상태에 설정 |
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.
스크롤에 따라 헤더 변경 너무 좋네요! 디자인 의도에 맞게 표현하기 위한 고민하신 흔적이 보입니다 최고최고✨
이슈 넘버
구현 사항
Need Review
📸 스크린샷
figma 와 동일하게 적용 !! header도 밑으로 내릴때만 색상 적용되게 수정
bandicam.2024-02-23.02-47-19-729.mp4
[화면 안 움직이게]
bandicam.2024-02-23.02-47-42-206.mp4
Reference