Merge pull request #2725 from brkcvn/master

Html structure changed for tips
This commit is contained in:
Burak Civan 2022-11-03 16:08:30 +03:00 committed by GitHub
commit f7b54ca252
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 18 deletions

View File

@ -10,18 +10,28 @@
{{ $item->title }} {{ $item->title }}
</h2> </h2>
<div class="text-sm mb-2"> <div
{!! $item->description !!} @class([
</div> 'float-right' => $item->align == 'right',
'float-left' => $item->align == 'left',
])
<x-link href="{{ $item->action }}" class="font-light text-sm" override="class" target="_blank"> style="width: 200px;"
<x-link.hover> >
{{ $item->learn_more }}
</x-link.hover> <div class="text-sm mb-2">
</x-link> {!! $item->description !!}
</div>
<x-link href="{{ $item->action }}" class="font-light text-sm" override="class" target="_blank">
<x-link.hover>
{{ $item->learn_more }}
</x-link.hover>
</x-link>
</div>
</div> </div>
<div class="absolute ltr:right-0 rtl:left-0 -top-4"> <div class="absolute ltr:right-0 rtl:left-0">
<img src="{{ $item->thumb }}" alt="{{ $item->title }}" /> <img src="{{ $item->thumb }}" alt="{{ $item->title }}" />
</div> </div>
</div> </div>

View File

@ -10,18 +10,27 @@
{{ $item->title }} {{ $item->title }}
</h2> </h2>
<div class="text-sm mb-2"> <div
{!! $item->description !!} @class([
</div> 'float-right' => $item->align == 'right',
'float-left' => $item->align == 'left',
])
<x-link href="{{ $item->action }}" class="font-light text-sm" override="class" target="_blank"> style="width: 200px;"
<x-link.hover> >
{{ $item->learn_more }} <div class="text-sm mb-2">
</x-link.hover> {!! $item->description !!}
</x-link> </div>
<x-link href="{{ $item->action }}" class="font-light text-sm" override="class" target="_blank">
<x-link.hover>
{{ $item->learn_more }}
</x-link.hover>
</x-link>
</div>
</div> </div>
<div class="absolute ltr:right-0 rtl:left-0 -top-4"> <div class="absolute ltr:right-0 rtl:left-0">
<img src="{{ $item->thumb }}" alt="{{ $item->title }}" /> <img src="{{ $item->thumb }}" alt="{{ $item->title }}" />
</div> </div>
</div> </div>