Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ import './assets/css/App.css';


function App() {
const [todos, setTodos] = useState(["Go for Eid"])
const [todos] = useState(["Go for Eid"])
return (
<div className="App">
<section>
<h1>Todo App</h1>
<hr />
<Form />
<TodoList mytodos={todos} />
</section>
Expand Down
39 changes: 39 additions & 0 deletions src/assets/css/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
background-color: #f4f4f4;
}

code {
Expand All @@ -16,4 +17,42 @@ code {
form{
width: 500px;
margin: 0 auto;
}
form{
display: flex;
}
button {
color:white;
margin-left:5px;
}
ol{
margin:20px;

}
li{
list-style: none;
margin-right: 10%;
}

div{
/* border:1px solid green; */
width:650px;
height:300px;
margin-top: 10%;
margin-left: 20%;
}

hr{
margin-top: 5%;
}

.App{
margin-top: 5%;
margin-left: 15%;
}
button{
color:#ffffff;
}
form{
margin-top: 5%;
}
3 changes: 2 additions & 1 deletion src/components/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ const Form = (props:any) => {
};
return (
<form onSubmit={Submit}>

<input type="text" onChange={handleChange} className="form-control form-control-sm custom" />
<button type="submit" className="btn btn-info"> Add</button>
<button type="submit" className="btn btn-info btn-sm text-white"> Add</button>
</form>
);
};
Expand Down