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
Binary file added images/.DS_Store
Binary file not shown.
Binary file added images/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/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 images/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/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/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/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/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/panda_logo.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/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/youtube.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
128 changes: 128 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8">
<title>판다마켓</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<container>
<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="branding">
<div class="branding-contents">
<div class="description">
<h1>
일상의 모든 물건을<br>
거래해 보세요
</h1>
<a class="looking" href="/items">구경하러 가기</a>
</div>
<img src="images/home_top.png" alt="인사하고 있는 판다">
</div>
</div>

<section>
<div class="feature-contents">
<img src="images/home_01.png" alt="판다가 옷을 보고 있는 이미지">
<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="feature-contents">
<div class="content reverse">
<p class="title">Search</p>
<div class="description">
<h1>
구매를 원하는<br>
상품을 검색하세요
</h1>
<p>
구매하고 싶은 물품은 검색해서<br>
쉽게 찾아보세요
</p>
</div>
</div>
<img src="images/home_02.png" alt="돋보기 이미지">
</div>
</section>

<section>
<div class="feature-contents">
<img src="images/home_03.png" alt="상품들과 폴더">
<div class="content">
<p class="title">Register</p>
<div class="description">
<h1>
판매를 원하는<br>
상품을 등록하세요
</h1>
<p>
어떤 물건이든 판매하고 싶은 상품을<br>
쉽게 등록하세요
</p>
</div>
</div>
</div>
</section>

<div class="branding">
<div class="branding-contents bottom">
<div class="description">
<h1>
믿을 수 있는<br>
판다마켓 중고거래
</h1>
</div>
<img src="images/home_bottom.png" alt="헤어지고 있는 판다">
</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>
</container>
</body>
</html>
216 changes: 216 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
* {
box-sizing: border-box;
}

html {
font-family: Pretendard, sans-serif;
}

body {
margin: 0;
padding: 0;

}
Comment on lines +1 to +13
Copy link
Collaborator

Choose a reason for hiding this comment

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

요런 코드는 css reset/ normalize 용도의 파일로 따로 분리해서 import해서 사용하는건 어떨까요?

  • reset.css: 스타일 초기화
  • common.css: 전역 스타일 처리

이렇게 용도에 따라 css 파일을 나눠 사용해보는 경험을 늘려봅시다! :)


container {
width: 100%;
min-width: 1920px;
display: flex;
flex-direction: column;
justify-content: center;
}

header {
background-color: #ffffff;
border: 1px solid #DFDFDF;
width: 100%;
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;
Copy link
Collaborator

Choose a reason for hiding this comment

The 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%;
height: auto;
padding: 80px 10%;
gap: 10px;
display: flex;
justify-content: center;
align-items: center;
}

.branding {
background-color: #CFE5FF;
width: 100%;
height: 540px;
top: 70px;
display: flex;
justify-content: center;
align-items: flex-end;
}

.branding-contents {
display: flex;
justify-content: center;
gap: 7px;
}

.branding-contents.bottom {
align-items: center;
gap: 69px;
}


.description--branding-contents {
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 .feature-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;
}

.feature-contents > img {
height: 100%;
}

.feature-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.reverse {
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%;
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;
}
Loading