-
Notifications
You must be signed in to change notification settings - Fork 4
[당근마켓 클론코딩] 심현진 미션 제출합니다 #6
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
base: main
Are you sure you want to change the base?
Changes from 20 commits
f6fc55c
d1a10cb
47e684b
4cdf2bc
01158af
c645f08
a52673e
68c607e
5e5690b
fcb7c82
7b9b218
24d17cd
f6510a5
d0034e5
e4c3bb1
262dd70
401f338
e55d9ef
c55273c
403e418
84b69d7
0742608
d03767b
86883f2
24c9241
ce0894b
e0e8b34
36c66f2
e8a2787
29f0348
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 |
|---|---|---|
|
|
@@ -4,6 +4,47 @@ | |
| <meta charset="UTF-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>당근마켓 클론</title> | ||
| <link href="style.css" rel="stylesheet" type="text/css" /> | ||
| <script src="script.js"></script> | ||
| </head> | ||
| <body> | ||
| </html> | ||
| <header> | ||
| <div class="bigBox1"> | ||
| <nav id="wrapLogo"> | ||
| <a href="index.html"> | ||
| <img id="logo" src="../assets/logo.png" alt="당근 로고" /> | ||
| </a> | ||
| </nav> | ||
| <div id="center"> | ||
| <ul class="menu"> | ||
| <a href="page.html"><li>중고거래</li></a><li>동네업체</li><li>알바</li><li>부동산</li><li>중고차 직거래</li> | ||
| </ul> | ||
| </div> | ||
| <aside id="wrapInputText"> | ||
| <input type="text" placeholder="물품이나 동네를 검색해 보세요"></input> | ||
|
||
| <button>채팅하기</button> | ||
| </aside> | ||
| </div> | ||
| </header> | ||
|
|
||
| <main class="indexMain"> | ||
| <div id="test"> | ||
| <h1 class="font">당신 근처의<br/>지역 생활 커뮤니티</h1> | ||
|
||
| <p id="indexP">동네라서 가능한 모든 것<br/>당근에서 가까운 이웃과 함께해요.</p> | ||
| </div> | ||
| <img id="daangnee" src="../assets/daangnee.png" alt="당근이 캐릭터"> | ||
| <nav id="buttonSort"> | ||
| <button class="mainButton"> | ||
| <img class="buttonLogoImgGP" src="../assets/google_play.svg"> | ||
|
||
| <span class="GPtext"><b>Google Play</b></span> | ||
| </button> | ||
| <button class="mainButton"> | ||
| <img class="buttonLogoImgAS" src="../assets/apple_store.svg"> | ||
| <span class="AStext"><b>App Store</b></span> | ||
| </button> | ||
| </nav> | ||
| </main> | ||
| <section id="section1"> | ||
| </section> | ||
|
||
| </body> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <title>중고거래</title> | ||
| <link href="style.css" rel="stylesheet" type="text/css"> | ||
| <script src="script.js"></script> | ||
| </head> | ||
| <body> | ||
| <header> | ||
| <div class="bigBox1"> | ||
| <nav id="wrapLogo"> | ||
| <a href="index.html"> | ||
| <img id="logo" src="../assets/logo.png" alt="당근 로고" /> | ||
| </a> | ||
| </nav> | ||
| <div id="center"> | ||
| <ul class="menu"> | ||
| <a href="page.html" id="textColor"><li>중고거래</li></a><li>동네업체</li><li>알바</li><li>부동산</li><li>중고차 직거래</li> | ||
| </ul> | ||
| </div> | ||
| <aside id="wrapInputText"> | ||
| <input type="text" placeholder="물품이나 동네를 검색해 보세요"></input> | ||
| <button>채팅하기</button> | ||
| </aside> | ||
| </div> | ||
| </header> | ||
|
|
||
| <main id="banner"> | ||
| <h1 id="pageText">믿을만한<br />이웃 간 중고거래</h1> | ||
| <p id="pagePtext">동네 주민들과 가깝고 따뜻한 거래를<br />지금 경험해보세요.</p> | ||
| <img src="../assets/headerImg.png" id="headerBanner"/> | ||
| </main> | ||
|
|
||
| <section id="product"> | ||
| <h1>중고거래 인기매물</h1> | ||
| </section> | ||
|
|
||
| <footer id="wrapFooter"> | ||
| <div class="list"> | ||
| <div class="item"> | ||
|
|
||
| </div> | ||
| </div> | ||
| </footer> | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,14 @@ | ||
| // 화이팅.. | ||
| fetch('../data.json') | ||
| .then((response) => { | ||
| return response.json(); | ||
| }) | ||
| .then((data) => { | ||
| data.data.map((item) => { | ||
| document.querySelector('.item').innerHTML += `<article> | ||
| <img class="productImg" src=".${item.img}" alt="${item.name}"><br /> | ||
| <span>${item.name}</span></br> | ||
| <p><b>123004원</b></p> | ||
| <p>${item.address}</p> | ||
| </article>`; | ||
| }) | ||
| }); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,3 +3,271 @@ | |
| padding: 0; | ||
| box-sizing: border-box; | ||
| } | ||
|
|
||
| header { | ||
| display: flex; | ||
| justify-content: space-around; | ||
| position: fixed; | ||
| z-index: 5; | ||
| top: 0px; /* 도달했을때 고정시킬 위치 */ | ||
| height: 70px; | ||
|
||
| width: 100%; | ||
| background-color: #ffffff; | ||
| } | ||
| #wrapLogo { | ||
| width: 103px; | ||
| height: 38px; | ||
| } | ||
| #logo { | ||
| width: 63px; | ||
| height: 33px; | ||
| } | ||
| a { | ||
| text-align: center; | ||
| color:black; | ||
| } | ||
| a:visited { | ||
| color: black; | ||
| } | ||
| a:hover{ | ||
| color: #868b94; | ||
| } | ||
| a:active { | ||
| color: #fe6f0f; | ||
| } | ||
|
|
||
| #textColor{ | ||
| color: #fe6f0f; | ||
| } | ||
|
|
||
| .bigBox1 { | ||
| width: 1400px; | ||
| height: 64px; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| } | ||
|
|
||
| #center { | ||
| display: flex; | ||
| justify-content: flex-start; | ||
| align-items: end; | ||
| width: 900px; | ||
| height: 25px; | ||
| margin: 0 auto; | ||
| } | ||
|
|
||
| #wrapInputText { | ||
| display: flex; | ||
| justify-content: flex-end; | ||
| align-items: center; | ||
| width: 389.37px; | ||
| height: 38px; | ||
| } | ||
|
|
||
| .menu { | ||
| display: flex; | ||
| float:left; | ||
| gap: 29px; | ||
| } | ||
| .menu li { | ||
| font-weight: 30%; | ||
| font-size: 113%; | ||
| display:inline-block; | ||
| text-align:center; | ||
| } | ||
|
|
||
| input[type=text] { | ||
| width: 140%; | ||
| height: 105%; | ||
| margin: 10px; | ||
| padding: 13px; | ||
| font-size: 16px; | ||
| background: #f2f3f6; | ||
| border-radius: 5px; | ||
| outline: none; | ||
| border: 0; | ||
| color: #868b94; | ||
| } | ||
| input[type=text]:focus { | ||
| color: black; | ||
| } | ||
|
|
||
| button { | ||
| width: 180px; | ||
| height: 105%; | ||
| border: 0.6px solid #a3a1a1; | ||
| border-radius: 5px; | ||
| background-color: #ffffff; | ||
| color: black; | ||
| font-size: 16px; | ||
| } | ||
|
|
||
|
|
||
| #section1{ | ||
| height: 750px; | ||
| } | ||
|
|
||
| .indexMain { | ||
| width: 100%; | ||
| height: 900px; | ||
| background-color: #fffae0; | ||
| padding-bottom: 200px; | ||
| padding-left: 100px; | ||
|
||
| } | ||
| .font { | ||
| font-size: 48px; | ||
| line-height: 70px; | ||
| width: 1024px; | ||
| height: 137px; | ||
| padding-left: 20px; | ||
| padding-top: 40px; | ||
| } | ||
| #indexP{ | ||
| padding-left: 20px; | ||
| padding-top: 65px; | ||
| font-size: 20px; | ||
| line-height: 32px; | ||
| color: #7c7c7c; | ||
| height: 60px; | ||
| } | ||
| #daangnee { | ||
| margin-left: 800px; | ||
| margin-top: -630px; | ||
| width: 680px; | ||
| height: 825px; | ||
| } | ||
| #test { | ||
| display: flex; | ||
| padding: 14%; | ||
| flex-direction: column; | ||
| } | ||
|
|
||
| .mainButton { | ||
| width: 180px; | ||
| height: 56px; | ||
| border-radius: 10px; | ||
| border-style: none; | ||
| background-color: #fe6f0f; | ||
| color: #ffffff; | ||
| font-size: 16px; | ||
| } | ||
|
|
||
| .buttonLogoImgGP { | ||
| position: relative; | ||
| left: -5px; | ||
| top: 3px; | ||
| } | ||
|
|
||
| .buttonLogoImgAS { | ||
| position: relative; | ||
| left: -7px; | ||
| top: 0.4px; | ||
| } | ||
|
|
||
| .AStext { | ||
| position: relative; | ||
| bottom: 4px; | ||
| } | ||
| .GPtext { | ||
| position: relative; | ||
| bottom: 3px; | ||
| } | ||
|
|
||
| .mainButton > span{ | ||
| margin-bottom: 10px; | ||
| } | ||
|
|
||
| span { | ||
| text-align: center; | ||
| } | ||
|
|
||
| #buttonSort{ | ||
| width: 22%; | ||
| height: 56px; | ||
| display: flex; | ||
| justify-content: space-between; | ||
| margin-left: 250px; | ||
| margin-top: -340px; | ||
| } | ||
|
|
||
| #section1 { | ||
| background-color: #f9f9f9; | ||
| } | ||
|
|
||
| footer { | ||
| height: 647.52px; | ||
| background-color: #ffffff; | ||
| } | ||
|
|
||
| #banner { | ||
| width: 100%; | ||
| height: 380px; | ||
| padding-right: 37%; | ||
| padding-left: 30%; | ||
| background-color: #FFF1AA; | ||
| } | ||
|
|
||
| #headerBanner { | ||
| width: 416px; | ||
| height: 318px; | ||
| position: relative; | ||
| bottom: 116px; | ||
| left: 355px; | ||
| } | ||
|
|
||
| #pageText { | ||
| font-size: 33px; | ||
| width: 768px; | ||
| height: 130px; | ||
| line-height: 50px; | ||
| position: relative; | ||
| bottom: -120px; | ||
| } | ||
|
|
||
| #pagePtext { | ||
| width: 768px; | ||
| height: 47.52px; | ||
| color: #212529; | ||
| position: relative; | ||
| bottom: -105px; | ||
| left: 3px; | ||
| } | ||
|
|
||
| #product > h1 { | ||
| font-size: 32px; | ||
| text-align: center; | ||
| padding-top: 70px; | ||
| } | ||
|
|
||
| .list{ | ||
| height: 1542px; | ||
| width: 757px; | ||
| } | ||
| .item { | ||
| display: grid; | ||
| grid-template-columns: repeat(3,1fr); | ||
| } | ||
| article{ | ||
| margin-bottom: 50px; | ||
| margin-right: 50px; | ||
| } | ||
| .productImg { | ||
| width: 223px; | ||
| height: 230px; | ||
| border-radius: 20px; | ||
| border: 1px solid; | ||
| border-color: #a3a1a1; | ||
|
||
| margin-bottom: 20px; | ||
| } | ||
|
|
||
| #wrapFooter { | ||
| display: flex; | ||
| justify-content:center; | ||
| margin-top: 50px; | ||
| } | ||
|
|
||
| p { | ||
| line-height: 30px; | ||
| font-size: 16px; | ||
| } | ||
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.
시멘틱 태그 사용 너무 좋습니다!!