From 296a17ebbccd2b9cc01ab7d7012835e2ef0cec91 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Thu, 18 Dec 2025 20:59:35 +0100 Subject: [PATCH] Updated obfuscation in hero section --- src/components/ObfuscatedMail.jsx | 21 ++++++++------------- src/sections/Hero.jsx | 9 ++++----- 2 files changed, 12 insertions(+), 18 deletions(-) diff --git a/src/components/ObfuscatedMail.jsx b/src/components/ObfuscatedMail.jsx index 4b234e6..016bf95 100644 --- a/src/components/ObfuscatedMail.jsx +++ b/src/components/ObfuscatedMail.jsx @@ -1,24 +1,19 @@ -import React, { useState } from 'react'; +import React 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}`); + const handleClick = (e) => { + e.preventDefault(); + window.location.href = `mailto:${email}`; }; return ( - {children} - + ); }; diff --git a/src/sections/Hero.jsx b/src/sections/Hero.jsx index fcad5aa..68b1098 100644 --- a/src/sections/Hero.jsx +++ b/src/sections/Hero.jsx @@ -19,12 +19,11 @@ export const Hero = () => { - {/* Obfuscated Title Link */} - -

+

+ LIQUID DEVELOPMENT -

-
+ +
German Development Team