27 lines
1.5 KiB
PHP
27 lines
1.5 KiB
PHP
{{--
|
|
VARIABLE || COMMENT || TYPE || REQUIRED || DEFAULT
|
|
|
|
$picture || Elements of the img tag. || array<string, string> || REQUIRED ||
|
|
$text || Text displayed in the card. || string || REQUIRED ||
|
|
$link || Link to redirect in the button. || string || REQUIRED ||
|
|
$linkNewTab || Should the link be opened in a new tab ? || boolean || OPTIONNAL || false
|
|
--}}
|
|
|
|
<div class="breeding-card bottom-left-shadow position-relative card mb-5 border-0 bg-transparent">
|
|
<div class="card-img-top line-border-medium img-wrapper bg-white p-2">
|
|
<img class="w-100 line-border-medium" src="{{ Vite::asset($picture['src']) }}" title="{{ $picture['alt'] }}"
|
|
alt="{{ $picture['title'] }}">
|
|
</div>
|
|
<div class="card-body position-absolute w-100 d-flex flex-column p-0">
|
|
<div class="position-relative">
|
|
<div class="line-border-medium text-zone pb-4 pt-3">
|
|
<p class="text-uppercase fs-4 f-bourton-base px-4 pt-3 text-white">{{ $text }}</p>
|
|
</div>
|
|
<div class="position-absolute w-100 d-flex justify-content-center breeding-card-btn">
|
|
<a class="btn btn-quint f-bourton-base" href="{{ $link }}"
|
|
@if (!empty($linkNewTab)) target="_blank" @endif>{{ __('En savoir plus') }}</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|