From 71b04ea02eb7fdb6a74af451269e3aea9e25e34c Mon Sep 17 00:00:00 2001 From: amy Date: Wed, 4 Dec 2024 05:12:41 +0330 Subject: [PATCH] that looks so ugly omfg --- src/App.tsx | 2 ++ src/components/comps.tsx | 62 ++++++++++++++++++++++++++++++---------- 2 files changed, 49 insertions(+), 15 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index f7c00e3..c1229bd 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -159,6 +159,8 @@ function App() { url='https://yellows.ink/'> + (
)) } -export function SingularOomfie(props: { name: string, url: string, discordid: string }) { +export function SingularOomfie(props: { name: string; url: string; discordid: string }) { const [imageSrc, setImageSrc] = createSignal(""); + const [mousePosition, setMousePosition] = createSignal({ x: 0, y: 0 }); + const [showTooltip, setShowTooltip] = createSignal(false); onMount(async () => { - const url = await theImager(props.discordid); - setImageSrc(url); + const url = await theImager(props.discordid); + setImageSrc(url); }); - + + const handleMouseMove = (e: MouseEvent) => { + setMousePosition({ x: e.clientX, y: e.clientY }); + setShowTooltip(true); + }; + + const handleMouseLeave = () => { + setShowTooltip(false); + }; + return ( - - {"profile - +
+ + {"profile + + {showTooltip() && ( +
+ {props.name} +
+ )} +
); } \ No newline at end of file