templates/home/index.html.twig line 1

  1. {% extends 'base.html.twig' %}
  2. {% block title %}+227 20 73 34 70{% endblock %}
  3. {% block body %}
  4.  
  5. {% for flashMessage in app.session.flashbag.get('souscription') %}
  6. <div class="alert alert-success">
  7.     {{ flashMessage }}
  8. </div>
  9. {% endfor %}
  10. {% for flashMessage in app.session.flashbag.get('sinistre') %}
  11.         <div class="alert alert-success">
  12.             {{ flashMessage }}
  13.         </div>
  14.     {% endfor %}
  15.   {% for flashMessage in app.session.flashbag.get('plainte') %}
  16.         <div class="alert alert-success">
  17.             {{ flashMessage }}
  18.         </div>
  19.     {% endfor %}
  20. {% for message in app.flashes('success') %}
  21.     <script>
  22.             window.onload = function () {
  23.                     Swal.fire({
  24.                     text:"{{message}}",
  25.                     icon:"success",
  26.                     buttonsStyling:false,
  27.                     confirmButtonText:"Ok",
  28.                     customClass:{
  29.                     confirmButton:"btn btn-success"
  30.                     }
  31.                     });
  32.                     };
  33.     </script>
  34. {% endfor %}
  35. {% for message in app.flashes('error') %}
  36.     <script>
  37.             window.onload = function () {
  38.                     Swal.fire({
  39.                     text:"{{message}}",
  40.                     icon:"error",
  41.                     buttonsStyling:false,
  42.                     confirmButtonText:"Ok",
  43.                     customClass:{
  44.                     confirmButton:"btn btn-success"
  45.                     }
  46.                     });
  47.                     };
  48.     </script>
  49. {% endfor %}
  50. <style>
  51. .custom-img {
  52.   width: 100%; /* Remplir toute la largeur disponible */
  53.   height: 50vh; /* Remplir la moitié de la hauteur de la fenêtre du navigateur */
  54.   object-fit: cover; /* L'image couvre la zone sans déformation */
  55. }
  56. </style>
  57. <!-- Carousel Start -->
  58. <div class="container-fluid p-0 mb-5 wow fadeIn" data-wow-delay="0.1s">
  59.       <div id="header-carousel" class="carousel slide" data-bs-ride="carousel">
  60.         <div class="carousel-inner">
  61.           <div class="carousel-item active">
  62.             {# <img class="h-50 w-80" src="{{asset('assets/img/IMAGE4.jpg')}}" alt="Image" /> #}
  63.             <img class="custom-img" src="{{asset('assets/img/IMAGE4.jpg')}}" alt="Image" />
  64.             <div class="absolute-div">
  65.               <div class="carousel-caption">
  66.                           <!-- Service Start -->
  67.     <div class="container-xl py-5 mb-5">
  68.       <div class="container">
  69.         <div class="text-center mx-auto" style="max-width: 500px;">
  70.           <h1 class="display-5 mb-4 d-none d-md-block">
  71.             Nos assurances
  72.           </h1>
  73.         </div>
  74.         <div class="row g-4 justify-content-center ">
  75.           <div class="row">
  76.             <div class="col-sm-4 rounded d-none d-md-block">
  77.               <a href="{{path('app_souscription_auto')}}">
  78.                 <div class="card mt-5">
  79.                   <div class="card-body">
  80.                     <h5 class="card-title text-center"><i class="fa fa-car-side" style="font-size: 2rem; color: #2a1266;"></i></h5>
  81.                     <h5 class="mt-4 text-center">Assurance </br> Automobile</h4>
  82.                   </div>
  83.                 </div>
  84.               </a>
  85.               <div class="text-center mt-3">
  86.                 <a href="https://www.caren-niger.com/index.php/particuliers/assurance-automobile" target="_blank">
  87.                   <i class="bi bi-question-circle-fill" style="font-size: 1.5rem; color: white;"></i>
  88.                 </a>
  89.               </div>
  90.             </div>
  91.             <div class="col-sm-6 rounded d-sm-block d-md-none d-lg-none" style="margin-bottom: -5px; width: 50%; height: 25%;">
  92.               <a href="{{path('app_souscription_auto')}}">
  93.                 <div class="card mt-3">
  94.                   <div class="card-body">
  95.                     <h5 class="card-title text-center"><i class="fa fa-car-side" style="font-size: 2rem; color: #2a1266;"></i></h5>
  96.                     <h5 class="mt-4 text-center" style="font-size: 1rem;">Assurance </br> Automobile</h4>
  97.                   </div>
  98.                 </div>
  99.               </a>
  100.               <div class="text-center mt-3">
  101.                 <a href="https://www.caren-niger.com/index.php/particuliers/assurance-automobile" target="_blank">
  102.                   <i class="bi bi-question-circle-fill" style="font-size: 1.5rem; color: white;"></i>
  103.                 </a>
  104.               </div>
  105.             </div>
  106.             <div class="col-sm-4 rounded d-none d-md-block">
  107.               <a href="{{path('app_souscription_Voyage')}}">
  108.                 <div class="card mt-5">
  109.                   <div class="card-body">
  110.                     <h5 class="card-title text-center"><i class="fa fa-plane-departure" style="font-size: 2rem; color: #2a1266;"></i></h5>
  111.                     <h5 class="mt-4 text-center">Assurance </br> voyage</h4>
  112.                   </div>
  113.                 </div>
  114.               </a>
  115.               <div class="text-center mt-3">
  116.                 <a href="https://www.caren-niger.com/index.php/particuliers/assurance-voyage" target="_blank">
  117.                   <i class="bi bi-question-circle-fill" style="font-size: 1.5rem; color: white;"></i>
  118.                 </a>
  119.               </div>
  120.             </div>
  121.             <div class="col-sm-6 rounded d-sm-block d-md-none d-lg-none" style="margin-bottom: -5px; width: 50%; height: 25%;">
  122.               <a href="{{path('app_souscription_Voyage')}}">
  123.                 <div class="card mt-3">
  124.                   <div class="card-body">
  125.                     <h5 class="card-title text-center"><i class="fa fa-plane-departure" style="font-size: 2rem; color: #2a1266;"></i></h5>
  126.                     <h5 class="mt-4 text-center" style="font-size: 1rem;">Assurance </br> voyage</h4>
  127.                   </div>
  128.                 </div>
  129.               </a>
  130.               <div class="text-center mt-3">
  131.                 <a href="https://www.caren-niger.com/index.php/particuliers/assurance-voyage" target="_blank">
  132.                   <i class="bi bi-question-circle-fill" style="font-size: 1.5rem; color: white;"></i>
  133.                 </a>
  134.               </div>
  135.             </div>
  136.             <div class="col-sm-4 rounded d-none d-md-block">
  137.               <a href="{{path('app_souscription_Habitation')}}">
  138.                 <div class="card mt-5">
  139.                   <div class="card-body">
  140.                     <h5 class="card-title text-center"><i class="fa fa-home" style="font-size: 2rem; color: #2a1266;"></i></h5>
  141.                     <h5 class="mt-4 text-center">Assurance </br> habitation</h4>
  142.                   </div>
  143.                 </div>
  144.               </a>
  145.               <div class="text-center mt-3">
  146.                 <a href="https://www.caren-niger.com/index.php/particuliers/assurance-habitation" target="_blank">
  147.                   <i class="bi bi-question-circle-fill" style="font-size: 1.5rem; color: white;"></i>
  148.                 </a>
  149.               </div>
  150.             </div>
  151.             <div class="col-3 rounded d-sm-block d-md-none d-lg-none">
  152.               
  153.             </div>
  154.             <div class="col-sm-6 rounded d-sm-block d-md-none d-lg-none" style="margin-bottom: -50px; width: 50%; height: 25%;">
  155.               <a href="{{path('app_souscription_Habitation')}}">
  156.                 <div class="card mt-3">
  157.                   <div class="card-body">
  158.                     <h5 class="card-title text-center"><i class="fa fa-home" style="font-size: 2rem; color: #2a1266;"></i></h5>
  159.                     <h5 class="mt-4 text-center" style="font-size: 1rem;" >Assurance </br> habitation</h4>
  160.                   </div>
  161.                 </div>
  162.               </a>
  163.               <div class="text-center mt-3">
  164.                 <a href="https://www.caren-niger.com/index.php/particuliers/assurance-habitation" target="_blank">
  165.                   <i class="bi bi-question-circle-fill" style="font-size: 1.5rem; color: white;"></i>
  166.                 </a>
  167.               </div>
  168.             </div>
  169.             <div class="col-3 rounded d-sm-block d-md-none d-lg-none">
  170.               
  171.             </div>
  172.             
  173.           </div> 
  174.         </div>
  175.       </div>
  176.     </div>
  177.     <!-- Service End -->
  178.               </div>
  179.             </div>
  180.           </div>
  181.         </div>
  182.       </div>
  183.     </div>
  184.     <!-- Carousel End -->
  185.     <!-- About Start -->
  186.     <div class="container-xxl py-2">
  187.       <div class="container">
  188.         <div class="row g-5">
  189.           <div class="col-lg-6 wow fadeInUp d-none d-md-block" data-wow-delay="0.1s">
  190.             <div
  191.               class="position-relative overflow-hidden rounded ps-5 pt-3 h-100"
  192.               style="min-height: 500px"
  193.             >
  194.               <img
  195.                 class="position-absolute"
  196.                 src="{{asset('assets/img/mobile.jpeg')}}"
  197.                 alt=""
  198.                 style="margin-left: 22%; height:470px;"
  199.               />
  200.               <div class="position-absolute top-0 start-0 bg-white rounded pe-3 pb-3" style="width: 200px; height: 200px">
  201.                     <div class="d-flex flex-column justify-content-center text-center bg-primary rounded h-100 p-3">
  202.                         <h3 class="text-white">{{ experienceYears }}</h3>
  203.                         <h4 class="text-white">années</h4>
  204.                         <h5 class="text-white">D'expérience</h5>
  205.                     </div>
  206.               </div>
  207.             </div>
  208.           </div>
  209.           <div class="col-lg-6 wow fadeInUp d-sm-block d-md-none d-lg-none" data-wow-delay="0.1s">
  210.               <div class="position-relative overflow-hidden rounded ps-5 pt-3 h-100" style="min-height: 500px">
  211.                   <img class="position-absolute" src="{{ asset('assets/img/mobile.jpeg') }}" alt="" style="margin-left: 10%; height:470px; width:310px;" />
  212.                   <div class="position-absolute top-0 start-0 bg-white rounded pe-3 pb-3" style="width: 158px; height: 140px">
  213.                       <div class="d-flex flex-column justify-content-center text-center bg-primary rounded h-100 p-2">
  214.                           <h3 class="text-white">{{ experienceYears }}</h3>
  215.                           <h4 class="text-white">années</h4>
  216.                           <h5 class="text-white">D'expérience</h5>
  217.                       </div>
  218.                   </div>
  219.               </div>
  220.           </div>
  221.         <div class="col-sm-12 col-lg-6 wow fadeInUp" data-wow-delay="0.5s">
  222.   <div class="h-100">
  223.     <h1 class="display-6 mb-5">
  224.       L'application mobile CAREN ASSURANCES
  225.     </h1>
  226.     <p class="fs-5 mb-4">
  227.       Téléchargez notre application mobile pour souscrire à nos assurances facilement, gérer vos contrats et bien plus encore. Disponible sur Google Play et l'App Store.
  228.     </p>
  229.     <div class="row g-4 mb-4">
  230.       <div class="col-sm-4 border rounded">
  231.         <a href="https://play.google.com/store/apps/details?id=com.app.carenmobile" target="_blank" class="d-block">
  232.           <div class="d-flex align-items-center">
  233.             <svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" fill="currentColor" class="bi bi-google-play mt-2 mb-2" viewBox="0 0 16 16" style="color: #2a1266;">
  234.               <path d="M14.222 9.374c1.037-.61 1.037-2.137 0-2.748L11.528 5.04 8.32 8l3.207 2.96 2.694-1.586Zm-3.595 2.116L7.583 8.68 1.03 14.73c.201 1.029 1.36 1.61 2.303 1.055l7.294-4.295ZM1 13.396V2.603L6.846 8 1 13.396ZM1.03 1.27l6.553 6.05 3.044-2.81L3.333.215C2.39-.341 1.231.24 1.03 1.27Z"/>
  235.             </svg>
  236.             <h6 class="mb-0">Google Play</h6>
  237.           </div>
  238.         </a>
  239.       </div>
  240.       <div class="col-sm-2">
  241.         <!-- Spacer -->
  242.       </div>
  243.       <div class="col-sm-4 border rounded">
  244.         <a href="javascript:void(0);" onclick="showAppStoreAlert();" class="d-block">
  245.           <div class="d-flex align-items-center">
  246.             <svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" fill="currentColor" class="bi bi-apple mt-2 mb-2" viewBox="0 0 16 16" style="color: #2a1266;">
  247.               <path d="M11.182.008C11.148-.03 9.923.023 8.857 1.18c-1.066 1.156-.902 2.482-.878 2.516.024.034 1.52.087 2.475-1.258.955-1.345.762-2.391.728-2.43Zm3.314 11.733c-.048-.096-2.325-1.234-2.113-3.422.212-2.189 1.675-2.789 1.698-2.854.023-.065-.597-.79-1.254-1.157a3.692 3.692 0 0 0-1.563-.434c-.108-.003-.483-.095-1.254.116-.508.139-1.653.589-1.968.607-.316.018-1.256-.522-2.267-.665-.647-.125-1.333.131-1.824.328-.49.196-1.422.754-2.074 2.237-.652 1.482-.311 3.83-.067 4.56.244.729.625 1.924 1.273 2.796.576.984 1.34 1.667 1.659 1.899.319.232 1.219.386 1.843.067.502-.308 1.408-.485 1.766-.472.357.013 1.061.154 1.782.539.571.197 1.111.115 1.652-.105.541-.221 1.324-1.059 2.238-2.758.347-.79.505-1.217.473-1.282Z"/>
  248.             </svg>
  249.             <h6 class="mb-0">App Store</h6>
  250.           </div>
  251.         </a>
  252.       </div>
  253.     </div>
  254.     <p class="mb-4 fs-5">
  255.       Découvrez une expérience utilisateur optimale pour la gestion de vos assurances, le tout directement depuis votre smartphone.
  256.     </p>
  257.   </div>
  258. </div>
  259.         </div>
  260.       </div>
  261.     </div>
  262.     <!-- About End -->
  263.     <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
  264. <script>
  265.   function showAppStoreAlert() {
  266.     Swal.fire({
  267.       title: 'Bientôt disponible!',
  268.       text: 'L\'application sera bientôt disponible sur l\'App Store.',
  269.       icon: 'info',
  270.       confirmButtonText: 'D\'accord',
  271.       confirmButtonColor: '#2a1266'
  272.     });
  273.   }
  274. </script>
  275. {% endblock %}