Navigation.vue 8.2 KB

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