Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
b2e37bd
reset
hanseulhee Oct 10, 2023
6f8bbb0
Merge branch 'codeit-bootcamp-frontend:main' into main
hanseulhee Oct 10, 2023
e11e25f
fix: 머지 후 브랜치 삭제 github action 수정
hanseulhee Oct 10, 2023
212e864
env: workflows 폴더로 이동
hanseulhee Oct 10, 2023
4dc5dd0
Merge pull request #237 from hanseulhee/fix-github-actions
withyj-codeit Nov 6, 2023
c0346f0
:tada: 프로젝트 초기 설정
CIrcle0616 Apr 5, 2025
d0f019a
:art: 파일명 케밥케이스로 변경
CIrcle0616 Apr 5, 2025
99e85a4
:bug: 파일을 수정하면 git에서 2파일 뜨는 버그 발생
CIrcle0616 Apr 5, 2025
b84aadb
:bug: 파일을 수정하면 git에서 2파일 뜨는 버그 발생
CIrcle0616 Apr 5, 2025
6603927
:sparkles: alias를 추가해서 @로 루트 dir로 이동 기능 추가
CIrcle0616 Apr 5, 2025
a10cee5
Revert ":sparkles: alias를 추가해서 @로 루트 dir로 이동 기능 추가"
CIrcle0616 Apr 5, 2025
2edb518
:wrench: path 라이브러리를 사용해서 @에 ./src가 대응되도록 alias 지정
CIrcle0616 Apr 5, 2025
71dce24
:bento: home관련 이미지 추가
CIrcle0616 Apr 8, 2025
bc895e6
:bento: 이미지 폴더 통합
CIrcle0616 Apr 8, 2025
226c444
:wrench: @를 이용한 절대경로 path alias 설정
CIrcle0616 Apr 8, 2025
e1b36a0
:package: react-router-dom 라이브러리 설치
CIrcle0616 Apr 12, 2025
652ee83
:sparkles: 기본적인 라우터 설정
CIrcle0616 Apr 12, 2025
e5f92e2
:art: 로고 아이콘 및 타이포 SVG 파일 추가
CIrcle0616 Apr 12, 2025
bad0547
:sparkles: 홈 페이지에 배너 기능 추가 및 HomeFeature 컴포넌트 생성
CIrcle0616 Apr 12, 2025
79ee605
:art: HTML 문서의 DOCTYPE 수정 및 제목을 '판다마켓'으로 변경, pretendard 웹폰트 연결
CIrcle0616 Apr 12, 2025
1e58207
:art: reset.css 파일 추가 및 main.tsx에서 리셋 스타일 적용
CIrcle0616 Apr 12, 2025
b62f1fb
:art: index.css 색상 변수 추가, 폰트 변수 추가
CIrcle0616 Apr 12, 2025
b2ff8e9
:art: 모든 요소에 box-sizing: border-box 스타일 추가
CIrcle0616 Apr 12, 2025
009a8c5
:art: 배너 데이터 인터페이스 및 초기 데이터 추가
CIrcle0616 Apr 13, 2025
eb82e06
:art: 소셜 미디어 아이콘 이미지 추가 (Facebook, Instagram, Twitter, YouTube)
CIrcle0616 Apr 15, 2025
1960788
:recycle: useMediaQuery 훅 추가하여 미디어 쿼리 상태 관리 기능 구현
CIrcle0616 Apr 15, 2025
d0b4cc2
:sparkles: 홈 페이지 컴포넌트 추가 (헤더, 메인, 푸터)
CIrcle0616 Apr 15, 2025
cebcdb1
:lipstick: 폰트 스타일을 위한 CSS 파일 추가 및 불필요한 변수 제거
CIrcle0616 Apr 15, 2025
e8607df
:bug: 홈 컴포넌트 경로 수정
CIrcle0616 Apr 15, 2025
46b01b6
:sparkles: 로고 컴포넌트를 공통 컴포넌트로 빼고 및 로그인 버튼 컴포넌트 분리
CIrcle0616 Apr 15, 2025
89330d6
:sparkles: 로그인 및 회원가입 페이지 컴포넌트로 분리
CIrcle0616 Apr 16, 2025
7f5ccae
:sparkles: 입력 컴포넌트 그룹, 레이블 및 필드 추가(복합 컴포넌트 패턴)
CIrcle0616 Apr 16, 2025
245f5d7
:sparkles: 간편 로그인 컴포넌트 추가
CIrcle0616 Apr 16, 2025
982dc46
:sparkles: 제출 버튼 컴포넌트 및 스타일 추가
CIrcle0616 Apr 16, 2025
4b85a9a
:sparkles: 로그인 페이지 컴포넌트 및 스타일 추가
CIrcle0616 Apr 16, 2025
97317c5
:sparkles: 회원가입 페이지 컴포넌트 및 스타일 추가
CIrcle0616 Apr 16, 2025
3a775f7
:sparkles: SVG 아이콘 추가: 화살표, 빈 하트, 꽉 찬 하트, 프로필, 검색
CIrcle0616 Apr 19, 2025
bf6007e
:sparkles: 제품 데이터 가져오기 API 추가
CIrcle0616 Apr 19, 2025
683b762
:sparkles: 서버 URL 상수 추가
CIrcle0616 Apr 19, 2025
14b4be8
:sparkles: 제품 요소 컴포넌트 및 스타일 추가
CIrcle0616 Apr 19, 2025
801c0be
:sparkles: 베스트 상품 컴포넌트 및 스타일 추가
CIrcle0616 Apr 19, 2025
10d7d05
:sparkles: 전체 상품 페이지 컴포넌트 및 스타일 추가
CIrcle0616 Apr 19, 2025
b45405c
:sparkles: 페이지네이션 컴포넌트 및 스타일 추가
CIrcle0616 Apr 19, 2025
b14981b
:sparkles: 드롭다운 컴포넌트 및 스타일 추가
CIrcle0616 Apr 19, 2025
00a6931
:sparkles: 입력 검증 로직 추가 및 오류 상태 스타일링 개선
CIrcle0616 Apr 19, 2025
b80ef2c
:sparkles: 아이템 헤더 컴포넌트 및 스타일 추가
CIrcle0616 Apr 19, 2025
b78ebf6
:sparkles: 아이템 페이지 라우트 추가
CIrcle0616 Apr 19, 2025
544ad46
:sparkles: feat: 페이지네이션 및 제품 목록 반응형 페이지 크기 조정 기능 추가
CIrcle0616 May 15, 2025
4aea6bc
Merge branch 'React-박원현' into React-박원현-sprint5
CIrcle0616 May 15, 2025
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
41 changes: 21 additions & 20 deletions .gitignore
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?
124 changes: 54 additions & 70 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,70 +1,54 @@
# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.

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)

### Advanced Configuration

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)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `npm run build` fails to minify

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)
# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

```js
export default tseslint.config({
extends: [
// Remove ...tseslint.configs.recommended and replace with this
...tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
...tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
...tseslint.configs.stylisticTypeChecked,
],
languageOptions: {
// other options...
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
},
})
```

You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:

```js
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default tseslint.config({
plugins: {
// Add the react-x and react-dom plugins
'react-x': reactX,
'react-dom': reactDom,
},
rules: {
// other rules...
// Enable its recommended typescript rules
...reactX.configs['recommended-typescript'].rules,
...reactDom.configs.recommended.rules,
},
})
```
28 changes: 28 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'

export default tseslint.config(
{ ignores: ['dist'] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ['**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
},
)
19 changes: 19 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link
rel="stylesheet"
as="style"
crossorigin
href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/variable/pretendardvariable.min.css"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>판다마켓</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
55 changes: 24 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,31 @@
{
"name": "1-weekly-mission",
"version": "0.1.0",
"name": "14-sprint-mission",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
},
"version": "0.0.0",
"type": "module",
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
"dependencies": {
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-router-dom": "^7.5.0"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
"devDependencies": {
"@eslint/js": "^9.21.0",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@vitejs/plugin-react": "^4.3.4",
"eslint": "^9.21.0",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-react-refresh": "^0.4.19",
"globals": "^15.15.0",
"typescript": "~5.7.2",
"typescript-eslint": "^8.24.1",
"vite": "^6.2.0",
"vite-tsconfig-paths": "^5.1.4"
}
}
Loading
Loading