147 lines
5.9 KiB
PHP
147 lines
5.9 KiB
PHP
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>Kegiatan | Sekolah Adiwiyata DKI Jakarta</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<meta name="keywords" content="Sekolah Adiwiyata" />
|
|
<meta name="description" content="Sekolah Adiwiyata Lingkungan Hidup Provinsi DKI Jakarta">
|
|
<meta name="author" content="ilham">
|
|
<!-- Favicon -->
|
|
<link rel="shortcut icon" href="{{ asset('assets/logo-dinas.ico') }}" type="image/x-icon" />
|
|
|
|
<link rel="apple-touch-icon" href="{{ asset('assets/logo-dinas.ico') }}">
|
|
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
|
|
<style>
|
|
.bg-success{
|
|
background: #009D66!important;
|
|
}
|
|
.bg-warning{
|
|
background: #F7AE15!important;
|
|
}
|
|
.bg-danger{
|
|
background: #B9375D!important;
|
|
}
|
|
.bg-info{
|
|
background: #3B38A0!important;
|
|
}
|
|
.text-success{
|
|
color: #009D66!important;
|
|
}
|
|
.text-warning{
|
|
color: #F7AE15!important;
|
|
}
|
|
.text-danger{
|
|
color: #B9375D!important;
|
|
}
|
|
.text-info{
|
|
color: #3B38A0!important;
|
|
}
|
|
.text-black{
|
|
color: #333!important;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="bg-white border-b-1 border-b-[#eaeaea]">
|
|
<div class="container mx-auto">
|
|
<div class="flex flex-between justify-between items-center gap-5 mx-auto p-5">
|
|
<div class="flex flex-row gap-10">
|
|
<a href="{{ url('/') }}" class="flex items-center space-x-3 rtl:space-x-reverse">
|
|
<img src="{{ asset('assets/logo-dinas.ico') }}" class="h-8" />
|
|
</a>
|
|
<div class="items-center justify-between hidden w-full md:flex md:w-auto md:order-1" id="navbar-cta">
|
|
<ul class="flex flex-col font-medium p-4 md:p-0 mt-4 border md:space-x-8 rtl:space-x-reverse md:flex-row md:mt-0 md:border-0 bg-white">
|
|
<li>
|
|
<a href="{{ url('/') }}" class="block py-2 px-3" aria-current="page">Beranda</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{ url('sekolah') }}" class="block py-2 px-3">Sekolah Adiwiyata</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{ url('kegiatan') }}" class="block py-2 px-3 text-success">Kegiatan Adiwiyata</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{ url('galeri') }}" class="block py-2 px-3">Galeri</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="flex md:order-2 space-x-3 md:space-x-0 rtl:space-x-reverse">
|
|
<button data-collapse-toggle="navbar-cta" type="button" class="inline-flex items-right p-2 w-10 h-10 justify-end text-sm text-gray-500 rounded-lg md:hidden hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600" aria-controls="navbar-cta" aria-expanded="false">
|
|
<span class="sr-only">Open main menu</span>
|
|
<svg class="w-5 h-5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 17 14">
|
|
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M1 1h15M1 7h15M1 13h15"/>
|
|
</svg>
|
|
</button>
|
|
<a href="{{ url('login') }}" class="p-3 text-white bg-success rounded-[10px] mx-auto md:mx-0 text-center flex flex-row gap-3">
|
|
<span>Login</span> <x-lucide-log-in width="20" class="text-white"/>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<section id="section3" class="container mx-auto p-12 md:py-12">
|
|
<div class="flex justify-between mb-15">
|
|
<h4 class="text-lg md:text-2xl font-extrabold text-black">Kegiatan Adiwiyata</h4>
|
|
</div>
|
|
<div class="flex flex-row">
|
|
<div class="grid grid-rows-1 md:grid-cols-3 lg:grid-cols-4 gap-5">
|
|
@foreach($kegiatan as $dataKeg)
|
|
<div class="p-3 border border-[#eaeaea] rounded-[10px] shadow-[2px_1px_5px_0px_rgba(0,0,0,0.10)]">
|
|
<div class="flex flex-col gap-3">
|
|
<img src="{{ asset('uploads/'.$dataKeg->image) }}" alt="" class="w-full object-cover rounded-sm h-40 lg:w-[100%]">
|
|
<div class="flex flex-row gap-3 items-center">
|
|
<span class="p-2 bg-warning text-xs rounded-[10px] text-white">Kegiatan {{ $dataKeg->kategori }}</span>
|
|
<span class="text-xs opacity-[50%]">{{ date('D',strtotime($dataKeg->created_at)) }}, {{ date('d M Y',strtotime($dataKeg->created_at)) }}</span>
|
|
</div>
|
|
<h4 class="text-md text-black font-bold mt-2">{{ $dataKeg->judul }}</h4>
|
|
<div class="text-xs opacity-[50%]">
|
|
{!! substr(strip_tags($dataKeg->body),0,200) !!}
|
|
</div>
|
|
<a href="{{ url('kegiatan/'.$dataKeg->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>
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
</div>
|
|
<div class="mt-10">
|
|
{!! $kegiatan->links() !!}
|
|
</div>
|
|
</section>
|
|
<section id="footer" class="bottom-0">
|
|
<div class="bg-success p-3 ">
|
|
<div class="container mx-auto">
|
|
<div class="flex justify-between items-center">
|
|
<div class="flex gap-5 items-center">
|
|
<div>
|
|
<a href="{{ url('/') }}" class="flex items-center space-x-3 rtl:space-x-reverse p-1 bg-white rounded-full">
|
|
<img src="{{ asset('assets/logo-dinas.ico') }}" class="h-8" />
|
|
</a>
|
|
</div>
|
|
<div>
|
|
<h5 class="text-white font-bold mb-0">Sistem Informasi Adiwiyata</h5>
|
|
<span class="text-white text-xs">Dinas Lingkungan Hidup DKI Jakarta</span>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<span class="text-white text-xs">© 2025 </span>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
|
|
<script src="https://cdn.datatables.net/2.3.2/js/dataTables.js"></script>
|
|
<script src="https://cdn.datatables.net/2.3.2/js/dataTables.tailwindcss.js"></script>
|
|
<script>
|
|
new DataTable('#example');
|
|
</script>
|
|
</body>
|
|
</html> |