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 ( return (
<> <>
<div <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 }} style={{ opacity }}
/> />
<main className="h-screen w-screen overflow-hidden bg-[url(/wallpaper.jpg)] bg-cover bg-center"> <main className="h-screen w-screen overflow-hidden bg-[url(/wallpaper.jpg)] bg-cover bg-center">

View File

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

View File

@@ -18,18 +18,18 @@ export const WaybarBrightnessWidget = () => {
const tooltip = const tooltip =
brightness === 100 brightness === 100
? "Full" ? "Flashbang mode"
: brightness >= 70 : brightness >= 70
? "Almost full" ? "Bright as a Brest day!"
: brightness >= 50 : 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 : brightness >= 25
? "Uh maybe you should consider charging me ?" ? "I'm scared of the dark please stop"
: brightness >= 15 : brightness >= 15
? "It's really reaching low level now" ? "Just turn off you screen at this point"
: brightness >= 5 : brightness >= 5
? "Are you ignoring my messages ??" ? "Can you even read now ?"
: "I warned you"; : "So dark";
return ( return (
<WaybarWidget className="pl-3 pr-[0.625rem]" tooltip={tooltip}> <WaybarWidget className="pl-3 pr-[0.625rem]" tooltip={tooltip}>

View File

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