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

@@ -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

@@ -5,8 +5,6 @@
font-size: 10pt; font-size: 10pt;
background-color: black; background-color: black;
color: white; color: white;
display: flex;
flex-direction: column;
width: 100%; width: 100%;
height: 290px; height: 290px;
overflow: hidden; overflow: hidden;

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;