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 (
-
-
-
+
+
+
+
+ {showTooltip() && (
+
+ {props.name}
+
+ )}
+
);
}
\ No newline at end of file