Enable cookie banner, revert to default fonts
Some checks failed
Build and deploy updated apps / Build & deploy (push) Has been cancelled

This commit is contained in:
Dominik Milacher 2025-10-14 21:32:23 +02:00
parent 623665658e
commit 24cd95b1af
3 changed files with 26 additions and 3 deletions

View File

@ -4,6 +4,29 @@
</NuxtLayout>
</template>
<script setup lang="ts">
const { c } = useContent()
const { add } = useToast()
const shown = useCookie('cookie-toast-shown', { maxAge: 60 * 60 * 24 * 7 })
onMounted(() => {
console.log("MIAU", c.value)
if (!shown.value) {
add({
title: c.value.cookies.title,
description: c.value.cookies.description,
timeout: 8000,
color: 'primary',
icon: 'i-heroicons-shield-check',
ui: {
position: "bottom-center"
}
})
shown.value = true
}
})
</script>
<style>
.page-enter-active,
.page-leave-active {

View File

@ -107,5 +107,5 @@
html {
scroll-behavior: smooth;
font-family: Roboto, Arial, sans-serif;
/*font-family: Roboto, Arial, sans-serif;*/
}

View File

@ -1,5 +1,5 @@
<template>
<!-- <UApp :toaster="{ position: 'top-center' }">-->
<UApp :toaster="{ position: 'top-center' }">
<div class="flex flex-col min-h-dvh bg-neutral-50">
<AppHeader/>
@ -10,7 +10,7 @@
<AppFooter/>
</div>
<!-- </UApp>-->
</UApp>
</template>
<script setup lang="ts">
</script>