fix: fix small bugs

This commit is contained in:
Pihkaal
2024-09-12 14:54:37 +02:00
parent 2220c6904b
commit 5e36ec379c
4 changed files with 10 additions and 12 deletions

View File

@@ -25,7 +25,7 @@ const AppRoot = () => {
return (
<>
<div
className="pointer-events-none fixed inset-0 z-10 bg-black"
className="pointer-events-none fixed inset-0 z-20 bg-black"
style={{ opacity }}
/>
<main className="h-screen w-screen overflow-hidden bg-[url(/wallpaper.jpg)] bg-cover bg-center">

View File

@@ -1,3 +1 @@
export const NvimInput = () => (
<div className="select-none">Welcome to my website!!</div>
);
export const NvimInput = () => <div>~ hello@pihkaal.me</div>;

View File

@@ -18,18 +18,18 @@ export const WaybarBrightnessWidget = () => {
const tooltip =
brightness === 100
? "Full"
? "Flashbang mode"
: brightness >= 70
? "Almost full"
? "Bright as a Brest day!"
: brightness >= 50
? "Halfway down, but still doing great. I wonder what happens if the brightness reaches 0"
? "Halfway to becoming a night owl"
: brightness >= 25
? "Uh maybe you should consider charging me ?"
? "I'm scared of the dark please stop"
: brightness >= 15
? "It's really reaching low level now"
? "Just turn off you screen at this point"
: brightness >= 5
? "Are you ignoring my messages ??"
: "I warned you";
? "Can you even read now ?"
: "So dark";
return (
<WaybarWidget className="pl-3 pr-[0.625rem]" tooltip={tooltip}>

View File

@@ -26,7 +26,7 @@ export const AppProvider = (props: { children?: ReactNode }) => {
});
useEffect(() => {
localStorage.setItem("state", state);
localStorage.setItem("state", state === "desktop" ? "login" : state);
localStorage.setItem("brightness", brightness.toString());
localStorage.setItem("volume", volume.toString());
}, [state, brightness, volume]);