Navigation.vue 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. <template>
  2. <LayoutContainer>
  3. <v-row
  4. justify="space-between"
  5. :class="mdAndDown ? 'menu-bar' : 'menu-bar custom-row'"
  6. >
  7. <!-- Logo Column -->
  8. <v-col :cols="mdAndDown ? 8 : 6" sm="8" md="2">
  9. <nuxt-link to="/">
  10. <v-img class="logo" src="/images/Opentalent.png" />
  11. </nuxt-link>
  12. </v-col>
  13. <!-- Colored Square for Mobile -->
  14. <v-col v-if="mdAndDown" cols="3">
  15. <div class="colored-square"></div>
  16. </v-col>
  17. <!-- Menu Links -->
  18. <v-col v-if="!mdAndDown" cols="12" sm="7" md="5">
  19. <!-- Menu déroulant logiciels -->
  20. <v-menu open-on-hover>
  21. <template v-slot:activator="{ props }">
  22. <nuxt-link v-bind="props" class="common-styles" to="/software"
  23. >Nos logiciels
  24. </nuxt-link>
  25. </template>
  26. <v-list class="menu-list">
  27. <nuxt-link
  28. v-for="software in softwareLinks"
  29. :key="software.name"
  30. :to="software.href"
  31. class="link-styles"
  32. >
  33. <v-list-item>
  34. <v-list-item-title>{{ software.name }}</v-list-item-title>
  35. </v-list-item>
  36. </nuxt-link>
  37. </v-list>
  38. </v-menu>
  39. <!-- Menu déroulant services -->
  40. <v-menu open-on-hover>
  41. <template v-slot:activator="{ props }">
  42. <nuxt-link v-bind="props" class="common-styles" to="/software"
  43. >Nos services
  44. </nuxt-link>
  45. </template>
  46. <v-list>
  47. <nuxt-link
  48. v-for="service in serviceLinks"
  49. :key="service.name"
  50. :to="service.href"
  51. class="link-styles"
  52. >
  53. <v-list-item>
  54. <v-list-item-title>{{ service.name }}</v-list-item-title>
  55. </v-list-item>
  56. </nuxt-link>
  57. </v-list>
  58. </v-menu>
  59. <!-- Menu déroulant à propos -->
  60. <v-menu open-on-hover>
  61. <template v-slot:activator="{ props }">
  62. <nuxt-link v-bind="props" class="common-styles" to="/software"
  63. >A propos</nuxt-link
  64. >
  65. </template>
  66. <v-list>
  67. <nuxt-link
  68. v-for="info in aboutLinks"
  69. :key="info.name"
  70. :to="info.href"
  71. class="link-styles"
  72. >
  73. <v-list-item>
  74. <v-list-item-title>{{ info.name }}</v-list-item-title>
  75. </v-list-item>
  76. </nuxt-link>
  77. </v-list>
  78. </v-menu>
  79. <nuxt-link class="common-styles" to="/news">Actualités</nuxt-link>
  80. </v-col>
  81. <!-- Buttons Column -->
  82. <v-col v-if="!mdAndDown" cols="12" sm="12" md="5" class="buttons-col">
  83. <v-btn class="btn btn-common btn-login" text>
  84. <v-icon left class="fas fa-user mr-4"></v-icon> Se connecter
  85. </v-btn>
  86. <div class="vertical-bar" />
  87. <v-btn class="btn btn-common btn-subscribe ml-4" text>
  88. <v-icon left class="fas fa-calendar mr-4"></v-icon>Agenda Culturel
  89. </v-btn>
  90. </v-col>
  91. </v-row>
  92. </LayoutContainer>
  93. </template>
  94. <script setup>
  95. import { useDisplay } from "vuetify";
  96. const { mdAndDown } = useDisplay();
  97. const softwareLinks = ref([
  98. { name: "Opentalent Artist", href: "/opentalent_artist" },
  99. { name: "Opentalent School", href: "/opentalent_school" },
  100. { name: "Opentalent Manager", href: "/opentalent_manager" },
  101. ]);
  102. const serviceLinks = ref([
  103. { name: "Formations", href: "/formations" },
  104. { name: "Webinaires", href: "/webinaires" },
  105. ]);
  106. const aboutLinks = ref([
  107. { name: "Qui sommes-nous", href: "/qui-sommes-nous" },
  108. { name: "Nous rejoindre", href: "/nous-rejoindre" },
  109. { name: "Nous contacter", href: "/nous-contacter" },
  110. ]);
  111. </script>
  112. <style scoped>
  113. /* =============== Base Styles =============== */
  114. .v-list-item-title {
  115. font-family: "Barlow";
  116. font-style: normal;
  117. font-weight: 500;
  118. font-size: 0.9rem;
  119. letter-spacing: 0.1em;
  120. text-transform: uppercase;
  121. color: #0e2d32;
  122. }
  123. .common-styles {
  124. font-family: "Barlow";
  125. font-style: normal;
  126. font-size: 1.1rem;
  127. padding: 0.8rem;
  128. font-weight: 500;
  129. letter-spacing: 0.1em;
  130. text-transform: uppercase;
  131. color: #0e2d32;
  132. margin-right: 20px;
  133. text-decoration: none !important;
  134. }
  135. .link-styles {
  136. font-family: "Barlow";
  137. font-style: normal;
  138. text-decoration: none !important;
  139. color: #0e2d32;
  140. }
  141. .menu-bar {
  142. display: flex;
  143. align-items: center;
  144. background-color: #ffffff;
  145. height: 100%;
  146. margin-top: 10px;
  147. }
  148. .custom-row {
  149. padding: 0 2rem;
  150. }
  151. /* =============== Colored Square =============== */
  152. .colored-square {
  153. width: 3.5rem;
  154. height: 3.5rem;
  155. background-color: #091d20;
  156. }
  157. /* =============== Logo Styles =============== */
  158. .logo {
  159. height: 4.5rem;
  160. }
  161. /* =============== Menu Link Styles =============== */
  162. .menu-link {
  163. text-decoration: none;
  164. padding: 1.1rem;
  165. font-weight: 500;
  166. font-size: 1rem;
  167. letter-spacing: 0.1em;
  168. text-transform: uppercase;
  169. color: #0e2d32;
  170. margin-right: 0.2rem;
  171. }
  172. .menu-link:hover {
  173. text-decoration: underline;
  174. }
  175. /* =============== Button Styles =============== */
  176. .buttons-col {
  177. display: flex;
  178. }
  179. .btn-common {
  180. display: flex;
  181. flex-direction: row;
  182. align-items: center;
  183. padding: 25px;
  184. border-radius: 6px;
  185. margin-left: 15rem;
  186. font-family: "Barlow";
  187. font-style: normal;
  188. font-weight: 700;
  189. font-size: 0.9rem;
  190. }
  191. .btn-login {
  192. background: #091d20;
  193. color: white;
  194. }
  195. .vertical-bar {
  196. width: 0px;
  197. height: 3rem;
  198. border: 0.5px solid rgba(14, 45, 50, 0.4);
  199. margin-left: 10px;
  200. margin-top: 0.2rem;
  201. }
  202. .btn-subscribe {
  203. background: #9edbdd;
  204. }
  205. </style>