Dominik Milacher 73083ded58
Some checks failed
Build and deploy updated apps / Build & deploy (push) Failing after 1m7s
Overhaul content management
2025-10-22 19:31:38 +02:00

38 lines
696 B
Vue

<template>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>
<script setup lang="ts">
const { l } = useContentInjected()
const { add } = useToast()
const shown = useCookie('cookie-toast-shown', { maxAge: 60 * 60 * 24 * 7 })
onMounted(() => {
if (!shown.value) {
add({
title: l.value.cookies.title,
description: l.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 {
transition: opacity 0.15s;
}
.page-enter-from,
.page-leave-to {
opacity: 0;
}
</style>