qui-sommes-nous.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <LayoutNavigation />
  3. <div v-if="shouldShowStickyMenu" id="sticky-menu">
  4. <LayoutUIStickyMenu
  5. :shouldShowStickyMenu="shouldShowStickyMenu"
  6. :squaresData="squaresData"
  7. />
  8. </div>
  9. <AboutBanner />
  10. <AboutMenuScroll />
  11. <AboutHistoire />
  12. <AboutValeurs />
  13. <AboutLogiciels />
  14. <AboutAgenda />
  15. <AboutChronologie />
  16. <AboutEquipe />
  17. <AboutFAQ />
  18. <LayoutPrefooter />
  19. <LayoutFooter id="layout-footer" />
  20. </template>
  21. <script setup>
  22. import { ref, onMounted } from "vue";
  23. const shouldShowStickyMenu = ref(true);
  24. const squaresData = [
  25. {
  26. id: 1,
  27. bgColor: "green-square",
  28. iconClass: "fa-regular fa-comments icon",
  29. text: "Nous contacter",
  30. url: "/nous-contacter",
  31. },
  32. {
  33. id: 2,
  34. bgColor: "green-square",
  35. iconClass: "fa-solid fa-circle-info icon",
  36. text: "Demander une demo",
  37. url: "/nous-contacter",
  38. },
  39. {
  40. id: 3,
  41. bgColor: "green-square",
  42. iconClass: "fa-brands fa-readme icon",
  43. text: "Brochure",
  44. url: "https://www.opentalent.fr/fileadmin/stockage/commercial/plaquettes_commerciales/De%CC%81pliant-school_23.pdf",
  45. },
  46. {
  47. id: 4,
  48. bgColor: "darkblue-square",
  49. iconClass: "fa-solid fa-phone icon",
  50. text: "Nous Appeler",
  51. },
  52. ];
  53. onMounted(() => {
  54. const stickyMenu = document.getElementById("sticky-menu");
  55. const footer = document.getElementById("layout-footer");
  56. const observer = new IntersectionObserver(
  57. ([entry]) => {
  58. shouldShowStickyMenu.value = !entry.isIntersecting;
  59. },
  60. {
  61. root: null,
  62. threshold: 0,
  63. }
  64. );
  65. observer.observe(footer);
  66. });
  67. </script>
  68. <style scoped>
  69. #sticky-menu {
  70. position: sticky;
  71. top: 20rem;
  72. z-index: 10;
  73. margin-bottom: -32rem;
  74. float: right;
  75. }
  76. @media (max-width: 1800px) {
  77. #sticky-menu {
  78. top: 16rem;
  79. margin-bottom: -28rem;
  80. }
  81. }
  82. </style>