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}