Clean up views

This commit is contained in:
2024-02-11 21:28:20 +01:00
parent 9adf931dd9
commit d58836f6ea
3 changed files with 26 additions and 11 deletions

View File

@ -2,9 +2,13 @@
<div class="lg:w-1/2 w-full flex py-4 md:px-4 align-middle items-center">
<div class="flex flex-col">
@isset ($featureTitle)
<h3 class="text-blue-800 font-bold text-xl mb-5 border-b-blue-300 border-b-2 pb-2 inline-block">
<h3 class="text-blue-800 font-bold text-xl mb-5
border-b-blue-300 border-b-2 pb-2 inline-block">
@isset($badge)
<span class="bg-blue-800 text-white px-2 py-1 rounded-xl mr-1 text-sm relative bottom-0.5">{{ \Illuminate\Support\Str::upper($badge) }}</span>
<span class="bg-blue-800 text-white px-2 py-1
rounded-xl mr-1 text-sm relative bottom-0.5">
{{ \Illuminate\Support\Str::upper($badge) }}
</span>
@endisset
{{ $featureTitle }}
</h3>
@ -12,6 +16,13 @@
<p class="text-lg text-gray-800">{{ $slot }}</p>
</div>
</div>
<div class="lg:w-1/2 w-full items-center align-middle rounded-lg shadow-lg" style='background-color: #EEE; background-position: {{ $yPosition ?? 'center' }} {{ $xPosition ?? 'center' }}; background-image: url("{{ $imgSrc ?? '' }}"); background-repeat: no-repeat; background-size: cover; min-height: 260px;'>
<div class="lg:w-1/2 w-full items-center align-middle rounded-lg shadow-lg" style='
background-color: #EEE;
background-position: {{ $yPosition ?? 'center' }} {{ $xPosition ?? 'center' }};
background-image: url("{{ $imgSrc ?? '' }}");
background-repeat: no-repeat;
background-size: cover;
min-height: 260px;'
>
</div>
</div>

View File

@ -1,8 +1,12 @@
<div class="lg:w-1/2 w-full flex py-4 md:px-4 align-middle items-center">
<div class="flex flex-col">
@isset ($featureTitle)
<h3 class="text-blue-800 font-bold mb-2 uppercase">{{ $featureTitle }}</h3>
<h3 class="text-blue-800 font-bold mb-2 uppercase">
{{ $featureTitle }}
</h3>
@endisset
<p class="text-gray-800">{{ $slot }}</p>
<p class="text-gray-800">
{{ $slot }}
</p>
</div>
</div>