Skip to content
Open
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
bf14e19
docs: 문서 위치 변경
winshine0326 Jul 5, 2024
e0fb2a6
chore: assets파일 이미지 추가
winshine0326 Jul 5, 2024
6013ad0
feat: 메인페이지 틀 생성
winshine0326 Jul 5, 2024
6059e52
feat: 헤더 부분 구현
winshine0326 Jul 7, 2024
0817b44
chore: 픽토그램 아이콘 추가
winshine0326 Jul 7, 2024
8976262
feat: 메인 페이지 구현
winshine0326 Jul 7, 2024
0e6f69c
docs: 중고거래 html,css,사진 파일 추가
winshine0326 Jul 7, 2024
595ad28
docs: 중고거래 css파일 삭제
winshine0326 Jul 7, 2024
a97b97b
feat: 거래 페이지 헤더,상단 부분 구현
winshine0326 Jul 7, 2024
6e5a7dc
fix: 상단 텍스트바 패딩 버그 수정
winshine0326 Jul 7, 2024
aa1a281
fix: 자잘한 표현오류 수정
winshine0326 Jul 7, 2024
7692a8a
feat: 거래 페이지 매물 구현
winshine0326 Jul 9, 2024
123b417
feat: 메인,거래 페이지 간 이동 구현
winshine0326 Jul 9, 2024
c2a6dae
style: 매물 img 스타일 변경
winshine0326 Jul 9, 2024
824d4b7
style: 다운로드 버튼 스타일 변경
winshine0326 Jul 9, 2024
6fba34c
style: 거래 페이지 매물 가운데 정렬
winshine0326 Jul 9, 2024
7243c00
refactor : br 태그 삭제
winshine0326 Jul 25, 2024
c545396
refactor : br 태그 삭제
winshine0326 Jul 25, 2024
7d8d966
refactor : 스타일 코드 간결화
winshine0326 Jul 25, 2024
aadd72b
refactor : 셀프 클로징 태그 사용
winshine0326 Jul 25, 2024
6b530df
refactor : 셀프 클로징 태그 추가2
winshine0326 Jul 25, 2024
1b78cf8
refactor : 인라인 스타일 제거
winshine0326 Jul 25, 2024
fd81d50
refactor : rgb -> 색상코드로 변경
winshine0326 Jul 25, 2024
3a76bb5
refactor : 절대 단위 -> 상대적 단위로 변경
winshine0326 Jul 25, 2024
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 .DS_Store
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file added assets/.DS_Store
Binary file not shown.
Binary file added assets/AppStore.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 assets/GooglePlay.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 assets/circle.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 assets/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 assets/lost.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 assets/mascort.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 assets/question.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 assets/section1.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 assets/section2.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 assets/section3.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 assets/section4.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 assets/trade.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions data.json → mission/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,49 +2,49 @@
"data": [
{
"id": 1,
"img": "./assets/kitty.png",
"img": "../assets/kitty.png",
"name": "고양이 기타",
"address": "부산 기장군 가락동"
},
{
"id": 2,
"img": "./assets/AirPod.png",
"img": "../assets/AirPod.png",
"name": "완전 새 에어팟",
"address": "부산 양정동"
},
{
"id": 3,
"img": "./assets/laptop.png",
"img": "../assets/laptop.png",
"name": "중고 맥북",
"address": "서울 강남구 삼성동"
},
{
"id": 4,
"img": "./assets/phone.png",
"img": "../assets/phone.png",
"name": "스마트폰",
"address": "서울 종로구 종로1가"
},
{
"id": 5,
"img": "./assets/headphone.png",
"img": "../assets/headphone.png",
"name": "헤드폰",
"address": "대구 중구 동성로"
},
{
"id": 6,
"img": "./assets/ipad.png",
"img": "../assets/ipad.png",
"name": "아이패드",
"address": "부산 해운대구"
},
{
"id": 7,
"img": "./assets/earing.png",
"img": "../assets/earing.png",
"name": "귀걸이",
"address": "인천 남동구 구월동"
},
{
"id": 8,
"img": "./assets/bicycle.png",
"img": "../assets/bicycle.png",
"name": "산악 자전거",
"address": "대전 서구 둔산동"
}
Expand Down
110 changes: 103 additions & 7 deletions mission/index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,105 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>당근마켓 클론</title>
</head>
<body>
</html>

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>당근마켓 클론</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>

<body>
<header>
<div class="container1">
<a class="item" href="./index.html"><img src="../assets/logo.png" width="75px" height="43px" id="logo"></a>
<a class="item" id="trade" href="./tradepage.html"><b>중고거래</b></a>
<div class="item"><b>동네업체</b></div>
<div class="item"><b>알바</b></div>
<div class="item"><b>부동산</b></div>
<div class="item"><b>중고차 직거래</b></div>
</div>
<div class="container2">
<input type="text" placeholder="물품이나 동네를 검색해보세요">
<input type="button" value="채팅하기">
</div>
</header>

<section id="sec1">
<div>
<h1>당신 근처의<br>지역 생활 커뮤니티</h1>
<p><br>동네라서 가능한 모든 것<br>당근에서 가까운 이웃과 함께해요.<br></p>
<input type="button" value=" Google Play" style="background-image: url(../assets/GooglePlay.png);">
<input type="button" value=" App Store" style="background-image: url(../assets/AppStore.png); background-position:31px;">
Copy link
Contributor

Choose a reason for hiding this comment

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

인라인 스타일은 지양해주세요~
밑에도 다 고쳐주세용

</div>
<div>
<img src="../assets/mascort.png" height="700px" style="position:absolute; top: 0;">
</div>
</section>

<section id="sec2">
<div>
<img src="../assets/section1.png" height="700px" style="position:relative; top:-200px;">
</div>
<div>
<p style="color:#FF6F0F; font-weight:bold;">중고거래<br><br></p>
<h1 style="font-size:45px;">믿을만한<br>이웃 간 중고거래</h1>
<p><br>동네 주민들과 가깝고 따뜻한 거래를<br>지금 경험해보세요.<br><br></p>
Copy link
Contributor

Choose a reason for hiding this comment

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

br 사용은 지양해주세요!!!!

<input type="button" value="인기매물 보기">
<input type="button" value="믿을 수 있는 중고거래">
</div>
</section>

<section id="sec3">
<div>
<p style="color:#FF6F0F; font-weight:bold;">동네생활<br><br></p>
<h1 style="font-size:45px;">이웃만 아는<br>동네 정보와 이야기</h1>
<p><br>우리동네의 다양한 정보와 이야기를<br>공감과 댓글로 나누어요.<br></p>
<div class="picpr">
<div class="pic" style="background-image:url(../assets/circle.png); background-size: cover;"></div>
<div class="pic" style="background-image:url(../assets/question.png); background-size: cover;"></div>
<div class="pic" style="background-image:url(../assets/lost.png); background-size:40px; background-repeat: no-repeat; background-position:5px;"></div>
Copy link

Choose a reason for hiding this comment

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

br태그는 지양하는게 좋을 것 같습니다. 참고해주세요

style을 태그 안에 사용하는 것은 가독성에 좋지 않습니다.
class안에 여러개의 선택자를 넣을 수 있습니다. 참고해주세요

img태그를 사용하여 이미지를 import할 수 있습니다.

</div>
<div class="picname">
<p>동네모임</p>
<p>동네질문</p>
<p>동네분실센터</p>
</div>
<div class="picinfo">
<p>근처 이웃들과 동네<br>이야기를 해보세요.</p>
<p>궁금한 게 있을 땐<br>이웃에 물어보세요.</p>
<p>무언가를 잃어버렸다면<br>글을 올려보세요.</p>
</div>
</div>
<div>
<img src="../assets/section2.png" height="700px" style="position:relative; top: -200px; right:200px;">
</div>
</section>
<section id="sec4">
<div>
<img src="../assets/section3.png" height="700px" style="position:relative; top:-200px;">
</div>

<div>
<p style="color:#FF6F0F; font-weight:bold;">알바<br><br></p>
<h1 style="font-size:45px;">걸어서 10분!<br>동네 알바 구하기</h1>
<p><br>당근하듯 쉽고, 편하게<br>당근 알바로 동네 알바를 구할 수 있어요.<br><br></p>
<input type="button" value="내근처 알바 보기">
</div>

</section>

<section id="sec5">
<div>
<p style="color:#FF6F0F; font-weight:bold;">동네업체<br><br></p>
<h1 style="font-size:45px;">내 근처에서 찾는<br>동네업체</h1>
<p><br>이웃들의 추천 후기를 확인하고<br>동네 곳곳의 업체들을 찾을 수 있어요.<br><br></p>
<input type="button" value="당근 동네업체 보기">
</div>
<div>
<img src="../assets/section4.png" height="700px" style="position:relative; top: -550px; left:400px;">
Copy link
Contributor

Choose a reason for hiding this comment

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

position은 되도록이면 지양해주세요~
인라인 스타일도 지양해주세요!

<img src="../assets/section4.png" height="700px" style="position:relative; top: -550px; left:400px;" />

위와 같이 셀프 클로징 태그를 사용해주세용!
https://jake-seo-dev.tistory.com/461

</div>
</section>

</body>

</html>
23 changes: 23 additions & 0 deletions mission/script.js
Original file line number Diff line number Diff line change
@@ -1 +1,24 @@
// 화이팅..
// -> ㅠㅠ

function list() {
fetch('data.json').then(function (response) {
return response.json();
}).then(function (obj) {
const container = document.querySelector('#imgcontainer');
let content = '';

obj.data.map((item) => {
content += `
<div id="items">
<img src="${item.img}" alt="${item.name}">
<h2>${item.name}</h2>
<div> 999,999원 </div>
<p>${item.address}</p>
</div>
`;
});

container.innerHTML = content;
});
}
Loading