diff --git a/react/todo-app/src/App.css b/react/todo-app/src/App.css index 29c03ffa..e69de29b 100644 --- a/react/todo-app/src/App.css +++ b/react/todo-app/src/App.css @@ -1,12 +0,0 @@ -.container { - margin: auto; - max-width: 600px; -} - -.todoBlock { - padding: 30px; - margin-top: 50px; - background-color: #fff; - border-radius: 10px; - box-shadow: -9px 17px 13px rgb(0 0 0 / 16%); -} diff --git a/react/todo-app/src/App.js b/react/todo-app/src/App.js index fe653743..d1b3a804 100644 --- a/react/todo-app/src/App.js +++ b/react/todo-app/src/App.js @@ -21,9 +21,9 @@ export default function App() { }; return ( -
-
-
+
+
+

할 일 목록

diff --git a/react/todo-app/src/components/Form.js b/react/todo-app/src/components/Form.js index 111bae6c..104ad645 100644 --- a/react/todo-app/src/components/Form.js +++ b/react/todo-app/src/components/Form.js @@ -7,20 +7,19 @@ export default function Form({ value, setValue, handleSubmit }) { return (
-
+
diff --git a/react/todo-app/src/components/List.js b/react/todo-app/src/components/List.js index 238d5224..937c4da6 100644 --- a/react/todo-app/src/components/List.js +++ b/react/todo-app/src/components/List.js @@ -1,23 +1,6 @@ import React from "react"; export default function List({ todoData, setTodoData }) { - const btnStyle = { - color: "#fff", - border: "none", - padding: "5px 9px", - borderRadius: "50%", - cursor: "pointer", - float: "right", - }; - - const getStyle = (completed) => { - return { - padding: "10px", - borderBottom: "1px #ccc dotted", - textDecoration: completed ? "line-through" : "none", - }; - }; - const handleClick = (id) => { let newTodoData = todoData.filter((data) => data.id !== id); setTodoData(newTodoData); @@ -37,16 +20,27 @@ export default function List({ todoData, setTodoData }) { return (
{todoData.map((data) => ( -
- handleCompleteChange(data.id)} - /> - {data.title} - +
+
+
+ handleCompleteChange(data.id)} + />{" "} + + {data.title} + +
+
+ +
+
))}
diff --git a/react/todo-app/src/index.css b/react/todo-app/src/index.css index 20db07de..b5c61c95 100644 --- a/react/todo-app/src/index.css +++ b/react/todo-app/src/index.css @@ -1,7 +1,3 @@ @tailwind base; @tailwind components; @tailwind utilities; - -body { - background-color: aliceblue; -}