templates/boat.twig line 1

  1. <div class="container-fluid py-5 wow fadeInUp" data-wow-delay="0.1s" style="margin-top: 40px">
  2.   <div class="container py-5">
  3.     <div class="section-title text-center position-relative pb-3 mb-5 mx-auto" style="max-width: 600px;">
  4.       <h5 class="fw-bold text-primary text-uppercase">Nos Bateaux Disponibles</h5>
  5.       <h1 class="mb-0">Découvrez nos bateaux en location</h1>
  6.     </div>
  7.     <div class="owl-carousel testimonial-carousel wow fadeInUp" data-wow-delay="0.6s">
  8.       {% if embarcations %}
  9.         {% for embarcation in embarcations %}
  10.           <div class="col-lg-11 col-md-11 mb-4">
  11.             <div class="card border-0 shadow">
  12.               <img class="card-img-top" src="{{ vich_uploader_asset(embarcation, 'imageFile') }}" alt="{{ embarcation.name }}">
  13.               <div class="card-body">
  14.                 {% if embarcation.permis %}
  15.                   <span class="badge badge-success float-right" style="background-color: #e31313; color: #fff; border-radius: 25px;">PERMIS REQUIS</span>
  16.                 {% else %}
  17.                   <span class="badge badge-danger float-right" style="background-color: #329d14; color: #fff; border-radius: 25px;">SANS PERMIS</span>
  18.                 {% endif %}
  19.    <center>
  20.   <h3 class=""style="color:#1A66B7">{{ embarcation.name }}</h3>
  21. </center>
  22. {% if embarcation.comment %}
  23.     <p class="card-comment card-subtitle mb-2">* {{ embarcation.comment }}</p>
  24. {% endif %}
  25. <div class="d-flex justify-content-between align-items-center mb-3">
  26.   <div class="col-sm">
  27.   {% if embarcation.comment %}
  28.     <div class="card-description">
  29. {% else %}
  30.     <div class="card-description mt-3">
  31. {% endif %}
  32.     <h4 class="card-title text-uppercase" style="color:#1A66B7">Description :</h4>
  33.     <p>{{ embarcation.description }}</p>
  34. </div>
  35.     <h5 class="card-title text-uppercase " style="color:#1A66B7; margin-top: 15px">Caractéristiques :</h5>
  36.   </div>
  37. </div>
  38. <div class="row justify-content-center mt-3">
  39.       
  40.     <div class="col-sm d-flex align-items-center">
  41.         <i class="fas fa-users mr-2" style="font-size: 15px;margin-right: 5px"></i>
  42.         <span class="text-uppercase" style="font-size: 15px;">{{ embarcation.people }} Places</span>
  43.     </div>
  44.     <div class="col-sm d-flex align-items-center">
  45.         <i class="fa fa-bolt mr-2" style="font-size: 15px;margin-right: 5px"></i>
  46.         <span class="text-uppercase" style="font-size: 15px;">Puissance : <span style="color: #1A66B7">{{ embarcation.motor }} cv</span></span>
  47.     </div>
  48. </div>
  49. <div class="row justify-content-center mt-3">
  50. <div class="col-sm d-flex align-items-center">
  51. <i class="fa-sharp fa-solid fa-ruler-vertical"  style="font-size: 15px;margin-right: 5px"></i>
  52.   <span class="text-uppercase ml-2" style="font-size: 15px;">Longueur : <span style="color: #1A66B7">{{ embarcation.height }} m</span></span>
  53. </div>
  54. <div class="col-sm d-flex align-items-center">
  55. <i class="fa-solid fa-ruler-horizontal" style="font-size: 15px;margin-right: 5px"></i>
  56.   <span class="text-uppercase ml-2" style="font-size: 15px;">Largeur : <span style="color: #1A66B7">{{ embarcation.width }} m</span></span>
  57. </div>
  58. </div>
  59.                 <center><a href="{{embarcation.link}}" class="btn btn-primary btn-block mt-3" style="background-color: #1A66B7; border-color: #1A66B7; border-radius: 25px;">Réserver votre bateau</a></center>
  60.               </div>
  61.             </div>
  62.           </div>
  63.              {% endfor %}
  64.         </div>
  65.      
  66.       {% else %}
  67.         <center>
  68.           <h3>Aucun bateau disponible</h3>
  69.         </center>
  70.       {% endif %}
  71.     </div>
  72.   </div>
  73. </div>
  74.  <style>
  75. .card {
  76.     min-height: 470px;
  77.     box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  78.     overflow: hidden;
  79.     border-radius: 10px;
  80.     transition: all 0.4s ease-in-out;
  81. }
  82. .card:hover {
  83.     box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
  84.     transform: translateY(-5px);
  85. }
  86. .card-img-top {
  87.     height: 500px;
  88.     overflow: hidden;
  89. }
  90. .card-img-top img {
  91.     object-fit: cover;
  92.     height: 100%;
  93.     width: 100%;
  94. }
  95. .card-title {
  96.     font-weight: bold;
  97.     font-size: 1.2rem;
  98. }
  99. .card-subtitle {
  100.   color: #d92e2e;
  101. }
  102. .card-text {
  103.     font-size: 0.9rem;
  104.     margin-bottom: 0;
  105. }
  106. .card-description {
  107.     /* Styles pour la description */
  108.     /* ... autres styles ... */
  109.     margin-top: 0; /* ou la valeur de marge supérieure souhaitée */
  110. }
  111. .btn {
  112.     font-weight: bold;
  113.     font-size: 1rem;
  114.     border-radius: 0;
  115.     transition: all 0.3s ease-in-out;
  116. }
  117. .btn:hover {
  118.     transform: translateY(-3px);
  119. }
  120. .card .badge {
  121.   position: absolute;
  122.   top: 10px;
  123.   right: 10px;
  124. }
  125. .card-img-top {
  126.     height: 300px; /* Ajustez la hauteur en fonction de vos besoins */
  127.     object-fit: cover;
  128. }
  129. @media (max-width: 767.98px) {
  130.     .card {
  131.         min-height: auto;
  132.         margin-bottom: 1.5rem;
  133.     }
  134.     .card-img-top {
  135.         height: 300px;
  136.     }
  137. }
  138. </style>