-
Notifications
You must be signed in to change notification settings - Fork 38
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
[송효정] sprint2 #51
The head ref may contain hidden characters: "Basic-\uC1A1\uD6A8\uC815-sprint2"
[송효정] sprint2 #51
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,10 @@ | |
<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/[email protected]/dist/web/static/pretendard.min.css" /> | ||
<link rel="stylesheet" href="./src/css/reset.css" /> | ||
<link rel="stylesheet" href="./src/css/style.css" /> | ||
<link rel="stylesheet" href="./src/css/global.css" /> | ||
<link rel="stylesheet" href="./src/css/home.css" /> | ||
</head> | ||
<body> | ||
<header> | ||
|
@@ -13,17 +15,18 @@ | |
<a href="/login" class="btn btn_small">로그인</a> | ||
</nav> | ||
</header> | ||
<div class="kv"> | ||
<div class="inner"> | ||
<img src="./src/img/main/img_home_top.png" alt="" /> | ||
<h1>일상의 모든 물건을 <br />거래해 보세요</h1> | ||
<a class="btn btn_large" href="/items">구경하러 가기</a> | ||
</div> | ||
</div> | ||
|
||
<main> | ||
<section class="hero"> | ||
<div class="inner"> | ||
<img src="./src/img/main/img_home_top.png" alt="인사하는 판다 일러스트" /> | ||
<h1>일상의 모든 물건을 <br />거래해 보세요</h1> | ||
<a class="btn btn_large" href="/items">구경하러 가기</a> | ||
</div> | ||
</section> | ||
<div class="wrapper"> | ||
<section class="inner"> | ||
<img src="./src/img/main/img_home_01.png" alt="" /> | ||
<img src="./src/img/main/img_home_01.png" alt="물건을 구경하는 판다 일러스트" /> | ||
<div class="desc"> | ||
<h2> | ||
<span>Hot item</span> | ||
|
@@ -33,7 +36,7 @@ <h2> | |
</div> | ||
</section> | ||
<section class="inner"> | ||
<img src="./src/img/main/img_home_02.png" alt="" /> | ||
<img src="./src/img/main/img_home_02.png" alt="돋보기 일러스트" /> | ||
<div class="desc"> | ||
<h2> | ||
<span>Search</span> | ||
|
@@ -43,7 +46,7 @@ <h2> | |
</div> | ||
</section> | ||
<section class="inner"> | ||
<img src="./src/img/main/img_home_03.png" alt="" /> | ||
<img src="./src/img/main/img_home_03.png" alt="카테고리 일러스트" /> | ||
<div class="desc"> | ||
<h2> | ||
<span>Register</span> | ||
|
@@ -53,7 +56,7 @@ <h2> | |
</div> | ||
</section> | ||
</div> | ||
<div class="bv"> | ||
<div class="banner"> | ||
<div class="inner"> | ||
<div class="desc"> | ||
<h2> | ||
|
@@ -63,7 +66,7 @@ <h2> | |
</div> | ||
</div> | ||
|
||
<img src="./src/img/main/img_home_bottom.png" alt="" /> | ||
<img src="./src/img/main/img_home_bottom.png" alt="대화하는 판다 일러스트" /> | ||
</div> | ||
</main> | ||
<footer> | ||
|
@@ -74,20 +77,26 @@ <h2> | |
<li><a href="/faq">FAQ</a></li> | ||
</ul> | ||
<ul class="sns"> | ||
<li | ||
><a target="_blank" href="https://www.facebook.com"> | ||
<img src="./src/img/common/ic_facebook.svg" alt="facebook logo" /> | ||
<li> | ||
<a target="_blank" rel="noopener noreferrer" href="https://www.facebook.com"> | ||
<img src="./src/img/common/ic_facebook.svg" alt="페이스북 로고" /> | ||
</a> | ||
</li> | ||
<li> | ||
<a target="_blank" rel="noopener noreferrer" href="https://www.twitter.com"> | ||
<img src="./src/img/common/ic_twitter.svg" alt="트위터 로고" /> | ||
</a> | ||
</li> | ||
<li> | ||
<a target="_blank" rel="noopener noreferrer" href="https://www.youtube.com"> | ||
<img src="./src/img/common/ic_youtube.svg" alt="유튜브 로고" /> | ||
</a> | ||
</li> | ||
<li> | ||
<a target="_blank" rel="noopener noreferrer" href="https://www.instagram.com"> | ||
<img src="./src/img/common/ic_instagram.svg" alt="인스타그램 로고" /> | ||
</a> | ||
</li> | ||
<li | ||
><a target="_blank" href="https://www.twitter.com"> <img src="./src/img/common/ic_twitter.svg" alt="twitter logo" /> </a | ||
></li> | ||
<li | ||
><a target="_blank" href="https://www.youtube.com"> <img src="./src/img/common/ic_youtube.svg" alt="youtube logo" /> </a | ||
></li> | ||
<li | ||
><a target="_blank" href="https://www.instagram.com"> <img src="./src/img/common/ic_instagram.svg" alt="instagram logo" /> </a | ||
></li> | ||
</ul> | ||
</div> | ||
</footer> | ||
|
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
@@ -0,0 +1,42 @@ | ||||
:root { | ||||
--white: #fff; | ||||
--gray900: #1b1d1f; | ||||
--gray800: #26282b; | ||||
--gray600: #454c53; | ||||
--gray500: #72787f; | ||||
--gray400: #9ea4a8; | ||||
--gray200: #e5e7eb; | ||||
--gray100: #e8ebed; | ||||
--gray50: #f7f7f8; | ||||
--blue: #3692ff; | ||||
--skyblue: #cfe5ff; | ||||
--red: #f74747; | ||||
--deepblue: #1967d6; | ||||
} | ||||
|
||||
body { | ||||
overflow-x: hidden; | ||||
} | ||||
|
||||
/* common */ | ||||
.inner { | ||||
max-width: 1200px; | ||||
margin: 0 auto; | ||||
} | ||||
/* gnb */ | ||||
header { | ||||
border-bottom: 1px solid var(--gray100); | ||||
margin-bottom: 70px; | ||||
} | ||||
.gnb { | ||||
width: 100%; | ||||
height: 70px; | ||||
display: flex; | ||||
justify-content: space-between; | ||||
max-width: 1520px; | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||
margin: 0; | ||||
align-items: center; | ||||
position: fixed; | ||||
z-index: 2; | ||||
padding: 0 200px; | ||||
} | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. gnb에 대해 background-color가 필요해 보입니다. 별도의 색상이 없어 스크롤를 내리다 보면 뒤에 있는 요소와 겹쳐 보이고 있어서요. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. position: fixed 설정 이후에 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
마침 멘토링 때 소개할까 고민했는데
noopener
,noreferrer
을 넣어주셨네요. 👍👍보안, 성능상 유리해서 별도 프레임워크 없이 작성할 때는 작성해주는 것이 좋은 것 같습니다.