-
Notifications
You must be signed in to change notification settings - Fork 24
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
[정유석] sprint6 #99
Merged
coldplay126
merged 29 commits into
codeit-sprint-fullstack:react-정유석
from
yousuk88:react-정유석-sprint6
Nov 11, 2024
The head ref may contain hidden characters: "react-\uC815\uC720\uC11D-sprint6"
Merged
[정유석] sprint6 #99
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
df1cf04
add: 스프린트5 반응형 미디어 쿼리 적용
yousuk88 35d8d51
fix: 스프린트5 반응형 미디어 쿼리 수정
yousuk88 92f09bb
fix: console.log 주석 처리, 리액트 문법 오류 수정
yousuk88 d51d36e
add: router, link
yousuk88 5c8cdc9
fix: static assets 경로 수정
yousuk88 39e40f1
fix: 일부 경로오류 수정
yousuk88 4e5e809
add: dynamic button color change
yousuk88 c835006
fix: ProductList flex 속성 수정
yousuk88 e5a667d
add: 랜딩페이지 컴포넌트 파일 추가
yousuk88 36e439f
fix: Nav 뒤 배경 추가
yousuk88 a5b2d09
add: 랜딩페이지 이미지파일 추가
yousuk88 04cdd64
fix: 클래스명 underbar로 수정
yousuk88 99113c4
add: 랜딩페이지 HeroSection
yousuk88 1bf810e
add: 랜딩페이지 PopularSection
yousuk88 15cf2ac
add: 랜딩페이지 SearchSection
yousuk88 f993cc7
add: 랜딩페이지 RegisterProduct
yousuk88 45dc50b
add: 랜딩페이지 WeAreSection
yousuk88 8259585
fix: ProductList 미디어 쿼리 수정
yousuk88 691597f
add: Registration page
yousuk88 c8aac3e
feat: Registration page useState, handleChange
yousuk88 baaf77d
style: 기본 랜더링 이미지 수정
yousuk88 432323c
add: 로컬 서버로부터 호출 api
yousuk88 e2228a0
add: 로컬 서버로부터 호출 api 적용
yousuk88 6c78fd9
fix: 검색기능 수정
yousuk88 1403a2b
add: 로컬 서버로부터 호출 api 적용
yousuk88 bc0a7c9
fix: offse 기반 페이지네이션으로 수정
yousuk88 5675775
del: 수정 전 백업 삭제
yousuk88 b0e1e9e
fix: pagination 오류 수정
yousuk88 65555b0
add: 등록하기 기능 및 유효성 검사
yousuk88 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
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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.
File renamed without changes
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.
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
This file contains 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 contains 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 contains 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,42 @@ | ||
const BASE_URL = 'http://localhost:8000/api/products'; | ||
|
||
export async function getProductList(offset, limit, orderBy, keyword) { | ||
const params = new URLSearchParams({ | ||
offset, | ||
limit, | ||
orderBy, | ||
keyword, | ||
}); | ||
|
||
const url = `${BASE_URL}?${params}`; | ||
|
||
try { | ||
const response = await fetch(url); | ||
|
||
if (!response.ok) { | ||
throw new Error(`지정 에러: ${response.status} - ${response.statusText}`); // 내가 지정한 오류 핸들링 | ||
} | ||
|
||
const data = await response.json(); | ||
return data; | ||
|
||
} catch (error) { | ||
console.error("기타 에러:", error); // 서버 등 예측하지 못한 에러 위해 | ||
} | ||
} | ||
|
||
export async function registerProduct(productData) { | ||
try { | ||
const response = await fetch(BASE_URL, { | ||
method: 'POST', | ||
headers: { 'Content-Type': 'application/json' }, | ||
body: JSON.stringify(productData), | ||
}); | ||
if (!response.ok) { | ||
throw new Error(`등록 실패: ${response.status}`); | ||
} | ||
return await response.json(); | ||
} catch (error) { | ||
console.error("상품 등록 중 오류:", error); | ||
} | ||
} |
This file contains 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
Oops, something went wrong.
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.
CSS in JS 방식으로 css를 시도해 보신걸까요? 리터털 css가 작성되어 있진 않았던 것 같아서요. 공부하시면서 다양한 시도는 저는 항상 좋다고 생각합니다!
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.
module css
styled-components
이 두개 전부 써보고 싶어서 추가했는데
styled-components 가 어려워서 아직 모듈css로만 작업하고 있습니다.
다만 나중에 styled-components 도 시도해보려고 남겨뒀습니다 ㅎㅎ