templates/_partials/home/rebour-section.html.twig line 1

Open in your IDE?
  1. <style>
  2.     .countdown {
  3.         display: flex;
  4.     }
  5.     .countdown-item {
  6.         text-align: center;
  7.         margin-right: 20px;
  8.     }
  9.     .countdown-item:last-child {
  10.         margin-right: 0;
  11.     }
  12. </style>
  13. <div class="bg_color_1">
  14.     <div class="container margin_80_55">
  15.         <div class="main_title_2">
  16.             <span><em></em></span>
  17.         </div>
  18.         <div class="row d-flex">
  19.             <div class="col-lg-5 col-12">
  20.                 <h4 class="section-title">NOUVELLE APPLICATION MOBILE DISPONIBLE</h4>
  21.                 <span class="h2" style="color: #E6007E; font-weight: 700;">AYILA'A</span>
  22.                 <h6 class="">{{ 'appMobile.development'|trans([],'mobile_page') }}</h6>
  23.                 <p>
  24.                     {{ 'appMobile.dev1'|trans([],'mobile_page') }}
  25.                 </p>
  26.                 <p>
  27.                     {{ 'appMobile.dev3'|trans([],'mobile_page') }}
  28.                 </p>
  29.                 <div class="row d-flex">
  30.                     <div class="col-6  d-flex align-items-center">
  31.                         <a target="_blank" href="https://play.google.com/store/apps/details?id=com.ayilaacameroun">
  32.                             <img src="{{ asset('assets/img/fr_badge_web_generic.png') }}" alt="" style="width: 100%;">
  33.                         </a>
  34.                     </div>
  35.                     <div class="col-6 d-flex align-items-center">
  36.                         <a target="_blank" href="https://apps.apple.com/fr/app/ayilaa-cameroun/id6504582796">
  37.                             <img src="{{ asset('assets/img/Logo-App-Store.png') }}" alt="" style="width: 100%;">
  38.                         </a>
  39.                     </div>
  40.                 </div>
  41.             </div>
  42.             <div class="col-lg-7 col-12 mt-5">
  43. {#                <img src="{{ asset('assets/img/error-ayila-01.png') }}" alt="" style="width: 100%"/>#}
  44.                 <iframe width="100%" height="100%" src="https://www.youtube.com/embed/fQThIxcIFFQ?si=Eg0bXBBdbRkuCFME" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
  45.             </div>
  46.         </div>
  47.         <!--/row-->
  48.     </div>
  49.     <!--/container-->
  50. </div>
  51. <!--/bg_color_1-->
  52. <script>
  53.     // Date cible : 25 décembre 2023
  54.     const targetDate = new Date('2023-07-01T00:00:00');
  55.     function updateCountdown() {
  56.         const currentDate = new Date();
  57.         const timeDiff = targetDate - currentDate;
  58.         // Calcul des jours, heures, minutes et secondes restants
  59.         const days = Math.floor(timeDiff / (1000 * 60 * 60 * 24));
  60.         const hours = Math.floor((timeDiff % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
  61.         const minutes = Math.floor((timeDiff % (1000 * 60 * 60)) / (1000 * 60));
  62.         const seconds = Math.floor((timeDiff % (1000 * 60)) / 1000);
  63.         // Mise à jour des éléments HTML avec les valeurs du compte à rebours
  64.         document.getElementById('days').textContent = days;
  65.         document.getElementById('hours').textContent = hours;
  66.         document.getElementById('minutes').textContent = minutes;
  67.         document.getElementById('seconds').textContent = seconds;
  68.     }
  69.     // Mise à jour du compte à rebours chaque seconde
  70.     setInterval(updateCountdown, 1000);
  71. </script>