Footer.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449
  1. <template>
  2. <!--suppress VueUnrecognizedDirective -->
  3. <footer v-intersect="onIntersect">
  4. <LayoutContainer>
  5. <div>
  6. <v-row>
  7. <!-- Première section : Logo Opentalent -->
  8. <v-col cols="12" lg="3" class="logo">
  9. <nuxt-link :to="{ path: '/', hash: '#top' }">
  10. <v-img
  11. src="/images/logos/opentalent/Logo_Opentalent-blanc.png"
  12. alt="Logo Opentalent - Agenda et Logiciels culturels"
  13. />
  14. </nuxt-link>
  15. </v-col>
  16. <!-- Deuxième section : liens agenda culturel (écrans larges seulement) -->
  17. <v-col v-if="lgAndUp" cols="7">
  18. <v-row>
  19. <v-col cols="3">
  20. <v-row>
  21. <h5>Agenda</h5>
  22. </v-row>
  23. <v-row>
  24. <AgendaLink href="/annuaire"> Annuaire </AgendaLink>
  25. </v-row>
  26. <v-row>
  27. <AgendaLink href="/actualites"> Actualités </AgendaLink>
  28. </v-row>
  29. <v-row>
  30. <AgendaLink href="/annonces"> Annonces </AgendaLink>
  31. </v-row>
  32. </v-col>
  33. <!-- Troisième section : liens logiciels culturels (écrans larges seulement) -->
  34. <v-col cols="3">
  35. <v-row>
  36. <h5>Logiciels</h5>
  37. </v-row>
  38. <v-row>
  39. <nuxt-link to="/opentalent-artist">
  40. Opentalent Artist
  41. </nuxt-link>
  42. </v-row>
  43. <v-row>
  44. <nuxt-link to="/opentalent-school">
  45. Opentalent School
  46. </nuxt-link>
  47. </v-row>
  48. <v-row>
  49. <nuxt-link to="/opentalent-manager">
  50. Opentalent Manager
  51. </nuxt-link>
  52. </v-row>
  53. </v-col>
  54. <!-- Quatrième section : A propos (écrans larges seulement) -->
  55. <v-col cols="3">
  56. <v-row>
  57. <h5>A PROPOS</h5>
  58. </v-row>
  59. <v-row>
  60. <nuxt-link to="/qui-sommes-nous"> Qui sommes-nous </nuxt-link>
  61. </v-row>
  62. <v-row>
  63. <nuxt-link to="/nous-rejoindre"> Nous rejoindre </nuxt-link>
  64. </v-row>
  65. <v-row>
  66. <nuxt-link to="/nous-contacter"> Nous contacter </nuxt-link>
  67. </v-row>
  68. </v-col>
  69. <!-- Cinquième section : liens espace client (écrans larges seulement) -->
  70. <v-col cols="3">
  71. <v-row>
  72. <h5>Espace client</h5>
  73. </v-row>
  74. <v-row>
  75. <nuxt-link
  76. href="https://ressources.opentalent.fr/display/FAQ/Accueil"
  77. target="_blank"
  78. >
  79. Foire Aux Questions
  80. </nuxt-link>
  81. </v-row>
  82. <v-row>
  83. <nuxt-link
  84. href="https://ressources.opentalent.fr/"
  85. target="_blank"
  86. >
  87. Support en ligne
  88. </nuxt-link>
  89. </v-row>
  90. </v-col>
  91. </v-row>
  92. </v-col>
  93. <!-- Sixième section : liens réseaux sociaux (écrans larges seulement) -->
  94. <v-col v-if="lgAndUp" cols="2">
  95. <v-row class="justify-center">
  96. <h5>Suivez-nous</h5>
  97. </v-row>
  98. <v-row class="justify-center social-networks">
  99. <v-col cols="2">
  100. <nuxt-link
  101. href="https://www.facebook.com/opentalent"
  102. target="_blank"
  103. class="fab fa-square-facebook"
  104. />
  105. </v-col>
  106. <v-col cols="2">
  107. <nuxt-link
  108. href="https://twitter.com/Opentalent_FRA"
  109. target="_blank"
  110. class="fa-brands fa-square-x-twitter"
  111. />
  112. </v-col>
  113. <v-col cols="2">
  114. <nuxt-link
  115. href="https://www.linkedin.com/company/2iopenservice"
  116. target="_blank"
  117. class="fab fa-linkedin"
  118. />
  119. </v-col>
  120. <v-col cols="2">
  121. <nuxt-link
  122. href="https://www.youtube.com/@Opentalent74300"
  123. target="_blank"
  124. class="fab fa-square-youtube"
  125. />
  126. </v-col>
  127. </v-row>
  128. </v-col>
  129. </v-row>
  130. <!-- Deuxième section alt : version petits écrans -->
  131. <v-row v-if="mdAndDown" class="justify-center social-networks">
  132. <!-- TODO: voir si faisable de fusionner avec la section précédente -->
  133. <v-col cols="12" class="text-center">
  134. <nuxt-link
  135. href="https://www.facebook.com/opentalent"
  136. target="_blank"
  137. class="fab fa-square-facebook"
  138. />
  139. <nuxt-link
  140. href="https://twitter.com/Opentalent_FRA"
  141. target="_blank"
  142. class="fa-brands fa-square-x-twitter"
  143. />
  144. <nuxt-link
  145. href="https://www.linkedin.com/company/2iopenservice"
  146. target="_blank"
  147. class="fab fa-linkedin"
  148. />
  149. <nuxt-link
  150. href="https://www.youtube.com/@Opentalent74300"
  151. target="_blank"
  152. class="fab fa-square-youtube"
  153. />
  154. </v-col>
  155. </v-row>
  156. </div>
  157. <!-- Troisième section alt : version petits écrans -->
  158. <v-row v-if="mdAndDown">
  159. <v-col cols="12">
  160. <div v-for="(item, index) in footerLinks" :key="index">
  161. <v-container>
  162. <div class="section" @click="toggleSection(index)">
  163. <div class="d-flex flex-row justify-space-between">
  164. {{ item.label }}
  165. <v-icon
  166. :icon="
  167. isActive(index)
  168. ? 'fas fa-chevron-up'
  169. : 'fas fa-chevron-down'
  170. "
  171. />
  172. </div>
  173. <div
  174. v-for="(sublink, sublinkIndex) in item.sublink"
  175. v-show="isActive(index)"
  176. :key="sublinkIndex"
  177. class="mt-3"
  178. >
  179. <nuxt-link :href="sublink.link" :target="sublink.target ?? '_self'">
  180. {{ sublink.label }}
  181. </nuxt-link>
  182. </div>
  183. </div>
  184. </v-container>
  185. </div>
  186. </v-col>
  187. </v-row>
  188. <div class="footnotes">
  189. <v-row justify="center">
  190. <p class="mt-6">
  191. <nuxt-link to="/mentions-legales"> Mentions légales </nuxt-link>
  192. -
  193. <nuxt-link
  194. to="/politique-de-confidentialite-et-protection-des-donnees-personnelles"
  195. >
  196. Politiques de confidentialité
  197. </nuxt-link>
  198. -
  199. <nuxt-link to="/cgv"> Conditions Générales de Ventes </nuxt-link>
  200. </p>
  201. </v-row>
  202. <v-row class="mb-3" justify="center">
  203. <p>
  204. 2024 © Opentalent est une marque déposée par 2iOPENservice
  205. </p>
  206. </v-row>
  207. </div>
  208. </LayoutContainer>
  209. </footer>
  210. </template>
  211. <script setup lang="ts">
  212. import { useDisplay } from 'vuetify'
  213. import { useLayoutStore } from '~/stores/layoutStore'
  214. import AgendaLink from '~/components/Common/AgendaLink.vue'
  215. import UrlUtils from '~/services/utils/urlUtils.js'
  216. const { mdAndDown, lgAndUp } = useDisplay()
  217. const runtimeConfig = useRuntimeConfig()
  218. const makeAgendaLink = (path: string) => {
  219. return UrlUtils.join(runtimeConfig.public.agendaBaseUrl as string, path)
  220. }
  221. const footerLinks = ref([
  222. {
  223. label: 'AGENDA',
  224. sublink: [
  225. {
  226. label: 'Annuaire',
  227. link: makeAgendaLink('/annuaire'),
  228. target: '_blank',
  229. },
  230. {
  231. label: 'Actualités',
  232. link: makeAgendaLink('/actualites'),
  233. target: '_blank',
  234. },
  235. {
  236. label: 'Annonces',
  237. link: makeAgendaLink('/annonces'),
  238. target: '_blank',
  239. },
  240. ],
  241. },
  242. {
  243. label: 'LOGICIELS ',
  244. sublink: [
  245. {
  246. label: 'Opentalent Artist',
  247. link: '/opentalent-artist',
  248. },
  249. {
  250. label: 'Opentalent School',
  251. link: '/opentalent-school',
  252. },
  253. {
  254. label: 'Opentalent Manager',
  255. link: '/opentalent-manager',
  256. },
  257. ],
  258. },
  259. {
  260. label: 'À PROPOS ',
  261. sublink: [
  262. {
  263. label: 'Qui sommes-nous',
  264. link: '/qui-sommes-nous',
  265. },
  266. {
  267. label: 'Nous rejoindre',
  268. link: '/nous-rejoindre',
  269. },
  270. {
  271. label: 'Nous contacter',
  272. link: '/nous-contacter',
  273. },
  274. ],
  275. },
  276. {
  277. label: 'ESPACE CLIENT ',
  278. sublink: [
  279. {
  280. label: 'Foire Aux Questions ',
  281. link: 'https://ressources.opentalent.fr',
  282. },
  283. {
  284. label: 'Support en ligne ',
  285. link: 'https://ressources.opentalent.fr/?contact',
  286. },
  287. ],
  288. },
  289. ])
  290. const activeIndex = ref(-1)
  291. function toggleSection(index: number) {
  292. activeIndex.value = activeIndex.value === index ? -1 : index
  293. }
  294. function isActive(index: number) {
  295. return activeIndex.value === index
  296. }
  297. const layoutStore = useLayoutStore()
  298. const onIntersect = (isIntersecting: boolean) => {
  299. layoutStore.setIsFooterVisible(isIntersecting)
  300. }
  301. </script>
  302. <style scoped lang="scss">
  303. .container {
  304. background: var(--primary-color);
  305. color: var(--on-primary-color);
  306. }
  307. .logo {
  308. display: flex;
  309. flex-direction: row;
  310. justify-content: center;
  311. margin-bottom: 20px;
  312. }
  313. .logo .v-img {
  314. height: 120px;
  315. width: 300px;
  316. }
  317. .v-col {
  318. padding: 12px;
  319. }
  320. .container {
  321. padding-top: 32px;
  322. }
  323. h5 {
  324. font-weight: 500;
  325. line-height: 20px;
  326. margin-top: 20px;
  327. margin-bottom: 1rem;
  328. font-size: 1.1rem;
  329. letter-spacing: 1.2px;
  330. text-transform: uppercase;
  331. }
  332. a {
  333. font-weight: 300;
  334. font-size: 0.9rem;
  335. line-height: 20px;
  336. color: var(--on-primary-color);
  337. text-decoration: none !important;
  338. margin-bottom: 0.5rem;
  339. }
  340. .social-networks {
  341. a {
  342. color: var(--on-primary-color);
  343. font-size: 1.9rem;
  344. text-decoration: none !important;
  345. }
  346. @media (max-width: 1240px) {
  347. a {
  348. margin: 0 3%;
  349. font-size: 2.4rem;
  350. }
  351. }
  352. }
  353. .footnotes {
  354. border-top: 0.4px solid var(--neutral-color-alt-strong);
  355. box-shadow: 0 3px 24px rgba(0, 0, 0, 0.07);
  356. a,
  357. p {
  358. text-decoration: none;
  359. color: var(--on-primary-color);
  360. font-size: 0.8rem;
  361. @media (max-width: 600px) {
  362. max-width: 90%;
  363. text-align: center;
  364. }
  365. }
  366. }
  367. @media (max-width: 960px) {
  368. .logo {
  369. display: flex;
  370. justify-content: center;
  371. align-items: center;
  372. height: 140px;
  373. }
  374. .logo .v-img {
  375. width: 18rem;
  376. }
  377. .social-networks {
  378. a {
  379. font-size: 3rem;
  380. margin: 0 1rem;
  381. }
  382. }
  383. .section {
  384. display: flex;
  385. flex-direction: column;
  386. justify-content: space-between;
  387. text-align: left;
  388. font-weight: 700;
  389. font-size: 1.5rem;
  390. cursor: pointer;
  391. > div:first-child {
  392. border-bottom: 1px solid var(--on-primary-color);
  393. padding-bottom: 6px;
  394. text-transform: uppercase;
  395. }
  396. a {
  397. font-weight: 300;
  398. font-size: 1.3rem;
  399. line-height: 20px;
  400. color: var(--on-primary-color);
  401. text-decoration: none !important;
  402. text-align: left;
  403. }
  404. }
  405. .footnotes {
  406. border: none;
  407. }
  408. }
  409. </style>