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
11 changes: 11 additions & 0 deletions src/components/Form.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.todo__input {
text-align: center;
border-radius: 25px;
border: 0.5px solid #171b36;
padding: 0.75rem;
margin-bottom: 1rem;
width: 500px;
max-width: 80%;
}
form {
}
4 changes: 3 additions & 1 deletion src/components/Form.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useState } from "react";
import "./Form.css";

export default function Form({ tuduItems, setTuduItems }) {
const [inputValue, setInputValue] = useState("");
Expand All @@ -13,6 +14,7 @@ export default function Form({ tuduItems, setTuduItems }) {

return (
<form
className="todo__form"
onSubmit={(event) => {
event.preventDefault();

Expand All @@ -31,7 +33,7 @@ export default function Form({ tuduItems, setTuduItems }) {
value={inputValue}
onChange={(event) => setInputValue(event.target.value)}
type="text"
placeholder="Was willst du dun?"
placeholder="Was willst du tun?"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Da bin ich mir nicht sicher ob ich das als tudu-Team durchgehen lassen kann :P

className="todo__input"
></input>
</form>
Expand Down
2 changes: 2 additions & 0 deletions src/components/Header.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
h1 {
}
3 changes: 2 additions & 1 deletion src/components/Header.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React from "react";
import "./Header.css";

export default function Header() {
return (
<div>
<h1>tuDuDasMal!</h1>
<h1>Tu-Du Das Mal!</h1>
</div>
);
}
16 changes: 16 additions & 0 deletions src/components/Todo.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,28 @@
justify-content: space-between;
align-items: center;
width: 100%;
border-top: 0.5px solid #171b36;
padding: 0.25rem;
}
.todo__text {
max-width: 80%;
word-wrap: break-word;
}
.todo__checkbox {
width: 20px;
height: 20px;
/* border-radius: 25px;
padding: 0;
background-color: #171b36;
color: white;
cursor: pointer; */
}

.todo__date {
font-style: italic;
font-size: 0.8rem;
}
.todo__delete {
background: none;
border: none;
}
4 changes: 4 additions & 0 deletions src/components/Todolist.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.Todo__List {
padding-inline-start: 0;
margin: 1rem 2.5rem;
}
1 change: 1 addition & 0 deletions src/components/Todolist.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from "react";
import Todo from "./Todo";
import "./Todolist.css";

export default function Todolist({ tuduItems, setTuduItems }) {
return (
Expand Down
16 changes: 15 additions & 1 deletion src/global.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
@import url("https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900");

*,
*::after,
*::before {
box-sizing: border-box;
border: 1px solid black;
/* border: 1px solid black; */
}

body {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: "Roboto", sans-serif;
background-color: #171b36;
text-align: center;
}

#root {
background-color: #171b36;
}
.container {
background-color: #fff;
width: 800px;
max-width: 80%;
margin: 0 auto;
padding-top: 1.5rem;
padding-bottom: 2.5rem;
margin-top: 5%;
border-radius: 25px;
}