feat: gdpr

This commit is contained in:
Per Stark
2025-01-02 22:43:32 +01:00
parent 9976fef5a3
commit ab23909e0f
8 changed files with 2901 additions and 3 deletions

View File

@@ -27,4 +27,4 @@
</main>
</div>
</body>
{% endblock %}
{% endblock %}

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>

View File

@@ -4,5 +4,8 @@
{% include 'index/signed_in_view.html' %}
{% else %}
{% include 'index/hero.html' %}
{% if not gdpr_accepted %}
{% include "gdpr.html" %}
{% endif %}
{% endif %}
{% endblock %}