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
228 changes: 228 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,228 @@
@font-face {
font-family: 'Pretendard-Regular';
src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/[email protected]/Pretendard-Regular.woff') format('woff');
font-weight: 400;
font-style: normal;
}

@media (max-width: 100.00vw) {
Copy link
Collaborator

@dongqui dongqui Feb 11, 2025

Choose a reason for hiding this comment

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

�미디어 쿼리 조건이 100vw 이하, 그리고 아래쪽에 100vw 이상으로 되어있어서 조건이 겹치게 됩니다 😢
피그마(미션3)를 참고하여 적절한 breakpoint(예: 767px, 1199px)를 사용해 주세요!

header {
margin: 0 10.42vw;
}
.main_background {
margin: 0 10.42vw;
}
.icon {
margin-right: auto;
}
a.button {
margin-left: auto;
}
}

@media (min-width: 100.00vw) {
header {
margin: 0;
}
.main_background {
margin: 0;
padding: 10.42vw 0;
}
footer {
padding: 1.67vw 5.21vw;
}
.contents {
padding: 7.19vw 5.21vw;
}
.contents_detail {
width: 52.08vw;
}
.home_img {
width: 31.25vw;
height: auto;
}
.main_img {
width: 41.67vw;
height: auto;
}
}

body{
padding: 0;
margin: 0;
font-family: Pretendard-Regular;
}

header{
display: flex;
justify-content: center; /* 수평 */
align-items: center; /* 수직 */
margin: 0.49vw 10.42vw;
}

a{
box-sizing: border-box;
Copy link
Collaborator

Choose a reason for hiding this comment

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

box-sizing: border-box; 는 기본 값으로 설정하는 경우가 많습니다.
이런 경우 아래처럼 모든 요소에 공통으로 스타일을 넣을 수 있습니다! :)

* {
  box-sizing: border-box;
}

display: flex;
justify-content: center;
align-items: center;
text-decoration-line: none;
font-size: 1vw;
cursor: pointer;
}

p{
Copy link
Collaborator

Choose a reason for hiding this comment

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

지금은 css 파일이 하나라 괜찮지만, 태그에 직접 스타일을 주게 되면 페이지 전체에 영향을 주기 때문에 지양하시는 것이 좋습니다!! 되도록 클래스를 이용해주세요~ :)

margin: 0;
font-size: 1.18vw;
}

h2{
box-sizing: border-box;
margin: 0;
color: #374151;
font-size: 1.27vw;
font-weight: bold;
line-height: 140%;
}

footer{
display: flex;
justify-content: center;
align-items: center;
height: 2vw;
background-color: #111827;
padding: 1.67vw 20.83vw;
gap: 0 19.09vw;
}

/*header*/

.icon{
display: flex;
align-items: center;
width: 7.97vw;
height: 2.66vw;
}

.image_icon{
width: 2.08vw;
height: 2.08vw;
margin-top: 0.26vw;
margin-bottom: 0.30vw;
}

.header_title{
margin: 0.51vw 0.07vw 0.33vw 0.45vw;
color: #3692FF;
font-size: 1.33vw;
font-weight: bold;
}

a.button{
width: 6.67vw;
height: 2.50vw;
background-color: #3692FF;
border-radius: 0.42vw;
padding: 0.63vw 1.20vw;
margin: 0.08vw 0.00vw 0.08vw 43.70vw;
color: white;
}

/*main_intro*/
.main_background{
display: flex;
justify-content: center;
align-items: center;
box-sizing: border-box;
background-color: #CFE5FF;
height: 28.13vw;
padding: 10.42vw 23.44vw 0.00vw;
}

.bg_text{
margin: 2.08vw 0;
}

.bg_text_and_image {
display: flex;
align-items: center;
gap: 0 3.59vw;
}

a.main_button{
width: 18.59vw;
height: 2.92vw;
background-color: #3692FF;
border-radius: 2.08vw;
padding: 0.63vw 6.46vw;
margin: 1.67vw 0.00vw 3.13vw;
color: white;
}

.main_img{
width: 38.85vw;
height: 17.71vw;
margin-left: 0.36vw;
}

/*main*/
.contents{
display: flex;
justify-content: center;
align-items: center;
padding: 7.19vw 24.27vw;
}

.contents_detail{
display: flex;
align-items: center;
width: 51.46vw;
height: 23.13vw;
margin: 0 1.22vw;
gap: 0 3.33vw;
}

.home_img{
width: 30.16vw;
height: 23.13vw;
}

.contents_text{
margin: 5.36vw 0;
}

.right_text{
text-align: right;
}

.blue_text{
color: #3692FF;
font-size: 0.94vw;
font-weight: bold;
margin-bottom: 0.63vw;
}

.small_text{
margin-top: 1.25vw;
}

/*footer*/
.footer_detail{
display: flex;
justify-content: center;
align-items: center;
}

.footer_text{
color: #E5E7EB;
font-size: 0.83vw;
}

.pp_and_faq{
gap: 0 1.56vw;
}

.sns_img{
width: 1.04vw;
height: 1.04vw;
gap: 0 0.63vw;
}
11 changes: 11 additions & 0 deletions html/faq.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>

</body>
</html>
108 changes: 108 additions & 0 deletions html/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
<!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">
<link rel="stylesheet" href="../css/style.css">
<title>판다마켓</title>
</head>
<body>
<header>
<div class="icon">
<img src="../img/panda_icon.png" class="image_icon">
Copy link
Collaborator

Choose a reason for hiding this comment

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

img를 쓰실 때 alt를 넣어주시는 것이 접근성에 좋습니다! :)

<a href="index.html" class="header_title">판다마켓</a>
</div>
<a href="login.html" class="button">로그인</a>
</header>
<main>
<div class="main_background">
<div class="bg_text_and_image">
<div class="bg_text">
<h2>일상의 모든 물건을</h2>
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 는 계층 구조로 사용하시는 것이 접근성에 좋습니다! :)

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

<h2>거래해 보세요</h2>
<a href="items.html" class="main_button">구경하러 가기</a>
</div>
<img src="../img/Img_home_top.png" class="main_img">
</div>
</div>
<div class="contents">
<div class="contents_detail">
<img src="../img/Img_home_01.png" class="home_img">
<div class="contents_text">
<p class="blue_text">Hot item</p>
Copy link
Collaborator

Choose a reason for hiding this comment

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

P는 문단을 나타내기 위해 사용됩니다! 여기서는 부적절한 거 같네요!

<div class="big_text">
<h2>인기 상품을 </h2>
<h2>확인해 보세요</h2>
</div>
<div class="small_text">
<p>가장 HOT한 중고거래 물품을</p>
<p>판다 마켓에서 확인해 보세요</p>
</div>
</div>
</div>
</div>
<div class="contents">
<div class="contents_detail">
<div class="contents_text right_text">
Copy link
Collaborator

Choose a reason for hiding this comment

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

공통 스타일을 잘 정의해주셨네요! 👍

<p class="blue_text">Search</p>
<div class="big_text">
<h2>구매를 원하는 </h2>
<h2>상품을 검색하세요</h2>
</div>
<div class="small_text">
<p>구매하고 싶은 물품은 검색해서 </p>
<p>쉽게 찾아보세요</p>
</div>
</div>
<img src="../img/Img_home_02.png" class="home_img">
</div>
</div>
<div class="contents">
<div class="contents_detail">
<img src="../img/Img_home_03.png" class="home_img">
<div class="contents_text">
<p class="blue_text">Register</p>
<div class="big_text">
<h2>판매를 원하는 </h2>
<h2>상품을 등록하세요</h2>
</div>
<div class="small_text">
<p>어떤 물건이든 판매하고 싶은 상품을 </p>
<p>쉽게 등록하세요</p>
</div>
</div>
</div>
</div>
<div class="main_background">
<div class="bg_text_and_image">
<div class="bg_text">
<h2>믿을 수 있는 </h2>
<h2>판다마켓 중고거래</h2>
</div>
<img src="../img/Img_home_bottom.png" class="main_img">
</div>
</div>
</main>
<footer>
<div class="footer_detail"><p class="footer_text">©codeit - 2024</p></div>
<div class="footer_detail pp_and_faq">
<a href="privacy.html" class="footer_text">Privacy Policy</a>
<a href="faq.html" class="footer_text">FAQ</a>
</div>
<div class="sns_img footer_detail">
<a href="https://www.facebook.com/help/753701661398957/?locale=ko_KR" target="_blank">
<img src="../img/ic_facebook.png">
</a>
<a href="https://x.com/home?lang=ko" 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://about.instagram.com/ko-kr" target="_blank">
<img src="../img/ic_instagram.png">
</a>
</div>
</footer>
</body>
</html>
11 changes: 11 additions & 0 deletions html/items.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>

</body>
</html>
11 changes: 11 additions & 0 deletions html/login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>

</body>
</html>
11 changes: 11 additions & 0 deletions html/privacy.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>

</body>
</html>
Binary file added img/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 img/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 img/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 img/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 img/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 img/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 img/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 img/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 img/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 img/panda_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading