-
Notifications
You must be signed in to change notification settings - Fork 39
[박다인] Sprint1 #5
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-\uBC15\uB2E4\uC778-sprint1"
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,126 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="ko"> | ||
| <head> | ||
| <meta charset="utf-8"> | ||
| <title>판다마켓</title> | ||
| <link rel="stylesheet" href="style.css"> | ||
| </head> | ||
| <body> | ||
| <header> | ||
| <div class="header-contents"> | ||
| <div class="logo"> | ||
| <img src="images/panda_logo.png"> | ||
| <a href="/">판다마켓</a> | ||
| </div> | ||
| <a class="login" href="/login">로그인</a> | ||
| </div> | ||
| </header> | ||
| <main> | ||
| <div class="blue"> | ||
| <div class="panda"> | ||
| <div class="description"> | ||
| <h1> | ||
| 일상의 모든 물건을<br> | ||
| 거래해 보세요 | ||
| </h1> | ||
| <a class="looking" href="/items">구경하러 가기</a> | ||
| </div> | ||
| <img src="images/home_top.png"> | ||
| </div> | ||
| </div> | ||
|
|
||
| <section> | ||
| <div class="contents"> | ||
|
||
| <img src="images/home_01.png"> | ||
| <div class="content"> | ||
| <p class="title">Hot item</p> | ||
| <div class="description"> | ||
| <h1> | ||
| 인기 상품을<br> | ||
| 확인해 보세요 | ||
| </h1> | ||
| <p> | ||
| 가장 HOT한 중고거래 물품을<br> | ||
| 판다 마켓에서 확인해 보세요 | ||
| </p> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </section> | ||
|
|
||
| <section> | ||
| <div class="contents"> | ||
| <div class="content left"> | ||
| <p class="title">Search</p> | ||
| <div class="description"> | ||
| <h1> | ||
| 구매를 원하는<br> | ||
| 상품을 검색하세요 | ||
| </h1> | ||
| <p> | ||
| 구매하고 싶은 물품은 검색해서<br> | ||
| 쉽게 찾아보세요 | ||
| </p> | ||
| </div> | ||
| </div> | ||
| <img src="images/home_02.png"> | ||
|
||
| </div> | ||
| </section> | ||
|
|
||
| <section> | ||
| <div class="contents"> | ||
| <img src="images/home_03.png"> | ||
| <div class="content"> | ||
| <p class="title">Register</p> | ||
| <div class="description"> | ||
| <h1> | ||
| 판매를 원하는<br> | ||
| 상품을 등록하세요 | ||
| </h1> | ||
| <p> | ||
| 어떤 물건이든 판매하고 싶은 상품을<br> | ||
| 쉽게 등록하세요 | ||
| </p> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </section> | ||
|
|
||
| <div class="blue"> | ||
| <div class="panda bottom"> | ||
| <div class="description"> | ||
| <h1> | ||
| 믿을 수 있는<br> | ||
| 판다마켓 중고거래 | ||
| </h1> | ||
| </div> | ||
| <img src="images/home_bottom.png"> | ||
| </div> | ||
| </div> | ||
|
|
||
| </main> | ||
| <footer> | ||
| <div class="footer-info"> | ||
| <p>@codeit-2024</p> | ||
| <div class="footer-page"> | ||
| <a href="/privacy">Privacy</a> | ||
| <a href="/faq">FAQ</a> | ||
| </div> | ||
| <div class="social"> | ||
| <a href="https://facebook.com" target="_blank"> | ||
| <img src="images/facebook.png" alt="facebook" width="20"> | ||
| </a> | ||
| <a href="https://twitter.com" target="_blank"> | ||
| <img src="images/twitter.png" alt="twitter" width="20"> | ||
| </a> | ||
| <a href="https://youtube.com" target="_blank"> | ||
| <img src="images/youtube.png" alt="youtube" width="20"> | ||
| </a> | ||
| <a href="https://instagram.com" target="_blank"> | ||
| <img src="images/instagram.png" alt="instargram" width="20"> | ||
| </a> | ||
| </div> | ||
| </div> | ||
| </footer> | ||
| </body> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,212 @@ | ||
| * { | ||
| box-sizing: border-box; | ||
| } | ||
|
|
||
| html { | ||
| font-family: Pretendard, sans-serif; | ||
| } | ||
|
|
||
| body { | ||
| margin: 0; | ||
| padding: 0; | ||
|
|
||
| } | ||
|
Comment on lines
+1
to
+13
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 요런 코드는 css reset/ normalize 용도의 파일로 따로 분리해서 import해서 사용하는건 어떨까요?
이렇게 용도에 따라 css 파일을 나눠 사용해보는 경험을 늘려봅시다! :) |
||
|
|
||
| header { | ||
| background-color: #ffffff; | ||
| border: 1px solid #DFDFDF; | ||
| width: 100%; | ||
| min-width: 1920px; | ||
|
||
| height: 70px; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .header-contents { | ||
| width: 100%; | ||
| max-width: 1120px; | ||
| display: flex; | ||
| justify-content: space-between; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .logo { | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| gap: 10px; | ||
| } | ||
|
|
||
| .logo a { | ||
| color: #3692FF; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 자주 사용되는 값을 css 변수로 관리해볼까요? 코드 중복을 줄이면서 재사용성을 높일수있습니다 :) :root {
--primary-color: #3692FF;
--background-light: #CFE5FF;
--text-dark: #374151;
--white: #ffffff;
--max-width: 1120px;
} |
||
| font-family: 'ROKAF Sans'; | ||
| font-size: 25.63px; | ||
| font-weight: 700; | ||
| line-height: 100%; | ||
| text-decoration: none; | ||
| cursor: pointer; | ||
| } | ||
|
|
||
| .login { | ||
| background-color: #3692FF; | ||
| color: #ffffff; | ||
| width: 128px; | ||
| height: 48px; | ||
| padding: 12px 23px; | ||
| gap: 10px; | ||
| border-radius: 8px; | ||
| font-size: 16px; | ||
| font-weight: 600; | ||
| line-height: 26px; | ||
| display: flex; | ||
| justify-content: center; | ||
| text-decoration: none; | ||
| cursor: pointer; | ||
| } | ||
|
|
||
| main section { | ||
| background-color: #ffffff; | ||
| width: 100%; | ||
| min-width: 1920px; | ||
| height: auto; | ||
| padding: 80px 10%; | ||
| gap: 10px; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .blue { | ||
| background-color: #CFE5FF; | ||
| width: 100%; | ||
| min-width: 1920px; | ||
|
||
| height: 540px; | ||
| top: 70px; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: flex-end; | ||
| } | ||
|
|
||
| .panda { | ||
| display: flex; | ||
| justify-content: center; | ||
| gap: 7px; | ||
| } | ||
|
|
||
| .panda.bottom { | ||
| align-items: center; | ||
| gap: 69px; | ||
| } | ||
|
|
||
|
|
||
| .panda.description { | ||
| padding-bottom: 60px; | ||
| gap: 32px; | ||
| } | ||
|
||
|
|
||
| .looking { | ||
| background-color: #3692FF; | ||
| color: #F9FAFB; | ||
| height: 56px; | ||
| border-radius: 40px; | ||
| padding: 14px 124px; | ||
| gap: 10px; | ||
| font-size: 20px; | ||
| font-weight: 600; | ||
| line-height: 32px; | ||
| text-align: center; | ||
| text-decoration: none; | ||
| cursor: pointer; | ||
| } | ||
|
|
||
|
|
||
| section .contents { | ||
| background-color: #FCFCFC; | ||
| position: relative; | ||
| width: 988px; | ||
| height: auto; | ||
| max-height: 444px; | ||
| border-radius: 12px; | ||
| gap: 64px; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .contents > img { | ||
| height: 100%; | ||
| } | ||
|
|
||
| .contents .content { | ||
| position: relative; | ||
| padding-right: 24px; | ||
| gap: 12px; | ||
| } | ||
|
|
||
| .content .title { | ||
| color: #3692FF; | ||
| font-size: 18px; | ||
| font-weight: 700; | ||
| line-height: 26px; | ||
| } | ||
|
|
||
| .content .description { | ||
| color: #374151; | ||
| gap: 24px; | ||
| } | ||
|
|
||
| .content.left { | ||
| text-align: right; | ||
| padding-left: 24px; | ||
| padding-right: 0; | ||
| } | ||
|
|
||
| .description h1 { | ||
| font-size: 40px; | ||
| font-weight: 700; | ||
| line-height: 140%; | ||
| } | ||
|
|
||
| .description p { | ||
| font-size: 24px; | ||
| font-weight: 500; | ||
| line-height: 32px; | ||
| } | ||
|
|
||
| footer { | ||
| background-color: #111827; | ||
| width: 100%; | ||
| min-width: 1920px; | ||
| height: 160px; | ||
| padding: 32px 400px; | ||
| gap: 10px; | ||
| display: flex; | ||
| justify-content: center; | ||
| } | ||
|
|
||
| .footer-info { | ||
| color: #ffffff; | ||
| width: 100%; | ||
| max-width: 1120px; | ||
| display: flex; | ||
| justify-content: space-between; | ||
| font-size: 16px; | ||
| font-weight: 400; | ||
| line-height: 100%; | ||
| } | ||
|
|
||
| .footer-page { | ||
| display: flex; | ||
| gap: 30px; | ||
| } | ||
|
|
||
| .footer-info a { | ||
| color: #ffffff; | ||
| text-decoration: none; | ||
| } | ||
|
|
||
| .social { | ||
| display: flex; | ||
| gap: 12px; | ||
| } | ||
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.
left, blue와 같이 위치나 색상등의 정보를 포함한 css 네이밍은 다소 적절하지않아요.
이유는 디자인이 변경된다면 실제 스타일과 클래스명이 불일치할 수 있고, 이는 곧 재사용성의 저해로 이어지기때문입니다.
따라서, 다음부터는 해당 엘리먼트의 목적과 역할을 보다 직관적으로 이해할 수 있게끔 염두에 두고 작업해보시는걸 추천드립니다 :)