-
Notifications
You must be signed in to change notification settings - Fork 14
/
app.vue
165 lines (151 loc) · 3.79 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<script setup lang="ts">
const isOpen = ref(false);
const links = [
{
label: "Accueil",
icon: "i-heroicons-home",
to: "/",
},
{
label: "Actualités",
description: "Communiqués, Annonces, Articles",
photo: "/unknown_member.webp",
icon: "i-heroicons-newspaper",
to: "/publications/actualites",
},
{
label: "Annuaires",
description: "Gouvernement, Sites Web, Justice...",
icon: "i-heroicons-identification",
to: "/annuaires",
},
{
label: "Documents",
description: "Journal officiel, Codes, Rapports OFNAC Cours des comptes...",
icon: "i-heroicons-rectangle-stack",
to: "/documents",
},
{
label: "Budget",
description: "....",
icon: "i-heroicons-banknotes",
to: "/budget-senegal",
},
// {
// label: "Découverte",
// description: "Guide du fonctionnement de l'état, Budget, Quiz...",
// icon: "i-heroicons-information-circle",
// to: "/organisation",
// },
];
const aboutUslinks = [
{
label: "Conseil des ministres",
description: "Conseil des ministres",
photo: "/unknown_member.webp",
icon: "i-heroicons-document-text",
to: "/conseil-des-ministres",
},
{
label: "Newsletter",
description: "Abonnez vous à notre newsletter",
photo: "/unknown_member.webp",
icon: "i-heroicons-envelope",
to: "/newsletter",
},
{
label: "Quiz",
description: "Jeux QCM sur les institutions publiques",
photo: "/unknown_member.webp",
icon: "i-heroicons-puzzle-piece",
to: "/quiz",
},
{
label: "À Propos",
to: "/about/us",
icon: "i-heroicons-information-circle",
},
];
</script>
<template>
<div
class="lg:px-18 top-header sticky top-0 z-50 flex items-center justify-between opacity-100 md:px-10 xl:px-32"
>
<!-- loader quand on change de page -->
<NuxtLoadingIndicator />
<!-- HeaderBrand à gauche -->
<AppHeader />
<!-- Navigation horizontale pour les écrans plus larges -->
<UHorizontalNavigation
:links="links"
class="hidden w-auto items-center md:flex"
>
</UHorizontalNavigation>
<!-- Menu pour mobiles (toggle visibility with Tailwind CSS) -->
<UButton
class="md:hidden"
color="gray"
variant="link"
size="xl"
icon="i-heroicons-bars-3"
@click="isOpen = true"
/>
</div>
<UContainer class="px-0 sm:px-10 md:px-14 lg:px-28 xl:px-40">
<!-- Navigation verticale pour mobiles (toggle visibility with Tailwind CSS) -->
<USlideover v-model="isOpen">
<div class="flex-1 p-4">
<UButton
color="gray"
variant="ghost"
size="xl"
icon="i-heroicons-x-mark-20-solid"
class="absolute end-5 top-5 z-10 flex sm:hidden"
square
padded
@click="isOpen = false"
/>
<div class="min-h-full">
<AppHeader />
<UVerticalNavigation
:links="links"
:ui="{ size: 'text-md' }"
class="vertical-nav"
@click="isOpen = false"
/>
<UVerticalNavigation
:links="aboutUslinks"
:ui="{ size: 'text-md' }"
class="vertical-nav"
@click="isOpen = false"
/>
</div>
</div>
</USlideover>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
<!-- <NewsletterSocial /> -->
<AppFooter />
</UContainer>
</template>
<style>
.top-header {
background-color: #ffff;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
nav ul li a span {
text-transform: uppercase;
font-family: "Quicksand", sans-serif;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
}
.vertical-nav ul li a {
margin: 0.5rem;
padding-left: 1rem !important;
box-shadow: 0 2px 4px #0000001a;
line-height: 2rem;
}
.vertical-nav {
background-color: transparent;
}
</style>