Skip to content
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
Empty file added SPRINT-MISSION-1/faq.html
Empty file.
Binary file added SPRINT-MISSION-1/images/home/Img_home_01.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 SPRINT-MISSION-1/images/home/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 SPRINT-MISSION-1/images/home/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.
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 SPRINT-MISSION-1/images/home/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 SPRINT-MISSION-1/images/logo/favicon.ico
Binary file not shown.
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 SPRINT-MISSION-1/images/social/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 SPRINT-MISSION-1/images/social/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 SPRINT-MISSION-1/images/social/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 SPRINT-MISSION-1/images/social/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.
142 changes: 142 additions & 0 deletions SPRINT-MISSION-1/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
<!DOCTYPE html>
<html lang="en">
Copy link
Collaborator

Choose a reason for hiding this comment

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

<html lang="ko"> lang에 신경써주세요.
SEO, 접근성에 도움이 됩니다!

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>판다마켓</title>
<link rel="icon" href="images/logo/favicon.ico" />
<link rel="stylesheet" href="styles/global.css" />
<link rel="stylesheet" href="styles/styles.css" />
</head>

<body>
<header>
<a href="/"
><img
src="images/logo/panda-market-logo.png"
alt="판다마켓 홈"
width="153"
/></a>
<a href="login.html" class="btn btn-small btn-primary loginLinkButton"
>로그인</a
>
</header>

<main>
<section class="banner">
<div id="banner" class="wrapper">
<div>
<h1 id="banner-top" class="banner-font">
일상의 모든 물건을
<br />
거래해 보세요
</h1>
<a href="items.html" class="btn btn-large btn-primary"
>구경하러 가기</a
>
</div>
<img src="images/home/Img_home_top.png" width="60%" />
</div>
</section>

<section class="wrapper section-wrapper">
<div class="section-item">
<div class="section-img-wrapper">
<img src="images/home/Img_home_01.png" alt="인기 상품" />
</div>
<div class="section-content">
<div class="section-title">
<h2 class="section-tag">Hot item</h2>
<h1>
Copy link
Collaborator

Choose a reason for hiding this comment

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

h tag 는 계층 구조로 사용하시는 것이 접근성에 좋습니다! h1은 페이지에 하나가 되어야합니다 :)

https://developer.mozilla.org/ko/docs/Web/HTML/Element/Heading_Elements#사용_일람

인기 상품을<br />
확인해보세요
</h1>
</div>
<p class="text-2xl section-des">
가장 HOT한 중고거래 물품을<br />판다 마켓에서 확인해 보세요
</p>
</div>
</div>
<div class="section-item">
<div class="section-content">
<div class="section-title">
<h2 class="section-tag">Search</h2>
<h1>구매를 원하는<br />상품을 검색하세요</h1>
</div>
<p class="text-2xl section-des">
구매하고 싶은 물품은 검색해서<br />쉽게 찾아보세요
</p>
</div>
<div class="section-img-wrapper">
<img src="images/home/Img_home_02.png" />
</div>
</div>
<div class="section-item">
<div class="section-img-wrapper">
<img src="images/home/Img_home_03.png" alt="판매 상품 등록" />
</div>
<div class="section-content">
<div class="section-title">
<h2 class="section-tag">Register</h2>
<h1>
판매를 원하는
<br />
상품을 등록하세요
</h1>
</div>
<p class="text-2xl section-des">
어떤 물건이든 판매하고 싶은 상품을
<br />
쉽게 등록하세요
</p>
</div>
</div>
</section>

<section class="banner">
<div id="banner" class="wrapper">
<h1 class="banner-font">
믿을 수 있는
<br />
판다마켓 중고 거래
</h1>
<img src="images/home/Img_home_bottom.png" width="60%" />
</div>
</section>
</main>

<footer>
<div>@codeit - 2024</div>
<div id="footerMenu">
<a href="privacy.html">Privacy Policy</a>
<a href="faq.html">FAQ</a>
</div>
<div id="socialMedia">
<a
href="https://www.facebook.com/"
target="_blank"
rel="noopener noreferrer"
Copy link
Collaborator

Choose a reason for hiding this comment

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

opener, referrer까지 꼼꼼하게 챙겨주셨군요! 💯

><img src="images/social/ic_facebook.png" alt="페이스북" width="20"
/></a>
<a href="https://twitter.com/" target="_blank" rel="noopener noreferrer"
><img src="images/social/ic_twitter.png" alt="트위터" width="20"
/></a>
<a
href="https://www.youtube.com/"
target="_blank"
rel="noopener noreferrer"
><img src="images/social/ic_youtube.png" alt="유튜브" width="20"
/></a>
<a
href="https://www.instagram.com/"
target="_blank"
rel="noopener noreferrer"
><img
src="images/social/ic_instagram.png"
alt="인스타그램"
width="20"
/></a>
</div>
</footer>
</body>
</html>
Empty file added SPRINT-MISSION-1/items.html
Empty file.
Empty file added SPRINT-MISSION-1/login.html
Empty file.
Empty file added SPRINT-MISSION-1/privacy.html
Empty file.
21 changes: 21 additions & 0 deletions SPRINT-MISSION-1/styles/color.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
:root {
Copy link
Collaborator

Choose a reason for hiding this comment

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

변수를 정의해 주셨네요! 👍

/* Primary Colors */
--primary-100: #3692FF;
--primary-200: #1967D6;
--primary-300: #1251AA;

/* Secondary Colors */
--gray-900: #111827;
--gray-800: #1F2937;
--gray-700: #374151;
--gray-600: #4B5563;
--gray-500: #6B7280;
--gray-400: #9CA3AF;
--gray-300: #E5E7EB;
--gray-200: #F3F4F6;
--gray-100: #F9FAFB;
--gray-50: #F9FAFB;

/*Error Color */
--error-red: #F74747;
}
62 changes: 62 additions & 0 deletions SPRINT-MISSION-1/styles/components/button.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
@import url(../color.css);
Copy link
Collaborator

Choose a reason for hiding this comment

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

벌써 컴포넌트 단위로 스타일을 정의해 주셨군요!! 😮

@import url(../typography.css);

/* Button Base Style*/
.btn {
display: inline-block;
font-family: inherit;
font-weight: 600;
padding: 8px 0;
text-align: center;
}

.btn:disabled {
cursor: default;
pointer-events: none;
}

/* Size Variants */
.btn-large {
border-radius: 40px;
padding: 12px 124px;
font-size: var(--text-xl);
line-height: var(--text-xl);
}

.btn-medium {
border-radius: 40px;
padding: 11px 71px;
font-size: var(--text-2lg);
line-height: var(--text-2lg);
}

.btn-small {
border-radius: 8px;
padding: 8px 0;
font-size: var(--text-lg);
line-height: var(--text-lg);
}

/* Color Variants */
.btn-primary {
background-color: var(--primary-100);
color: var(--gray-100);
}

.btn-primary:hover {
background-color: var(--primary-200);
}

.btn-primary:active {
background-color: var(--primary-300);
}

.btn-primary:disabled {
background-color: var(--gray-400);
}

.btn-outline {
background-color: var(--gray-50);
color: var(--primary-100);
border: 10x solid var(--primary-100);
}
63 changes: 63 additions & 0 deletions SPRINT-MISSION-1/styles/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

a {
text-decoration: none;
color: inherit;
}

button {
cursor: pointer;
background: none;
border: none;
}

h1 {
font-weight: 700;
font-size: 40px;
line-height: 56px;
}

img {
vertical-align: bottom;
}

body {
width: 100%;
}

header {
width: 100%;
height: 70px;
border-bottom: 1px solid #dfdfdf;
padding: 0 200px;
display: flex;
justify-content: space-between;
align-items: center;
}

footer {
background-color: #111827;
display: flex;
justify-content: space-between;
align-items: center;
padding: 32px 200px 108px 200px;
font-weight: 400;
font-size: 16px;
line-height: 19.09px;
text-align: center;
}

#footerMenu {
display: flex;
gap: 30px;
color: #f3f4f6;
}

#socialMedia {
display: flex;
gap: 12px;
}
93 changes: 93 additions & 0 deletions SPRINT-MISSION-1/styles/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
/* tokens */
@import url(./color.css);
@import url(./typography.css);

/* components */
@import url(./components/button.css);

.loginLinkButton {
padding: 11px 43px;
}

.banner {
height: 540px;
background-color: #cfe5ff;
display: flex;
justify-content: center;
align-items: flex-end;
}

#banner-top {
margin-bottom: 32px;
}

.banner-font {
font-weight: 700;
font-size: 40px;
line-height: 56px;
color: var(--gray-700);
}

.wrapper {
width: 100%;
max-width: 1200px;
margin: 0 auto;
}

.wrapper#banner {
display: flex;
justify-content: center;
flex: 1;
}

.section-wrapper {
padding-bottom: 138px;
}

.section-item {
margin: 138px 0;
display: flex;
align-items: center;
gap: 5%;
background-color: #fcfcfc;
}

.section-img-wrapper {
height: 444px;
}

.section-img-wrapper img {
width: 100%;
height: 100%;
object-fit: cover;
}

.section-content {
flex: 1;
}

.section-tag {
font-size: var(--text-21g);
font-weight: 700;
line-height: var(--line-height-2lg);
color: var(--primary-100);
margin-bottom: 12px;
}

.section-title h1 {
letter-spacing: 2%;
}

.section-des {
font-weight: 500;
color: var(--gray-700);
margin-top: 24px;
}

.section-item:nth-child(2) {
text-align: right;
}

footer > div {
color: #9ca3af;
}
Loading
Loading