Skip to content
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

[3주차 기본/심화/공유 과제] React 연습 #6

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
27b9b23
init: 프로젝트 초기 세팅
daahyunk Nov 4, 2024
b3afe6b
feat: 스타일 설정 파일 추가
daahyunk Nov 5, 2024
8e54a96
feat: 헤더 컴포넌트 구현
daahyunk Nov 5, 2024
9732540
refactor: 폰트 이름 Aftika로 변경
daahyunk Nov 5, 2024
6e5b69e
feat: fisherYatesShuffle 구현
daahyunk Nov 5, 2024
a3fe61f
feat: GameBoard 컴포넌트 구현
daahyunk Nov 5, 2024
1b9385e
feat: NextNumber 컴포넌트 구현
daahyunk Nov 5, 2024
cc72326
feat: 타이머 구현
daahyunk Nov 5, 2024
7032dd7
feat: 타이머 구현
daahyunk Nov 5, 2024
c72beaf
feat: 타이머 구현
daahyunk Nov 5, 2024
3b3a519
feat: GameEndModal 컴포넌트 구현
daahyunk Nov 5, 2024
6390e5b
refactor: 마지막 숫자 클릭했을 떄 함수 종료하게 수정
daahyunk Nov 5, 2024
db3265f
feat: modal-root 추가
daahyunk Nov 5, 2024
ea10750
feat: 게임 초기화 구현
daahyunk Nov 5, 2024
545cb87
refactor: useGameStatus로 커스텀 훅 분리
daahyunk Nov 5, 2024
e90da10
feat: 레벨 초기화 구현
daahyunk Nov 5, 2024
766d3bd
fix: 임시 파일명 변경으로 경로 변경 강제 인식
daahyunk Nov 5, 2024
f0025c6
fix: 경로를 header/Header.jsx로 변경
daahyunk Nov 5, 2024
e499ca9
feat: 레벨 연동 추가
daahyunk Nov 5, 2024
c93f253
feat: 게임 정보 로컬 스토리지에 저장 구현
daahyunk Nov 5, 2024
72425d4
feat: 로컬 스토리지 저장 함수 구현
daahyunk Nov 5, 2024
f4fefae
feat: 셀 클릭 시 스타일 구현
daahyunk Nov 5, 2024
6352bf7
feat: useShuffleNumbers 구현
daahyunk Nov 5, 2024
57688cf
fix: 18 누르면 바로 게임 종료되는 에러 수정
daahyunk Nov 5, 2024
9552c7d
feat: 랭킹 구현
daahyunk Nov 5, 2024
5706afd
fix: 초기에만 숫자 랜덤으로 배열 및 상태에 따른 셀 스타일 수정
daahyunk Nov 7, 2024
3999494
feat: 레벨 기능 추가
daahyunk Nov 7, 2024
d93fa5e
style: 모달 확인 버튼 cursor 속성 추가
daahyunk Nov 7, 2024
37bf8ef
feat: 모달 확인 버튼 호버 효과 추가
daahyunk Nov 7, 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
21 changes: 21 additions & 0 deletions week3/assignment/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
settings: { react: { version: '18.2' } },
plugins: ['react-refresh'],
rules: {
'react/jsx-no-target-blank': 'off',
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
}
24 changes: 24 additions & 0 deletions week3/assignment/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 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?
8 changes: 8 additions & 0 deletions week3/assignment/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# React + 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
14 changes: 14 additions & 0 deletions week3/assignment/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
</head>
<body>
<div id="root"></div>
<div id="modal-root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
Loading