diff --git a/src/components/Dashboard/Dashboard.tsx b/src/components/Dashboard/Dashboard.tsx index 77a1ce2..2921a44 100644 --- a/src/components/Dashboard/Dashboard.tsx +++ b/src/components/Dashboard/Dashboard.tsx @@ -16,11 +16,11 @@ export default function Dashboard() { const scheme = schemes[schemeIndex]; // change background color based on time of day - const time = useEffect(() => { + useEffect(() => { const timer = setInterval( () => { - let d = new Date(); - let hour = d.getHours(); + const d = new Date(); + const hour = d.getHours(); if (hour >= 7 && hour < 16) { setSchemeIndex(0); } else if (hour >= 16 && hour < 23) { diff --git a/src/components/Datetime/style.module.css b/src/components/Datetime/style.module.css index ad15448..8a0d38e 100644 --- a/src/components/Datetime/style.module.css +++ b/src/components/Datetime/style.module.css @@ -19,11 +19,11 @@ img { } .divider { - animation: blink 3s step-end infinite; + animation: blink 3s step-end infinite; } @keyframes blink { 50% { - opacity: 0; - } + opacity: 0; + } } diff --git a/src/components/Flatastic/Flatastic.tsx b/src/components/Flatastic/Flatastic.tsx index 7612157..0809620 100644 --- a/src/components/Flatastic/Flatastic.tsx +++ b/src/components/Flatastic/Flatastic.tsx @@ -35,11 +35,11 @@ export default function Flatastic() { className = "irregular"; } else { className = chore.timeLeftNext <= 0 ? "due" : "notDue"; - timeLeftInDays = - {Math.abs( - Math.floor(chore.timeLeftNext / (60 * 60 * 24)), - )}d - ; + timeLeftInDays = ( + + {Math.abs(Math.floor(chore.timeLeftNext / (60 * 60 * 24)))}d + + ); } return ( diff --git a/src/components/Footer/Footer.tsx b/src/components/Footer/Footer.tsx index 6384ffe..7909725 100644 --- a/src/components/Footer/Footer.tsx +++ b/src/components/Footer/Footer.tsx @@ -1,7 +1,3 @@ -import { useEffect, useState } from "react"; -import Marquee from "react-fast-marquee"; - -import pasta from "./pasta.ts"; import style from "./style.module.css"; export default function Footer() { diff --git a/src/components/Terminal/Terminal.tsx b/src/components/Terminal/Terminal.tsx index 52fdbd6..bd4e56a 100644 --- a/src/components/Terminal/Terminal.tsx +++ b/src/components/Terminal/Terminal.tsx @@ -1,8 +1,7 @@ -import { useHomeAssistantStore } from "@/store/homeAssistant"; import { useEffect, useState } from "react"; - -import style from "./style.module.css"; +import { useHomeAssistantStore } from "@/store/homeAssistant"; import pasta from "./pasta.ts"; +import style from "./style.module.css"; export default function Terminal() { const [index, setIndex] = useState(0); @@ -44,7 +43,7 @@ export default function Terminal() {
-                        {"      "}-///:.{"      "}
+                        {"      -///:.      "}
                         tent@
                         home
                     
diff --git a/src/components/Terminal/style.module.css b/src/components/Terminal/style.module.css index 5c4a434..e836dbb 100644 --- a/src/components/Terminal/style.module.css +++ b/src/components/Terminal/style.module.css @@ -1,49 +1,47 @@ .container { - display: flex; - flex-direction: column; - font-family: monospace; - font-size: 10pt; - background-color: black; - color: white; - display: flex; - flex-direction: column; - width: 100%; - height: 290px; - overflow: hidden; + display: flex; + flex-direction: column; + font-family: monospace; + font-size: 10pt; + background-color: black; + color: white; + width: 100%; + height: 290px; + overflow: hidden; } .fetch { - display: flex; - flex-direction: column; - padding-bottom: 10px; + display: flex; + flex-direction: column; + padding-bottom: 10px; } .prompt { - color: lightgreen; + color: lightgreen; } .username { - color: violet; + color: violet; } .hostname { - color: skyblue; + color: skyblue; } .temp { - color: pink; - font-weight: bold; + color: pink; + font-weight: bold; } .humidity { - color: skyblue; - font-weight: bold; + color: skyblue; + font-weight: bold; } .plants { - color: lightgreen; + color: lightgreen; } pre { - margin: 0; + margin: 0; } diff --git a/src/index.css b/src/index.css index c7f5026..d9326cf 100644 --- a/src/index.css +++ b/src/index.css @@ -1,5 +1,7 @@ :root { - font-family: Noto Sans Condensed, sans-serif; + font-family: + Noto Sans Condensed, + sans-serif; line-height: 1.5; font-weight: 400;