mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 10:10:48 +01:00
fix: improved tooltip
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/** @var App\Models\Champion $champion */
|
||||
|
||||
/** @var App\Models\ChampionRole $roles */
|
||||
/** @var App\Models\ChampionRoles $roles */
|
||||
?>
|
||||
<section class="max-w-screen-xl mx-auto mt-12">
|
||||
<h2
|
||||
@@ -36,33 +36,28 @@
|
||||
<span class="text-xs text-stone-300">{{ $champion->title }}</span>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center justify-between mt-2">
|
||||
<div class="flex items-center mt-2">
|
||||
<p class="text-gray-300 text-sm flex">
|
||||
@foreach($roles[$key]->roles as $lane)
|
||||
<span class="sr-only">{{$lane}}</span>
|
||||
|
||||
<img data-tooltip-target="tooltip-bottom-{{$lane}}"
|
||||
data-tooltip-placement="bottom"
|
||||
@if($key < 8) loading="auto" @else loading="lazy"
|
||||
@endif src="{{getRoleIcon($lane)}}"
|
||||
alt="{{$lane}} Icon"
|
||||
class="w-7 h-7 mr-1">
|
||||
<img
|
||||
{{Popper::arrow('translucent')->theme('dark')->position('bottom')->pop($lane)}}
|
||||
@if($key < 8) loading="auto" @else loading="lazy"
|
||||
@endif src="{{getRoleIcon($lane)}}"
|
||||
alt="{{$lane}} Icon"
|
||||
class="w-7 h-7 mr-1">
|
||||
</p>
|
||||
@endforeach
|
||||
|
||||
<div id="tooltip-bottom-{{$lane}}" role="tooltip"
|
||||
class="z-10 invisible inline-block px-3 py-2 text-sm font-medium text-white
|
||||
rounded-lg shadow-sm transition-opacity opacity-0 tooltip bg-stone-700">
|
||||
{{$lane}}
|
||||
<div class="tooltip-arrow" data-popper-arrow></div>
|
||||
<div class="w-full flex justify-end items-end justify-items-end ">
|
||||
<p class="text-right text-2xl md:text-lg text-orange-300 hover:text-orange-400">
|
||||
<a href="/champion/{{$champion->slug}}"
|
||||
aria-label="[Detailed {{$champion->name}} info...]">
|
||||
<x-iconsax-bul-arrow-right class="w-8 transition-colors"/>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<p class="text-right text-2xl md:text-lg text-orange-300 hover:text-orange-400">
|
||||
<a href="/champion/{{$champion->slug}}"
|
||||
aria-label="[Detailed {{$champion->name}} info...]">
|
||||
<x-iconsax-bul-arrow-right class="w-8 transition-colors"/>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user