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

[SP3] 메인 하단 레이아웃 #324

Merged
merged 11 commits into from
Dec 21, 2023
Merged

[SP3] 메인 하단 레이아웃 #324

merged 11 commits into from
Dec 21, 2023

Conversation

solar3070
Copy link
Member

Copy link
Contributor

@f0rever0 f0rever0 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다! 다른 작업물도 합쳐서 얼른 완성하고 싶네요~☺️

Comment on lines +7 to +10
function ActivitySection(_props: unknown, ref: React.Ref<HTMLDivElement>) {
return (
<S.Wrapper id="activity" ref={ref}>
<Activity />
Copy link
Contributor

Choose a reason for hiding this comment

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

Activity 컴포넌트에 활동 내역이 담겨있어서 Activity라고 명을 지었는데, 메뉴에서 활동/파트/자체기구를 합친 명이 Activity 군요..!
메뉴명과 동일하게 ActivitySection은 유지하는게 맞는 것 같고 Activity 컴포넌트 명을 변경하면 좋을 것 같은데, 어떻게 생각하시나요?!

Copy link
Member Author

Choose a reason for hiding this comment

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

저도 찬성해요!!!

const { scrollYProgress } = useScroll({ target: targetRef, offset: ['start center', 'start'] });

const viewList = [false, activity.isInView, review.isInView, news.isInView];
const minIndex = viewList.findIndex((value) => value === true);
Copy link
Contributor

Choose a reason for hiding this comment

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

minIndex 의 의미는 무엇인가요?

Copy link
Member Author

Choose a reason for hiding this comment

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

intersectionObserver를 사용해서 현재 위치한 섹션의 메뉴명에만 색이 들어오게 하고 있는데 viewport에 두 가지 섹션이 한번에 들어왔을 경우 앞에 있는 섹션에만 색이 들어오도록 하기 위해서 작성한 코드입니다!
image


function ActivitySection(_props: unknown, ref: React.Ref<HTMLDivElement>) {
return (
<S.Wrapper id="activity" ref={ref}>
Copy link
Contributor

Choose a reason for hiding this comment

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

image 피그마 해당 섹션 위에 여백이 있는데 현재 작업에는 없더라구요..! 작업물 합치고, 헤더 작업을 할때 수정해야할 부분인 것 같습니다! 스크린샷 2023-12-20 오후 2 03 40

* feat : 액티비티 컨텐츠 내용 변경

* feat : useInfiniteCarousel 적용

* chore : 불필요한 style 삭제

* chore : 불필요한 type 제거

* chore : 불필요한 style 삭제
@solar3070 solar3070 merged commit 20dc603 into develop Dec 21, 2023
1 check passed
@solar3070 solar3070 deleted the feat/#318-main-layout branch December 21, 2023 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

메인페이지 하단 레이아웃
2 participants