mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2026-02-04 03:33:13 +01:00
perf(seo): add image dimensions and aspect-ratio handling
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<a href="/icon/{{ $icon->slug }}">
|
||||
<img @if ($key < 8) loading="eager" @else loading="lazy" @endif
|
||||
src="//wsrv.nl/?url={{ $icon->image }}&w=200&output=webp&q=50&il&default=ssl:wsrv.nl%2F%3Furl%3Dhttps://i.ibb.co/5s6YyvN/aaaa.png"
|
||||
class="object-cover w-full h-full" alt="{{ $icon->title }} Icon" /></a>
|
||||
class="object-cover w-full h-full" alt="{{ $icon->title }} Icon" width="96" height="96" /></a>
|
||||
</div>
|
||||
|
||||
<div class="px-4 py-2">
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
src="{{ $post->thumbnail }}"
|
||||
alt="{{ $post->title }} Thumbnail"
|
||||
class="object-cover w-full h-full"
|
||||
width="1200"
|
||||
height="630"
|
||||
>
|
||||
</a>
|
||||
|
||||
|
||||
@@ -97,7 +97,9 @@
|
||||
<img src="{{ $post->thumbnail }}"
|
||||
alt="{{ $post->title }}"
|
||||
class="object-cover w-full h-full transition duration-700 transform hover:scale-105"
|
||||
loading="eager">
|
||||
loading="eager"
|
||||
width="1920"
|
||||
height="1080">
|
||||
</div>
|
||||
@endif
|
||||
</header>
|
||||
@@ -160,7 +162,7 @@
|
||||
<a href="{{ route('posts.show', $relatedPost->slug) }}" class="flex flex-col h-full group">
|
||||
<div class="overflow-hidden relative mb-4 w-full rounded-xl border transition-all aspect-video bg-stone-800 border-stone-700 group-hover:border-orange-500/50">
|
||||
@if($relatedPost->thumbnail)
|
||||
<img src="{{ $relatedPost->thumbnail }}" alt="{{ $relatedPost->title }}" class="object-cover w-full h-full transition duration-500 group-hover:scale-105">
|
||||
<img src="{{ $relatedPost->thumbnail }}" alt="{{ $relatedPost->title }}" class="object-cover w-full h-full transition duration-500 group-hover:scale-105" width="1920" height="1080">
|
||||
@else
|
||||
<div class="flex justify-center items-center w-full h-full bg-gradient-to-br from-stone-800 to-stone-900 text-stone-700">
|
||||
<span class="text-4xl opacity-20">LoL</span>
|
||||
|
||||
Reference in New Issue
Block a user