-
Notifications
You must be signed in to change notification settings - Fork 26
[강화진] Sprint1 #70
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
The head ref may contain hidden characters: "Basic-\uAC15\uD654\uC9C4-sprint1"
[강화진] Sprint1 #70
Conversation
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.
첫 스프린트 미션을 수행하시느라 고생 많으셨습니다! HTML구조를 깔끔하게 잘 잡아주셨네요 👍
자세한 리뷰는 인라인 코멘트를 참고해주시고, 질문주신 내용에 대해서는 아래 이어서 남기겠습니다.
@@ -0,0 +1,92 @@ | |||
<!DOCTYPE html> | |||
<html lang="en"> |
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.
한국어 사이트인 만큼 lang="ko" 가 더 적합할 것 같습니다.
<!-- 하늘색 박스 안의 내용 --> | ||
<div class="rectangleBox"> | ||
<div> | ||
<p id="introduce">일상의 모든 물건을<br>거래해 보세요</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.
여러 곳에서 id="introduce"
가 중복으로 사용되고 있습니다. Id 는 페이지 내에서 고유해야 하므로, 중복되는 Id는 class 로 대체해주시고나 고유 id 로 수정해주세요!
</div> | ||
<div> | ||
<!-- section1 --> | ||
<div class="section"> |
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.
여기는 <section>
태그를 활용해보시면 좋겠네요!
</head> | ||
<body> | ||
<!-- navbar --> | ||
<div class="navbar"> |
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.
navbar 와 같은 header 영역을 구현할 때에는 <header>
태그를 사용하면 좋습니다.
</div> | ||
</div> | ||
<!-- footer --> | ||
<footer> |
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.
시맨틱 태그인 footer
를 사용해주신 점 좋습니다! 👍
<!-- section1 --> | ||
<div class="section"> | ||
<div class="sectionNum"> | ||
<img id="section1Img" src="/section1.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.
#sectionImg와 #section1Img 이 혼용되어 사용되고 있습니다. id는 다르게 정의되어 있는데 쓰임은 명확히 구분되지 않는 것 같아요. 하나로 통일하거나 class로 바꾸는게 좋아보입니다.
width: 1920px; | ||
height: 70px; | ||
border-bottom-width: 1px; | ||
padding-top: 9px; |
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.
이 부분은 padding: 9px 400px
로 축약해서 쓸 수 있습니다.
<div class="rectangleBox"> | ||
<div> | ||
<p id="introduce">일상의 모든 물건을<br>거래해 보세요</p> | ||
<a href="/items"><button id="searchBtn">구경하러 가기</button></a> |
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.
<a><button></button></a>
구조는 a와 button 태그가 불필요한 중첩되는 것 같아요. a 태그만 사용하는게 더 좋아보입니다.
(예)
<a href="/items" class="btn">구경하러 가기</a>
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.
- 현재 html, css, 이미지 파일이 모두 루트에 위치해있어 관리가 어려워질 것 같습니다.
아래 예시 구조와 같이 목적별로 폴더를 분리해서 관리하는걸 추천드립니다.
├── index.html
├── styles/
│ └── home.css
├── assets/
│ ├── images/
│ └── icons/
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.
- mission1.html, mission1.css 와 같은 파일명은 이름만 보고 무슨 페이지인지 유추가 어렵습니다.
index.html
,landing.html
,home.html
등 의미 있는 역할명으로 변경해주세요.
mission1.css도 마찬가지입니다. 프로젝트 전체를 구성하는 스타일이라면 style.css
, 특정 페이지라면 home.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.
이미지 파일명도 직관적으로 역할을 알 수 있도록 지어주시는게 좋습니다. section1, section2 처럼 랜덤한 숫자가 붙으면 역할을 파악하기 어려우니 보다 직관적인 이름으로 변경해주시면 좋을 것 같습니다.
또한, 현재 .navbar나 .section 같은 클래스에 width: 1920px처럼 고정된 값을 쓰고 있는데, 이건 화면이 작아질 때 콘텐츠가 잘리는 원인이 됩니다. 아래처럼 수정하면 좋을 것 같습니다.
추가 팁을 드리자면, 단위는 px보다 rem, %, vw 등 유동적인 단위를 조금씩 써보면 좋습니다. |
결론적으로, 스타일 적용은 class 중심으로 잡아주시고, Id 는 특별한 경우에만 사용해주시는게 좋습니다. |
요구사항
기본
심화
주요 변경사항
스크린샷
주강사님에게