Enable cookie banner, revert to default fonts
Some checks failed
Build and deploy updated apps / Build & deploy (push) Has been cancelled
Some checks failed
Build and deploy updated apps / Build & deploy (push) Has been cancelled
This commit is contained in:
parent
623665658e
commit
24cd95b1af
@ -4,6 +4,29 @@
|
|||||||
</NuxtLayout>
|
</NuxtLayout>
|
||||||
</template>
|
</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>
|
<style>
|
||||||
.page-enter-active,
|
.page-enter-active,
|
||||||
.page-leave-active {
|
.page-leave-active {
|
||||||
|
|||||||
@ -107,5 +107,5 @@
|
|||||||
|
|
||||||
html {
|
html {
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
font-family: Roboto, Arial, sans-serif;
|
/*font-family: Roboto, Arial, sans-serif;*/
|
||||||
}
|
}
|
||||||
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<!-- <UApp :toaster="{ position: 'top-center' }">-->
|
<UApp :toaster="{ position: 'top-center' }">
|
||||||
<div class="flex flex-col min-h-dvh bg-neutral-50">
|
<div class="flex flex-col min-h-dvh bg-neutral-50">
|
||||||
|
|
||||||
<AppHeader/>
|
<AppHeader/>
|
||||||
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
<AppFooter/>
|
<AppFooter/>
|
||||||
</div>
|
</div>
|
||||||
<!-- </UApp>-->
|
</UApp>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
</script>
|
</script>
|
||||||
Loading…
x
Reference in New Issue
Block a user