обновил стиль новостей

This commit is contained in:
developer 2026-05-08 21:23:31 +08:00
parent 4d35c295b8
commit 32d5f9ef3f

View File

@ -34,18 +34,21 @@
@if ($post->image) @if ($post->image)
<div class="w-100 post-card-image d-flex align-items-end p-3 text-light fw-light" <div class="w-100 post-card-image d-flex align-items-end p-3 text-light fw-light"
style=" style="color:#000;
background-image:url('{{ $post->image }}');"> background-image:url('{{ $post->image }}');">
<div class="z-1"> <div class="z-1">
<h1 class="z-1 text-uppercase">{{ $post->name }}</h1> <h1 class="z-1 text-uppercase">{{ $post->name }}</h1>
<div> <div>
Опубиковано {{ $post->created_at->diffForHumans() }} Опубликовано {{ $post->created_at->diffForHumans() }}
</div> </div>
</div> </div>
</div> </div>
@else @else
<div class="w-100"> <div class="w-100">
<h1 class="">{{ $post->name }}</h1> <h1 class="text-uppercase">{{ $post->name }}</h1>
<div>
Опубликовано {{ $post->created_at->diffForHumans() }}
</div>
</div> </div>
@endif @endif
<div class="position-absolute w-100 end-0 top-0 p-2 d-flex flex-row"> <div class="position-absolute w-100 end-0 top-0 p-2 d-flex flex-row">