templates/formules.twig line 1

  1. <div class="container-fluid py-5 wow fadeInUp" data-wow-delay="0.1s">
  2.     <div class="container py-5">
  3.         <div class="section-title text-center position-relative pb-3 mb-4 mx-auto" style="max-width: 600px;">
  4.             <h5 class="fw-bold text-primary text-uppercase">Pour des instants de bonheur sur Seine</h5>
  5.             <h1 class="mb-0">Les formules Villennes Boat</h1>
  6.         </div>
  7.     
  8.         <div class="owl-carousel testimonial-carousel wow fadeInUp" data-wow-delay="0.6s">
  9.             {% for abonnement in abonnements %}
  10.             <div class="col-lg-9 col-lg-9 mb-9">
  11.                 <div class="card border-0 shadow">
  12.                     <img src="{{ vich_uploader_asset(abonnement, 'imageFile') }}" class="card-img-top" alt="{{ abonnement.title }}">
  13.                     <div class="card-body">
  14.                         <label style="float:right"class="badge {{ abonnement.time == 'Formule Hebdomadaire' ? 'bg-primary' : (abonnement.time == 'Formule Annuelle' ? 'bg-success' :(abonnement.time == 'Compte Temps' ? 'bg-info' : (abonnement.time == 'Formule Mensuelle' ? 'bg-warning' : 'bg-danger'))) }}">{{ abonnement.time }}</label>
  15.                        
  16.                      <center>   <h5 class="card-title text-uppercase text-primary mb-1">{{ abonnement.title }}</h5></center>
  17.                         <p class="card-subtitle mb-2">{{ abonnement.subtitle }}</p>
  18.                      
  19.                         
  20.                         <p class="card-text card-description">{{ abonnement.description }}</p>
  21.                            <h2 class="display-5 mb-3">
  22.                             <small class="align-top" style="font-size: 22px; line-height: 45px;margin-right: 5px; padding-top: 5px">à partir de </small>
  23.                             {{ abonnement.price }}
  24.                             <small class="align-top" style="font-size: 22px; line-height: 45px;">€ <small class="align-bottom" style="font-size: 16px; line-height: 40px;">
  25.                                 {{ abonnement.time == 'Formule Hebdomadaire' ? '/semaines' :(abonnement.time == 'Formule Mensuelle' ? '/ mois' : (abonnement.time == 'Formule Annuelle' ? '/ an' : '')) }}
  26.                             </small></small>
  27.                             
  28.                         </h2>
  29.                     <center>    <a href="{{path ('app_contact')}}" class="btn btn-primary rounded-pill px-4 py-2" style="width: fit-content;">Contactez-nous</a></center>
  30.                     </div>
  31.                 </div>
  32.               </div>
  33.             {% endfor %}
  34.         </div>
  35.     </div>
  36. </div>
  37. <style>
  38. .card .badge {
  39.   position: absolute;
  40.   top: 10px;
  41.   right: 10px;
  42. }
  43. .card-img-top {
  44.     height: 300px; /* Ajustez la hauteur en fonction de vos besoins */
  45.     object-fit: cover;
  46. }
  47. .card-description {
  48.   max-height: 100px; /* Ajustez cette valeur selon vos besoins */
  49.   overflow: hidden;
  50.   text-overflow: ellipsis;
  51. }
  52. .card-body {
  53.   background-color: #f8f9fa;
  54.   padding: 1.5rem;
  55.   border-radius: 0 0 0.5rem 0.5rem;
  56. }
  57. .badge-container {
  58.   float: right;
  59. }
  60. .badge {
  61.   font-size: 0.9rem;
  62.   border-radius: 25px;
  63. }
  64. .card-title {
  65.   color: #1A66B7;
  66.   font-weight: 300;
  67. }
  68. .card-subtitle {
  69.   color: #d92e2e;
  70.   font-size: 1.2rem;
  71.   
  72.   margin-bottom: 0.5rem;
  73. }
  74. .card-text {
  75.   margin-bottom: 1rem;
  76.   font-size: 1rem;
  77. }
  78. .price {
  79.   margin-top: 1rem;
  80. }
  81. .btn-primary {
  82.   background-color: #1A66B7;
  83.   border-color: #1A66B7;
  84. }
  85. .btn-primary:hover {
  86.   background-color: #0d4473;
  87.   border-color: #0d4473;
  88. }
  89. /* Exemples de couleurs pastel */
  90. .bg-primary {
  91.   background-color: #9dc4e0;
  92.   color: #ffffff;
  93. }
  94. .bg-success {
  95.   background-color: #b6dfb3;
  96.   color: #ffffff;
  97. }
  98. .bg-info {
  99.   background-color: #c2e3e9;
  100.   color: #ffffff;
  101. }
  102. .bg-warning {
  103.   background-color: #f4e8b2;
  104.   color: #ffffff;
  105. }
  106. .bg-danger {
  107.   background-color: #f1b9b8;
  108.   color: #ffffff;
  109. }
  110. </style>