-
Notifications
You must be signed in to change notification settings - Fork 1
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
[FiX] style: 1차 배포 기준 디자인 피드백 반영 #41
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Qodana for JS1 new problem were found
💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at [email protected]
|
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.
수고 많으셨어요! 코멘트 드렸습니다 :)
src/components/Input/EmailInput.tsx
Outdated
@@ -45,15 +45,15 @@ const EmailInput = ({ mode }: EmailInputProps) => { | |||
placeholder='이메일을 입력해주세요.' | |||
isInvalid={false} | |||
classNames={{ | |||
label: 'custom-label', | |||
label: 'custom-label top-5 !text-gray-400', |
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.
text-gray-400
앞의 느낌표는 어떤 걸 뜻하는 건가요?!important
랑 비슷한 건가요?text-gray-400
색상 적용되던가요? 전에 안 됐어서 궁금합니당NextUI
의Input
CSS 커스텀하는 거라서 배열 형태로 넣어야 해요.['custom-label', 'top-5', 'text-gray-400']
이렇게여
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.
!
는 important가 맞습니다..! 그냥 text-gray-400
을 적용했을 때 어디서 적용되는 건지는 모르겠는데 색상이 설정된 이후에 white로 덮이고 있어 important를 적용했습니다. 해당 label의 경우 다른 스타일에 영향을 주지 않을 것으로 판단해서 Important를 사용했습니다..!
그리고 저 형태로 적용했을때 css가 적용되지 않은 상태인지는 다시 한 번 확인하고 수정해두겠습니다.
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.
css 적용에는 문제없는 것 같습니다. 다만 코드 포멧 통일을 위해서 다음부터는 그렇게 적용하도록 하겠습니다..!
현재 제가 작업한 EmailInput의 경우에는 이후 다현님 pr merge이후에는 사라질 파일이라서 혹시 다현님께서 이 디자인 코드를 Input 공통 컴포넌트에 적용해주실 수 있나요?
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.
엇 네네 추가하겠습니다!
!text-gray-400
이것도 적용해야 하나요?? 적용되는지 궁금합니당
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.
오 대박 감사합니다
<div className='tablet:block hidden tablet:absolute top-[-8px] left-2/3 transform -translate-x-1/2 w-0 h-0 border-l-[15px] border-l-transparent border-r-[15px] border-r-transparent border-b-[15px] border-b-gray-800' /> | ||
<div className='flex flex-col gap-[28px] w-full h-full py-[28px] bg-gray-800 rounded-md overflow-hidden'> | ||
<div className='tablet:block hidden tablet:absolute top-[-8px] left-2/3 transform -translate-x-1/2 w-0 h-0 border-l-[15px] border-l-transparent border-r-[15px] border-r-transparent border-b-[15px] border-b-notice-base' /> | ||
<div className='flex flex-col gap-[28px] w-full h-full pt-[28px] bg-notice-base rounded-2xl overflow-hidden'> |
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 colors = {
main: '#6304FF',
system: {
error: '#FF2828',
success: '#3D6EFF',
},
black: '#111111',
white: '#FFFFFF',
gray: {
900: '#1B1B1B',
800: '#2B2B2B',
700: '#616161',
600: '#757575',
500: '#9E9E9E',
400: '#B5B5B5',
300: '#E0E0E0',
200: '#EEEEEE',
100: '#F5F5F5',
50: '#FAFAFA',
},
title: '#FFFFFF',
subtitle: '#F5F5F5',
background: {
base: '#101010',
overlay: '#232225',
},
};
background
색상에 overlay
추가돼서 이번 디자인 시스템 PR merge 하면 해당 CSS class 수정해주세요 :)
<div className='flex flex-col gap-[28px] w-full h-full pt-[28px] bg-notice-base rounded-2xl overflow-hidden'> | |
<div className='flex flex-col gap-[28px] w-full h-full pt-[28px] bg-background-overlay rounded-2xl overflow-hidden'> |
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 머지 이후에 확인하고 수정하겠습니다.
<li className='hover:text-gray-300 cursor-pointer'>전시회</li> | ||
<li className='hover:text-gray-300 cursor-pointer'>커뮤니티</li> | ||
</ul> | ||
<div className='flex justify-end item-center gap-[50px] justify-items-end'> |
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.
justify-end
관련 CSS 2번 중첩됩니당
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.
justify-end는 해당 태그 내부 요소를 정렬하기 위해 서용한 flex 관련 스타일 코드이고, justify-items-end는 상위 요소에서 사용된 grid를 통해서 해당 요소를 정렬하기 위해 사용했습니다..!
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.
아아 각기 다른 거군여 친절하게 링크 달아주셔서 감사합니다 ㅎㅎ
src/components/Navbar/index.tsx
Outdated
variant='primary' | ||
buttonSize='s' | ||
onClick={moveToArtworkList} | ||
children={<p className='placeholder'>작품 업로드</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.
엇 이렇게 작성하면 아래와 같이 되지 않나요?
<div className='button-s'>{children}</div> // OvalButton이 이렇게 구현돼 있기 때문에
<div className='button-s'>
<p className='placeholder'>작품 업로드</p> // children 속성으로 넣으면 이렇게 되지 않나여?
</div>
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.
아 이부분은 수정하겠습니다
src/components/Navbar/index.tsx
Outdated
@@ -103,7 +103,7 @@ const Navbar = () => { | |||
name='Menu' | |||
size='l' | |||
onClick={toggleMenu} | |||
className='lg:hidden text-white focus:outline-none' | |||
className='tablet:hidden text-white focus:outline-none ' |
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.
className='tablet:hidden text-white focus:outline-none ' | |
className='tablet:hidden text-white focus:outline-none' |
불필요한 띄어쓰기 있습니당
tailwind.config.ts
Outdated
notice: { | ||
base: '#232225', | ||
selected: '#1B1A1D', | ||
}, |
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.
아 notice
랑 제가 디자인 시스템에서 추가한 거랑 겹치네요. 이렇게 적용하는 게 더 편하실까여?
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.
아하! 넵 근데 selected
색상도 전역에서 쓰이나요??
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.
selected는 전역에서는 사용되지 않는 것 같군요... 이건 해당 부분에서만 사용하는 걸로 할까요?
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.
네 좋습니당
|
||
setIsOverflowing(canScroll); | ||
}; | ||
|
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.
checkOverflow(); // Embla가 처음에 초기화됐는지 확인 |
Hook 실행 시, emblaApi
상태를 즉시 확인해서 초기화 이벤트(emblaApi.on('init', checkOverflow)
)가 이미 발생했더라도 상태가 반영되도록 해야 하지 않나여?
초기 상태(isOverflowing
상태)를 놓치지 않도록 하기 위해서 필요하지 않나 해서 질문드립니다!
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.
제안해주신 checkOverflow() 실행이 필요할 것 같습니다.
init 이벤트를 등록했기 때문에 별도의 함수 실행이 필요없을 것이라고 생각하고 있었는데, 피드백 답변을 위해 해당 훅 플로우를 다시 점검하면서 의존성 배열에 있는 emblaApi가 초기화 되는 시점과 useLayoutEffect 훅이 실행되는 시점을 제가 혼동하고 있었습니다..!
이렇게 작성해도 테스트시에는 문제가 없었지만 두 시점의 순서를 결정할 수 없어 항상 제대로 동작한다는 보장이 없기 때문에 전달해주신 내용을 추가해서 초기화 이벤트에 관게없이 overflow여부를 판단할 수 있게 수정이 필요할 것 같습니다! 감사합니다.😊
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.
Approve 했습니다 :)
src/components/Input/EmailInput.tsx
Outdated
@@ -45,15 +45,15 @@ const EmailInput = ({ mode }: EmailInputProps) => { | |||
placeholder='이메일을 입력해주세요.' | |||
isInvalid={false} | |||
classNames={{ | |||
label: 'custom-label', | |||
label: 'custom-label top-5 !text-gray-400', |
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.
오 대박 감사합니다
tailwind.config.ts
Outdated
notice: { | ||
base: '#232225', | ||
selected: '#1B1A1D', | ||
}, |
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.
네 좋습니당
Qodana for JS2 new problems were found
💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at [email protected]
|
Qodana for JS26 new problems were found
☁️ View the detailed Qodana report Contact Qodana teamContact us at [email protected]
|
📝 작업 내용
artworkField
: 모바일 비율일 때 오른쪽 끝이 안 보이는 현상 해결📸 스크린샷
💬 리뷰 요구사항