From e3d7e938cc1b81d26cb831b30865112080cf1a5b Mon Sep 17 00:00:00 2001 From: Kismet Hasanaj Date: Sun, 3 May 2026 01:29:22 +0200 Subject: [PATCH] mailto not working --- app/page.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/app/page.tsx b/app/page.tsx index f837d646..35ee5840 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -38,6 +38,7 @@ export default function HomePage() { // soft glow that follows the cursor in the background. // --------------------------------------------------------------------------- const [pointer, setPointer] = useState({ x: 50, y: 22 }); + const [copiedEmail, setCopiedEmail] = useState(false); // --------------------------------------------------------------------------- // BACKGROUND POSITION @@ -54,6 +55,16 @@ export default function HomePage() { [pointer.x, pointer.y] ); + async function copyContactEmail() { + try { + await navigator.clipboard.writeText(site.contact.email); + setCopiedEmail(true); + window.setTimeout(() => setCopiedEmail(false), 1800); + } catch { + setCopiedEmail(false); + } + } + return (
+ {site.contact.note}