feat: gdpr

This commit is contained in:
Per Stark
2025-01-02 22:43:32 +01:00
parent 519f6c6eb1
commit 2a0603606e
8 changed files with 2901 additions and 3 deletions

13
templates/gdpr.html Normal file
View File

@@ -0,0 +1,13 @@
<div id="gdpr-banner" class="fixed card mx-auto max-w-screen-sm bg-neutral text-neutral-content bottom-0">
<div class="card-body items-center text-center">
<p class="text-sm"> We use cookies to enhance your experience. By continuing to visit this site, you agree to
our use cookies.
<a href="/privacy-policy" class="link link-primary">Learn more</a>
</p>
<div class="card-actions justify-end">
<button class="btn btn-ghost" hx-post="/gdpr/deny" hx-target="#gdpr-banner" hx-swap="outerHTML">Deny</button>
<button class="btn btn-primary" hx-post="/gdpr/accept" hx-target="#gdpr-banner"
hx-swap="outerHTML">Accept</button>
</div>
</div>
</div>