-
Notifications
You must be signed in to change notification settings - Fork 39
[윤진우] Sprint5 #175
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
Merged
GANGYIKIM
merged 45 commits into
codeit-bootcamp-frontend:React-윤진우
from
Yun-Jinwoo:React-윤진우-sprint5
Apr 15, 2025
The head ref may contain hidden characters: "React-\uC724\uC9C4\uC6B0-sprint5"
Merged
[윤진우] Sprint5 #175
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
359dc7c
♻️ refactor: CRA 제거 후 Vite 프로젝트 세팅
Yun-Jinwoo b0c61d4
✨ feat: 기본 페이지 컴포넌트 생성 (Home, Login, Market, Community, AddItem)
Yun-Jinwoo a30c4bf
✨ feat: 라우터로 페이지 연결 (Home, Login, Market, Community, AddItem)
Yun-Jinwoo d19ea64
✨ feat: 유효하지 않은 경로에 대한 NotFound 페이지 추가
Yun-Jinwoo 3dcd2f2
🎨 style: 공통 스타일을 위한 base.css 추가
Yun-Jinwoo d467749
✨ feat: Header 컴포넌트 생성
Yun-Jinwoo e815dca
🎨 style: Header 컴포넌트 스타일링
Yun-Jinwoo ac8d29b
✨ feat: Home, Market 페이지에 Header 컴포넌트 추가
Yun-Jinwoo aa1c4d2
♻️ refactor: 페이지들을 폴더 기반 컴포넌트 구조로 리팩토링
Yun-Jinwoo 981c34d
✨ feat: Item 컴포넌트 생성
Yun-Jinwoo 039562c
🎨 style: Item 컴포넌트 스타일링
Yun-Jinwoo ca76d3e
✨ feat: 상품 데이터를 가져오기 위한 api.js 추가
Yun-Jinwoo fafca04
✨ feat: BestItems 컴포넌트 생성
Yun-Jinwoo 199e67d
✨ feat: BestItems에서 좋아요 상위 4개 상품 표시
Yun-Jinwoo e72371f
🎨 style: BestItems 컴포넌트 스타일링
Yun-Jinwoo 9693892
✨ feat: Market 페이지에 BestItems 컴포넌트 추가
Yun-Jinwoo fa03c3d
📁 chore: Item과 BestItems 컴포넌트를 components 폴더로 이동
Yun-Jinwoo 1201806
✨ feat: AllItems 컴포넌트 생성
Yun-Jinwoo 644886a
✨ feat: 상품 이미지가 없을 경우 대체 이미지 표시
Yun-Jinwoo bb1439c
✨ feat: 동적 스타일링 위해 Item 컴포넌트에 size prop 추가
Yun-Jinwoo e937fff
🎨 style: AllItems 컴포넌트 스타일링
Yun-Jinwoo c9fbc4d
✨ feat: Pagination 컴포넌트 생성
Yun-Jinwoo 7724930
🎨 style: Pagination 컴포넌트 스타일링
Yun-Jinwoo 0da4a3e
✨ feat: Header에서 활성화된 페이지에 강조 표시
Yun-Jinwoo e76384a
🎨 style: Pagination 페이지 버튼의 텍스트 색상 변경
Yun-Jinwoo 32d5ed0
✨ feat: Community 페이지에 Header 컴포넌트 추가
Yun-Jinwoo fbf9f1f
✨ feat: 페이지 이동 기능 추가
Yun-Jinwoo 31a1b3a
✨ feat: 페이지 이동시 상품 업데이트
Yun-Jinwoo 5a6b0a0
🎨 style: Item 컴포넌트 스타일 변경
Yun-Jinwoo 91ac392
✨ feat: AllItems 정렬 기능 추가
Yun-Jinwoo bd30754
🐛 fix: 페이지가 6 이상일 때, 정렬을 변경하면 페이지가 돌아오지 않는 오류 수정
Yun-Jinwoo 2c13aa4
✨ feat: 상품 등록하기 버튼 클릭시 additem 페이지로 이동
Yun-Jinwoo 12629b0
✨ feat: 상품 검색 기능 추가
Yun-Jinwoo d28c8e7
✨ feat: Header 컴포넌트 반응형 레이아웃 구현
Yun-Jinwoo 7dfe1e8
✨ feat: 반응형 구현을 위해 Market 컴포넌트에 deviceType 추가
Yun-Jinwoo 0e2935a
🐛 fix: 가로스크롤이 생기는 문제 해결
Yun-Jinwoo 3f90651
✨ feat: BestItems 컴포넌트 반응형 스타일 적용
Yun-Jinwoo 7146151
✨ feat: AllItems 컴포넌트 반응형 스타일 적용 - 태블릿
Yun-Jinwoo 14cf950
🐛 fix: BestItems 컴포넌트 여백 수정
Yun-Jinwoo a471ac4
✨ feat: AllItems 컴포넌트 반응형 스타일 적용 - 모바일
Yun-Jinwoo c6ef7a8
🎨 style: 상품 검색창 활성화시 테두리 스타일 적용
Yun-Jinwoo edc623e
📝 docs: PR 내용 작성
Yun-Jinwoo 3d31e3a
✨ feat: 페이지 제목 수정 및 파비콘 추가
Yun-Jinwoo de6a82e
♻️ refactor: 모바일용 로고 처리 방식 변경
Yun-Jinwoo 41c49fe
📝 docs: PR 내용 추가
Yun-Jinwoo 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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,23 +1,24 @@ | ||
| # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
|
||
| # dependencies | ||
| /node_modules | ||
| /.pnp | ||
| .pnp.js | ||
|
|
||
| # testing | ||
| /coverage | ||
|
|
||
| # production | ||
| /build | ||
|
|
||
| # misc | ||
| .DS_Store | ||
| .env.local | ||
| .env.development.local | ||
| .env.test.local | ||
| .env.production.local | ||
|
|
||
| # Logs | ||
| logs | ||
| *.log | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| pnpm-debug.log* | ||
| lerna-debug.log* | ||
|
|
||
| node_modules | ||
| dist | ||
| dist-ssr | ||
| *.local | ||
|
|
||
| # Editor directories and files | ||
| .vscode/* | ||
| !.vscode/extensions.json | ||
| .idea | ||
| .DS_Store | ||
| *.suo | ||
| *.ntvs* | ||
| *.njsproj | ||
| *.sln | ||
| *.sw? |
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,70 +1,36 @@ | ||
| # Getting Started with Create React App | ||
| # Getting Started with Vite + React | ||
|
|
||
| This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). | ||
| This project was bootstrapped with [Vite](https://vitejs.dev/). | ||
|
|
||
| ## Available Scripts | ||
| ## 🚀 Available Scripts | ||
|
|
||
| In the project directory, you can run: | ||
|
|
||
| ### `npm start` | ||
| ### `npm run dev` | ||
|
|
||
| Runs the app in the development mode.\ | ||
| Open [http://localhost:3000](http://localhost:3000) to view it in your browser. | ||
| Runs the app in development mode. | ||
| Open [http://localhost:5173](http://localhost:5173) to view it in your browser. | ||
|
|
||
| The page will reload when you make changes.\ | ||
| The page will reload when you make changes. | ||
| You may also see any lint errors in the console. | ||
|
|
||
| ### `npm test` | ||
|
|
||
| Launches the test runner in the interactive watch mode.\ | ||
| See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. | ||
|
|
||
| ### `npm run build` | ||
|
|
||
| Builds the app for production to the `build` folder.\ | ||
| It correctly bundles React in production mode and optimizes the build for the best performance. | ||
|
|
||
| The build is minified and the filenames include the hashes.\ | ||
| Your app is ready to be deployed! | ||
|
|
||
| See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. | ||
|
|
||
| ### `npm run eject` | ||
|
|
||
| **Note: this is a one-way operation. Once you `eject`, you can't go back!** | ||
|
|
||
| If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. | ||
|
|
||
| Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own. | ||
|
|
||
| You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it. | ||
|
|
||
| ## Learn More | ||
|
|
||
| You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). | ||
|
|
||
| To learn React, check out the [React documentation](https://reactjs.org/). | ||
|
|
||
| ### Code Splitting | ||
|
|
||
| This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) | ||
|
|
||
| ### Analyzing the Bundle Size | ||
|
|
||
| This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) | ||
|
|
||
| ### Making a Progressive Web App | ||
|
|
||
| This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) | ||
| Builds the app for production to the `dist` folder. | ||
| It optimizes the build for the best performance. | ||
|
|
||
| ### Advanced Configuration | ||
| ### `npm run preview` | ||
|
|
||
| This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) | ||
| Serves the production build locally. | ||
| Useful for testing the final output before deployment. | ||
|
|
||
| ### Deployment | ||
| ## 📚 Learn More | ||
|
|
||
| This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) | ||
| To learn more about Vite, check out the [Vite documentation](https://vitejs.dev/). | ||
| To learn React, check out the [React documentation](https://react.dev/). | ||
|
|
||
| ### `npm run build` fails to minify | ||
| ## 🛠 Additional Configurations | ||
|
|
||
| This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) | ||
| - **Environment Variables:** Use `.env` files for environment-specific settings. | ||
| - **TypeScript Support:** Vite supports TypeScript out of the box. | ||
| - **ESLint & Prettier:** Configure linting and formatting for better code quality. |
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,34 @@ | ||
| import js from "@eslint/js"; | ||
| import globals from "globals"; | ||
| import reactHooks from "eslint-plugin-react-hooks"; | ||
| import reactRefresh from "eslint-plugin-react-refresh"; | ||
|
|
||
| export default [ | ||
| { ignores: ["dist"] }, | ||
| { | ||
| files: ["**/*.{js,jsx}"], | ||
| languageOptions: { | ||
| ecmaVersion: 2020, | ||
| globals: globals.browser, | ||
| parserOptions: { | ||
| ecmaVersion: "latest", | ||
| ecmaFeatures: { jsx: true }, | ||
| sourceType: "module", | ||
| }, | ||
| }, | ||
| plugins: { | ||
| "react-hooks": reactHooks, | ||
| "react-refresh": reactRefresh, | ||
| }, | ||
| rules: { | ||
| ...js.configs.recommended.rules, | ||
| ...reactHooks.configs.recommended.rules, | ||
| "no-unused-vars": "off", | ||
| "react/prop-types": "off", | ||
| "react-refresh/only-export-components": [ | ||
| "warn", | ||
| { allowConstantExport: true }, | ||
| ], | ||
| }, | ||
| }, | ||
| ]; |
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,19 @@ | ||||||
| <!DOCTYPE html> | ||||||
| <html lang="en"> | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❗️ 수정요청
Suggested change
|
||||||
| <head> | ||||||
| <meta charset="UTF-8" /> | ||||||
| <link rel="icon" href="src/assets/images/favicon.ico" type="image/x-icon" /> | ||||||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||||||
| <link | ||||||
| rel="stylesheet" | ||||||
| as="style" | ||||||
| crossorigin | ||||||
| href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/static/pretendard.min.css" | ||||||
| /> | ||||||
| <title>판다마켓</title> | ||||||
| </head> | ||||||
| <body> | ||||||
| <div id="root"></div> | ||||||
| <script type="module" src="/src/main.jsx"></script> | ||||||
| </body> | ||||||
| </html> | ||||||
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.
💊 제안
3번째 미션에서 추가하셨던 메타 태그도 추가하시면 더 좋을 것 같아요!