mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 18:20:48 +01:00
feat: Active Search for skins
This commit is contained in:
@@ -8,58 +8,59 @@
|
||||
Champion Skins</h1>
|
||||
<x-skins.searchbar />
|
||||
|
||||
<div class="flex justify-center items-center mx-auto max-w-screen-xl mt-2.5">
|
||||
</div>
|
||||
@fragment('skin-list')
|
||||
<div id="skin-list">
|
||||
<div class="container flex items-center justify-center p-4 mx-auto mt-3" >
|
||||
<div class="grid grid-cols-1 gap-12 md:grid-cols-2 lg:grid-cols-4">
|
||||
@foreach ($skins as $key => $skin)
|
||||
<div
|
||||
class="flex flex-col text-gray-700 border shadow-md champ-card bg-stone-800/40 rounded-2xl bg-clip-border border-stone-800 hover:border-orange-500/10 hover:shadow-orange-500/10">
|
||||
|
||||
<div class="container flex items-center justify-center p-4 mx-auto mt-3">
|
||||
<div class="grid grid-cols-1 gap-12 md:grid-cols-2 lg:grid-cols-4">
|
||||
|
||||
@foreach ($skins as $key => $skin)
|
||||
<div
|
||||
class="flex flex-col text-gray-700 border shadow-md champ-card bg-stone-800/40 rounded-2xl bg-clip-border border-stone-800 hover:border-orange-500/10 hover:shadow-orange-500/10">
|
||||
|
||||
@if ($skin->associated_skinline != null)
|
||||
<div class="flex justify-center px-2">
|
||||
@foreach ($skin->associated_skinline as $skinline)
|
||||
<span class="sr-only">Associated Skinline:</span>
|
||||
<span
|
||||
class="m-2 bg-orange-100 text-orange-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded border border-orange-300">
|
||||
{{ $skinline }}</span>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
<div class="mx-4 overflow-hidden border-2 h-52 rounded-2xl bg-clip-border border-orange-400/40">
|
||||
<a href="/skin/{{ $skin->slug }}">
|
||||
<img @if ($key < 8) loading="eager" @else loading="lazy" @endif
|
||||
src="//wsrv.nl/?url={{ $skin->getSkinImageAttribute() }}&w=540&output=webp&q=70&il"
|
||||
class="object-cover w-full h-full" alt="{{ $skin->skin_name }} Splash Art" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="px-4 py-2">
|
||||
<div class="flex items-center justify-between">
|
||||
<p class="block text-base antialiased font-medium text-gray-100">
|
||||
@if ($skin->associated_skinline != null)
|
||||
<div class="flex justify-center px-2">
|
||||
@foreach ($skin->associated_skinline as $skinline)
|
||||
<span class="sr-only">Associated Skinline:</span>
|
||||
<span
|
||||
class="m-2 bg-orange-100 text-orange-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded border border-orange-300">
|
||||
{{ $skinline }}</span>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
<div class="mx-4 overflow-hidden border-2 h-52 rounded-2xl bg-clip-border border-orange-400/40">
|
||||
<a href="/skin/{{ $skin->slug }}">
|
||||
{{ $skin->skin_name }}
|
||||
<img @if ($key < 8) loading="eager" @else loading="lazy" @endif
|
||||
src="//wsrv.nl/?url={{ $skin->getSkinImageAttribute() }}&w=540&output=webp&q=70&il"
|
||||
class="object-cover w-full h-full" alt="{{ $skin->skin_name }} Splash Art" />
|
||||
</a>
|
||||
</p>
|
||||
<span
|
||||
class="text-xs font-bold {{ $rarityColor[$skin->rarity] }}">{{ $skin->rarity }}</span>
|
||||
</div>
|
||||
|
||||
<div class="px-4 py-2">
|
||||
<div class="flex items-center justify-between">
|
||||
<p class="block text-base antialiased font-medium text-gray-100">
|
||||
<a href="/skin/{{ $skin->slug }}">
|
||||
{{ $skin->skin_name }}
|
||||
</a>
|
||||
</p>
|
||||
<span
|
||||
class="text-xs font-bold {{ $rarityColor[$skin->rarity] }}">{{ $skin->rarity }}</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex items-end justify-center px-4 mt-auto mb-2 text-2xl text-white md:text-lg">
|
||||
<p class="text-sm font-medium hover:text-orange-400"><a
|
||||
href="/skin/{{ $skin->slug }}">More
|
||||
details
|
||||
<x-iconsax-bul-arrow-circle-right class="inline-block w-6" />
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex items-end justify-center px-4 mt-auto mb-2 text-2xl text-white md:text-lg">
|
||||
<p class="text-sm font-medium hover:text-orange-400"><a href="/skin/{{ $skin->slug }}">More
|
||||
details
|
||||
<x-iconsax-bul-arrow-circle-right class="inline-block w-6" />
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
{{ $skins->links() }}
|
||||
</div>
|
||||
</div>
|
||||
{{ $skins->links() }}
|
||||
@endfragment
|
||||
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user