Skip to content

Commit e43f475

Browse files
committed
Remove cookie monster easter egg
1 parent f61d571 commit e43f475

2 files changed

Lines changed: 3 additions & 17 deletions

File tree

src/assets/c-is-for-cookie.webp

-64.1 KB
Binary file not shown.

src/pages/privacy-policy.astro

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
import Layout from '../layouts/Layout.astro';
33
import Link from '../components/Link.astro';
4-
import { Image } from 'astro:assets';
5-
import cookieMonster from '../assets/c-is-for-cookie.webp';
64
75
const metadata = {
86
title: 'Privacy Policy',
@@ -23,17 +21,12 @@ const metadata = {
2321
contact me.
2422
</p>
2523
<h2>Cookies</h2>
26-
<p>This website does not use <span id='cookie-trigger'>cookies</span>.</p>
27-
<Image
28-
id='cookie-monster'
29-
src={cookieMonster}
30-
alt='Cookie Monster'
31-
class='hidden max-w-25 rounded-lg'
32-
/>
24+
<p>This website does not use cookies.</p>
3325
<h2>Analytics</h2>
3426
<p>
3527
This website uses a web analytics service called <Link
36-
href='https://umami.is/' isExternal>Umami</Link
28+
href='https://umami.is/'
29+
isExternal>Umami</Link
3730
> (hosted on Umami Cloud) to understand overall website usage, such as the number
3831
of people who visit different pages.
3932
</p>
@@ -57,10 +50,3 @@ const metadata = {
5750
your interaction with their content according to their own privacy policies.
5851
</p>
5952
</Layout>
60-
61-
<script>
62-
const trigger = document.getElementById('cookie-trigger')!;
63-
const img = document.getElementById('cookie-monster')!;
64-
trigger.addEventListener('mouseenter', () => img.classList.remove('hidden'));
65-
trigger.addEventListener('mouseleave', () => img.classList.add('hidden'));
66-
</script>

0 commit comments

Comments
 (0)