diff --git a/src/App.css b/src/App.css index 4c4f081..2a524e1 100644 --- a/src/App.css +++ b/src/App.css @@ -1,11 +1,56 @@ button { - padding: 0 2%; - font-size: 2vw; + border: 1px solid rgb(79, 79, 79); + border-radius: 5px; + padding: 1%; + white-space: nowrap; cursor: pointer; } +.bigBtn { + font-size: 2vw; +} + +.midBtn { + font-size: 1.2vw; +} + +.input { + width: 100%; + padding: 1%; + border: 1px solid red; + border-radius: 5px; + outline: none; + color: white; + background-color: black; +} + +.sub-container { + width: 100%; + border: 1px solid red; + border-radius: 10px; + padding: 10px; + display: flex; + flex-direction: column; + row-gap: 12px; +} + +.counter-stats { + font-size: 24px; + font-weight: 700; +} + +.ul { + width: 95%; + align-self: flex-end; +} + +.li { + padding: 5px 0; + font-size: 0.8rem; +} + .hide { - display: none; + display: none !important; } li { @@ -23,12 +68,15 @@ li { .Todos, .Doing, .Done { - width: 33%; + width: 100%; border: 1px solid red; - border-radius: 15px; + border-radius: 20px; + padding: 5px; display: flex; flex-direction: column; + row-gap: 1%; align-items: center; + overflow-y: auto; } @media (width <= 720px) { @@ -41,6 +89,7 @@ li { .Doing, .Done { width: 100%; + overflow-y: visible; } .Todos { diff --git a/src/doing/Doing.css b/src/doing/Doing.css index 1acb9a9..0afc9c3 100644 --- a/src/doing/Doing.css +++ b/src/doing/Doing.css @@ -1,19 +1,9 @@ -.Doing { - padding: 5px; - row-gap: 100px; -} - -.pomodoro { - width: 100%; - padding: 5px; - display: flex; - flex-direction: column; - justify-content: center; +.Doing .pomodoro { align-items: center; row-gap: 50px; } -.clock { +.Doing .clock { width: fit-content; border: 1px solid red; border-radius: 20px; @@ -23,24 +13,24 @@ font-family: 'CustomFont', monospace; } -.controls { +.Doing .controls { width: 100%; justify-content: center; display: flex; column-gap: 10px; } -.motivational { +.Doing .motivational { cursor: pointer; display: flex; flex-direction: column; row-gap: 10px; } -.motivational p:first-of-type { +.Doing .motivational p:first-of-type { font-style: italic; } -.motivational p:last-of-type { +.Doing .motivational p:last-of-type { font-size: 0.7rem; } diff --git a/src/doing/Doing.jsx b/src/doing/Doing.jsx index fcf1639..aca66a1 100644 --- a/src/doing/Doing.jsx +++ b/src/doing/Doing.jsx @@ -71,7 +71,7 @@ export const Doing = () => { return (
{quote}
diff --git a/src/done/Done.css b/src/done/Done.css index 20ebaf5..9b6962a 100644 --- a/src/done/Done.css +++ b/src/done/Done.css @@ -1,3 +1,49 @@ -.Done { - color: white; +.Done h2 { + text-align: right; +} + +.Done .worked-hours .this { + width: 100%; + display: flex; + justify-content: space-evenly; +} + +.Done .worked-hours .this .this-month, +.Done .worked-hours .this .this-week, +.Done .worked-hours .this .this-day { + display: flex; + flex-direction: column; + align-items: center; +} + +.Done .worked-hours .this .this-month span:last-of-type, +.Done .worked-hours .this .this-week span:last-of-type, +.Done .worked-hours .this .this-day span:last-of-type { + white-space: nowrap; + font-size: 0.8rem; +} + +.Done .completed-tasks.sub-container ul li.dones { + color: gray; +} + +.Done .completed-tasks.sub-container .modal { + display: flex; + flex-direction: column; + row-gap: 10px; +} + +.Done .completed-tasks.sub-container .modal p { + color: red; +} + +.Done .completed-tasks.sub-container .options { + display: flex; + justify-content: space-around; +} + +.Done .completed-tasks.sub-container footer { + width: 100%; + display: flex; + column-gap: 12px; } diff --git a/src/done/Done.jsx b/src/done/Done.jsx index 2f431d7..680d6e0 100644 --- a/src/done/Done.jsx +++ b/src/done/Done.jsx @@ -1,9 +1,51 @@ +import { useState, useEffect } from 'react' +import { Store } from '../store/store' import './Done.css' export const Done = () => { + const store = Store() + const [input, setInput] = useState("") + const [showModal, setShowModal] = useState("hide") + const [showFooter, setShowFooter] = useState("") + const handleInputEnterKey = k => k.key === "Enter" && input.trim() != "" && (store.tasks.add(input), setInput("")) + useEffect(() => localStorage.setItem("Completed Tasks", JSON.stringify(store.tasks.completed)), [store.tasks.completed]) + useEffect(() => localStorage.setItem("Worked Hours History", JSON.stringify(store.tasks.workedHoursHistory)), [store.tasks.workedHoursHistory]) + return (Deleting all completed tasks will log today's work and start a new day. Are you sure?
+