New Terminal

This commit is contained in:
2025-08-28 22:34:20 +02:00
parent 481f103ba0
commit 05c62ed6bb
6 changed files with 112 additions and 98 deletions

View File

@@ -4,24 +4,8 @@ import Marquee from "react-fast-marquee";
import Datetime from "@/components/Datetime/Datetime";
import style from "./style.module.css";
import pasta from "./pasta.ts";
export default function Footer() {
const [index, setIndex] = useState(0);
// random shitpost every minute
useEffect(() => {
const timer = setInterval(() => {
setIndex(Math.floor(Math.random() * pasta.length));
console.log("sus!");
}, 60 * 1000);
return () => {
clearInterval(timer);
};
}, []);
const text = pasta[index];
return (
<div className={style.container}>
<div className={style.taskbar}>
@@ -34,16 +18,10 @@ export default function Footer() {
</div>
<span className={style.divider}></span>
<div className={style.windows}>
<span className={style.window}>🧹 Flatastic</span>
<span className={style.window}>🚊 Timetable</span>
<span className={style.window}>🏠 HomeAssistant</span>
</div>
</div>
<div className={style.newsticker}>
<div className={style.info}>BREAKING</div>
<div className={style.marquee}>
<Marquee>{text}</Marquee>
<span className={style.window}>🕐 Clock</span>
<span className={style.windowActive}>🔔 Terminal</span>
<span className={style.window}>🧹 Flatastic</span>
</div>
</div>
</div>