mirror of
https://github.com/perstarkse/minne.git
synced 2026-04-21 16:31:23 +02:00
feat: gdpr
This commit is contained in:
@@ -27,4 +27,4 @@
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
13
templates/gdpr.html
Normal file
13
templates/gdpr.html
Normal 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>
|
||||
@@ -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 %}
|
||||
Reference in New Issue
Block a user