fix rebase issues

This commit is contained in:
2025-08-29 11:57:14 +02:00
parent 79117da969
commit 66ad042bf1
7 changed files with 38 additions and 43 deletions

View File

@@ -16,11 +16,11 @@ export default function Dashboard() {
const scheme = schemes[schemeIndex]; const scheme = schemes[schemeIndex];
// change background color based on time of day // change background color based on time of day
const time = useEffect(() => { useEffect(() => {
const timer = setInterval( const timer = setInterval(
() => { () => {
let d = new Date(); const d = new Date();
let hour = d.getHours(); const hour = d.getHours();
if (hour >= 7 && hour < 16) { if (hour >= 7 && hour < 16) {
setSchemeIndex(0); setSchemeIndex(0);
} else if (hour >= 16 && hour < 23) { } else if (hour >= 16 && hour < 23) {

View File

@@ -19,11 +19,11 @@ img {
} }
.divider { .divider {
animation: blink 3s step-end infinite; animation: blink 3s step-end infinite;
} }
@keyframes blink { @keyframes blink {
50% { 50% {
opacity: 0; opacity: 0;
} }
} }

View File

@@ -35,11 +35,11 @@ export default function Flatastic() {
className = "irregular"; className = "irregular";
} else { } else {
className = chore.timeLeftNext <= 0 ? "due" : "notDue"; className = chore.timeLeftNext <= 0 ? "due" : "notDue";
timeLeftInDays = <span className={style.timeLeft}> timeLeftInDays = (
{Math.abs( <span className={style.timeLeft}>
Math.floor(chore.timeLeftNext / (60 * 60 * 24)), {Math.abs(Math.floor(chore.timeLeftNext / (60 * 60 * 24)))}d
)}d </span>
</span>; );
} }
return ( return (

View File

@@ -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"; import style from "./style.module.css";
export default function Footer() { export default function Footer() {

View File

@@ -1,8 +1,7 @@
import { useHomeAssistantStore } from "@/store/homeAssistant";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import { useHomeAssistantStore } from "@/store/homeAssistant";
import style from "./style.module.css";
import pasta from "./pasta.ts"; import pasta from "./pasta.ts";
import style from "./style.module.css";
export default function Terminal() { export default function Terminal() {
const [index, setIndex] = useState(0); const [index, setIndex] = useState(0);
@@ -44,7 +43,7 @@ export default function Terminal() {
<div className={style.fetch}> <div className={style.fetch}>
<span> <span>
<pre> <pre>
{" "}-///:.{" "} {" -///:. "}
<span className={style.username}>tent</span>@ <span className={style.username}>tent</span>@
<span className={style.hostname}>home</span> <span className={style.hostname}>home</span>
</pre> </pre>

View File

@@ -1,49 +1,47 @@
.container { .container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
font-family: monospace; font-family: monospace;
font-size: 10pt; font-size: 10pt;
background-color: black; background-color: black;
color: white; color: white;
display: flex; width: 100%;
flex-direction: column; height: 290px;
width: 100%; overflow: hidden;
height: 290px;
overflow: hidden;
} }
.fetch { .fetch {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding-bottom: 10px; padding-bottom: 10px;
} }
.prompt { .prompt {
color: lightgreen; color: lightgreen;
} }
.username { .username {
color: violet; color: violet;
} }
.hostname { .hostname {
color: skyblue; color: skyblue;
} }
.temp { .temp {
color: pink; color: pink;
font-weight: bold; font-weight: bold;
} }
.humidity { .humidity {
color: skyblue; color: skyblue;
font-weight: bold; font-weight: bold;
} }
.plants { .plants {
color: lightgreen; color: lightgreen;
} }
pre { pre {
margin: 0; margin: 0;
} }

View File

@@ -1,5 +1,7 @@
:root { :root {
font-family: Noto Sans Condensed, sans-serif; font-family:
Noto Sans Condensed,
sans-serif;
line-height: 1.5; line-height: 1.5;
font-weight: 400; font-weight: 400;