Skip to content
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 #38

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added images/Img_home_01.png
Copy link
Collaborator

@leejyart leejyart Mar 17, 2024

Choose a reason for hiding this comment

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

사소해보이지만 이미지 파일명 규칙을 일관성있게 적용해주면 좋을것 같습니다.
예컨데, 한글명으로 되어있는 파일도 수정되면 좋을 것 같습니다.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/Img_home_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/Img_home_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/Img_home_bottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/Img_home_top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ic_facebook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ic_instagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ic_twitter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ic_youtube.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/©codeit - 2024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/판다 얼굴.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
129 changes: 129 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
<!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"
as="style"
crossorigin
href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css"
/>
<link rel="stylesheet" href="/style.css" />
</head>
<body>
<!-- title -->
<header>
<div class="logo">
<img src="/images/판다 얼굴.png" alt="" />
Copy link
Collaborator

@leejyart leejyart Mar 17, 2024

Choose a reason for hiding this comment

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

image 의 alt 속성은 웹 접근성과 SEO 에 영향을 줄 수 있습니다.
웹 표준기관 WHATWG 의 대체 텍스트 제공 가이드라인에도 아래와 같은 문구가 있습니다.

"Except where otherwise specified, the alt attribute must be specified and its value must not be empty"
달리 지정된 경우를 제외하고 alt 특성을 지정해야만 하며 해당 값은 비워 둘 수 없습니다.

alt 속성과 관련된 문서를 첨부드리니 참고해보세요 : )
https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/alt

<a class="panda-btn" href="/">판다마켓</a>
</div>
<button onclick="location.href='/login'" class="btn_small">로그인</button>
</header>
<!-- top-banner -->
<article class="banner-back">
<section class="banner">
<div class="banner-area">
<div class="banner-text">
일상의 모든 물건을<br />
거래해 보세요
</div>
<button onclick="location.href='/items'" class="btn_large">
구경하러 가기
</button>
</div>
<img class="banner-img-top" src="/images/Img_home_top.png" alt="" />
</section>
</article>
<main>
<!-- card1 -->
<section class="card">
<img src="/images/Img_home_01.png" alt="" />
<div class="card-area">
<div class="card-logo">Hot item</div>
<div class="card-main">
<div class="card-title">
인기 상품을<br />
확인해 보세요
</div>
<div class="card-text">
가장 HOT한 중고거래 물품을<br />
판다 마켓에서 확인해 보세요
</div>
</div>
</div>
</section>
<!-- card2 -->
<section class="card mid">
<div class="card-area">
<div class="card-logo mid">Search</div>
<div class="card-main">
<div class="card-title mid">
구매를 원하는<br />
상품을 검색하세요
</div>
<div class="card-text mid">
구매하고 싶은 물품은 검색해서<br />
쉽게 찾아보세요
</div>
</div>
</div>
<img src="/images/Img_home_02.png" alt="" />
</section>
<!-- card3 -->
<section class="card mg-footer">
<img src="/images/Img_home_03.png" alt="" />
<div class="card-area">
<div class="card-logo">Register</div>
<div class="card-title">
판매를 원하는<br />
상품을 등록하세요
</div>
<div class="card-text">
어떤 물건이든 판매하고 싶은 상품을<br />
쉽게 등록하세요
</div>
</div>
</section>
</main>
<!-- footer-banner -->
<article class="banner-back">
<section class="banner">
<div class="banner-area banner-text">
믿을 수 있는 <br />
판다마켓 중고거래
</div>
<img
class="banner-img-bottom"
src="/images/Img_home_bottom.png"
alt=""
/>
</section>
</article>
<!-- footer -->
<footer>
<section class="footer-area">
<img src="/images/©codeit - 2024.png" alt="" />
<div class="privacy">
<a href="/privacy">Privacy Policy</a>
<a href="/faq">FAQ</a>
</div>
<div>
<a target="_blank" href="https://www.facebook.com/"
><img src="/images/ic_facebook.png" alt=""
/></a>
<a target="_blank" href="https://www.twitter.com/"
><img src="/images/ic_twitter.png" alt=""
/></a>
<a target="_blank" href="https://www.youtube.com/"
><img src="/images/ic_youtube.png" alt=""
/></a>
<a target="_blank" href="https://www.instagram.com/"
><img src="/images/ic_instagram.png" alt=""
/></a>
</div>
</section>
</footer>
</body>
</html>
199 changes: 199 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
/* common */
* {
box-sizing: border-box;
}
html {
font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
word-break: keep-all;
}
body {
margin: 0;
}
img {
}
section {
max-width: 1200px;
width: 100%;
margin: 0 auto;
}
.btn_large {
width: 355px;
height: 56px;
top: 20px;
left: 20px;
border-radius: 40px;
color: #FFFFFF;
background-color: #3692FF;
font-size: 20px;
font-weight: 600;
line-height: 24px;
letter-spacing: 0em;
text-align: center;
border: none;
cursor: pointer;
}
.btn_small {
width: 128px;
height: 48px;
padding: 12px 20px;
gap: 10px;
color: #FFFFFF;
border-radius: 8px;
background-color: #3692FF;
font-size: 16px;
font-weight: 600;
line-height: 19px;
letter-spacing: 0em;
text-align: center;
border: none;
cursor: pointer;
}


/* header */

header {
display: flex;
justify-content: space-between;
margin: 10px 200px;
align-items: center;
height: 70px;
}
.logo {
display: flex;
align-items: center;
gap: 10px;
}
.panda-btn {
text-decoration: none;
color: #3692FF;
font-family: ROKAF Sans;
font-size: 26px;
font-weight: 700;
line-height: 35px;
letter-spacing: 0em;
text-align: left;
}


/* banner */

.banner-back {
background-color: #CFE5FF;
height: 540px;
position: relative;
overflow: hidden;
width: 100%;
}
.banner {
height: 540px;
display: flex;
align-items: center;
}
.banner-img-top {
position: absolute;
top: 93px;
left: 701px;
background-color: #CFE5FF;
}
.banner-img-bottom {
position: absolute;
left: 701px;
background-color: #CFE5FF;
}
.banner-text {
font-size: 40px;
font-weight: 700;
line-height: 56px;
letter-spacing: 0em;
text-align: left;
color: #374151;
}
.banner-area {
display: flex;
flex-direction: column;
gap: 32px;
}


/* card */

.card {
height: 720px;
display: flex;
align-items: center;
gap: 64px;
}
.card-area {
display: flex;
flex-direction: column;
gap: 24px;
}
.card-logo {
color: #3692FF;
display: inline;
font-size: 18px;
font-weight: 700;
line-height: 25px;
letter-spacing: 0em;
text-align: left;
}
.card-main {
display: flex;
flex-direction: column;
gap: 24px;
}
.card-title {
font-size: 40px;
font-weight: 700;
line-height: 56px;
letter-spacing: 0.02em;
text-align: left;
color: #374151;
}
.card-text {
font-size: 24px;
font-weight: 500;
line-height: 29px;
letter-spacing: 0.08em;
text-align: left;
color: #374151;
}
.mg-footer {
margin-bottom: 138px;
}
.mid {
justify-content: end;
text-align: end;
}


/* footer */

footer {
background-color: #111827;
width: 1,920px;
height: 160px;
top: 3448px;
padding: 32px 200px 32px 200px;
gap: 10px;
}
.footer-area {
display: flex;
justify-content: space-between;
height: 20px;
max-width: 1520px;
}
.privacy {
font-size: 16px;
font-weight: 400;
line-height: 19px;
letter-spacing: 0em;
text-align: center;
display: flex;
gap: 30px;
}
.privacy > a {
color: #E5E7EB;
text-decoration: none;
}
Loading