-
Notifications
You must be signed in to change notification settings - Fork 39
[최창환] Sprint1 #4
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
[최창환] Sprint1 #4
The head ref may contain hidden characters: "Basic-\uCD5C\uCC3D\uD658-sprint1"
Conversation
addiescode-sj
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.
수고하셨습니다!
주요 리뷰 포인트
- 일관된 기준으로 클래스이름 적용
- 시맨틱 태그 사용
- CSS 변수 추출
| <main> | ||
| <div class="link"> | ||
| <div class="link-img"> | ||
| <div class="link-img-text"> |
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 클래스 네이밍이 일관적이지 않게 쓰인 느낌이 드네요 :)
여러가지 방식이 있을 수 있겠지만, 네이밍 컨벤션중에 가장 일반적으로 사용되는 BEM도 참고해보시면 좋을것같아요!
| ><a href="/items"><img src="img/btn_large.png" alt="btn" /></a> | ||
| </div> | ||
|
|
||
| <img class="link-img-panda" src="img/Img_home_top.png" alt="" /> |
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.
귀찮더라도 img태그에는 꼭 alt를 사용해주세요! :)
웹 접근성뿐만 아니라, 이미지 로딩 실패 시 대체 텍스트를 표시하거나 검색엔진최적화에도 도움을 줄 수 있기 때문에 꼭 사용해주시는게 좋습니다.
레퍼런스로 애플 공식 웹사이트에 가서 alt텍스트를 어떻게 사용했는지 참고해보시면:
<img src="/kr/macbook-air/images/overview/design/design_hero_static__e56c1v71mr6u_large.jpg" onload="__lp(event)" alt="열려있는 MacBook Air 13 및 15의 모습. 한 대에는 디자인 작업을 진행 중인 화면이, 다른 한 대에는 이메일과 스프레드시트를 넘나들며 멀티태스킹을 하는 화면이 표시되어 있습니다">이런식으로 alt 속성에 이미지 설명을 위해 구체적이고 명확한 설명을 제공하는 모습을 확인해보실 수 있습니다 :)
| <div class="content"> | ||
| <div class="content-main"> | ||
| <div class="content-box"> |
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.
만약 BEM을 적용한다면,
content => main-content
content-main => main-content__item
content-box => main-content__body
이정도가 될 수 있겠네요! 어떤가요?
| </div> | ||
| <div class="content-main"> | ||
| <div class="content-box"> | ||
| <div class="content-text reverse"> |
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 중첩을 피하고 reverse 클래스를 추가하는 형식으로 잘 작업해주셨네요 👍
| </div> | ||
| </div> | ||
| </main> | ||
| <div class="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></footer>
| </div> | ||
| </header> | ||
| <main> | ||
| <div class="link"> |
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.
| @@ -0,0 +1,191 @@ | |||
| @import "reset.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파일을 용도에 맞게 잘 구분해서 사용하셨네요 :) 굳굳!
| height: 70; | ||
| gap: 10px; | ||
| 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.
중간에 이런 공백이 혹시 왜 필요한걸까요? 다음부터는 포맷팅도 신경써볼까요? :)
| align-items: end; | ||
| width: 100%; | ||
| height: 540px; | ||
| background-color: rgba(207, 229, 255, 1); |
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 변수로 사용하는것을 추천드려요!
:root {
--primary-color: rgba(54, 146, 255, 1);
--text-color: rgba(55, 65, 81, 1);
--background-color: rgba(255, 255, 255, 1);
--footer-bg: rgba(17, 24, 39, 1);
--footer-text: rgba(156, 163, 175, 1);
--content-bg: rgba(252, 252, 252, 1);
--link-bg: rgba(207, 229, 255, 1);
--container-width: 1120px;
--content-width: 988px;
--header-height: 70px;
--footer-height: 160px;
--spacing-xs: 9px;
--spacing-sm: 12px;
--spacing-md: 24px;
--spacing-lg: 32px;
--spacing-xl: 64px;
--font-size-sm: 16px;
--font-size-md: 18px;
--font-size-lg: 24px;
--font-size-xl: 40px;
}og image를 png에서 jpg로 변경

요구사항
기본
심화
스크린샷
멘토에게