main
ilhamwara 2025-08-13 11:51:36 +07:00
parent f7fc427836
commit fe7e9da299
8 changed files with 606 additions and 910 deletions

View File

@ -17,6 +17,11 @@ class FrontController extends Controller
$data['kegiatan'] = Kegiatan::orderBy('KegiatanId','DESC')->paginate(8); $data['kegiatan'] = Kegiatan::orderBy('KegiatanId','DESC')->paginate(8);
return view('kegiatan',$data); return view('kegiatan',$data);
} }
function kegiatan_detail($slug) {
$data['kegiatan'] = Kegiatan::where('slug',$slug)->first();
$data['lainnya'] = Kegiatan::where('KegiatanId','!=',$data['kegiatan']->KegiatanId)->orderBy('KegiatanId','DESC')->limit(10)->get();
return view('kegiatan_detail',$data);
}
function galeri() { function galeri() {
return view('galeri'); return view('galeri');
} }

View File

@ -1,89 +1,5 @@
<!doctype html> @extends('layouts.app')
<html> @section('content')
<head>
<meta charset="UTF-8" />
<title>Sekolah | 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">Kegiatan Adiwiyata</a>
</li>
<li>
<a href="{{ url('galeri') }}" class="block py-2 px-3 text-success">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="section4" class="container mx-auto p-12 md:py-12"> <section id="section4" class="container mx-auto p-12 md:py-12">
<div class="flex justify-between mb-15"> <div class="flex justify-between mb-15">
<h4 class="text-lg md:text-2xl font-extrabold text-black">Galeri Adiwiyata</h4> <h4 class="text-lg md:text-2xl font-extrabold text-black">Galeri Adiwiyata</h4>
@ -186,31 +102,8 @@
</div> </div>
</div> </div>
</div> </div>
@endsection
@section('js')
<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://code.jquery.com/jquery-3.7.1.js"></script>
<script> <script>
$('.btnmodal').on('click',function(){ $('.btnmodal').on('click',function(){
@ -221,6 +114,4 @@
document.getElementById('myModal').classList.add('hidden'); document.getElementById('myModal').classList.add('hidden');
} }
</script> </script>
@endsection
</body>
</html>

View File

@ -1,88 +1,5 @@
<!doctype html> @extends('layouts.app')
<html class="scroll-smooth"> @section('content')
<head>
<meta charset="UTF-8" />
<title>Beranda | 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 text-success" 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">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="section1" class="relative overflow-hidden md:pt-20" style="min-height: 95vh"> <section id="section1" class="relative overflow-hidden md:pt-20" style="min-height: 95vh">
<!-- Enhanced Animated Background Elements --> <!-- Enhanced Animated Background Elements -->
<div class="absolute inset-0 bg-gradient-to-br from-slate-50 via-white to-gray-100"> <div class="absolute inset-0 bg-gradient-to-br from-slate-50 via-white to-gray-100">
@ -296,28 +213,4 @@
</div> </div>
</div> </div>
</section> </section>
<section id="footer"> @endsection
<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>
</body>
</html>

View File

@ -1,89 +1,5 @@
<!doctype html> @extends('layouts.app')
<html> @section('content')
<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"> <section id="section3" class="container mx-auto p-12 md:py-12">
<div class="flex justify-between mb-15"> <div class="flex justify-between mb-15">
<h4 class="text-lg md:text-2xl font-extrabold text-black">Kegiatan Adiwiyata</h4> <h4 class="text-lg md:text-2xl font-extrabold text-black">Kegiatan Adiwiyata</h4>
@ -114,34 +30,4 @@
{!! $kegiatan->links() !!} {!! $kegiatan->links() !!}
</div> </div>
</section> </section>
<section id="footer" class="bottom-0"> @endsection
<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>

View File

@ -0,0 +1,92 @@
@extends('layouts.app')
@section('content')
<section id="section3" class="container mx-auto p-12 md:py-12">
<div class="flex flex-row gap-10">
<div class="w-full lg:w-2/3">
<div class="p-3 shadow-[1px_1px_5px_0px_rgba(0,0,0,0.25)] rounded-[10px]">
<div class="flex flex-col gap-3">
<img src="{{ asset('uploads/'.$kegiatan->image) }}" 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->kategori }}</span>
<span class="text-xs opacity-[50%]">{{ date('D',strtotime($kegiatan->created_at)) }}, {{ date('d M Y',strtotime($kegiatan->created_at)) }}</span>
</div>
<h1 class="text-2xl text-black font-bold mt-2">{{ $kegiatan->judul }}</h1>
<div class="flex items-center gap-3">
<span class="text-sm font-medium text-gray-600">Bagikan:</span>
<div class="flex gap-2">
<a href="#" onclick="shareToLinkedIn()" class="flex items-center justify-center w-10 h-10 bg-primary text-white rounded-full hover:bg-green-600 transition-colors">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
<path d="M16.338 16.338H13.67V12.16c0-.995-.017-2.277-1.387-2.277-1.39 0-1.601 1.086-1.601 2.207v4.248H8.014v-8.59h2.559v1.174h.037c.356-.675 1.227-1.387 2.526-1.387 2.703 0 3.203 1.778 3.203 4.092v4.711zM5.005 6.575a1.548 1.548 0 11-.003-3.096 1.548 1.548 0 01.003 3.096zm-1.337 9.763H6.34v-8.59H3.667v8.59zM17.668 1H2.328C1.595 1 1 1.581 1 2.298v15.403C1 18.418 1.595 19 2.328 19h15.34c.734 0 1.332-.582 1.332-1.299V2.298C19 1.581 18.402 1 17.668 1z"></path>
</svg>
</a>
<a href="#" onclick="shareToWhatsApp()" class="flex items-center justify-center w-10 h-10 bg-success text-white rounded-full hover:bg-green-600 transition-colors">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24">
<path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893A11.821 11.821 0 0020.525 3.507"></path>
</svg>
</a>
<a href="#" onclick="shareToFacebook()" class="flex items-center justify-center w-10 h-10 bg-primary text-white rounded-full hover:bg-green-600 transition-colors">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24">
<path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"></path>
</svg>
</a>
<a href="#" onclick="shareToTwitter()" class="flex items-center justify-center w-10 h-10 bg-black text-white rounded-full hover:bg-green-600 transition-colors">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24">
<path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"></path>
</svg>
</a>
</div>
</div>
<div class="text-sm opacity-[50%]">
{!!$kegiatan->body !!}
</div>
</div>
</div>
</div>
<div class="hidden lg:block w-1/3">
<div class="p-3 shadow-[1px_1px_5px_0px_rgba(0,0,0,0.25)] rounded-[10px]">
<div class="flex flex-col gap-3">
@foreach($lainnya as $dataKeg)
<div class="flex items-center gap-3 flex-row pb-3">
<div class="flex justify-end w-2/5">
<img src="{{ asset('uploads/'.$dataKeg->image) }}" 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>
<a href="{{ url('kegiatan/'.$dataKeg->slug) }}" class="text-xs text-black font-bold">{{ $dataKeg->judul }}</a>
</div>
</div>
@endforeach
</div>
</div>
</div>
</div>
</section>
@endsection
@section('js')
<script>
function shareToFacebook() {
const url = encodeURIComponent(window.location.href);
const title = encodeURIComponent(document.querySelector('h1').textContent);
window.open(`https://www.facebook.com/sharer/sharer.php?u=${url}`, '_blank', 'noopener,noreferrer,width=600,height=400');
}
function shareToTwitter() {
const url = encodeURIComponent(window.location.href);
const title = encodeURIComponent(document.querySelector('h1').textContent);
window.open(`https://twitter.com/intent/tweet?url=${url}&text=${title}`, '_blank', 'noopener,noreferrer,width=600,height=400');
}
function shareToWhatsApp() {
const url = encodeURIComponent(window.location.href);
const title = encodeURIComponent(document.querySelector('h1').textContent);
window.open(`https://wa.me/?text=${title}%20${url}`, '_blank', 'noopener,noreferrer');
}
function shareToLinkedIn() {
const url = encodeURIComponent(window.location.href);
const title = encodeURIComponent(document.querySelector('h1').textContent);
window.open(`https://www.linkedin.com/sharing/share-offsite/?url=${url}`, '_blank', 'noopener,noreferrer,width=600,height=400');
}
</script>
@endsection

View File

@ -1,80 +1,114 @@
<!doctype html> <!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1"> <title>Kegiatan | Sekolah Adiwiyata DKI Jakarta</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- CSRF Token --> <meta name="keywords" content="Sekolah Adiwiyata" />
<meta name="csrf-token" content="{{ csrf_token() }}"> <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" />
<title>{{ config('app.name', 'Laravel') }}</title> <link rel="apple-touch-icon" href="{{ asset('assets/logo-dinas.ico') }}">
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
<!-- Fonts --> @yield('css')
<link rel="dns-prefetch" href="//fonts.bunny.net"> <style>
<link href="https://fonts.bunny.net/css?family=Nunito" rel="stylesheet"> .bg-success{
background: #009D66!important;
<!-- Scripts --> }
@vite(['resources/sass/app.scss', 'resources/js/app.js']) .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> </head>
<body> <body>
<div id="app"> <div class="bg-white border-b-1 border-b-[#eaeaea]">
<nav class="navbar navbar-expand-md navbar-light bg-white shadow-sm"> <div class="container mx-auto">
<div class="container"> <div class="flex flex-between justify-between items-center gap-5 mx-auto p-5">
<a class="navbar-brand" href="{{ url('/') }}"> <div class="flex flex-row gap-10">
{{ config('app.name', 'Laravel') }} <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> </a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="{{ __('Toggle navigation') }}"> <div class="items-center justify-between hidden w-full md:flex md:w-auto md:order-1" id="navbar-cta">
<span class="navbar-toggler-icon"></span> <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> </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">
<div class="collapse navbar-collapse" id="navbarSupportedContent"> <span>Login</span> <x-lucide-log-in width="20" class="text-white"/>
<!-- Left Side Of Navbar -->
<ul class="navbar-nav me-auto">
</ul>
<!-- Right Side Of Navbar -->
<ul class="navbar-nav ms-auto">
<!-- Authentication Links -->
@guest
@if (Route::has('login'))
<li class="nav-item">
<a class="nav-link" href="{{ route('login') }}">{{ __('Login') }}</a>
</li>
@endif
@if (Route::has('register'))
<li class="nav-item">
<a class="nav-link" href="{{ route('register') }}">{{ __('Register') }}</a>
</li>
@endif
@else
<li class="nav-item dropdown">
<a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
{{ Auth::user()->name }}
</a> </a>
<div class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="{{ route('logout') }}"
onclick="event.preventDefault();
document.getElementById('logout-form').submit();">
{{ __('Logout') }}
</a>
<form id="logout-form" action="{{ route('logout') }}" method="POST" class="d-none">
@csrf
</form>
</div>
</li>
@endguest
</ul>
</div> </div>
</div> </div>
</nav> </div>
</div>
<main class="py-4">
@yield('content') @yield('content')
</main> <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>
<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>
@yield('js')
</body> </body>
</html> </html>

View File

@ -1,89 +1,5 @@
<!doctype html> @extends('layouts.app')
<html> @section('content')
<head>
<meta charset="UTF-8" />
<title>Sekolah | 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 text-success">Sekolah Adiwiyata</a>
</li>
<li>
<a href="{{ url('kegiatan') }}" class="block py-2 px-3">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="section4" class="container mx-auto p-12 md:py-12"> <section id="section4" class="container mx-auto p-12 md:py-12">
<div class="flex justify-between mb-15"> <div class="flex justify-between mb-15">
<h4 class="text-lg md:text-2xl font-extrabold text-black">Sekolah Adiwiyata</h4> <h4 class="text-lg md:text-2xl font-extrabold text-black">Sekolah Adiwiyata</h4>
@ -126,34 +42,12 @@
</table> </table>
</div> </div>
</section> </section>
<section id="footer" class="bottom-0"> @endsection
<div class="bg-success p-3 "> @section('js')
<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://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.js"></script>
<script src="https://cdn.datatables.net/2.3.2/js/dataTables.tailwindcss.js"></script> <script src="https://cdn.datatables.net/2.3.2/js/dataTables.tailwindcss.js"></script>
<script> <script>
new DataTable('#example'); new DataTable('#example');
</script> </script>
</body> @endsection
</html>

View File

@ -41,6 +41,7 @@ Route::middleware(Session::class)->name('modules.')->group(function () {
Route::get('/',[FrontController::class,'index'])->name('index'); Route::get('/',[FrontController::class,'index'])->name('index');
Route::get('/sekolah',[FrontController::class,'sekolah'])->name('sekolah'); Route::get('/sekolah',[FrontController::class,'sekolah'])->name('sekolah');
Route::get('/kegiatan',[FrontController::class,'kegiatan'])->name('kegiatan'); Route::get('/kegiatan',[FrontController::class,'kegiatan'])->name('kegiatan');
Route::get('/kegiatan/{slug}',[FrontController::class,'kegiatan_detail'])->name('kegiatan_detail');
Route::get('/galeri',[FrontController::class,'galeri'])->name('galeri'); Route::get('/galeri',[FrontController::class,'galeri'])->name('galeri');
// Auth::routes(); // Auth::routes();