Navigation.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. <template>
  2. <div class="container-grey" v-if="!mdAndDown">
  3. <v-row>
  4. <v-col cols="12" class="buttons-col">
  5. <nuxt-link to="https://admin.opentalent.fr/#/login/" style="text-decoration: none">
  6. <v-btn class="btn btn-common btn-login" text>
  7. <v-icon left class="fas fa-user mr-4"></v-icon> Se connecter<br />aux
  8. logiciels
  9. </v-btn>
  10. </nuxt-link>
  11. <div class="vertical-bar" />
  12. <NuxtLink to="/agenda-culturel" style="text-decoration: none;">
  13. <v-btn class="btn btn-common btn-subscribe ml-4 mr-2" text>
  14. <v-icon left class="fas fa-calendar mr-4"></v-icon>Agenda Culturel
  15. </v-btn>
  16. </NuxtLink>
  17. </v-col>
  18. </v-row>
  19. </div>
  20. <v-row class="menu" v-if="!mdAndDown">
  21. <v-col cols="3">
  22. <nuxt-link to="/">
  23. <v-img class="logo" src="/images/logo/navigation-logo.png" />
  24. </nuxt-link>
  25. </v-col>
  26. <v-col cols="9">
  27. <v-menu open-on-hover>
  28. <template v-slot:activator="{ props }">
  29. <nuxt-link v-bind="props" class="link-style"
  30. >Nos logiciels
  31. </nuxt-link>
  32. </template>
  33. <v-list class="menu-list">
  34. <nuxt-link
  35. v-for="software in softwareLinks"
  36. :key="software.name"
  37. :to="software.href"
  38. class="link-styles"
  39. >
  40. <v-list-item>
  41. <v-list-item-title>{{ software.name }}</v-list-item-title>
  42. </v-list-item>
  43. </nuxt-link>
  44. </v-list>
  45. </v-menu>
  46. <v-menu open-on-hover>
  47. <template v-slot:activator="{ props }">
  48. <nuxt-link v-bind="props" class="link-style">Nos services </nuxt-link>
  49. </template>
  50. <v-list>
  51. <nuxt-link
  52. v-for="service in serviceLinks"
  53. :key="service.name"
  54. :to="service.href"
  55. class="link-styles"
  56. >
  57. <v-list-item>
  58. <v-list-item-title>{{ service.name }}</v-list-item-title>
  59. </v-list-item>
  60. </nuxt-link>
  61. </v-list>
  62. </v-menu>
  63. <v-menu open-on-hover>
  64. <template v-slot:activator="{ props }">
  65. <nuxt-link v-bind="props" class="link-style">à propos</nuxt-link>
  66. </template>
  67. <v-list>
  68. <nuxt-link
  69. v-for="info in aboutLinks"
  70. :key="info.name"
  71. :to="info.href"
  72. class="link-styles"
  73. >
  74. <v-list-item>
  75. <v-list-item-title>{{ info.name }}</v-list-item-title>
  76. </v-list-item>
  77. </nuxt-link>
  78. </v-list>
  79. </v-menu>
  80. <nuxt-link class="link-style" to="/actualites">Actualités</nuxt-link>
  81. <nuxt-link class="link-style" to="/nous-contacter">Contact</nuxt-link>
  82. </v-col>
  83. </v-row>
  84. <v-app v-if="mdAndDown">
  85. <v-app-bar app>
  86. <v-app-bar-nav-icon @click="toggleDrawer"></v-app-bar-nav-icon>
  87. <nuxt-link to="/">
  88. <v-img class="logo-md" src="/images/logo/navigation-logo.png" />
  89. </nuxt-link>
  90. <nuxt-link
  91. to="https://admin.opentalent.fr/#/login/"
  92. style="text-decoration: none"
  93. >
  94. <v-btn text>
  95. <v-icon left class="fas fa-user icon"></v-icon>
  96. </v-btn>
  97. </nuxt-link>
  98. <v-btn text>
  99. <v-icon left class="fas fa-phone icon"></v-icon>
  100. </v-btn>
  101. <nuxt-link to="/agenda-culturel" style="text-decoration: none">
  102. <v-btn text>
  103. <v-icon left class="fas fa-calendar icon"></v-icon>
  104. </v-btn>
  105. </nuxt-link>
  106. </v-app-bar>
  107. <!-- Tiroir de navigation principal -->
  108. <v-navigation-drawer v-model="drawer" app>
  109. <v-list nav dense>
  110. <v-list-item
  111. v-for="(item, index) in menuItems"
  112. :key="item.id"
  113. @click="selectMenu(item.id)"
  114. >
  115. <v-list-item-title>
  116. {{ item.label }}
  117. </v-list-item-title>
  118. </v-list-item>
  119. </v-list>
  120. </v-navigation-drawer>
  121. <!-- Tiroir de sous-menu -->
  122. <v-navigation-drawer v-model="subMenuDrawer" app right temporary>
  123. <v-list nav dense>
  124. <v-list-item>
  125. <v-list-item-title @click="closeSubMenu">Retour</v-list-item-title>
  126. </v-list-item>
  127. <nuxt-link
  128. v-for="(subItem, subIndex) in subMenus[currentMenu]"
  129. :key="subIndex"
  130. :to="subItem.href"
  131. style="text-decoration: none !important; color: black"
  132. >
  133. <v-list-item>
  134. <v-list-item-title>{{ subItem.name }}</v-list-item-title>
  135. </v-list-item>
  136. </nuxt-link>
  137. </v-list>
  138. </v-navigation-drawer>
  139. </v-app>
  140. </template>
  141. <script setup>
  142. import { useDisplay } from "vuetify";
  143. const { mdAndDown } = useDisplay();
  144. const softwareLinks = ref([
  145. { name: "Opentalent Artist", href: "/opentalent_artist" },
  146. { name: "Opentalent School", href: "/opentalent_school" },
  147. { name: "Opentalent Manager", href: "/opentalent_manager" },
  148. ]);
  149. const serviceLinks = ref([
  150. { name: "Formations", href: "/formations" },
  151. { name: "Webinaires", href: "/webinaires" },
  152. ]);
  153. const aboutLinks = ref([
  154. { name: "Qui sommes-nous", href: "/qui-sommes-nous" },
  155. { name: "Nous rejoindre", href: "/nous-rejoindre" },
  156. ]);
  157. const drawer = ref(false);
  158. const subMenuDrawer = ref(false);
  159. const currentMenu = ref("");
  160. const menuItems = ref([
  161. { id: "logiciels", label: "Nos logiciels" },
  162. { id: "services", label: "Nos services" },
  163. { id: "about", label: "À propos" },
  164. { id: "actualites", label: "Actualités" },
  165. { id: "contact", label: "Contact" },
  166. ]);
  167. const subMenus = ref({
  168. logiciels: [
  169. { name: "Opentalent Artist", href: "/opentalent_artist" },
  170. { name: "Opentalent School", href: "/opentalent_school" },
  171. { name: "Opentalent Manager", href: "/opentalent_manager" },
  172. ],
  173. services: [
  174. { name: "Formations", href: "/formations" },
  175. { name: "Webinaires", href: "/webinaires" },
  176. ],
  177. propos: [
  178. { name: "Qui sommes-nous", href: "/qui-sommes-nous" },
  179. { name: "Nous rejoindre", href: "/nous-rejoindre" },
  180. ],
  181. });
  182. const toggleDrawer = () => {
  183. drawer.value = !drawer.value;
  184. };
  185. const selectMenu = (id) => {
  186. if (subMenus.value[id]) {
  187. currentMenu.value = id;
  188. subMenuDrawer.value = true;
  189. drawer.value = false;
  190. } else {
  191. switch (id) {
  192. case "actualites":
  193. window.location.href = "/actualites";
  194. break;
  195. case "contact":
  196. window.location.href = "/nous-contacter";
  197. break;
  198. }
  199. }
  200. };
  201. const closeSubMenu = () => {
  202. subMenuDrawer.value = false;
  203. drawer.value = true;
  204. };
  205. </script>
  206. <style scoped>
  207. /* =============== CONTAINER BUTTON =============== */
  208. .container-grey {
  209. background-color: #dbdbdb;
  210. }
  211. /* =============== Button Styles =============== */
  212. .buttons-col {
  213. display: flex;
  214. align-items: center;
  215. justify-content: flex-end;
  216. }
  217. .btn-common {
  218. display: flex;
  219. flex-direction: row;
  220. align-items: center;
  221. border-radius: 6px;
  222. font-family: "Barlow";
  223. font-style: normal;
  224. font-weight: 700;
  225. font-size: 0.7rem;
  226. }
  227. .btn-login {
  228. background: #091d20;
  229. color: white;
  230. }
  231. .vertical-bar {
  232. width: 0px;
  233. height: 3rem;
  234. border: 0.5px solid rgba(14, 45, 50, 0.4);
  235. margin-left: 10px;
  236. margin-top: 0.2rem;
  237. }
  238. .btn-subscribe {
  239. background: #9edbdd;
  240. }
  241. /* =============== menu Styles =============== */
  242. .menu {
  243. display: flex;
  244. align-items: center;
  245. background-color: #ffffff;
  246. }
  247. .v-list-item-title {
  248. font-family: "Barlow";
  249. font-style: normal;
  250. font-weight: 500;
  251. font-size: 0.9rem;
  252. letter-spacing: 0.1em;
  253. text-transform: uppercase;
  254. color: #0e2d32;
  255. }
  256. .common-styles {
  257. font-family: "Barlow";
  258. font-style: normal;
  259. font-size: 1.1rem;
  260. padding: 0.1rem;
  261. font-weight: 700;
  262. letter-spacing: 0.1em;
  263. text-transform: uppercase;
  264. color: #0e2d32;
  265. text-decoration: none !important;
  266. }
  267. .link-style {
  268. font-family: "Barlow";
  269. font-style: normal;
  270. font-size: 1rem;
  271. margin-right: 3rem;
  272. font-weight: 700;
  273. letter-spacing: 0.05em;
  274. text-transform: uppercase;
  275. color: #0e2d32;
  276. text-decoration: none !important;
  277. cursor: pointer;
  278. }
  279. .link-styles {
  280. font-family: "Barlow";
  281. font-style: normal;
  282. text-decoration: none !important;
  283. color: #0e2d32;
  284. }
  285. .logo {
  286. height: 8rem;
  287. }
  288. .logo-md {
  289. width: 150px;
  290. height: 300px;
  291. }
  292. .icon {
  293. color: #000000;
  294. }
  295. </style>