Skip to content

Commit 2586649

Browse files
committed
chore: 환경 구성
1 parent e70649a commit 2586649

16 files changed

+6173
-3
lines changed

.eslintrc.cjs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
root: true,
3+
env: { browser: true, es2020: true },
4+
extends: [
5+
'eslint:recommended',
6+
'plugin:@typescript-eslint/recommended',
7+
'plugin:react-hooks/recommended',
8+
],
9+
ignorePatterns: ['dist', '.eslintrc.cjs'],
10+
parser: '@typescript-eslint/parser',
11+
plugins: ['react-refresh'],
12+
rules: {
13+
'react-refresh/only-export-components': [
14+
'warn',
15+
{ allowConstantExport: true },
16+
],
17+
},
18+
}

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

.idea/.gitignore

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/react-payments.iml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,34 @@
1313
✔️ 다른 라이브러리나 프레임워크 없이 오로지 `React`만으로 상태를 관리하고 컴포넌트를 설계합니다.
1414
✔️ `재사용 가능한 Component`를 직접 작성하고 사용합니다.
1515
✔️ `Controlled` & `Uncontrolled Components`에 입각하여 `Form`을 핸들링합니다.
16+
17+
## 📝 Requirements
18+
19+
### 필수 요구사항
20+
- [ ] 원시적인 형태의 `Primitive UI` 형태의 컴포넌트 작성
21+
- [ ] `Stepper` 기반의 애플리케이션 설계
22+
- [ ] `Storybook` 상호 작용 테스트
23+
- [ ] `Controlled` & `Uncontrolled Components`를 명확하게 구분하거나 선택하여 구현
24+
25+
### 카드 추가
26+
- [ ] <(뒤로가기) 버튼 클릭 시, 카드 목록 페이지로 이동한다.
27+
- [ ] 카드 번호를 입력 받을 수 있다.
28+
- [ ] 카드 번호는 숫자만 입력가능하다.
29+
- [ ] 카드 번호 4자리마다 -가 삽입된다.
30+
- [ ] 카드 번호는 실시간으로 카드 UI에 반영된다.
31+
- [ ] 카드 번호는 앞 8자리만 숫자로 보여지고, 나머지 숫자는 *로 보여진다.
32+
- [ ] 만료일을 입력 받을 수 있다.
33+
- [ ] MM / YY 로 placeholder를 적용한다.
34+
- [ ] 월, 년 사이에 자동으로 /가 삽입된다.
35+
- [ ] 만료일은 실시간으로 카드 UI에 반영된다.
36+
- [ ] 월은 1이상 12이하 숫자여야 한다.
37+
- [ ] 보안코드를 입력 받을 수 있다.
38+
- [ ] 보안코드는 *으로 보여진다.
39+
- [ ] 보안코드는 숫자만 입력가능하다.
40+
- [ ] 카드 비밀번호의 앞 2자리를 입력 받을 수 있다.
41+
- [ ] 카드 비밀번호는 각 폼마다 한자리 숫자만 입력가능하다.
42+
- [ ] 카드 번호 입력 시, *으로 보여진다.
43+
- [ ] 카드 소유자 이름을 입력 받을 수 있다.
44+
- [ ] 이름은 30자리까지 입력할 수 있다.
45+
- [ ] 이름 입력 폼 위에, 현재 입력 자릿수와 최대 입력 자릿수를 실시간으로 보여준다.
46+
- [ ] 카드 추가 완료시 카드 등록 완료 페이지로 이동한다.

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h1>React Clean Code Payments CSS example</h1>
1919
<h2>1️⃣ 카드 추가</h2>
2020
<div class="root">
2121
<div class="app">
22-
<h2 class="page-title">< 카드 추가</h2>
22+
<h2 class="page-title">&lt; 카드 추가</h2>
2323
<div class="card-box">
2424
<div class="empty-card">
2525
<div class="card-top"></div>
@@ -84,7 +84,7 @@ <h2 class="page-title">< 카드 추가</h2>
8484
<h2>2️⃣ 카드 추가 - 카드사 선택</h2>
8585
<div class="root">
8686
<div class="app">
87-
<h2 class="page-title">< 카드 추가</h2>
87+
<h2 class="page-title">&lt; 카드 추가</h2>
8888
<div class="card-box">
8989
<div class="small-card">
9090
<div class="card-top">
@@ -194,7 +194,7 @@ <h2 class="page-title">< 카드 추가</h2>
194194
<h2>3️⃣ 카드 추가 - 입력 완료</h2>
195195
<div class="root">
196196
<div class="app">
197-
<h2 class="page-title">< 카드 추가</h2>
197+
<h2 class="page-title">&lt; 카드 추가</h2>
198198
<div class="card-box">
199199
<div class="small-card">
200200
<div class="card-top">

0 commit comments

Comments
 (0)