Initial commit

This commit is contained in:
2025-12-18 14:54:10 +00:00
commit 8f1cd47c45
21 changed files with 418 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import React, { useState } from 'react';
export const ObfuscatedMail = ({ email, className, children, title }) => {
// Start with a dummy link so bots don't see 'mailto:'
const [href, setHref] = useState("#");
// Only reveal the real email when the user hovers or focuses
const reveal = () => {
setHref(`mailto:${email}`);
};
return (
<a
href={href}
onMouseEnter={reveal}
onFocus={reveal}
onClick={reveal}
className={className}
title={title || "Send email"}
>
{children}
</a>
);
};