New Terminal
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user