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 #4

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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
Binary file added images/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 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/btn_large.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/btn_small.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/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
85 changes: 85 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<!DOCTYPE html>
<html lang="en">
JiinSeok marked this conversation as resolved.
Show resolved Hide resolved
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>판다마켓</title>
<link rel="stylesheet" href="style.css">
</head>
<body>

<header>
<a href="/" class="logo click"> <img src="images/logo.png"> </a>
JiinSeok marked this conversation as resolved.
Show resolved Hide resolved
<div class="login">
<a class="click" href="/login"> 로그인 </a>
</div>
JiinSeok marked this conversation as resolved.
Show resolved Hide resolved

</header>

<section class="home-top">
JiinSeok marked this conversation as resolved.
Show resolved Hide resolved
<div class="container-1920">
<div>
<p class="phrase">일상의 모든 물건을<br> 거래해 보세요</p>
<div class="more">
JiinSeok marked this conversation as resolved.
Show resolved Hide resolved
<a class="click" href="/items" class="click"> 구경하러 가기 </a>
</div>
JiinSeok marked this conversation as resolved.
Show resolved Hide resolved
</div>
<div>
<img class="img" src="images/Img_home_top.png">
JiinSeok marked this conversation as resolved.
Show resolved Hide resolved
</div>
</div>
</section>

<section class="home-main">
<img class="img" src="images/Img_home_01.png">

<div class="home-main-text left">
JiinSeok marked this conversation as resolved.
Show resolved Hide resolved
<p class="title">Hot item</p>
<p class="phrase">인기 상품을<br> 확인해 보세요</p>
<p class="description">가장 HOT한 중고거래 물품을<br> 판다 마켓에서 확인해 보세요</p>
JiinSeok marked this conversation as resolved.
Show resolved Hide resolved
</div>

<div class="home-main-text right">
<p class="title">Search</p>
<p class="phrase">구매를 원하는<br> 상품을 검색하세요</p>
<p class="description">구매하고 싶은 물품은 검색해서<br> 쉽게 찾아보세요</p>
</div>

<img class="img" src="images/Img_home_02.png">

<img class="img" src="images/Img_home_03.png">

<div class="home-main-text left">
<p class="title">Register</p>
<p class="phrase">판매를 원하는<br> 상품을 등록하세요</p>
<p class="description">어떤 물건이든 판매하고 싶은 상품을<br> 쉽게 등록하세요</p>
</div>
</section>

<section class="home-bottom">
<div class="container-1920">
<div>
<p class="phrase">믿을 수 있는<br> 판다마켓 중고거래</p>
</div>
<div>
<img class="img" src="images/Img_home_bottom.png">
</div>
</div>
</section>

<footer>
<p class="copyright">©codeit - 2024</p>
<div class="privacy-and-faq">
<a class="click" href="/privacy">Privacy Policy</a>
<a class="click" href="/faq">FAQ</a>
</div>
JiinSeok marked this conversation as resolved.
Show resolved Hide resolved
<div class="social-link">
<a class="click" href="https://www.facebook.com/" target="_blank"> <img src="images/ic_facebook.png"> </a>
JiinSeok marked this conversation as resolved.
Show resolved Hide resolved
<a class="click" href="https://twitter.com/" target="_blank"> <img src="images/ic_twitter.png"> </a>
<a class="click" href="https://www.youtube.com/" target="_blank"> <img src="images/ic_youtube.png"> </a>
<a class="click" href="https://www.instagram.com/" target="_blank"> <img src="images/ic_instagram.png"> </a>
</div>
</footer>

</body>
</html>
164 changes: 164 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
* {
box-sizing: border-box;
margin: 0;
}

.click {
JiinSeok marked this conversation as resolved.
Show resolved Hide resolved
cursor: pointer;
}

.logo {
width: 153px;
height: 51px;
}

.login {
background-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.

image

현재 .login 클래스를 포함 해 아래에 있는 여러 클래스에서 background-colorcolor 속성에 대해 색상이 변수로 지정되어 있지 않습니다 😭 변수화는 공통적인 부분을 체계적으로 관리하는 방식이므로 중요한 부분이기에 다음 PR에서 도전해보시는 것을 추천드립니다.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@dev-kjy 이름을 어떻게 짓는 게 더 적절할까요?

  1. bg-color 같은 의미형
  2. color-blue 같은 색상명칭형

border-radius: 8px;
width: 128px;
height: 48px;
display: flex;
justify-content: center;
align-items: center;
}

.login .click {
color: #FFFFFF;
text-decoration: none;
font-size: 16px;
font-weight: 600;
}

.more {
background-color: #3692FF;
width: 357px;
height: 56px;
border-radius: 40px;
display: flex;
justify-content: center;
align-items: center;
}

.more .click {
color: #FFFFFF;
text-decoration: none;
font-size: 20px;
font-weight: 600;
}

header,
footer {
margin: 0 auto;
display: flex;
justify-content: space-between;
}

header {
height: 70px;
padding: 0 200px;
align-items: center;
}

.home-top,
.home-bottom {
background-color: #CFE5FF;
width: 100%;
height: 540px;
margin: 0;
display: flex;
justify-content: center;
position: relative;
}

.container-1920 {
max-width: 1920px;
min-width: 1200px;
margin: 0 auto;
display: flex;
align-items: center;
}

.home-top .img,
.home-bottom .img{
max-width: 996px;
height: auto;
position: absolute;
bottom: 0;
}

.home-main {
max-width: 1200px;
margin: 138px auto 276px;
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(3, 1fr);
gap: 276px 0;
}

.home-main .img {
width: 588px;
height: 444px;
margin: 0 auto;
}

.home-main-text {
padding: 50px;
display: flex;
flex-direction: column;
justify-content: center;
}

.home-main-text.right {
text-align: right;
}

.home-main .title {
color: #3692FF;
font-size: 18px;
font-weight: 700;
margin: 10px 0;
}

.phrase {
color: #374151;
font-size: 40px;
font-weight: 700;
min-width: 290px;
margin: 20px 0;
}

.home-main .description {
color: #374151;
font-size: 24px;
font-weight: 500;
margin: 10px 0;
}

footer {
background-color: #111827;
height: 160px;
padding: 50px 200px;
font-size: 16px;
font-weight: 400;
}

footer .copyright {
color: #9CA3AF;
}

footer .privacy-and-faq {
display: grid;
grid-template: 19px / 100px 29px;
gap: 0 30px
JiinSeok marked this conversation as resolved.
Show resolved Hide resolved
}

footer .privacy-and-faq > a {
color: #E5E7EB;
text-decoration: none;
}

footer .social-link {
display: grid;
grid-template: 20px / repeat(4, 20px);
gap: 0 12px;
}
Loading