-
Notifications
You must be signed in to change notification settings - Fork 3
/
app.vue
60 lines (51 loc) · 1.27 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
57
58
59
60
<script lang="ts" setup>
const { isBlog, blogClass } = useBlog()
const htmlClass = computed(() => {
if (isBlog.value) { return blogClass }
return ''
})
const logo = {
srTitle: 'Accueil',
rightClickUrl: '/design-kit'
}
const sameAs = useSameAs()
</script>
<template>
<Html dir="ltr" :class="htmlClass">
<Head>
<SeoKit />
<SchemaOrgOrganization name="Le Classement des Associations" logo="/logo.png" :same-as="sameAs" />
</Head>
<Body class="bg-white blog:bg-primary-variation-2 transition-colors ease-in duration-300">
<TheHeader
sr-navigation-title="Navigation Primaire"
:logo="logo"
:dialog="{ srNavigationTitle: 'Navigation Primaire Mobile', srDialogButtonTitle: { open: 'Ouvrir le menu de navigation', close: 'Fermer le menu de navigation' } }"
/>
<main>
<NuxtPage />
</main>
<TheFooter :logo="logo" sr-navigation-title="Navigation Secondaire" />
</Body>
</Html>
</template>
<style>
.page-enter-active,
.page-leave-active {
transition: all 0.2s;
}
.page-enter-from,
.page-leave-to {
opacity: 0;
filter: blur(0.3rem);
}
.layout-enter-active,
.layout-leave-active {
transition: all 0.2s;
}
.layout-enter-from,
.layout-leave-to {
opacity: 0;
filter: blur(0.3rem);
}
</style>