fix: fix small bugs
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
export const NvimInput = () => (
|
||||
<div className="select-none">Welcome to my website!!</div>
|
||||
);
|
||||
export const NvimInput = () => <div>~ hello@pihkaal.me</div>;
|
||||
|
||||
@@ -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}>
|
||||
|
||||
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user