Skip to content

Conversation

@yuj2n
Copy link
Collaborator

@yuj2n yuj2n commented Mar 22, 2025

📝요구사항

배포 사이트 URL : https://yuj2n-pandamarket.netlify.app/


📕기본

  • 브라우저에 현재 보이는 화면의 영역(viewport) 너비를 기준으로 분기되는 반응형 디자인을 적용합니다.

    PC: 1200px 이상
    Tablet: 768px 이상 ~ 1199px 이하
    Mobile: 375px 이상 ~ 767px 이하
    375px 미만 사이즈의 디자인은 고려하지 않습니다
  • Tablet 사이즈로 작아질 때 “판다마켓” 로고의 왼쪽에 여백 24px, “로그인” 버튼 오른쪽 여백 24px을 유지할 수 있도록 “판다마켓” 로고와 “로그인" 버튼의 간격이 가까워집니다.
  • Mobile 사이즈로 작아질 때 “판다마켓” 로고의 왼쪽에 여백 16px, “로그인” 버튼 오른쪽 여백 16px을 유지할 수 있도록 “판다마켓” 로고와 “로그인" 버튼의 간격이 가까워집니다.

📚로그인, 회원가입 페이지 공통

  • Tablet 사이즈에서 내부 디자인은 PC사이즈와 동일합니다.
  • Mobile 사이즈에서 좌우 여백 16px 제외하고 내부 요소들이 너비를 모두 차지합니다.
    Mobile 사이즈에서 내부 요소들의 너비는 기기의 너비가 커지는 만큼 커지지만 400px을 넘지 않습니다.

📖심화

  • 페이스북, 카카오톡, 디스코드, 트위터 등 SNS에서 Linkbrary 랜딩 페이지(“/”) 공유 시 좌측 예시와 같은 미리보기를 볼 수 있도록 랜딩 페이지 메타 태그를 설정해 주세요.
    미리보기에서 제목은 “판다 마켓”, 설명은 “일상의 모든 물건을 거래해보세요”로 설정합니다.
    주소와 이미지는 자유롭게 설정하세요.

📌주요 변경사항

미션2 반영

  • login.css -> auth.css
  • 가상 요소 삭제 후 padding-top을 통해 색상 적용
  • reset.css와 겹치는 내용 auth.css에서 삭제
  • 등등 이전 피드백 사항 반영

💻스크린샷

image

🙇‍♀️멘토에게

  • 셀프 코드 리뷰를 통해 질문 이어가겠습니다.

@yuj2n yuj2n changed the title Basic 전유진 sprint3 [전유진] sprint3 Mar 22, 2025
@yuj2n yuj2n added the 매운맛🔥 뒤는 없습니다. 그냥 필터 없이 말해주세요. 책임은 제가 집니다. label Mar 22, 2025
@yuj2n yuj2n requested a review from GANGYIKIM March 22, 2025 18:17
Copy link
Collaborator Author

@yuj2n yuj2n left a comment

Choose a reason for hiding this comment

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

최대한 피그마 디자인과 비슷할 수 있게 노력하였으며 css에서 선택자와 관련하여 좋지 않은 방법으로 접근한 경우가 있다면 피드백 부탁드립니다!!🙇‍♀️

Comment on lines +160 to +185
@media (max-width: 767px) {
main {
width: 100%;
max-width: 40rem; /* 최대 너비 400px */
padding: 0 1.6rem; /* 좌우 여백 16px */
}
.logo-box {
width: 100%;
max-width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
form {
margin-top: 0;
width: 100%; /* 부모(main)의 너비를 따름 */
}
.logo {
width: 5.2rem; /* 로고 크기 줄이기 */
height: auto;
}
.pandamarket {
width: 13.3rem; /* 텍스트 로고 크기 조절 */
height: auto;
}
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

main 내부에 logo-box와 form이 있어
body와 main을 통해 간결하게 작성하고자 했는데 먹지 않아서 logo-box와 form에 따로 css를 넣어주었는데
body와 main만으로 작성할 수도 있을까요?

Copy link
Collaborator

Choose a reason for hiding this comment

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

어떤 질문이신지 제가 잘 모르겠습니다~ 먹지 않는 이유가 무엇인지, 어떤 것을 바라시는지에 따라 가능한지 아닌지가 나뉠 것 같아요.
다만 body와 main 은 태그이니 저는 클래스 선택자로 작성하시는 것이 더 명확하고 좋다고 생각합니다.

Comment on lines +44 to +45
<h3>일상의 모든 물건을 </h3>
<h3>거래해 보세요</h3>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

반응형으로 인해 pc에서는 줄넘김, 태블릿에서는 한 줄로 보이도록 하기 위해
각 h3태그로 감싸준 뒤 태블릿 환경에서 display: inline;을 활용하였는데 괜찮은 방법인지 궁금합니다!

Copy link
Collaborator

Choose a reason for hiding this comment

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

반응형 처리를 위해 태그로 구분하신 점은 좋습니다~ 다만 h3 태그로 구분하시기보다 h3 태그안에 span 태그로 구분하시는 것을 추천드러요. h 태그는 heading 태그라서 span이 더 적절할 것 같습니다

</h3>
<p class="info">
<h3 class="hot">인기 상품을 확인해 보세요</h3>
<p id="check" class="info">
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

class를 통해 디자인을 하고자 할 때 작동을 하지 않아 id태그를 주고 적용을 하였는데 이럴 때 id태그를 주는 것이 맞을까요?

Copy link
Collaborator

Choose a reason for hiding this comment

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

클래스를 통해 css 선택자를 입력했을 때 작동을 하지 않았다면 우선순위가 낮았을 수 있습니다.
아이디 선택자의 경우 클래스 선택자보다 우선순위가 높기 때문에 위의 경우 해결책이 된 것 같아요.
다만 이런경우 정확히 왜 동작하지 않는지 이유를 찾아야 아이디 선택자를 쓰는 것이 좋은지 판단할 수 있습니다~

Comment on lines -229 to -246
.reverse .text-box {
width: 100%;
height: 20rem;
}

.reverse p {
width: 100%;
height: 11.2rem;
}

.reverse .info {
width: 100%;
}

.icon-img {
height: auto;
}

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

Choose a reason for hiding this comment

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

CSS에서 중복되거나 불필요한 부분은 추후 찾으려고 하면 어렵기 때문에 이렇게 작업하실때 가지치기 해주시는 것이 중요합니다!
너무 잘하셨어요~

Copy link
Collaborator

@GANGYIKIM GANGYIKIM left a comment

Choose a reason for hiding this comment

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

유진님 3번째 미션 제출 고생하셨습니다!
반응형 작업이 처음에는 특히 쉽지 않은데 잘 하셨어요.
남겨주신 코멘트들에 피드백 남겨드리고 추가적으로 코멘트 남겼으니 도움이 되면 좋겠습니다.
다음 미션도 화이팅입니다!

Comment on lines +15 to +18
<meta property="og:title" content="판다 마켓">
<meta property="og:description" content="일상의 모든 물건을 거래해보세요">
<meta property="og:url" content="https://yuj2n-pandamarket.netlify.app/"> <!-- 실제 URL 입력 -->
<meta property="og:image" content="https://yuj2n-pandamarket.netlify.app/images/image.png"> <!-- 썸네일 이미지 URL -->
Copy link
Collaborator

Choose a reason for hiding this comment

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

💬 여담
이러한 메타태그가 제대로 되어 있는지 확인할 수 있는 방법이 여러가지 있습니다~
참고로 각 SNS 에서 제공하는 개발자 페이지에서도 확인이 가능합니다~

Comment on lines +30 to +33
<a href="/" class="logo-box">
<img class="logo" src="images/logo.png" width="45" height="45" />
<img src="images/pandamarket.png" height="51" />
</a>
Copy link
Collaborator

Choose a reason for hiding this comment

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

❗️ 수정요청
디자인 상에서 화면이 작아지면 "판다마켓"이라는 글자만 남게됩니다~ 확인해보시고 디자인처럼 수정해보세요!

Comment on lines +175 to +180
<div class="unsupported-screen">
<div class="unsupported-message">
현재 기기에서는 지원하지 않습니다.<br />
375px 이상의 화면에서 이용해 주세요.
</div>
</div>
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍 칭찬
지원하는 화면 사이즈 미만의 경우 안내해주시는 것 좋아요~

Comment on lines +265 to +266
flex-shrink: 0; /* Prevent shrinking */
min-width: 300px; /* Set a minimum width */
Copy link
Collaborator

Choose a reason for hiding this comment

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

💊 제안
주석을 다는 것은 좋은 습관입니다. 다만 주석 또한 읽어야 하는 정보라 중복되지 않는 내용을 입력해주시는 것이 가독성면에서 더 좋아요.
지금 주석은 css 속성과 중복되는 내용이라 없어도 될 것 같습니다~

</article>
<section>
<div class="section">
<div class="section top">
Copy link
Collaborator

Choose a reason for hiding this comment

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

❗️ 수정요청
화면 사이즈가 (min-width: 1200px) 일 때 section의 width 가 90%가 되면서 왼쪽에 붙게되네요.
피그마 디자인처럼 중앙에 올 수 있게 수정해주시면 좋겠어요!

스크린샷 2025-03-27 오후 3 58 28

}

/* main section */
section {
Copy link
Collaborator

Choose a reason for hiding this comment

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

❗️ 수정요청
section 의 경우 position 속성이 없으니 top 속성이 적용되지 않습니다~
불필요한 속성의 경우 지워주세요!

<div id="opposite" class="content">
<div class="reverse content-box">
<p>Search</p>
<div class="text-box">
Copy link
Collaborator

Choose a reason for hiding this comment

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

❗️ 수정요청
해당 태그의 width가 길어 가로 스크롤이 생기네요~
확인 후 가로 스크롤이 생기지 않게 수정해보세요.

스크린샷 2025-03-27 오후 3 58 42

Comment on lines +115 to +116
.easy-login {
width: 64rem;
Copy link
Collaborator

Choose a reason for hiding this comment

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

❗️ 수정요청
해당 태그의 경우 디자인대로 처리가 안 된 것 같아요!
아래처럼 width를 반응형 단위로 해 부모가 줄어들면 같이 줄어들게 해주고, max-width를 통해 제한을 해주면 디자인대로 잘 동작할 것 같아요.

Suggested change
.easy-login {
width: 64rem;
.easy-login {
max-width: 64rem;
width: 100%;

@GANGYIKIM GANGYIKIM merged commit 1160ac3 into codeit-bootcamp-frontend:Basic-전유진 Mar 27, 2025
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