Update footer component to simplify email link implementation
- Replaced the obfuscated email script with a direct mailto link for improved accessibility and ease of use. - Ensured compliance with Dutch law requirements for business information display.
This commit is contained in:
@@ -87,19 +87,7 @@ const {
|
|||||||
</a>
|
</a>
|
||||||
<!-- Business Information (Dutch Law Requirements) -->
|
<!-- Business Information (Dutch Law Requirements) -->
|
||||||
<div class="text-sm text-white-500 space-y-1">
|
<div class="text-sm text-white-500 space-y-1">
|
||||||
<a id="obfuscated-email" href="#" class="hover:underline">info [at] 365devnet [dot] eu</a>
|
<a href="mailto:info@365devnet.eu?subject=Message%20from%20website" class="hover:underline">info@365devnet.eu</a>
|
||||||
<script is:inline nonce="astro">
|
|
||||||
const user = "info";
|
|
||||||
const domain = "365devnet";
|
|
||||||
const tld = "eu";
|
|
||||||
const realEmail = `${user}@${domain}.${tld}`;
|
|
||||||
const mailto = `mailto:${realEmail}?subject=Message%20from%20website`;
|
|
||||||
const link = document.getElementById("obfuscated-email");
|
|
||||||
if (link) {
|
|
||||||
link.setAttribute("href", mailto);
|
|
||||||
link.textContent = realEmail;
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user