Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
1e76f8e
first commit
GAMZAMANDU Jul 4, 2024
10a90c2
chore : index.html의 header 제작
GAMZAMANDU Jul 4, 2024
97ce9ba
chore : index.html의 section 제작
GAMZAMANDU Jul 5, 2024
b5e6771
style : css 정돈
GAMZAMANDU Jul 5, 2024
f067487
chore : 탭별 폴더 정리
GAMZAMANDU Jul 5, 2024
39280a9
chore : joongo.html의 상단섹션 추가
GAMZAMANDU Jul 5, 2024
ffa4c91
chore : acticle list의 CSS 완성
GAMZAMANDU Jul 6, 2024
f4cf7f8
refactor : acticle component add
GAMZAMANDU Jul 6, 2024
8c22d08
chore : favicon add
GAMZAMANDU Jul 6, 2024
bf0cc2b
feat: acticle JSON 데이터 적용
GAMZAMANDU Jul 6, 2024
b43e9b1
chore : header로 fixed수정, keywords-list component화
GAMZAMANDU Jul 6, 2024
b26864a
chore : index.html section의 height가 비정상적이던 문제 일시적 해결
GAMZAMANDU Jul 6, 2024
5d58709
chore : 하단 keywords 오타 수정 및 css 변경
GAMZAMANDU Jul 7, 2024
36ce8e7
chore : footer-top 제작
GAMZAMANDU Jul 7, 2024
5fa1c2d
chore : footer 완성
GAMZAMANDU Jul 8, 2024
2d4a31a
style : 간단한 CSS 엔터 넣기
GAMZAMANDU Jul 8, 2024
c602b91
chore : JSON 데이터 업데이트
GAMZAMANDU Jul 8, 2024
8c03680
chore : 파일위치 수정
GAMZAMANDU Jul 23, 2024
4425ab6
chore : index.js의 글자 margin -> padding
GAMZAMANDU Jul 23, 2024
984ac89
chore : html에 있는 svg, img로 변경
GAMZAMANDU Jul 23, 2024
b15f170
chore : JSON 원상복구
GAMZAMANDU Jul 23, 2024
f63187b
style : css 줄바꿈 삭제
GAMZAMANDU Jul 23, 2024
9abf2ae
chore : favicon 파일경로 수정
GAMZAMANDU Jul 23, 2024
cc62ed3
chore : br태그 삭제
GAMZAMANDU Jul 23, 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.
Binary file added assets/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions assets/LOGO.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/apple.svg
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/bicycle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/blackApple.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/blackGoogleplay.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions assets/blog.svg
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/daagn-favicon.ico
Binary file not shown.
15 changes: 15 additions & 0 deletions assets/dropdown.svg
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/earing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions assets/facebook.svg
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/fleamarket.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions assets/global.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/googlePlay.svg
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/headphone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions assets/instagram.svg
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/ipad.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/laptop.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/phone.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/rabbit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions assets/youtube.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 19 additions & 31 deletions data.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,51 +14,39 @@
},
{
"id": 3,
"img": "",
"name": "",
"address": ""
"img": "./assets/laptop.png",
"name": "중고 맥북",
"address": "서울 강남구 삼성동"
},
{
"id": 4,
"img": "",
"name": "",
"address": ""
"img": "./assets/phone.png",
"name": "스마트폰",
"address": "서울 종로구 종로1가"
},
{
"id": 5,
"img": "",
"name": "",
"address": ""
"img": "./assets/headphone.png",
"name": "헤드폰",
"address": "대구 중구 동성로"
},
{
"id": 6,
"img": "",
"name": "",
"address": ""
"img": "./assets/ipad.png",
"name": "아이패드",
"address": "부산 해운대구"
},
{
"id": 7,
"img": "",
"name": "",
"address": ""
"img": "./assets/earing.png",
"name": "귀걸이",
"address": "인천 남동구 구월동"
},
{
"id": 8,
"img": "",
"name": "",
"address": ""
},
{
"id": 9,
"img": "",
"name": "",
"address": ""
},
{
"id": 10,
"img": "",
"name": "",
"address": ""
"img": "./assets/bicycle.png",
"name": "산악 자전거",
"address": "대전 서구 둔산동"
}
]
}
}
9 changes: 0 additions & 9 deletions mission/index.html

This file was deleted.

53 changes: 53 additions & 0 deletions mission/script.js
Original file line number Diff line number Diff line change
@@ -1 +1,54 @@
// 화이팅..

//JSON 살포 코드
const url = '/data.json';


const div = document.querySelector('#card-wrap');

async function fetchJsonFile() {
const response = await fetch(url);
const data = await response.json();

data.data.map((dataa)=>{
div.innerHTML += `<card-comp
title="${dataa.name}"
price="20000원"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

저희가 미리 만들어둔 data.json을 이용해 미션을 완수해주세요ㅠㅠ

region-name="${dataa.address}"
imgSrc="../.${dataa.img}">
</card-comp>`;
});

}

fetchJsonFile();

//keywords 살포 코드
const keywordList = document.querySelector('#keywords-list');
const keywords = ['알바','자전거','나눔','최강야구','한화','프리퀀시','에어컨','선풍기','제습기','삼성라이온즈'];

keywords.forEach(element => {
keywordList.innerHTML += `<keyword-comp text="${element}"></keyword-comp>`;
});


//footer INFO살포 코드
const footerTopKeyword = document.getElementById('footer-top-keyword');
const footerKeywordList = [
["중고거래", "동네업체", "당근알바", "부동산", "중고차 직거래"],
["당근비지니스", "채팅하기"],
["자주 묻는 질문", "회사 소개", "인재 채용"]
];


footerKeywordList.forEach(category => {
const ul = document.createElement('ul');

category.forEach(item => {
const keywordComp = document.createElement('keyword-comp');
keywordComp.setAttribute('text', item);
ul.appendChild(keywordComp);
});

footerTopKeyword.appendChild(ul);
});
91 changes: 91 additions & 0 deletions mission/static/article-list.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
main {
margin-top: 64px;
}

#fleamarket-article-list {
padding-top: 64px;
}

#fleamarket-article-list > h1 {
font-size: 32px;
line-height: 43.2px;
text-align: center;
margin-bottom: 40px;
}

#card-wrap {
width: 757px;
margin: 0px auto;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}

.card {
margin-bottom: 56px;
}

.card > a {
text-decoration: none;
}

.card-photo {
width: 223px;
height: 223px;
}

.card-photo > img {
width: 100%;
height: 100%;
border-radius: 12px;
border: 1px solid #D3D4D5;
background-color: #F8F9FA;
box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.15);
}


.card-desc {
margin-top: 12px;
}

.card-title {
margin-bottom: 4px;
color: #212529;
font-size: 16px;
line-height: 1.5;
font-weight: normal;
letter-spacing: -0.02px;
}

.card-price {
margin-bottom: 4px;
color: rgb(33, 37, 41);
font-size: 15px;
font-weight: 700;
line-height: 1.5;
}

.card-region-name {
margin-bottom: 4px;
color: #212529;
font-size: 13px;
line-height: 1.5;
}

.card-counts{
color: #868e96;
font-size: 13px;
}

.a-black-bold {
font-size: 16px;
font-weight:600;
line-height: 1.5;
letter-spacing: -0.3px;
color: rgb(33, 37, 41);
}

#article-list-more {
padding-bottom: 80px;
text-align: center;
}
15 changes: 15 additions & 0 deletions mission/static/component/card.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<article class="card">
<a href="">
<div class="card-photo">
<img src="" alt="" />
</div>
<div class="card-desc">
<h2 class="card-title"></h2>
<p class="card-price"></p>
<p class="card-region-name"></p>
<div class="card-counts">
<span> 관심 100 </span> ∙ <span> 채팅 100 </span>
</div>
</div>
</a>
</article>
Loading