feature(tags): added tags to pois
This commit is contained in:
@@ -27,12 +27,15 @@
|
||||
{{ $poi->description }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="p-6 pt-0">
|
||||
<!-- <button
|
||||
class="align-middle select-none font-sans font-bold text-center uppercase transition-all disabled:opacity-50 disabled:shadow-none disabled:pointer-events-none text-xs py-3 px-6 rounded-lg bg-gray-900 text-white shadow-md shadow-gray-900/10 hover:shadow-lg hover:shadow-gray-900/20 focus:opacity-[0.85] focus:shadow-none active:opacity-[0.85] active:shadow-none"
|
||||
type="button">
|
||||
Read More
|
||||
</button> -->
|
||||
<div class="p-6 pt-0 flex text-sm items-end flex-1 gap-1">
|
||||
@foreach($poi->getTags() as $tag)
|
||||
<span class="relative group px-2 py-1 text-xs font-bold text-white bg-blue-500 rounded-full">
|
||||
{{ $poi->getTagEmote($tag) }}
|
||||
<span class="absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 hidden group-hover:block px-2 py-1 text-xs text-white bg-black rounded">
|
||||
{{ $poi->getTagDescription($tag) }}
|
||||
</span>
|
||||
</span>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
Reference in New Issue
Block a user