add cookie consert

This commit is contained in:
2025-05-02 12:23:23 -03:00
parent 61292320d5
commit a474ef6b18
6 changed files with 148 additions and 8 deletions

View File

@@ -0,0 +1,18 @@
---
import "vanilla-cookieconsent/dist/cookieconsent.css";
---
<button
type="button"
data-cc="show-preferencesModal"
class="underline hover:no-underline"
>
Gerenciar cookies
</button>
<script>
import { run } from "vanilla-cookieconsent";
import { config } from "~/CookieConsentConfig";
run(config);
</script>