-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
56 lines (51 loc) · 1.76 KB
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<template>
<Analytics/>
<div class="bg-gradient-to-br from-blue-50 via-indigo-50 to-purple-50 dark:from-blue-950 dark:via-indigo-950 dark:to-purple-950">
<div class="absolute top-0 left-0 w-full h-full overflow-hidden z-0">
<div class="absolute top-1/4 left-1/6 w-64 h-64 bg-gradient-to-br from-indigo-200 to-indigo-300 rounded-full mix-blend-multiply opacity-20 animate-float blur-2xl"></div>
<div class="absolute bottom-1/4 right-1/6 w-80 h-80 bg-gradient-to-br from-blue-200 to-blue-300 rounded-full mix-blend-multiply opacity-20 animate-float-delay blur-2xl"></div>
<div class="absolute top-1/2 left-1/2 w-96 h-96 bg-gradient-to-br from-amber-200 to-amber-300 rounded-full mix-blend-multiply opacity-10 animate-float-slow blur-3xl"></div>
</div>
<NuxtLayout>
<NuxtPage />
<Notifications />
</NuxtLayout>
</div>
</template>
<script setup>
import { useHead } from '#imports'
import { useAuth } from '~/composables/useAuth'
import Notifications from '~/components/ui/Notifications.vue'
import { useAlerts } from '~/composables/useAlerts'
import { Analytics } from '@vercel/analytics/nuxt'
const { isAuthenticated } = useAuth()
const { normalToast } = useAlerts()
onMounted(() => {
if (!isAuthenticated.value) {
normalToast('يفضل تسجيل الدخول لتتمكن من الاستفادة من كل خدمات الموقع')
}
})
useHead({
script: [{
innerHTML: `
window.$crisp = [];
window.CRISP_WEBSITE_ID = "568ba1de-fe8c-41c9-a668-aedf9737dcd6";
`,
type: 'text/javascript'
}, {
src: 'https://client.crisp.chat/l.js',
async: true
}]
})
</script>
<style>
.page-enter-active,
.page-leave-active {
transition: all 0.4s;
}
.page-enter-from,
.page-leave-to {
opacity: 0;
filter: blur(1rem);
}
</style>