templates/boat.twig line 1
<div class="container-fluid py-5 wow fadeInUp" data-wow-delay="0.1s" style="margin-top: 40px">
<div class="container py-5">
<div class="section-title text-center position-relative pb-3 mb-5 mx-auto" style="max-width: 600px;">
<h5 class="fw-bold text-primary text-uppercase">Nos Bateaux Disponibles</h5>
<h1 class="mb-0">Découvrez nos bateaux en location</h1>
</div>
<div class="owl-carousel testimonial-carousel wow fadeInUp" data-wow-delay="0.6s">
{% if embarcations %}
{% for embarcation in embarcations %}
<div class="col-lg-11 col-md-11 mb-4">
<div class="card border-0 shadow">
<img class="card-img-top" src="{{ vich_uploader_asset(embarcation, 'imageFile') }}" alt="{{ embarcation.name }}">
<div class="card-body">
{% if embarcation.permis %}
<span class="badge badge-success float-right" style="background-color: #e31313; color: #fff; border-radius: 25px;">PERMIS REQUIS</span>
{% else %}
<span class="badge badge-danger float-right" style="background-color: #329d14; color: #fff; border-radius: 25px;">SANS PERMIS</span>
{% endif %}
<center>
<h3 class=""style="color:#1A66B7">{{ embarcation.name }}</h3>
</center>
{% if embarcation.comment %}
<p class="card-comment card-subtitle mb-2">* {{ embarcation.comment }}</p>
{% endif %}
<div class="d-flex justify-content-between align-items-center mb-3">
<div class="col-sm">
{% if embarcation.comment %}
<div class="card-description">
{% else %}
<div class="card-description mt-3">
{% endif %}
<h4 class="card-title text-uppercase" style="color:#1A66B7">Description :</h4>
<p>{{ embarcation.description }}</p>
</div>
<h5 class="card-title text-uppercase " style="color:#1A66B7; margin-top: 15px">Caractéristiques :</h5>
</div>
</div>
<div class="row justify-content-center mt-3">
<div class="col-sm d-flex align-items-center">
<i class="fas fa-users mr-2" style="font-size: 15px;margin-right: 5px"></i>
<span class="text-uppercase" style="font-size: 15px;">{{ embarcation.people }} Places</span>
</div>
<div class="col-sm d-flex align-items-center">
<i class="fa fa-bolt mr-2" style="font-size: 15px;margin-right: 5px"></i>
<span class="text-uppercase" style="font-size: 15px;">Puissance : <span style="color: #1A66B7">{{ embarcation.motor }} cv</span></span>
</div>
</div>
<div class="row justify-content-center mt-3">
<div class="col-sm d-flex align-items-center">
<i class="fa-sharp fa-solid fa-ruler-vertical" style="font-size: 15px;margin-right: 5px"></i>
<span class="text-uppercase ml-2" style="font-size: 15px;">Longueur : <span style="color: #1A66B7">{{ embarcation.height }} m</span></span>
</div>
<div class="col-sm d-flex align-items-center">
<i class="fa-solid fa-ruler-horizontal" style="font-size: 15px;margin-right: 5px"></i>
<span class="text-uppercase ml-2" style="font-size: 15px;">Largeur : <span style="color: #1A66B7">{{ embarcation.width }} m</span></span>
</div>
</div>
<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>
</div>
</div>
</div>
{% endfor %}
</div>
{% else %}
<center>
<h3>Aucun bateau disponible</h3>
</center>
{% endif %}
</div>
</div>
</div>
<style>
.card {
min-height: 470px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
overflow: hidden;
border-radius: 10px;
transition: all 0.4s ease-in-out;
}
.card:hover {
box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
transform: translateY(-5px);
}
.card-img-top {
height: 500px;
overflow: hidden;
}
.card-img-top img {
object-fit: cover;
height: 100%;
width: 100%;
}
.card-title {
font-weight: bold;
font-size: 1.2rem;
}
.card-subtitle {
color: #d92e2e;
}
.card-text {
font-size: 0.9rem;
margin-bottom: 0;
}
.card-description {
/* Styles pour la description */
/* ... autres styles ... */
margin-top: 0; /* ou la valeur de marge supérieure souhaitée */
}
.btn {
font-weight: bold;
font-size: 1rem;
border-radius: 0;
transition: all 0.3s ease-in-out;
}
.btn:hover {
transform: translateY(-3px);
}
.card .badge {
position: absolute;
top: 10px;
right: 10px;
}
.card-img-top {
height: 300px; /* Ajustez la hauteur en fonction de vos besoins */
object-fit: cover;
}
@media (max-width: 767.98px) {
.card {
min-height: auto;
margin-bottom: 1.5rem;
}
.card-img-top {
height: 300px;
}
}
</style>