mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 18:20:48 +01:00
champs ad 2
This commit is contained in:
@@ -4,48 +4,31 @@
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="relative">
|
<div class="relative">
|
||||||
<!-- Left Ad Container -->
|
<!-- Left Ad Container -->
|
||||||
<div class="fixed hidden w-64 2xl:block left-4 top-24">
|
<div class="fixed hidden w-64 2xl:block left-4 top-24">
|
||||||
<div class="p-4 border rounded-lg bg-stone-800/40 border-stone-800">
|
<div class="p-4 border rounded-lg bg-stone-800/40 border-stone-800">
|
||||||
<ins class="adsbygoogle"
|
<div class="mb-2 text-sm text-center text-stone-400">Advertisement</div>
|
||||||
style="display:block"
|
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-4505764048662657"
|
||||||
data-ad-client="ca-pub-4505764048662657"
|
data-ad-slot="3924622540" data-ad-format="vertical" data-full-width-responsive="false"></ins>
|
||||||
data-ad-slot="3924622540"
|
|
||||||
data-ad-format="vertical"
|
|
||||||
data-full-width-responsive="false"></ins>
|
|
||||||
|
|
||||||
<div class="hidden adblock-message">
|
|
||||||
<p class="mt-4 text-sm text-center text-orange-400">Hey! We rely on ads to keep our servers running.</p>
|
|
||||||
<p class="mt-2 text-xs text-center text-gray-400">Please consider supporting us by disabling your ad blocker.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<!-- Right Ad Container -->
|
<!-- Right Ad Container -->
|
||||||
<div class="fixed hidden w-64 2xl:block right-4 top-24">
|
<div class="fixed hidden w-64 2xl:block right-4 top-24">
|
||||||
<div class="p-4 border rounded-lg bg-stone-800/40 border-stone-800">
|
<div class="p-4 border rounded-lg bg-stone-800/40 border-stone-800">
|
||||||
<ins class="adsbygoogle"
|
<div class="mb-2 text-sm text-center text-stone-400">Advertisement</div>
|
||||||
style="display:block"
|
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-4505764048662657"
|
||||||
data-ad-client="ca-pub-4505764048662657"
|
data-ad-slot="8775562347" data-ad-format="vertical" data-full-width-responsive="false"></ins>
|
||||||
data-ad-slot="3924622540"
|
|
||||||
data-ad-format="vertical"
|
|
||||||
data-full-width-responsive="false"></ins>
|
|
||||||
|
|
||||||
<div class="hidden adblock-message">
|
|
||||||
<p class="mt-4 text-sm text-center text-orange-400">Hey! We rely on ads to keep our servers running.</p>
|
|
||||||
<p class="mt-2 text-xs text-center text-gray-400">Please consider supporting us by disabling your ad blocker.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<!-- Main Content -->
|
<!-- Main Content -->
|
||||||
<section class="max-w-5xl mx-auto mt-12">
|
<section class="max-w-5xl mx-auto mt-12">
|
||||||
<h1 class="text-3xl font-bold text-center text-transparent uppercase sm:text-4xl bg-gradient-to-bl from-orange-300 to-orange-500 bg-clip-text">
|
<h1
|
||||||
|
class="text-3xl font-bold text-center text-transparent uppercase sm:text-4xl bg-gradient-to-bl from-orange-300 to-orange-500 bg-clip-text">
|
||||||
Champions
|
Champions
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-4505764048662657" data-ad-slot="7031271888"
|
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-4505764048662657"
|
||||||
data-ad-format="auto" data-full-width-responsive="true"></ins>
|
data-ad-slot="7031271888" data-ad-format="auto" data-full-width-responsive="true"></ins>
|
||||||
|
|
||||||
<div class="flex justify-center items-center mx-auto max-w-5xl mt-2.5">
|
<div class="flex justify-center items-center mx-auto max-w-5xl mt-2.5">
|
||||||
<x-champions.lane-selector class="text-center" />
|
<x-champions.lane-selector class="text-center" />
|
||||||
@@ -54,17 +37,15 @@
|
|||||||
<div class="container flex items-center justify-center p-4 mx-auto mt-3">
|
<div class="container flex items-center justify-center p-4 mx-auto mt-3">
|
||||||
<div class="grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3">
|
<div class="grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3">
|
||||||
@foreach ($champions as $key => $champion)
|
@foreach ($champions as $key => $champion)
|
||||||
<div class="champ-card flex flex-col text-gray-700 bg-stone-800/40 shadow-md rounded-2xl bg-clip-border
|
<div
|
||||||
|
class="champ-card flex flex-col text-gray-700 bg-stone-800/40 shadow-md rounded-2xl bg-clip-border
|
||||||
border border-stone-800 hover:border-orange-500/10 hover:shadow-orange-500/10 @foreach ($roles[$key]->roles as $lane) POS-{{ $lane }} @endforeach">
|
border border-stone-800 hover:border-orange-500/10 hover:shadow-orange-500/10 @foreach ($roles[$key]->roles as $lane) POS-{{ $lane }} @endforeach">
|
||||||
<div class="mx-4 mt-4 overflow-hidden border-2 rounded-2xl bg-clip-border border-orange-400/40">
|
<div class="mx-4 mt-4 overflow-hidden border-2 rounded-2xl bg-clip-border border-orange-400/40">
|
||||||
<div class="aspect-w-4 aspect-h-3">
|
<div class="aspect-w-4 aspect-h-3">
|
||||||
<a href="/champion/{{ $champion->slug }}">
|
<a href="/champion/{{ $champion->slug }}">
|
||||||
<img
|
<img @if ($key < 8) loading="eager" @else loading="lazy" @endif
|
||||||
@if ($key < 8) loading="eager" @else loading="lazy" @endif
|
|
||||||
src="//wsrv.nl/?url={{ $champion->getChampionImageAttribute() }}&w=380&h=285&output=webp&q=65&il"
|
src="//wsrv.nl/?url={{ $champion->getChampionImageAttribute() }}&w=380&h=285&output=webp&q=65&il"
|
||||||
class="object-cover w-full h-full"
|
class="object-cover w-full h-full" alt="{{ $champion->name }} Splash Art" />
|
||||||
alt="{{ $champion->name }} Splash Art"
|
|
||||||
/>
|
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -83,19 +64,17 @@
|
|||||||
<p class="flex text-sm text-gray-300">
|
<p class="flex text-sm text-gray-300">
|
||||||
@foreach ($roles[$key]->roles as $lane)
|
@foreach ($roles[$key]->roles as $lane)
|
||||||
<span class="sr-only">{{ $lane }}</span>
|
<span class="sr-only">{{ $lane }}</span>
|
||||||
<img
|
<img {{ Popper::arrow('translucent')->theme('dark')->position('bottom')->pop($lane) }}
|
||||||
{{ Popper::arrow('translucent')->theme('dark')->position('bottom')->pop($lane) }}
|
|
||||||
@if ($key < 8) loading="auto" @else loading="lazy" @endif
|
@if ($key < 8) loading="auto" @else loading="lazy" @endif
|
||||||
src="{{ getRoleIcon($lane) }}"
|
src="{{ getRoleIcon($lane) }}" alt="{{ $lane }} Icon"
|
||||||
alt="{{ $lane }} Icon"
|
class="mr-1 w-7 h-7">
|
||||||
class="mr-1 w-7 h-7"
|
|
||||||
>
|
|
||||||
@endforeach
|
@endforeach
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="flex items-end justify-end w-full justify-items-end">
|
<div class="flex items-end justify-end w-full justify-items-end">
|
||||||
<p class="text-2xl text-right text-orange-300 md:text-lg hover:text-orange-400">
|
<p class="text-2xl text-right text-orange-300 md:text-lg hover:text-orange-400">
|
||||||
<a href="/champion/{{ $champion->slug }}" aria-label="[Detailed {{ $champion->name }} info...]">
|
<a href="/champion/{{ $champion->slug }}"
|
||||||
|
aria-label="[Detailed {{ $champion->name }} info...]">
|
||||||
<x-iconsax-bul-arrow-right class="w-8 transition-colors" />
|
<x-iconsax-bul-arrow-right class="w-8 transition-colors" />
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
@@ -108,23 +87,3 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Script to detect adblock and show message -->
|
|
||||||
<script>
|
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
|
||||||
setTimeout(function() {
|
|
||||||
const adElements = document.getElementsByClassName('adsbygoogle');
|
|
||||||
const adblockMessages = document.getElementsByClassName('adblock-message');
|
|
||||||
|
|
||||||
for (let i = 0; i < adElements.length; i++) {
|
|
||||||
if (adElements[i].clientHeight === 0) {
|
|
||||||
// Ads are blocked, show messages
|
|
||||||
for (let j = 0; j < adblockMessages.length; j++) {
|
|
||||||
adblockMessages[j].classList.remove('hidden');
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}, 2000);
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user