diff --git a/frontend/src/app/components/Forms/Input.js b/frontend/src/app/components/Forms/Input.js new file mode 100644 index 0000000..05bb29b --- /dev/null +++ b/frontend/src/app/components/Forms/Input.js @@ -0,0 +1,7 @@ +export default function Input(props) { + return ( + <> + + > + ); +} \ No newline at end of file diff --git a/frontend/src/app/components/Popover/Popover.module.css b/frontend/src/app/components/Popover/Popover.module.css index 3f252d3..54dd1a1 100644 --- a/frontend/src/app/components/Popover/Popover.module.css +++ b/frontend/src/app/components/Popover/Popover.module.css @@ -21,8 +21,8 @@ position: absolute; top: 1.5rem; right: 1.5rem; - width: 2rem; - height: 2rem; + width: 3rem; + height: 3rem; font-size: 1.5rem; color: var(--color_purple); cursor: pointer; diff --git a/frontend/src/app/components/Tasks/AddTask.js b/frontend/src/app/components/Tasks/AddTask.js new file mode 100644 index 0000000..f67d733 --- /dev/null +++ b/frontend/src/app/components/Tasks/AddTask.js @@ -0,0 +1,78 @@ +import { useState } from "react"; +import Input from "../Forms/Input"; + +export default function AddTask() { + + const [taskName, setTaskName] = useState(""); + const [importance, setImportance] = useState(0); + const [urgency, setUrgency] = useState(0); + const [repeat, setRepeat] = useState(0); + + const importanceOptions = [ + { + weight: 1, + name: "Nice to have" + }, + { + weight: 2, + name: "Quite important" + }, + { + weight: 3, + name: "F*cking important" + } + ]; + + const urgencyOptions = [ + { + weight: 1, + name: "Maybe one day" + }, + { + weight: 2, + name: "To be done ASAP" + }, + { + weight: 3, + name: "Right now!" + } + ]; + + const repeatOptions = [ + { + weight: 1, + name: "Daily" + }, + { + weight: 2, + name: "Weekly" + }, + { + weight: 3, + name: "Monthly" + } + ]; + + const addTask = async (e) => { + e.preventDefault(); + + }; + + return ( + <> +