From 2a8d8a813c958bb1dc08b2bfb58fc504e51e2f77 Mon Sep 17 00:00:00 2001 From: tuxarmy Date: Fri, 3 Apr 2026 05:47:18 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20perbaiki=20navigasi=20mobile=20=E2=80=94?= =?UTF-8?q?=20semua=20menu=20tetap=20inline=20seperti=20referensi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/PublicController.php | 10 +- resources/views/public/blog-detail.blade.php | 32 +-- resources/views/public/blog.blade.php | 56 ++-- resources/views/public/home.blade.php | 243 +++++++++++++++--- .../views/public/kegiatan-detail.blade.php | 65 +++-- resources/views/public/kegiatan.blade.php | 64 +++-- resources/views/public/kontak.blade.php | 64 ++--- resources/views/public/layout.blade.php | 46 +++- resources/views/public/tentang.blade.php | 49 ++-- 9 files changed, 413 insertions(+), 216 deletions(-) diff --git a/app/Http/Controllers/PublicController.php b/app/Http/Controllers/PublicController.php index 8ce3dab..daec1f1 100644 --- a/app/Http/Controllers/PublicController.php +++ b/app/Http/Controllers/PublicController.php @@ -13,10 +13,12 @@ class PublicController extends Controller public function home() { return view('public.home', [ - 'totalAnggota' => User::where('status', 'aktif')->count(), - 'totalDivisi' => Division::count(), - 'kegiatan' => Activity::where('status', 'approved') - ->latest('start_date')->take(3)->get(), + 'totalAnggota' => User::where('status', 'aktif')->count(), + 'totalDivisi' => Division::count(), + 'totalKegiatan' => Activity::where('status', 'approved')->whereNotNull('executed_at')->count(), + 'divisi' => Division::withCount('members')->get(), + 'kegiatan' => Activity::where('status', 'approved')->latest('start_date')->take(3)->get(), + 'posts' => Post::published()->latest('published_at')->take(2)->get(), ]); } diff --git a/resources/views/public/blog-detail.blade.php b/resources/views/public/blog-detail.blade.php index de5bd83..5a9fced 100644 --- a/resources/views/public/blog-detail.blade.php +++ b/resources/views/public/blog-detail.blade.php @@ -1,26 +1,22 @@ @extends('public.layout') - @section('title', $post->title) - @section('content') -← Kembali ke Blog +
+ ← Kembali -
-
- - {{ ucfirst($post->category) }} - - {{ $post->published_at->format('d M Y') }} +
+
+ {{ ucfirst($post->category) }} + {{ $post->published_at->format('d M Y') }} +
+

{{ $post->title }}

+

Oleh {{ $post->author->name }}

+ +
+ {!! $post->content !!} +
- -

{{ $post->title }}

-

Oleh {{ $post->author->name }}

- -
- {!! $post->content !!} -
-
+
@endsection diff --git a/resources/views/public/blog.blade.php b/resources/views/public/blog.blade.php index 24e186d..eb647df 100644 --- a/resources/views/public/blog.blade.php +++ b/resources/views/public/blog.blade.php @@ -1,31 +1,41 @@ @extends('public.layout') - @section('title', 'Blog') - @section('content') -

Blog

-

Artikel, pengumuman, dan berita dari Persegi

+
+

+ Blog +

+

Artikel

+

Pengumuman, berita, dan tulisan dari organisasi Persegi.

- + -
{{ $posts->links() }}
+
{{ $posts->links() }}
+
@endsection diff --git a/resources/views/public/home.blade.php b/resources/views/public/home.blade.php index 9db51e8..9c8c729 100644 --- a/resources/views/public/home.blade.php +++ b/resources/views/public/home.blade.php @@ -1,55 +1,220 @@ @extends('public.layout') - @section('title', 'Beranda') - @section('content') {{-- Hero --}} -
-

Persegi

-

Organisasi Pemuda Desa Karangdadap

-

Kecamatan Kalibagor, Kabupaten Banyumas

- - Kenali Kami - -
+
+
+

+ Organisasi Pemuda Independen +

+

+ Bersama membangun
desa yang lebih baik +

+

+ Persegi adalah organisasi pemuda Desa Karangdadap yang bergerak di bidang sosial, + pendidikan, olahraga, dan budaya untuk mendorong kemajuan masyarakat desa. +

+ +
+ + {{-- Visual kanan --}} +
+
+ + + +
+

// persegi.info

+

organisasi Persegi {

+

lokasi: "Karangdadap",

+

anggota: {{ $totalAnggota }},

+

divisi: {{ $totalDivisi }},

+

status: "aktif",

+

misi: "membangun desa"

+

}

+
+
{{-- Stats --}} -
-
-
{{ $totalAnggota }}
-
Anggota Aktif
+
+
+
+
{{ $totalAnggota }}
+
Anggota Aktif
+
+
+
{{ $totalDivisi }}
+
Divisi
+
+
+
{{ $totalKegiatan }}
+
Kegiatan Terlaksana
+
-
-
{{ $totalDivisi }}
-
Divisi
+
+ +{{-- Divisi --}} +
+

+ Struktur Organisasi +

+

Divisi kami

+ +
+ @foreach($divisi as $div) +
+

+ {{ $div->members_count }} anggota +

+

{{ $div->name }}

+

{{ $div->description }}

+
+ @endforeach
-
-
{{ $kegiatan->count() }}
-
Kegiatan Terbaru
+
+ +{{-- CTA --}} +
+
+
+

+ Bergabung bersama kami +

+

Jadilah bagian dari perubahan

+

+ Persegi membuka kesempatan bagi pemuda Desa Karangdadap untuk berkontribusi nyata + dalam pembangunan desa melalui berbagai program dan kegiatan. +

+ + Hubungi Kami + +
+
+
+ + + +
+

// daftar.persegi

+

function bergabung() {

+

// hubungi pengurus

+

return "masa depan cerah";

+

}

+
-
+ {{-- Kegiatan Terbaru --}} -

Kegiatan Terbaru

-
- @forelse($kegiatan as $item) - -
- {{ $item->start_date->format('d M Y') }} -
-

{{ $item->title }}

-

{{ $item->description }}

-
- @empty -

Belum ada kegiatan.

- @endforelse -
+
+

+ Kegiatan +

+
+

Kegiatan terbaru

+ + Lihat semua + +
-@if($kegiatan->count()) - + +
+ +{{-- Blog --}} +@if($posts->count()) +
+

+ Blog +

+
+

Artikel terbaru

+ + Lebih banyak artikel + +
+ + +
@endif +{{-- FAQ --}} +
+
+

Pertanyaan umum

+

Informasi dasar tentang organisasi Persegi.

+
+
+ @foreach([ + ['q' => 'Apa itu Persegi?', 'a' => 'Persegi adalah organisasi pemuda independen Desa Karangdadap, Kecamatan Kalibagor, Kabupaten Banyumas.'], + ['q' => 'Bagaimana cara bergabung?', 'a' => 'Hubungi pengurus melalui halaman Kontak atau datang langsung ke sekretariat di Desa Karangdadap.'], + ['q' => 'Apakah ada iuran anggota?', 'a' => 'Ada iuran anggota yang digunakan untuk mendanai kegiatan organisasi secara transparan.'], + ['q' => 'Siapa yang bisa bergabung?', 'a' => 'Pemuda Desa Karangdadap yang memiliki semangat berkontribusi untuk kemajuan desa.'], + ['q' => 'Apakah keanggotaan gratis?', 'a' => 'Pendaftaran gratis, hanya ada iuran rutin yang sangat terjangkau.'], + ] as $i => $faq) +
+ +
+ {{ $faq['a'] }} +
+
+ @endforeach +
+
+ + + @endsection diff --git a/resources/views/public/kegiatan-detail.blade.php b/resources/views/public/kegiatan-detail.blade.php index 9c92509..b3d90ee 100644 --- a/resources/views/public/kegiatan-detail.blade.php +++ b/resources/views/public/kegiatan-detail.blade.php @@ -1,46 +1,43 @@ @extends('public.layout') - @section('title', $activity->title) - @section('content') -← Kembali ke Kegiatan +
+ ← Kembali -
-
- {{ $activity->start_date->format('d M Y') }} - @if($activity->start_date->ne($activity->end_date)) - — {{ $activity->end_date->format('d M Y') }} - @endif -
+
+

+ + {{ $activity->start_date->format('d M Y') }} + @if($activity->start_date->ne($activity->end_date)) — {{ $activity->end_date->format('d M Y') }} @endif +

+

{{ $activity->title }}

+

{{ $activity->description }}

-

{{ $activity->title }}

- -

{{ $activity->description }}

- -
-
- Dibuat oleh: - {{ $activity->creator->name }} +
+
+

Dibuat oleh

+

{{ $activity->creator->name }}

+
+
+

Peserta

+

{{ $activity->participants->count() }} orang

+
+ @if($activity->executed_at) +
+

Dilaksanakan

+

{{ $activity->executed_at->format('d M Y') }}

+
+ @endif
-
- Peserta: - {{ $activity->participants->count() }} orang -
- @if($activity->executed_at) -
- Dilaksanakan: - {{ $activity->executed_at->format('d M Y') }} + + @if($activity->execution_notes) +
+

Catatan Pelaksanaan

+

{{ $activity->execution_notes }}

@endif
- - @if($activity->execution_notes) -
-
Catatan Pelaksanaan
-

{{ $activity->execution_notes }}

-
- @endif -
+
@endsection diff --git a/resources/views/public/kegiatan.blade.php b/resources/views/public/kegiatan.blade.php index 72575d1..8d67a4b 100644 --- a/resources/views/public/kegiatan.blade.php +++ b/resources/views/public/kegiatan.blade.php @@ -1,36 +1,44 @@ @extends('public.layout') - @section('title', 'Kegiatan') - @section('content') -

Kegiatan

-

Dokumentasi kegiatan organisasi Persegi

+
+

+ Kegiatan +

+

Semua kegiatan

- + -
- {{ $kegiatan->links() }} -
+
{{ $kegiatan->links() }}
+
@endsection diff --git a/resources/views/public/kontak.blade.php b/resources/views/public/kontak.blade.php index 1ff77be..7d38f40 100644 --- a/resources/views/public/kontak.blade.php +++ b/resources/views/public/kontak.blade.php @@ -1,68 +1,70 @@ @extends('public.layout') - @section('title', 'Kontak') - @section('content') -
-

Hubungi Kami

-

Kirimkan pesan, pertanyaan, atau saran kepada kami.

- - @if(session('success')) -
- {{ session('success') }} +
+
+

+ Kontak +

+

Hubungi
kami

+

+ Kirimkan pesan, pertanyaan, atau saran. Kami akan merespons secepatnya. +

+
+

📍 Desa Karangdadap, Kecamatan Kalibagor, Kabupaten Banyumas

+
- @endif -
-
+
+ @if(session('success')) +
+ {{ session('success') }} +
+ @endif + + @csrf -
- + + class="w-full border border-gray-200 rounded-xl px-4 py-3 text-sm focus:outline-none focus:border-gray-400 transition @error('name') border-red-300 @enderror"> @error('name')

{{ $message }}

@enderror
-
+
- + - @error('email')

{{ $message }}

@enderror + class="w-full border border-gray-200 rounded-xl px-4 py-3 text-sm focus:outline-none focus:border-gray-400 transition">
- + + class="w-full border border-gray-200 rounded-xl px-4 py-3 text-sm focus:outline-none focus:border-gray-400 transition">
- + + class="w-full border border-gray-200 rounded-xl px-4 py-3 text-sm focus:outline-none focus:border-gray-400 transition @error('subject') border-red-300 @enderror"> @error('subject')

{{ $message }}

@enderror
- + + class="w-full border border-gray-200 rounded-xl px-4 py-3 text-sm focus:outline-none focus:border-gray-400 transition @error('message') border-red-300 @enderror">{{ old('message') }} @error('message')

{{ $message }}

@enderror
- -
-

📍 Desa Karangdadap, Kecamatan Kalibagor, Kabupaten Banyumas

-
-
+
@endsection diff --git a/resources/views/public/layout.blade.php b/resources/views/public/layout.blade.php index 346115d..e82ba86 100644 --- a/resources/views/public/layout.blade.php +++ b/resources/views/public/layout.blade.php @@ -5,29 +5,47 @@ @yield('title', 'Persegi') — Organisasi Pemuda Desa Karangdadap + - + -