-
Notifications
You must be signed in to change notification settings - Fork 4
[당근마켓 클론코딩] 이정혁 미션 제출합니다. #3
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
Open
GAMZAMANDU
wants to merge
24
commits into
insertcourse24:main
Choose a base branch
from
GAMZAMANDU:gamzamandu
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
1e76f8e
first commit
GAMZAMANDU 10a90c2
chore : index.html의 header 제작
GAMZAMANDU 97ce9ba
chore : index.html의 section 제작
GAMZAMANDU b5e6771
style : css 정돈
GAMZAMANDU f067487
chore : 탭별 폴더 정리
GAMZAMANDU 39280a9
chore : joongo.html의 상단섹션 추가
GAMZAMANDU ffa4c91
chore : acticle list의 CSS 완성
GAMZAMANDU f4cf7f8
refactor : acticle component add
GAMZAMANDU 8c22d08
chore : favicon add
GAMZAMANDU bf0cc2b
feat: acticle JSON 데이터 적용
GAMZAMANDU b43e9b1
chore : header로 fixed수정, keywords-list component화
GAMZAMANDU b26864a
chore : index.html section의 height가 비정상적이던 문제 일시적 해결
GAMZAMANDU 5d58709
chore : 하단 keywords 오타 수정 및 css 변경
GAMZAMANDU 36ce8e7
chore : footer-top 제작
GAMZAMANDU 5fa1c2d
chore : footer 완성
GAMZAMANDU 2d4a31a
style : 간단한 CSS 엔터 넣기
GAMZAMANDU c602b91
chore : JSON 데이터 업데이트
GAMZAMANDU 8c03680
chore : 파일위치 수정
GAMZAMANDU 4425ab6
chore : index.js의 글자 margin -> padding
GAMZAMANDU 984ac89
chore : html에 있는 svg, img로 변경
GAMZAMANDU b15f170
chore : JSON 원상복구
GAMZAMANDU f63187b
style : css 줄바꿈 삭제
GAMZAMANDU 9abf2ae
chore : favicon 파일경로 수정
GAMZAMANDU cc62ed3
chore : br태그 삭제
GAMZAMANDU File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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원" | ||
| 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); | ||
| }); | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
저희가 미리 만들어둔 data.json을 이용해 미션을 완수해주세요ㅠㅠ