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

페이지 UI: 즐겨찾기 페이지 #124

Merged
merged 27 commits into from
Jan 25, 2024
Merged

페이지 UI: 즐겨찾기 페이지 #124

merged 27 commits into from
Jan 25, 2024

Conversation

seoye0ng
Copy link
Collaborator

해당 사항 (중복 선택)

  • FEAT : 새로운 기능 추가 및 개선
  • TEST : 테스트 추가 및 리팩토링
  • FIX : 버그 수정
  • REFACTOR : 결과의 변경 없이 코드의 구조를 재조정
  • STYLE : 코드 스타일에 관련된 변경 사항
  • DOCS : 코드가 아닌 문서를 수정한 경우
  • REMOVE : 파일을 삭제하는 작업만 수행
  • RENAME : 파일 또는 폴더명을 수정하거나 위치(경로)를 변경
  • CHORE : 패키지 매니저 설정, 코드 수정 없이 설정 변경(eslint) 등 기타 사항

설명

Key Changes

  1. 즐겨찾기 페이지 UI 제작
  2. useScroll 커스텀 훅 제작
  3. scroll 시 애니메이션 구현

How it Works

To Reviewers

@seoye0ng seoye0ng added ✨ Feature 기능 개발 🎨 Html&css 마크업 & 스타일링 labels Jan 23, 2024
@seoye0ng seoye0ng self-assigned this Jan 23, 2024
@seoye0ng seoye0ng requested a review from bottlewook as a code owner January 23, 2024 09:35
Copy link

vercel bot commented Jan 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
f1-wash-pedia-fe ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 25, 2024 3:05am

@seoye0ng seoye0ng linked an issue Jan 23, 2024 that may be closed by this pull request
2 tasks
Copy link
Collaborator

@bottlewook bottlewook left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!


import classNames from 'classnames/bind';

import useScroll from '@/hooks/useScroll';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
import useScroll from '@/hooks/useScroll';
import useScroll from '@hooks/useScroll';

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

수정완료했습니다!

setIsScrolled(window.scrollY > 1);
};

window.addEventListener('scroll', handleScroll);
Copy link
Collaborator

Choose a reason for hiding this comment

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

스크롤 이벤트가 감지되면 handleScroll 함수가 매번 실행되기 때문에 throttle을 적용해서 성능 개선하는 건 어떨까요!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

이거 라이브러리 불러오려다가 git rebase했더니.. 이전 커밋 로그까지 같이 찍혀버렸네요...흑흑... throttle 적용했습니다!

<div>
<>
<Header isDisplayLogo={false}>즐겨찾기</Header>
<Spacing size={8} />
Copy link
Collaborator

Choose a reason for hiding this comment

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

피그마에선 12px로 되어있네요 채은님께 말씀드려 통일시켜보죠!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

넵 일단 12로 수정했습니다!

margin: 13px 0 24px;
}

.productArticleContainer {
Copy link
Collaborator

Choose a reason for hiding this comment

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

무한 스크롤로 인해 productArticle이 엄청 쌓이게 되면 애니메이션 효과가 버벅임 없이 동작하는지 한번 봐야할 것 같아요!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

넵!

Copy link
Collaborator

@bottlewook bottlewook left a comment

Choose a reason for hiding this comment

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

고생하셨습니다~!

@seoye0ng seoye0ng merged commit 5933994 into develop Jan 25, 2024
6 checks passed
@seoye0ng seoye0ng deleted the page-favorite branch January 25, 2024 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature 기능 개발 🎨 Html&css 마크업 & 스타일링
Projects
None yet
Development

Successfully merging this pull request may close these issues.

페이지 UI: 즐겨찾기 페이지
2 participants