-
Notifications
You must be signed in to change notification settings - Fork 2
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
[FE] feat: 캐러셀 구현한 후, 홈 페이지에 적용 #421
Conversation
…eview-me into fe/refactor/354-new-landing-page
Co-authored-by: badahertz52 <[email protected]>
…eview-me into fe/refactor/354-new-landing-page
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.
캐러셀 까다로웠을텐데 만드느라 고생 많았어요~~~~
@@ -3,4 +3,5 @@ import styled from '@emotion/styled'; | |||
export const HomePage = styled.div` | |||
display: flex; | |||
width: 100vw; | |||
height: calc(100vh - 7rem); // NOTE: 7rem은 Topbar 높이 |
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.
이렇게 계산식에 들어가는 변수는 따로 변수로 빼는 것도 좋을 것 같아요!
frontend/src/styles/theme.ts
Outdated
@@ -39,6 +39,7 @@ export const colors: ThemeProperty<CSSProperties['color']> = { | |||
primary: '#7361DF', | |||
primaryHover: '#9082E6', | |||
lightPurple: '#E6E3F6', | |||
palePurple: '#F5F4FF', |
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.
쑤쑤 🚀🚀🚀🚀 고생했어
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.
사용성이 높은 공통 컴포넌트가 될 것 같아요! 고생했어요! 🔥
🚀 어떤 기능을 구현했나요 ?
🔥 어떻게 해결했나요 ?
Carousel
컴포넌트의pageWidth, pageHeight, gap, offset
속성값을rem
단위로 전달하고 있습니다.곱하기 10을 한 이유
handleScroll
에서 페이지 계산할 때,pageWidth
와gap
이rem
단위니까px
단위로 변환하기 위해* 10
을 했습니다.scrollLeft
는 기본적으로px
단위로 계산을 해줘서,* 10
을 안하면 이상한 값이 뜨더라구요.📝 어떤 부분에 집중해서 리뷰해야 할까요?
캐러셀 이미지가 한 화면에 하나만 보이게 할지, 아니면 위 사진처럼 일단 나열하는게 좋을지 여러분들은 어떻게 생각하시나요?
일단 카드 크기가 그리 크지 않아서 전자의 방식을 택하면 빈공간이 많아질 것 같아서 사진처럼 일단 나열해서 슬라이드형식으로 넘어가게 구현하긴 했어요.
To. 올리
캐러셀을 도입하면서
OverviewItem
이 필요 없어질 것 같은데 삭제해도 괜찮을까요? 올리?ArrowIcon
이미지도 같이 삭제할 것 같아요.📚 참고 자료, 할 말