Merge pull request #280 from rico-vz/ad-refactor

feat: improve ad placement
This commit is contained in:
Rico
2025-02-26 23:03:55 +01:00
committed by GitHub
14 changed files with 60 additions and 9 deletions

View File

@@ -14,6 +14,9 @@
Frequently Asked Questions about the popular League of Legends champion Heimerdinger. Frequently Asked Questions about the popular League of Legends champion Heimerdinger.
</h2> </h2>
</div> </div>
<div class="flex justify-center my-4">
<x-ads.horizontal-banner />
</div>
<div class="grid max-w-xl mx-auto mt-8 divide-y divide-neutral-700"> <div class="grid max-w-xl mx-auto mt-8 divide-y divide-neutral-700">
<x-about.faq.dropdown <x-about.faq.dropdown
question="Is Heimerdinger a yordle?" question="Is Heimerdinger a yordle?"

View File

@@ -14,6 +14,9 @@
Frequently Asked Questions about League of Legends and Riot Games. Frequently Asked Questions about League of Legends and Riot Games.
</p> </p>
</div> </div>
<div class="flex justify-center my-4">
<x-ads.horizontal-banner />
</div>
<div class="grid max-w-xl mx-auto mt-8 divide-y divide-neutral-700"> <div class="grid max-w-xl mx-auto mt-8 divide-y divide-neutral-700">
<x-about.faq.dropdown question="Is League of Legends on Steam?" <x-about.faq.dropdown question="Is League of Legends on Steam?"
answer="League of Legends is not available on Steam. It was developed and published by Riot Games and has its own client for downloading and playing the game." /> answer="League of Legends is not available on Steam. It was developed and published by Riot Games and has its own client for downloading and playing the game." />

View File

@@ -25,6 +25,10 @@
Legends</a> Legends</a>
</div> </div>
<div class="flex justify-center my-4">
<x-ads.horizontal-banner />
</div>
<div class="flex flex-col items-center justify-center mt-5"> <div class="flex flex-col items-center justify-center mt-5">
<h2 class="text-lg font-bold text-center text-gray-100 uppercase"> <h2 class="text-lg font-bold text-center text-gray-100 uppercase">
What is League of Legends?</h2> What is League of Legends?</h2>
@@ -64,6 +68,7 @@
Which boasts a 100% rating on Rotten Tomatoes, 9/10 on IMDB, 10/10 on IGN and a 97/100 on Google Which boasts a 100% rating on Rotten Tomatoes, 9/10 on IMDB, 10/10 on IGN and a 97/100 on Google
Reviews. Reviews.
</p> </p>
<x-ads.in-article />
</div> </div>
<hr class="w-48 h-1 mx-auto my-4 border-0 rounded md:my-10 bg-stone-500"> <hr class="w-48 h-1 mx-auto my-4 border-0 rounded md:my-10 bg-stone-500">
<div class="flex flex-col items-center mt-5"> <div class="flex flex-col items-center mt-5">
@@ -89,6 +94,7 @@
class="underline decoration-orange-500/50" rel="noopener" target="_blank">this class="underline decoration-orange-500/50" rel="noopener" target="_blank">this
website</a>. I will try to respond as soon as possible. website</a>. I will try to respond as soon as possible.
</p> </p>
<x-ads.in-article />
</div> </div>
<hr class="w-48 h-1 mx-auto my-4 border-0 rounded md:my-10 bg-stone-500"> <hr class="w-48 h-1 mx-auto my-4 border-0 rounded md:my-10 bg-stone-500">
<div class="flex flex-col items-center mt-5"> <div class="flex flex-col items-center mt-5">
@@ -121,6 +127,7 @@
commitment to ethical progress have made him an essential part of the series, offering both wisdom and commitment to ethical progress have made him an essential part of the series, offering both wisdom and
intrigue to the unfolding story of Arcane. So I'm sure we will be seeing him again in Arcane Season 2. intrigue to the unfolding story of Arcane. So I'm sure we will be seeing him again in Arcane Season 2.
</p> </p>
<x-ads.in-article />
</div> </div>
</div> </div>
@endsection @endsection

View File

@@ -14,6 +14,10 @@
class="text-lg font-bold text-center text-transparent uppercase bg-gradient-to-bl from-orange-300 to-orange-500 bg-clip-text"> class="text-lg font-bold text-center text-transparent uppercase bg-gradient-to-bl from-orange-300 to-orange-500 bg-clip-text">
LoL Icons & Emotes</h2> LoL Icons & Emotes</h2>
<div class="flex justify-center my-4">
<x-ads.common />
</div>
<div class="container flex items-center justify-center flex-grow p-4 mx-auto mt-3"> <div class="container flex items-center justify-center flex-grow p-4 mx-auto mt-3">
<div class="items-center justify-center text-center align-middle"> <div class="items-center justify-center text-center align-middle">
<img class="items-center mx-auto" src="{{ asset('img/heimerdinger-emote.webp') }}" alt="Heimerdinger Emote"> <img class="items-center mx-auto" src="{{ asset('img/heimerdinger-emote.webp') }}" alt="Heimerdinger Emote">

View File

@@ -90,6 +90,7 @@
</li> </li>
</ul> </ul>
</div> </div>
<x-ads.common />
<div class="transition-all duration-700 border shadow-md rounded-2xl border-3 border-white/10 shadow-stone-800/80 hover:shadow-orange-500/20" <div class="transition-all duration-700 border shadow-md rounded-2xl border-3 border-white/10 shadow-stone-800/80 hover:shadow-orange-500/20"
style="--tw-shadow-color:{{ $champion->splash_color }}; --tw-shadow: var(--tw-shadow-colored); background-color: {{ $champion->splash_color }};"> style="--tw-shadow-color:{{ $champion->splash_color }}; --tw-shadow: var(--tw-shadow-colored); background-color: {{ $champion->splash_color }};">
<div class="p-4"> <div class="p-4">
@@ -144,7 +145,7 @@
</div> </div>
</div> </div>
<x-ads.common />
<div class="transition-all duration-700 border shadow-md lg:col-span-3 rounded-2xl border-3 border-white/10 shadow-stone-800/80 hover:shadow-orange-500/20" <div class="transition-all duration-700 border shadow-md lg:col-span-3 rounded-2xl border-3 border-white/10 shadow-stone-800/80 hover:shadow-orange-500/20"
style="--tw-shadow-color:{{ $champion->splash_color }}; --tw-shadow: var(--tw-shadow-colored); background-color: {{ $champion->splash_color }};"> style="--tw-shadow-color:{{ $champion->splash_color }}; --tw-shadow: var(--tw-shadow-colored); background-color: {{ $champion->splash_color }};">

View File

@@ -9,12 +9,12 @@
<x-emotes.searchbar /> <x-emotes.searchbar />
<div class="container flex items-center justify-center p-4 mx-auto mt-3"> <div class="flex justify-center my-4">
<x-ads.horizontal-banner />
<div class="hidden md:block md:mr-6">
<x-ads.vertical-banner />
</div> </div>
<div class="container flex items-center justify-center p-4 mx-auto mt-3">
<div class="grid grid-cols-2 gap-6 md:grid-cols-3 lg:grid-cols-6"> <div class="grid grid-cols-2 gap-6 md:grid-cols-3 lg:grid-cols-6">
@foreach ($emotes as $key => $emote) @foreach ($emotes as $key => $emote)
@@ -38,5 +38,8 @@
@endforeach @endforeach
</div> </div>
</div> </div>
<div class="flex justify-center my-4">
<x-ads.horizontal-banner />
</div>
{{ $emotes->links() }} {{ $emotes->links() }}
</section> </section>

View File

@@ -7,12 +7,13 @@
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"> 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">
Summoner Icons</h1> Summoner Icons</h1>
<x-icons.searchbar /> <x-icons.searchbar />
<div class="container flex items-center justify-center p-4 mx-auto mt-3">
<div class="hidden md:block md:mr-6"> <div class="flex justify-center my-4">
<x-ads.vertical-banner /> <x-ads.horizontal-banner />
</div> </div>
<div class="container flex items-center justify-center p-4 mx-auto mt-3">
<div class="grid grid-cols-2 gap-12 md:grid-cols-3 lg:grid-cols-6"> <div class="grid grid-cols-2 gap-12 md:grid-cols-3 lg:grid-cols-6">
@foreach ($icons as $key => $icon) @foreach ($icons as $key => $icon)
@@ -48,5 +49,8 @@
@endforeach @endforeach
</div> </div>
</div> </div>
<div class="flex justify-center my-4">
<x-ads.horizontal-banner />
</div>
{{ $icons->links() }} {{ $icons->links() }}
</section> </section>

View File

@@ -11,6 +11,10 @@
class="text-sm font-bold text-center text-transparent uppercase md:text-lg bg-gradient-to-bl from-orange-300 to-orange-500 bg-clip-text"> class="text-sm font-bold text-center text-transparent uppercase md:text-lg bg-gradient-to-bl from-orange-300 to-orange-500 bg-clip-text">
Released in: {{ $icon->release_year }}</h2> Released in: {{ $icon->release_year }}</h2>
<div class="flex justify-center my-4">
<x-ads.horizontal-banner />
</div>
<div class="container flex items-center justify-center p-4 mx-auto my-auto mt-3"> <div class="container flex items-center justify-center p-4 mx-auto my-auto mt-3">
<div class="grid w-screen grid-cols-1 gap-8 md:grid-cols-2"> <div class="grid w-screen grid-cols-1 gap-8 md:grid-cols-2">
<div <div

View File

@@ -22,6 +22,9 @@
</article> </article>
@endforeach @endforeach
</div> </div>
<div class="flex justify-center my-4">
<x-ads.horizontal-banner />
</div>
<div class="mt-4"> <div class="mt-4">
{{ $posts->links() }} {{ $posts->links() }}
</div> </div>

View File

@@ -12,6 +12,9 @@
class="text-lg font-bold text-center text-transparent uppercase sm:text-xl bg-gradient-to-bl from-orange-300 to-orange-500 bg-clip-text"> class="text-lg font-bold text-center text-transparent uppercase sm:text-xl bg-gradient-to-bl from-orange-300 to-orange-500 bg-clip-text">
All champions & skins on sale</h2> All champions & skins on sale</h2>
<div class="flex justify-center my-4">
<x-ads.horizontal-banner />
</div>
<h3 <h3
class="mt-8 mb-2 text-2xl font-bold text-center text-transparent uppercase sm:text-3xl bg-gradient-to-bl from-orange-300 to-orange-500 bg-clip-text"> class="mt-8 mb-2 text-2xl font-bold text-center text-transparent uppercase sm:text-3xl bg-gradient-to-bl from-orange-300 to-orange-500 bg-clip-text">
Champions on Sale</h3> Champions on Sale</h3>
@@ -48,6 +51,9 @@
@endforeach @endforeach
</div> </div>
<div class="flex justify-center my-4">
<x-ads.horizontal-banner />
</div>
<h3 <h3
class="mt-8 text-2xl font-bold text-center text-transparent uppercase sm:text-3xl bg-gradient-to-bl from-orange-300 to-orange-500 bg-clip-text"> class="mt-8 text-2xl font-bold text-center text-transparent uppercase sm:text-3xl bg-gradient-to-bl from-orange-300 to-orange-500 bg-clip-text">
@@ -86,4 +92,6 @@
</div> </div>
</div> </div>
</section> </section>

View File

@@ -131,6 +131,7 @@
</ul> </ul>
</div> </div>
<x-ads.common />
<div class="transition-all duration-700 border shadow-md rounded-2xl border-3 border-white/10 shadow-stone-800/80 hover:shadow-orange-500/20" <div class="transition-all duration-700 border shadow-md rounded-2xl border-3 border-white/10 shadow-stone-800/80 hover:shadow-orange-500/20"
style="--tw-shadow-color:{{ $skin->splash_color }}; --tw-shadow: var(--tw-shadow-colored); background-color: {{ $skin->splash_color }};"> style="--tw-shadow-color:{{ $skin->splash_color }}; --tw-shadow: var(--tw-shadow-colored); background-color: {{ $skin->splash_color }};">

View File

@@ -36,6 +36,10 @@
width="114" style="border: 0; border-radius: 6px;"></iframe> width="114" style="border: 0; border-radius: 6px;"></iframe>
</div> </div>
<div class="flex justify-center my-4">
<x-ads.horizontal-banner />
</div>
<div class="mt-4"> <div class="mt-4">
<img src="https://cdn.heimerdinger.lol/cat_excited.gif" alt="Excited Cat Emote" class="mx-auto w-28"> <img src="https://cdn.heimerdinger.lol/cat_excited.gif" alt="Excited Cat Emote" class="mx-auto w-28">
</div> </div>

View File

@@ -10,6 +10,9 @@
@if ($upcomingSkins != []) @if ($upcomingSkins != [])
<x-home.upcoming_skins :upcomingSkins="$upcomingSkins" /> <x-home.upcoming_skins :upcomingSkins="$upcomingSkins" />
<div class="flex justify-center my-4">
<x-ads.horizontal-banner />
</div>
@endif @endif
<x-home.recent_skins :latestSkins="$latestSkins" /> <x-home.recent_skins :latestSkins="$latestSkins" />
@endsection @endsection

View File

@@ -15,6 +15,9 @@
<h2 class="mt-4 text-stone-300"> <h2 class="mt-4 text-stone-300">
See what's coming next to Heimerdinger.lol. Vote on features you'd like to see implemented next. See what's coming next to Heimerdinger.lol. Vote on features you'd like to see implemented next.
</h2> </h2>
<div class="flex justify-center my-4">
<x-ads.horizontal-banner />
</div>
<p class="mt-4 mb-8"> <p class="mt-4 mb-8">
View the full roadmap at <a href="https://heimerdinger.features.vote/roadmap" View the full roadmap at <a href="https://heimerdinger.features.vote/roadmap"
class="text-orange-300 hover:text-orange-500">Heimerdinger Features Roadmap</a>. class="text-orange-300 hover:text-orange-500">Heimerdinger Features Roadmap</a>.