footer.blade.php 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <footer class="fixed w-full h-[8vh] py-4 bottom-0 bg-jlg-dark-blue border-t border-jlg-light-white flex justify-between">
  2. <!-- @php(dynamic_sidebar('sidebar-footer'))-->
  3. <div class="text-sm">
  4. <button class="px-4 py-2 rounded-md ml-6 underline underline-offset-8 hover:underline-offset-4 active:underline-offset-8" onclick="displayAboutPopup()" id="about_button">À PROPOS</button>
  5. <button class="px-4 py-2 rounded-md ml-6 underline underline-offset-8 hover:underline-offset-4 active:underline-offset-8"><a href="mailto:<?php echo get_option('admin_email') ?>">CONTACT</a></button>
  6. </div>
  7. <div class="mr-6 flex items-center">
  8. <a href="https://www.thalim.cnrs.fr/?lang=fr" target="_blank" class="w-12 mr-4">
  9. <img class="w-full h-auto" alt="thalim" src="<?= get_template_directory_uri(); ?>/resources/assets/images/logos/thalim.png">
  10. </a>
  11. <a href="http://www.univ-paris3.fr/" target="_blank" class="w-24 mr-4">
  12. <img class="w-full h-auto" alt="sorbonne" src="<?= get_template_directory_uri(); ?>/resources/assets/images/logos/sorbonne.png">
  13. </a>
  14. <a href="https://www.cnrs.fr/fr" target="_blank" class="w-12 mr-4">
  15. <img class="w-full h-auto" alt="cnrs" src="<?= get_template_directory_uri(); ?>/resources/assets/images/logos/cnrs.png">
  16. </a>
  17. <a href="https://www.huma-num.fr/" target="_blank" class="w-12">
  18. <img class="w-full h-auto" alt="humanum" src="<?= get_template_directory_uri(); ?>/resources/assets/images/logos/huma-num.png">
  19. </a>
  20. </div>
  21. </footer>
  22. <div id="loading" style="
  23. width: 100vw;
  24. height: 100vh;
  25. background-color: #010d19;
  26. z-index: 9999;
  27. position: fixed;
  28. top: 0;
  29. left: 0;
  30. display: flex;
  31. justify-content: center;
  32. align-items: center;
  33. font-family: sans-serif;
  34. color: white;
  35. opacity: 1;
  36. transition: opacity 0.2s ease-out;
  37. ">
  38. <p>
  39. Chargement
  40. <span class="dot-one">.</span>
  41. <span class="dot-two">.</span>
  42. <span class="dot-three">.</span>
  43. </p>
  44. </div>
  45. <script>
  46. // Define the event listener function
  47. function closeAboutPopupHandler(event) {
  48. event.preventDefault();
  49. console.log(event.target);
  50. if (
  51. event.target != document.querySelector('#about_modale') &&
  52. event.target != document.querySelector('#about_button') &&
  53. event.target != document.querySelector('#about_title') &&
  54. event.target != document.querySelector('#about_content') &&
  55. event.target.parentElement != document.querySelector('#about_content')
  56. ) {
  57. closeAboutPopup();
  58. }
  59. }
  60. // Attach the event listener in the displayAboutPopup function
  61. function displayAboutPopup() {
  62. document.getElementById('about_popup').style.display = 'flex';
  63. setTimeout(() => {
  64. document.getElementById('about_popup').style.opacity = '1';
  65. window.addEventListener('click', closeAboutPopupHandler);
  66. }, 1);
  67. document.body.style.overflow = 'hidden';
  68. }
  69. // Remove the event listener in the closeAboutPopup function
  70. function closeAboutPopup() {
  71. document.getElementById('about_popup').style.opacity = '0';
  72. setTimeout(() => {
  73. document.getElementById('about_popup').style.display = 'none';
  74. }, 300);
  75. document.body.style.overflowY = 'scroll';
  76. // Remove the event listener
  77. window.removeEventListener('click', closeAboutPopupHandler);
  78. }
  79. </script>