-
Notifications
You must be signed in to change notification settings - Fork 39
[맹은빈]Sprint3 #110
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
[맹은빈]Sprint3 #110
The head ref may contain hidden characters: "Basic-\uB9F9\uC740\uBE48-sprint3"
Conversation
|
반응형을 적용하려다 보니 css코드가 너무 길어지는 문제가 있었습니다. 이런때에는 한페이지라도 섹션별로 나누어 css를 관리하는것이 더 맞는방법인지궁금합니다. |
GANGYIKIM
left a comment
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번째 PR 제출 고생하셨습니다!
반응형 작업을 하시다보니 css 코드가 너무 길어지는 문제가 있다고 말씀해주셨는데
이와 관련해서 코멘트를 남겼으니 확인해보시면 좋겠습니다.
간단하게 말하자면 미디어 쿼리문 외부의 스타일들이 유지되는데 이러한 것들도 미디어 쿼리문 내부에서 중복 선언되고 있기 때문이니, 확인해보시고 중복을 줄이신다면
css 양이 굉장히 줄어들겁니다~
그런 다음에도 분리에 대해 고민해보시면 좋겠습니다.
또한 중복을 줄이시고 싶다면 로그인과 회원가입 페이지의 디자인이 유사하니 두 페이지에서 하나의 css 파일을 만드셔서 공용으로 쓰시는 것을 추천드립니다.
4번째 PR 제출도 화이팅입니다!
| <meta property="og:type" content="website" /> | ||
| <meta property="og:title" content="판다마켓" /> | ||
| <meta property="og:description" content="일상의 모든 물건을 거래해보세요" /> | ||
| <meta property="og:image" content="images\metaImage.png" /> |
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.
❗️ 수정요청
이러한 og 설정이 제대로 되어 있는지 확인할 수 있는 방법이 여러가지 있습니다~
확인해보시고 meta 태그를 수정해보세요~
| background-color: var(--button-color); | ||
| color: #ffffff; | ||
| border: 1px solid var(--button-color); | ||
| border: 0.1rem solid var(--button-color); |
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.
💊 제안
rem은 루트의 폰트 사이즈가 변경될때 변경되야하는 수치들에 사용하시는 것이 좋아요~
지금 border-width 같은 경우 반응형으로 변경되는 값이 아니니, 이런경우 px를 사용하시는 것이 더 직관적이고 좋습니다.
또한 반응형 단위를 사용하실때 하나의 단위를 골라 그 단위만 사용할 필요는 없습니다!
| .header { | ||
| width: 100%; | ||
| height: 7rem; | ||
| position: fixed; | ||
| background-color: #ffffff; | ||
| top: 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.
❗️ 수정요청
해당 부분은 PC 의 .header 클래스와 완전히 동일합니다~
1~266까지의 스타일들은 미디어 쿼리문 안에 작성된 것이 아니라서 모든 화면 사이즈에 적용됩니다.
따라서 지금의 스타일 블록은 불필요하게 중복된 것이므로 삭제하시는 것을 추천드려요!
| .header { | |
| width: 100%; | |
| height: 7rem; | |
| position: fixed; | |
| background-color: #ffffff; | |
| top: 0; | |
| } |
반응형 작업을 하실때 신경쓰면 좋은 포인트는 PC를 작성하고 타블렛, 모바일을 작성할때 이러한 속성들이 잘 상속되서 중복되지 않게 적는 것입니다~
| } | ||
|
|
||
| /* 모바일 */ | ||
| @media (min-width: 375px) and (max-width: 767px) { |
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.
💊 제안
min-width가 조건에 걸려있어 375px 미만으로 화면이 작아지게 되면 PC 스타일이 적용되네요~
body에 min-width: 375px를 추가하셔서 해당 사이즈 미만으로 작아지게 되면 가로 스크롤이 생기게 해주시거나
아니라면 min-width를 조건문에서 빼주시는 것을 추천드려요~
| height: 444px; | ||
| gap: 6.4rem; | ||
| width: 98.8rem; | ||
| height: 44.4rem; |
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.
💊 제안
해당 요소의 height 속성은 없는 것이 더 좋을 것 같습니다.
요소들은 height 속성을 정해주지 않으면 자연스럽게 내부 컨텐츠 높이를 높이로 가지게 됩니다.
heigth 속성을 정해주게되면 반응형 작업시 내부 요소가 자연스럽게 줄어들고 늘어나는것에 대응하기가 어렵습니다~
따라서 꼭 필요한 경우가 아니라면 빼주시는 것을 추천드립니다~
| border-radius: 1.2rem; | ||
| padding: 1.6rem 2.4rem; | ||
| font-weight: 400; | ||
| border: 0.1rem solid var(--cool-gray-100); |
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 변수라서 border와 background color가 나오지 않네요!
확인해보시고 디자인대로 나올 수 있게 수정해보세요~
요구사항
Github에 PR(Pull Request)을 만들어서 미션을 제출합니다.
피그마 디자인에 맞게 페이지를 만들어 주세요.
React와 같은 UI 라이브러리를 사용하지 않고 진행합니다.
https://roaring-malasada-3ba365.netlify.app/
기본
심화
스크린샷
멘토에게