fix css and html structure

This commit is contained in:
Ludovic CANDELLIER
2023-02-05 22:57:47 +01:00
parent 32291dc44a
commit cb488383e0
8 changed files with 42 additions and 31 deletions

View File

@@ -1,17 +1,17 @@
<a href="{{ route('Shop.Articles.show', ['id' => $article['semences']['article_id'] ?? false ]) }}" class="{{ ($product_type == 'botanic') ? 'green-dark' : 'green-dark' }}">
<div class="card {{ (($article_nature ?? false) == 'semences') ? 'bg-yellow' : 'bg-green-dark' }}">
<div class="card">
<img src="{{ App\Repositories\Shop\Articles::getPreviewSrc($article['image'] ?? false) }}" class="card-img-top" alt="{{ $product_name }}">
<div class="card-body p-2 pb-1">
<div class="row card-title">
<div class="col-12 light">
<!--
<i class="fa fa-heart red"></i>
-->
<div class="col-12 green">
<div class="text-truncate mb-0" style="font-size: 1.3em;">{{ $article['parent_name'] }}</div>
<div class="text-truncate">{{ $article['product_name'] }}</div>
</div>
</div>
@include('Shop.Articles.partials.article_' . $product_type)
<button type="button" class="btn btn-link bg-green text-white w-100">
Ajout rapide
</button>
</div>
</div>
</a>