Skip to content

Conversation

@Alex-Choi0
Copy link
Collaborator

요구사항

기본

  • 랜딩 페이지의 url path는 루트('/')로 설정합니다.
  • title은 "판다마켓"로 설정합니다.
  • 화면의 너비가 1920px 이상이면 하늘색 배경색은 너비를 꽉 채우도록 채워지고, 내부 요소들의 위치는 고정되고, 여백만 커지도록 합니다.
  • 화면의 너비가 1920px 보다 작아질 때, "판다마켓" 로고의 왼쪽 여백 200px"로그인" 버튼의 오른쪽 여백 200px이 유지되고, 화면의 너비가 작아질수록 두 요소간 거리가 가까워지도록 설정합니다.
  • 클릭으로 기능이 동작해야 하는 경우, 사용자가 클릭할 수 있는 요소임을 알 수 있도록 CSS 속성 cursor: pointer 로 설정합니다.
  • "판다마켓" 클릭 시 루트 페이지('/')로 이동합니다.
  • '로그인'버튼 클릭 시 로그인 페이지('/login')로 이동합니다 (빈 페이지)
  • "구경하러가기"버튼 클릭 시('/items')로 이동합니다.(빈 페이지)
  • "Privacy Policy", "FAQ"는 클릭 시 각각 Privacy 페이지('/privacy'), FAQ 페이지('/faq')로 이동합니다.(모두 빈 페이지)
  • 페이스북, 트위터, 유튜브, 인스타그램 아이콘을 클릭 시 각각의 홈페이지로 새로운 창이 열리면서 이동합니다.

심화

  • 사용자의 브라우저가 크고 작아짐에 따라 페이지의 요소간 간격, 요소의 크기, font-size 등 모든 크기와 관련된 값이 크고 작아지도록 설정해 보세요.(설정값은 자유입니다)

스크린샷

image

image

image

배포한 사이트 링크

링크

멘토에게

  • 처음 사이트를 netlify로 배포했는데 제대로 했는지 궁금합니다.
  • 코드가 구조화가 잘 되어있는지 궁금합니다. 잘 짤수있는 구조가 있으면 조언 부탁드립니다.
  • 다음 스프린트 과제때 수정할 사항 요청드립니다.

@addiescode-sj

@Alex-Choi0 Alex-Choi0 requested a review from addiescode-sj April 5, 2025 11:44
@Alex-Choi0 Alex-Choi0 added the 매운맛🔥 뒤는 없습니다. 그냥 필터 없이 말해주세요. 책임은 제가 집니다. label Apr 7, 2025
Copy link
Collaborator

@addiescode-sj addiescode-sj left a comment

Choose a reason for hiding this comment

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

수고하셨습니다!
전체적으로 클래스이름 만들때 개선할 여지가 많이 보이는것같아요.
다음 미션부터는 드린 피드백 반영해보시면서 좀 더 다듬어봅시다 :)

주요 리뷰 포인트

  • 클래스이름 수정
  • 네이밍케이스, 네이밍컨벤션
  • 스타일 중복, 코드 중복 줄이기

index.html Outdated
@@ -0,0 +1,149 @@
<!DOCTYPE html>
<html lang="kr">
Copy link
Collaborator

Choose a reason for hiding this comment

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

요거 조금 헷갈리죠 ㅎㅎ kr이 아니라 ko로 변경해주셔야 올바른 문법입니다!

Suggested change
<html lang="kr">
<html lang="ko">

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

이거 기억하도록 하겠습니다. 감사합니다.

index.html Outdated
Comment on lines 14 to 19
<a href="index.html"
><img
class="logo-img"
src="./logo.png"
alt="판다마켓 로고"
/></a>
Copy link
Collaborator

Choose a reason for hiding this comment

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

접근성 향상을 위해 aria-label="홈으로 이동" 과 같이 관련있는 요소에 aria-label 혹은 role을 사용해볼까요?
아래 아티클 참고해보시고 접근성을 향상시키기 위해 어떤 노력을 할수있는지 더 찾아보시면 좋은 공부 될 것같아요 :)

https://joyhong-91.tistory.com/22
https://velog.io/@a_in/WAI-ARIA-role-aria-label

index.html Outdated
</header>

<main>
<section class="section1">
Copy link
Collaborator

Choose a reason for hiding this comment

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

아까 얘기한것과 동일한 이유로, section의 순서가 바뀌면 네이밍도 다 변경해야겠죠? 요것도 변경해주세요 :)

index.html Outdated
<main>
<section class="section1">
<div class="section1-div">
<div class="part1">
Copy link
Collaborator

Choose a reason for hiding this comment

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

여기도!
개선해야하는 이유와 배경을 이해하셨다면 다른 부분은 코멘트 안드려도 아시겠죠? :)

index.html Outdated
<a href="./faq.html" class="FAQ">FAQ</a>
</div>
<div class="social-icon button">
<a href="https://www.facebook.com/?locale=ko_KR" target="_blank"><img src="./icon_facebook.png" alt="facebook link" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

외부 링크의 경우, 보안을 위해 rel="noopener noreferrer"를 추가해주세요! :)

noopener: 새 탭에서 열린 페이지가 원본 페이지에 접근하는 것을 방지
noreferrer: 리퍼러 정보가 새 페이지로 전달되는 것을 방지

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

앞으로 외부 링크인 경우에는 rel="noopener noreferrer"를 추가하도록 하겠습니다.

style.css Outdated
Comment on lines 1 to 5
* {
margin: 0 0;
padding: 0 0;
box-sizing: border-box;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

용도를 나눠 css 파일을 관리해볼까요?

  • reset.css (css 초기화)
  • common.css (전역 스타일 처리)

style.css Outdated
Comment on lines 7 to 17
a.button {
text-decoration: none;
color: #ffffff;
background-color: #3692ff;
padding: 10px 20px;
border-radius: 10px;
}

.button {
cursor: pointer;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

여러 곳에서 사용되는 공통된 스타일 규칙들을 추출해서 가장 기본이 되는 버튼 클래스를 만들고, modifier를 사용해 변형된 스타일을 추가하시는게 좀 더 확장성있게 개발하실수 있으면서도, 유지보수에 유리하고 코드 중복도 줄일 수 있을거예요.

아래 방식으로 리팩토링 해보시는걸 추천드려봅니다!

.btn {
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  border: none;
  background-color: #3692ff;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

.btn--rounded {
  border-radius: 50px;
}

.btn--small {
  padding: 8px 16px;
  font-size: 14px;
}

.btn--large {
  padding: 12px 24px;
  font-size: 18px;
}

.btn:hover {
  background-color: #2b74cc; /* Darker shade for hover */
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus {
  outline: 2px solid #3692ff;
  outline-offset: 2px;
}

.btn--primary {
  background-color: #3692ff;
  color: #ffffff;
}

.btn--secondary {
  background-color: transparent;
  color: #3692ff;
  border: 2px solid #3692ff;
}

.btn--secondary:hover {
  background-color: #3692ff;
  color: #ffffff;
}

}

.section1 {
background-color: #cfe5ff;
Copy link
Collaborator

Choose a reason for hiding this comment

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

자주 쓰이는 값들은 css 변수로 관리해서 재사용해볼까요?
이렇게 해주면 마찬가지로 코드 중복을 줄이면서도 유지보수에 유리한 방향으로 코드를 개선할 수 있어요 :)

예시)

/* Variables */
:root {
    --primary-color: #3692ff;
    --text-primary: #374151;
    --text-secondary: #9ca3af;
    --text-light: #e5e7eb;
    --background-primary: #fcfcfc;
    --background-secondary: #cfe5ff;
    --background-dark: #111827;
    --border-radius-sm: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 40px;
    --container-width: 1120px;
    --content-width: 988px;
}

style.css Outdated
.section1-img {
height: 250px;
width: auto;

Copy link
Collaborator

Choose a reason for hiding this comment

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

다음 미션부터는 포맷팅도 신경써봐요 :)
불필요한 공백은 없애볼까요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

네 알겠습니다. 포멧팅도 신경쓰도록 하겠습니다.

@addiescode-sj
Copy link
Collaborator

질문에 대한 답변

멘토에게

  • 처음 사이트를 netlify로 배포했는데 제대로 했는지 궁금합니다.
  • 코드가 구조화가 잘 되어있는지 궁금합니다. 잘 짤수있는 구조가 있으면 조언 부탁드립니다.
  • 다음 스프린트 과제때 수정할 사항 요청드립니다.

@addiescode-sj

네! 질문하신 사항 모두 PR 본문 내에 코멘트로 답변해드렸습니다 :)
피드백 적용해보시고 구조화나 코드 중복 제거 조금 신경쓰시면 멋진 결과물 나올수있을것같아요!

Copy link
Collaborator Author

@Alex-Choi0 Alex-Choi0 left a comment

Choose a reason for hiding this comment

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

간단한것 먼저 반영했습니다.

@addiescode-sj addiescode-sj merged commit 4f18446 into codeit-bootcamp-frontend:Basic-최재호 Apr 10, 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