update mod card

This commit is contained in:
IsWaffle 2024-08-09 11:31:11 -04:00
parent c1e73dc73b
commit f3cedfbb0f

View File

@ -1,7 +1,7 @@
@props(['mod', 'versionScope' => 'latestVersion']) @props(['mod', 'versionScope' => 'latestVersion'])
<a href="/mod/{{ $mod->id }}/{{ $mod->slug }}" class="mod-list-component"> <a href="/mod/{{ $mod->id }}/{{ $mod->slug }}" class="mod-list-component mx-auto w-full max-w-md md:max-w-2xl">
<div class="flex flex-col group h-full w-full max-w-md mx-auto bg-white dark:bg-gray-950 rounded-xl shadow-md dark:shadow-gray-950 drop-shadow-2xl overflow-hidden md:max-w-2xl hover:shadow-lg hover:bg-gray-50 dark:hover:bg-black hover:shadow-gray-400 dark:hover:shadow-black transition-all duration-200"> <div class="flex flex-col group h-full w-full bg-white dark:bg-gray-950 rounded-xl shadow-md dark:shadow-gray-950 drop-shadow-2xl overflow-hidden hover:shadow-lg hover:bg-gray-50 dark:hover:bg-black hover:shadow-gray-400 dark:hover:shadow-black transition-all duration-200">
<div class="h-auto md:h-full md:flex"> <div class="h-auto md:h-full md:flex">
<div class="h-auto md:h-full md:shrink-0 overflow-hidden"> <div class="h-auto md:h-full md:shrink-0 overflow-hidden">
@if (empty($mod->thumbnail)) @if (empty($mod->thumbnail))
@ -19,7 +19,9 @@
{{ $mod->{$versionScope}->sptVersion->version }} {{ $mod->{$versionScope}->sptVersion->version }}
</span> </span>
</div> </div>
<p class="text-sm italic text-slate-600 dark:text-gray-200">By {{ $mod->users->pluck('name')->implode(', ') }}</p> <p class="text-sm italic text-slate-600 dark:text-gray-200">
By {{ $mod->users->pluck('name')->implode(', ') }}
</p>
<p class="mt-2 text-slate-500 dark:text-gray-300">{{ $mod->teaser }}</p> <p class="mt-2 text-slate-500 dark:text-gray-300">{{ $mod->teaser }}</p>
</div> </div>
<x-mod-list-stats :mod="$mod" :modVersion="$mod->{$versionScope}"/> <x-mod-list-stats :mod="$mod" :modVersion="$mod->{$versionScope}"/>