expand space

This commit is contained in:
2024-04-23 02:20:24 +10:00
parent e2f18a87b8
commit 0eab9ba2ce

View File

@@ -2,7 +2,7 @@
<a href="{{ route('post.show', $post) }}" class="flex flex-col bg-white border rounded-lg overflow-hidden hover:shadow-lg hover:scale-[101%] transition-all flex-1 {{ $attributes->get('class') }}"> <a href="{{ route('post.show', $post) }}" class="flex flex-col bg-white border rounded-lg overflow-hidden hover:shadow-lg hover:scale-[101%] transition-all flex-1 {{ $attributes->get('class') }}">
<img src="{{ $post->hero?->url }}?md" alt="{{ $post->title }}" class="w-full h-48 object-cover object-center"> <img src="{{ $post->hero?->url }}?md" alt="{{ $post->title }}" class="w-full h-48 object-cover object-center">
<div class="p-4 flex flex-col"> <div class="p-4 flex flex-col h-full">
<p class="text-gray-600 text-xs mb-2">{{ $post->created_at->format('j M Y') }}</p> <p class="text-gray-600 text-xs mb-2">{{ $post->created_at->format('j M Y') }}</p>
<h2 class="text-xl font-bold mb-4">{{ $post->title }}</h2> <h2 class="text-xl font-bold mb-4">{{ $post->title }}</h2>
<p class="text-sm flex-grow">{{ Str::words(strip_tags($post->content), 20) }}</p> <p class="text-sm flex-grow">{{ Str::words(strip_tags($post->content), 20) }}</p>