templates/formules.twig line 1
<div class="container-fluid py-5 wow fadeInUp" data-wow-delay="0.1s">
<div class="container py-5">
<div class="section-title text-center position-relative pb-3 mb-4 mx-auto" style="max-width: 600px;">
<h5 class="fw-bold text-primary text-uppercase">Pour des instants de bonheur sur Seine</h5>
<h1 class="mb-0">Les formules Villennes Boat</h1>
</div>
<div class="owl-carousel testimonial-carousel wow fadeInUp" data-wow-delay="0.6s">
{% for abonnement in abonnements %}
<div class="col-lg-9 col-lg-9 mb-9">
<div class="card border-0 shadow">
<img src="{{ vich_uploader_asset(abonnement, 'imageFile') }}" class="card-img-top" alt="{{ abonnement.title }}">
<div class="card-body">
<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>
<center> <h5 class="card-title text-uppercase text-primary mb-1">{{ abonnement.title }}</h5></center>
<p class="card-subtitle mb-2">{{ abonnement.subtitle }}</p>
<p class="card-text card-description">{{ abonnement.description }}</p>
<h2 class="display-5 mb-3">
<small class="align-top" style="font-size: 22px; line-height: 45px;margin-right: 5px; padding-top: 5px">à partir de </small>
{{ abonnement.price }}
<small class="align-top" style="font-size: 22px; line-height: 45px;">€ <small class="align-bottom" style="font-size: 16px; line-height: 40px;">
{{ abonnement.time == 'Formule Hebdomadaire' ? '/semaines' :(abonnement.time == 'Formule Mensuelle' ? '/ mois' : (abonnement.time == 'Formule Annuelle' ? '/ an' : '')) }}
</small></small>
</h2>
<center> <a href="{{path ('app_contact')}}" class="btn btn-primary rounded-pill px-4 py-2" style="width: fit-content;">Contactez-nous</a></center>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
<style>
.card .badge {
position: absolute;
top: 10px;
right: 10px;
}
.card-img-top {
height: 300px; /* Ajustez la hauteur en fonction de vos besoins */
object-fit: cover;
}
.card-description {
max-height: 100px; /* Ajustez cette valeur selon vos besoins */
overflow: hidden;
text-overflow: ellipsis;
}
.card-body {
background-color: #f8f9fa;
padding: 1.5rem;
border-radius: 0 0 0.5rem 0.5rem;
}
.badge-container {
float: right;
}
.badge {
font-size: 0.9rem;
border-radius: 25px;
}
.card-title {
color: #1A66B7;
font-weight: 300;
}
.card-subtitle {
color: #d92e2e;
font-size: 1.2rem;
margin-bottom: 0.5rem;
}
.card-text {
margin-bottom: 1rem;
font-size: 1rem;
}
.price {
margin-top: 1rem;
}
.btn-primary {
background-color: #1A66B7;
border-color: #1A66B7;
}
.btn-primary:hover {
background-color: #0d4473;
border-color: #0d4473;
}
/* Exemples de couleurs pastel */
.bg-primary {
background-color: #9dc4e0;
color: #ffffff;
}
.bg-success {
background-color: #b6dfb3;
color: #ffffff;
}
.bg-info {
background-color: #c2e3e9;
color: #ffffff;
}
.bg-warning {
background-color: #f4e8b2;
color: #ffffff;
}
.bg-danger {
background-color: #f1b9b8;
color: #ffffff;
}
</style>