update
parent
432f9a1e38
commit
48702e6b00
|
@ -89,18 +89,18 @@
|
|||
<div class="w-full lg:w-2/3">
|
||||
<div class="flex flex-col gap-3">
|
||||
<?php
|
||||
$image = json_decode($kegiatan[0]->image);
|
||||
$image = json_decode(@$kegiatan[0]->image);
|
||||
?>
|
||||
<img src="{{ asset(@$image[0]) }}" alt="" class="w-full lg:w-[100%] rounded-[10px]">
|
||||
<div class="flex flex-row gap-3 items-center">
|
||||
<span class="p-2 bg-warning text-xs rounded-[10px] text-white">Kegiatan {{ $kegiatan[0]->kategori }}</span>
|
||||
<span class="text-xs opacity-[50%]">{{ date('D',strtotime($kegiatan[0]->created_at)) }}, {{ date('d M Y',strtotime($kegiatan[0]->created_at)) }}</span>
|
||||
<span class="p-2 bg-warning text-xs rounded-[10px] text-white">Kegiatan {{ @$kegiatan[0]->kategori }}</span>
|
||||
<span class="text-xs opacity-[50%]">{{ date('D',strtotime(@$kegiatan[0]->created_at)) }}, {{ date('d M Y',strtotime(@$kegiatan[0]->created_at)) }}</span>
|
||||
</div>
|
||||
<h4 class="text-2xl text-black font-bold mt-2">{{ $kegiatan[0]->judul }}</h4>
|
||||
<h4 class="text-2xl text-black font-bold mt-2">{{ @$kegiatan[0]->judul }}</h4>
|
||||
<div class="text-sm opacity-[50%]">
|
||||
{!! substr(strip_tags($kegiatan[0]->body),0,1000) !!}
|
||||
{!! substr(strip_tags(@$kegiatan[0]->body),0,1000) !!}
|
||||
</div>
|
||||
<a href="{{ url('kegiatan/'.$kegiatan[0]->slug) }}" class="text-sm text-warning rounded-[10px] mx-auto md:mx-0 flex flex-row gap-3 ">
|
||||
<a href="{{ url('kegiatan/'.@$kegiatan[0]->slug) }}" class="text-sm text-warning rounded-[10px] mx-auto md:mx-0 flex flex-row gap-3 ">
|
||||
<span>Baca Selengkapnya</span> <x-lucide-arrow-right width="20" class="text-warning"/>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -113,7 +113,7 @@
|
|||
?>
|
||||
<div class="flex items-center gap-3 flex-row border-b-1 border-b-[#eee] pb-3">
|
||||
<div class="flex justify-end w-2/5">
|
||||
<img src="{{ asset($images[0]) }}" class="rounded-[10px] ">
|
||||
<img src="{{ asset(@$images[0]) }}" class="rounded-[10px] ">
|
||||
</div>
|
||||
<div class="flex flex-col gap-3 justify-center w-3/5">
|
||||
<span class="text-xs opacity-[50%]">{{ date('D',strtotime($dataKeg->created_at)) }}, {{ date('d M Y',strtotime($dataKeg->created_at)) }}</span>
|
||||
|
@ -141,7 +141,7 @@
|
|||
$images = json_decode($dataKeg->image);
|
||||
?>
|
||||
<div class="relative group w-full overflow-hidden rounded-lg shadow-[10px_10px_10px_0px_rgba(0,0,0,0.25)]">
|
||||
<img src="{{ asset($images[0]) }}" class="w-full h-full object-cover" alt="Galeri">
|
||||
<img src="{{ asset(@$images[0]) }}" class="w-full h-full object-cover" alt="Galeri">
|
||||
<div class="absolute inset-0 bg-success bg-opacity-50 opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex flex-col justify-center p-4 gap-3">
|
||||
<h4 class="mb-5 font-bold text-white w-50">{{ $dataKeg->judul }}</h4>
|
||||
{{-- <p class="text-white text-sm font-normal">1 Agustus 2025</p> --}}
|
||||
|
|
Loading…
Reference in New Issue