|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div id="cookie_monster" :class="`print:hidden z-50 ${isOpen ? 'mix-blend-normal' : 'mix-blend-difference'}`">
|
|
|
+ <aside id="cookie_monster" role="dialog" :class="`print:hidden z-50 ${isOpen ? 'mix-blend-normal' : 'mix-blend-difference'}`">
|
|
|
<div v-if="isOpen" class="fixed bottom-2 right-2 left-2 sm:w-10/12 max-w-screen-md sm:mx-auto">
|
|
|
<div class="border-2 bg-white border-sky-700 px-4 pt-3 pb-4 overflow-scroll">
|
|
|
<client-only><fa-icon :icon="['fas', 'circle-xmark']" class="text-error text-4xl float-right" @click="isOpen = false" /></client-only>
|
|
@@ -20,16 +20,16 @@
|
|
|
<p class="pt-2">You can read more on how I use cookies on <a href="/cookies">this page</a>.</p>
|
|
|
</div>
|
|
|
<div class="grid grid-cols-1 sm:grid-cols-3 gap-4">
|
|
|
- <button class="btn btn-success" @click="acceptMyChoice">Accept my choice</button>
|
|
|
- <button class="btn btn-info btn-outline" @click="acceptAll">Accept all cookies</button>
|
|
|
- <button class="btn btn-error text-white" @click="rejectAll">Reject all cookies</button>
|
|
|
+ <button class="btn btn-success" @click="acceptMyChoice" role="button">Accept my choice</button>
|
|
|
+ <button class="btn btn-info btn-outline" @click="acceptAll" role="button">Accept all cookies</button>
|
|
|
+ <button class="btn btn-error text-white" @click="rejectAll" role="button">Reject all cookies</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-else class="fixed max-w-0 bottom-2 sm:right-16 right-11 cursor-pointer" @click="isOpen = true">
|
|
|
<ClientOnly><fa-icon icon="fa-solid fa-cookie-bite" class="sm:text-6xl text-4xl text-sky-500" /></ClientOnly>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </aside>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|