44 lines
2 KiB
PHP
44 lines
2 KiB
PHP
@props(['title' => '', 'subtitle' => '', 'image' => '', 'title_img' => '', 'alt_img' => ''])
|
|
|
|
@php
|
|
$translatedTitle = __($title);
|
|
$translatedSubtitle = __($subtitle);
|
|
@endphp
|
|
{{-- FIXME --}}
|
|
{{-- Image banner to centered --}}
|
|
<section id="header-banner" @class(['position-relative header-line-border '])>
|
|
<div class="position-absolute w-100 h-100 bottom-0 z-0" id="header-background"></div>
|
|
<div class="row w-100 pb-lg-5 position-relative z-2 container mx-auto pb-0">
|
|
<div class="col-12 col-xl-6 position-relative z-1">
|
|
@include('modules.breadcrumbs.breadcrumb-body')
|
|
<hgroup>
|
|
@if (isset($badge) && !empty($badge))
|
|
<div class="f-bourton-base mt-4 w-fit px-2 py-1 text-white" style="background-color:{{ $badge->color }}">
|
|
{!! clean($badge->label) !!}
|
|
</div>
|
|
@endif
|
|
<div class="d-flex align-items-center">
|
|
@if (isset($badge) && !empty($picto))
|
|
<img class="img-fluid my-3 me-2" id="header-banner-picto" src="{{ $picto }}" title="{!! clean($picto->picto_title) !!}"
|
|
alt="{{ $picto_alt }}">
|
|
@endif
|
|
<h1 class="my-3">{!! clean($title) !!}</h1>
|
|
</div>
|
|
<p>{!! clean($subtitle) !!}
|
|
</p>
|
|
</hgroup>
|
|
</div>
|
|
<div class="d-none d-xl-block col-6 col-xxl-4">
|
|
<div class="header-image-wrapper breeding-header-translate-right">
|
|
<img class="img-fluid" src="{{ asset($image) }}"
|
|
title="{!! clean($title_img) !!}" alt="{!! clean($alt_img) !!}">
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-md-8 position-relative z-1 mx-auto mt-4">
|
|
<div class="d-xl-none header-image-wrapper">
|
|
<img class="img-fluid" src="{{ asset($image) }}"
|
|
title="{!! clean($title_img) !!}" alt="{!! clean($alt_img) !!}">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|