Skip to content

Commit

Permalink
피드백 반영 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ch9968 committed May 8, 2024
1 parent d2c8b47 commit 35b00c3
Show file tree
Hide file tree
Showing 22 changed files with 167 additions and 354 deletions.
4 changes: 3 additions & 1 deletion week05/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

73 changes: 70 additions & 3 deletions week07/my-todo-list/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,70 @@
Header.js, TodoAdd.js, TodoItem.js, TodoList.js 에 React.memo() 추가
TodoItem.js의 deleteTodo(), completeTodo()에 useCallback() 추가
TodoList.js의 TodoItems에 useMemo() 추가
# 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)
88 changes: 15 additions & 73 deletions week07/my-todo-list/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion week07/my-todo-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"@testing-library/user-event": "^13.5.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.23.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
},
Expand Down
Binary file removed week07/my-todo-list/public/favicon.ico
Binary file not shown.
Binary file removed week07/my-todo-list/public/logo192.png
Binary file not shown.
Binary file removed week07/my-todo-list/public/logo512.png
Binary file not shown.
25 changes: 0 additions & 25 deletions week07/my-todo-list/public/manifest.json

This file was deleted.

3 changes: 0 additions & 3 deletions week07/my-todo-list/public/robots.txt

This file was deleted.

90 changes: 3 additions & 87 deletions week07/my-todo-list/src/App.css
Original file line number Diff line number Diff line change
@@ -1,90 +1,6 @@
html,
body,
#root {
width: 100%;
height: 100%;
.todo-item input[type="checkbox"]:checked ~ span {
text-decoration: line-through;
}

.App {
height: 100%;
background: #f3d4ea;
text-align: center;
color: #011638;
display: grid;
align-content: center;
justify-items: center;
grid-template-rows: 100px 100px 1fr 100px;
}

.todo-list {
align-self: center;
width: 60%;
border-radius: 5px;
background: white;
box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.3);
padding: 8px;
max-height: 60%;
overflow-y: auto;
}

.todo-item {
width: 90%;
padding: 8px;
border-bottom: 1px solid #011638;
}

.checkbox {
float: left;
cursor: pointer;
}

.text {
float: left;
margin-left: 8px;
font-size: 18px;
}

.button {
float: right;
border: none;
background: white;
color: red;
font-size: 16px;
font-weight: 800;
cursor: pointer;
transition: all 0.3s;
}

.button:hover {
transform: scale(1.2);
transition: all 0.3s;
}

.todo-text {
padding: 8px;
}

.submit {
border-radius: 50%;
height: 40px;
width: 40px;
border: 3px solid #011638;
color: #011638;
cursor: pointer;
font-weight: 800;
font-size: 20px;
margin-left: 8px;
transition: all 0.2s;
}

.submit:hover {
transform: scale(1.1);
transition: all 0.2s;
border: 3px solid green;
color: green;
font-size: 22px;
}
.state {
height: 40px;
margin: 20px;
list-style: none;
}
Loading

0 comments on commit 35b00c3

Please sign in to comment.