-
Notifications
You must be signed in to change notification settings - Fork 39
[배수민] Sprint1 #10
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-\uBC30\uC218\uBBFC-sprint1"
[배수민] Sprint1 #10
Changes from 1 commit
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,99 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="ko"> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <title>판다마켓</title> | ||
| <link rel="stylesheet" href="style.css"> | ||
| <link rel="stylesheet" as="style" crossorigin href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css" /> | ||
| </head> | ||
| <body> | ||
| <header> | ||
| <div class="header-content"> | ||
| <a href="/"><img src="img/logo.png" alt="판다마켓 로고" class="logo"></a> | ||
| <a href="/login" class="login-btn">로그인</a> | ||
| </div> | ||
| </header> | ||
|
|
||
| <main> | ||
| <!-- 상단 배너 --> | ||
| <section class="banner"> | ||
| <div class="banner-content"> | ||
| <div class="banner-left"> | ||
|
||
| <span class="banner-title"> | ||
| 일상의 모든 물건을<br> | ||
| 거래해 보세요 | ||
| </span> | ||
| <a href="/items" class="items-btn">구경하러 가기</a> | ||
| </div> | ||
| <img src="img/Img_home_top.png" alt="판다마켓 메인배너 이미지" class="top-img"> | ||
| </div> | ||
| </section> | ||
|
|
||
| <!-- 섹션 1 --> | ||
| <section class="container"> | ||
| <div class="section-content"> | ||
| <img src="img/Img_home_01.png" class="section-img"> | ||
| <div class="section-text"> | ||
| <span class="section-point">Hot item</span> | ||
| <span class="section-title">인기 상품을<br>확인해 보세요</span> | ||
| <span class="section-subtitle">가장 HOT한 중고거래 물품을<br>판다 마켓에서 확인해 보세요</span> | ||
| </div> | ||
| </div> | ||
| </section> | ||
|
|
||
| <!-- 섹션 2 --> | ||
| <section class="container"> | ||
| <div class="section-content"> | ||
| <div class="section-text text-right"> | ||
| <span class="section-point">Search</span> | ||
| <span class="section-title">구매를 원하는<br>상품을 검색하세요</span> | ||
| <span class="section-subtitle">구매하고 싶은 물품은 검색해서<br>쉽게 찾아보세요</span> | ||
| </div> | ||
|
||
| <img src="img/Img_home_02.png" class="section-img"> | ||
| </div> | ||
| </section> | ||
|
|
||
| <!-- 섹션 3 --> | ||
| <section class="container"> | ||
| <div class="section-content"> | ||
| <img src="img/Img_home_03.png" class="section-img"> | ||
| <div class="section-text"> | ||
| <span class="section-point">Register</span> | ||
| <span class="section-title">판매를 원하는<br>상품을 등록하세요</span> | ||
| <span class="section-subtitle">어떤 물건이든 판매하고 싶은 상품을<br>쉽게 등록하세요</span> | ||
| </div> | ||
| </div> | ||
| </section> | ||
|
|
||
| <!-- 하단 배너 --> | ||
| <section class="bottom-banner"> | ||
| <div class="bottom-banner-content"> | ||
| <span class="bottom-banner-title">믿을 수 있는<br>판다마켓 중고 거래</span> | ||
| <img src="img/Img_home_bottom.png" alt="판다마켓 하단 배너" class="bottom-img"> | ||
| </div> | ||
| </section> | ||
|
|
||
| </main> | ||
|
|
||
| <!-- 푸터 --> | ||
| <footer> | ||
| <div class="footer-content"> | ||
| <span class="copyright">codeit - 2024</span> | ||
|
|
||
| <div class="link"> | ||
| <a href="/privacy">Privacy Policy</a> | ||
| <a href="/faq">FAQ</a> | ||
| </div> | ||
|
|
||
| <div class="sns"> | ||
| <a href="https://www.facebook.com" target="_blank"><img src="img/ic_facebook.png"></a> | ||
| <a href="https://x.com" target="_blank"><img src="img/ic_twitter.png"></a> | ||
| <a href="https://www.youtube.com" target="_blank"><img src="img/ic_youtube.png"></a> | ||
| <a href="https://www.instagram.com/" target="_blank"><img src="img/ic_instagram.png"></a> | ||
| </div> | ||
| </div> | ||
|
|
||
| </footer> | ||
| </body> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,200 @@ | ||
| * { | ||
| margin: 0; | ||
| padding: 0; | ||
| box-sizing: border-box; | ||
| } | ||
|
|
||
| body { | ||
| font-family: "Pretendard Variable"; | ||
| } | ||
|
|
||
| a { | ||
| cursor: pointer; | ||
| } | ||
|
|
||
| header { | ||
| padding: 9.5px 0; | ||
| } | ||
|
||
|
|
||
| header .header-content { | ||
| padding: 0 200px; | ||
| max-width: 1520px; | ||
| margin: 0 auto; | ||
| color: #ffffff; | ||
| display: flex; | ||
| justify-content: space-between; | ||
| align-items: center; | ||
| } | ||
|
|
||
| header .header-content .logo { | ||
| width: 153px; | ||
| } | ||
|
|
||
| header .header-content .login-btn { | ||
| background-color: #3692FF; | ||
|
||
| border-radius: 8px; | ||
| text-decoration: none; | ||
| color: #F3F4F6; | ||
| padding: 12px 20px; | ||
| min-width: 128px; | ||
| height: 48px; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .banner { | ||
| background-color: #CFE5FF; | ||
| } | ||
|
|
||
| .banner-left { | ||
| display: flex; | ||
| flex-direction: column; | ||
| margin-bottom: 100px; | ||
| } | ||
|
|
||
| .banner-content { | ||
| max-width: 1110px; | ||
| padding-top: 200px; | ||
| margin: 0 auto; | ||
| display: flex; | ||
| justify-content: space-between; | ||
| align-items: flex-end; | ||
| } | ||
|
|
||
| .banner-title { | ||
| font-size: 40px; | ||
| font-weight: 700; | ||
| margin-bottom: 32px; | ||
| color: #374151; | ||
| } | ||
|
|
||
| .items-btn { | ||
|
||
| background-color: #3692FF; | ||
| border-radius: 40px; | ||
| text-decoration: none; | ||
| color: #F3F4F6; | ||
| padding: 12px 20px; | ||
| max-width: 357px; | ||
| min-width: 150px; | ||
| height: 56px; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .top-img { | ||
| max-width: 746px; | ||
| width: 80%; | ||
| } | ||
|
|
||
| .container { | ||
| padding: 138px 0; | ||
| } | ||
|
|
||
| .section-content { | ||
| max-width: 988px; | ||
| margin: 0 auto; | ||
| background-color: #FCFCFC; | ||
| border-radius: 12px; | ||
| display: flex; | ||
| align-items: center; | ||
| gap: 64px; | ||
| } | ||
|
|
||
| .section-img { | ||
| max-width: 579px; | ||
| width: 60%; | ||
| } | ||
|
|
||
| .section-text { | ||
| display: flex; | ||
| flex-direction: column; | ||
| flex-grow: 1; | ||
| } | ||
|
|
||
| .section-point { | ||
| font-size: 18px; | ||
| font-weight: 700; | ||
| color: #3692FF; | ||
| } | ||
|
|
||
| .section-title { | ||
| font-size: 40px; | ||
| font-weight: 700; | ||
| color: #374151; | ||
| margin-top: 12px; | ||
| margin-bottom: 24px; | ||
| } | ||
|
|
||
| .section-subtitle { | ||
| font-size: 24px; | ||
| font-weight: 500; | ||
| color: #374151; | ||
| } | ||
|
|
||
| .text-right { | ||
| text-align: right; | ||
| } | ||
|
|
||
| /* 하단 배너 */ | ||
| .bottom-banner { | ||
| background-color: #CFE5FF; | ||
| } | ||
|
|
||
| .bottom-img { | ||
| max-width: 746px; | ||
| width: 80%; | ||
| } | ||
|
|
||
| .bottom-banner-content { | ||
| max-width: 1110px; | ||
| padding-top: 143px; | ||
| margin: 0 auto; | ||
| display: flex; | ||
| justify-content: space-between; | ||
| align-items: flex-end; | ||
| } | ||
|
|
||
| .bottom-banner-title { | ||
| font-size: 40px; | ||
| font-weight: 700; | ||
| color: #374151; | ||
| padding-bottom: 172px; | ||
| } | ||
|
|
||
| /* 푸터 */ | ||
| footer { | ||
| background-color: #111827; | ||
| padding: 32px 0 108px; | ||
| } | ||
|
|
||
| .footer-content { | ||
| max-width: 1120px; | ||
| margin: 0 auto; | ||
| display: flex; | ||
| justify-content: space-between; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .copyright { | ||
| font-size: 16px; | ||
| font-weight: 400; | ||
| color: #9CA3AF; | ||
| } | ||
|
|
||
|
|
||
| .link a { | ||
| text-decoration: none; | ||
| color: #E5E7EB; | ||
| font-size: 16px; | ||
| font-weight: 400; | ||
| } | ||
|
|
||
| .link a:not(:last-child) { | ||
| margin-right: 30px; | ||
| } | ||
|
|
||
| .sns a:not(:last-child) { | ||
| margin-right: 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.
login-btn의 경우에도 특정 기능에 종속되어있어 재사용이 어려울수있어요 :)
그리고 items-btn과 겹치는 스타일이 꽤 있는것같은데, 공통 btn 스타일을 추출해서 재사용성을 높이는 방식으로 개선해볼까요? 이건 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.
공통 버튼 스타일 추출하여 수정하였습니다!