opentalent_manager.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <LayoutNavigation />
  3. <LogicielsManagerBanner />
  4. <LogicielsManagerMenuScroll />
  5. <div v-if="shouldShowStickyMenu" id="sticky-menu">
  6. <CommonStickyMenu
  7. :shouldShowStickyMenu="shouldShowStickyMenu"
  8. :squaresData="squaresData"
  9. />
  10. </div>
  11. <LogicielsManagerPresentation />
  12. <LogicielsManagerAvantages />
  13. <LogicielsManagerFonctionnalites />
  14. <LogicielsManagerPyramide />
  15. <LogicielsManagerFormation />
  16. <LogicielsManagerReviews />
  17. <LayoutFAQ />
  18. <LayoutFooterSolutionsFooter/>
  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: "red-square",
  28. iconClass: "fa-regular fa-comments icon",
  29. text: "Nous contacter",
  30. url: "/nous-contacter",
  31. },
  32. {
  33. id: 2,
  34. bgColor: "red-square",
  35. iconClass: "fa-brands fa-readme icon",
  36. text: "Brochure",
  37. url: "https://www.opentalent.fr/fileadmin/user_upload/Manager.pdf",
  38. },
  39. {
  40. id: 4,
  41. bgColor: "darkblue-square",
  42. iconClass: "fa-solid fa-phone icon",
  43. text: "Nous appeler",
  44. },
  45. ];
  46. onMounted(() => {
  47. const stickyMenu = document.getElementById("sticky-menu");
  48. const footer = document.getElementById("layout-footer");
  49. const observer = new IntersectionObserver(
  50. ([entry]) => {
  51. shouldShowStickyMenu.value = !entry.isIntersecting;
  52. },
  53. {
  54. root: null,
  55. threshold: 0,
  56. }
  57. );
  58. observer.observe(footer);
  59. });
  60. </script>
  61. <style scoped>
  62. #sticky-menu {
  63. position: sticky;
  64. top: 25rem;
  65. z-index: 10;
  66. margin-bottom: -35rem;
  67. float: right;
  68. }
  69. @media (max-width: 1800px) {
  70. #sticky-menu {
  71. top: 16rem;
  72. margin-bottom: -28rem;
  73. }
  74. }
  75. </style>