From 039d18e5e39c16703ed14b73c9927aa77c765f61 Mon Sep 17 00:00:00 2001 From: rahmagustin Date: Sat, 24 Jan 2026 23:21:34 +0700 Subject: [PATCH] aduan blm fiks --- public/assets/user/css/main.css | 52 +++++- resources/views/user/aduan-tps.blade.php | 224 +++++++++++++---------- resources/views/user/index.blade.php | 2 +- 3 files changed, 176 insertions(+), 102 deletions(-) diff --git a/public/assets/user/css/main.css b/public/assets/user/css/main.css index ce37778..bb87f65 100644 --- a/public/assets/user/css/main.css +++ b/public/assets/user/css/main.css @@ -2069,7 +2069,7 @@ .contact .php-email-form .form-group { } .contact .php-email-form input[type=text], -.contact .php-email-form input[type=email], +.contact .php-email-form input[type=tel], .contact .php-email-form textarea { border-radius: 0px; box-shadow: none; @@ -2079,13 +2079,13 @@ .contact .php-email-form textarea { } .contact .php-email-form input[type=text]:focus, -.contact .php-email-form input[type=email]:focus, +.contact .php-email-form input[type=tel]:focus, .contact .php-email-form textarea:focus { border-color: var(--accent-color); } .contact .php-email-form input[type=text], -.contact .php-email-form input[type=email] { +.contact .php-email-form input[type=tel] { height: 48px; padding: 10px 15px; } @@ -2095,6 +2095,52 @@ .contact .php-email-form textarea { height: 290px; } +/* ===== FILE INPUT (BUKTI FOTO) ===== */ +.contact .php-email-form input[type=file] { + border-radius: 0px; + box-shadow: none; + font-size: 14px; + height: 48px; + padding: 10px 15px; + cursor: pointer; + + background-color: color-mix(in srgb, var(--background-color), transparent 50%); + border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%); +} + +/* focus sama seperti input lain */ +.contact .php-email-form input[type=file]:focus { + border-color: var(--accent-color); + outline: none; +} + +/* styling tombol file (Choose File) */ +.contact .php-email-form input[type=file]::file-selector-button { + border: none; + padding: 10px 15px; + margin-right: 10px; + + background-color: var(--accent-color); + color: #fff; + font-size: 14px; + border-radius: 0px; + cursor: pointer; +} + +/* hover tombol */ +.contact .php-email-form input[type=file]::file-selector-button:hover { + opacity: 0.9; +} + +/* fallback browser lama */ +.contact .php-email-form input[type=file]::-webkit-file-upload-button { + border: none; + padding: 10px 15px; + background-color: var(--accent-color); + color: #fff; + border-radius: 0px; +} + .contact .php-email-form button[type=submit] { background: var(--accent-color); color: var(--contrast-color); diff --git a/resources/views/user/aduan-tps.blade.php b/resources/views/user/aduan-tps.blade.php index 0d22b3f..22fc65b 100644 --- a/resources/views/user/aduan-tps.blade.php +++ b/resources/views/user/aduan-tps.blade.php @@ -1,123 +1,151 @@ @extends('user.template') @section('content') - -
-
-

Aduan TPS

- -
-
-
+ +
+
+

Aduan TPS

+ +
+
+ -
+
-
+
+
-
-
- -

TPS yang Diadukan

- - {{-- FOTO TPS --}} -
- Foto TPS -
- - {{-- INFO TPS --}} -
- @if ($tps) -

{{ $tps->nama_tps }}

-

{{ $tps->alamat_tps }}

- - @else -

- Silakan pilih TPS yang akan diadukan -

- - - @endif -
+ {{-- KOLOM KIRI --}} +
+
+

TPS yang Diadukan

+ {{-- FOTO TPS --}} +
+
+ {{-- INFO TPS --}} +
+ @if ($tps) +

{{ $tps->nama_tps }}

+

{{ $tps->alamat_tps }}

+ @else +

+ Silakan pilih TPS yang akan diadukan +

+ + @endif +
+
+ {{-- KOLOM KANAN --}} +
+
+ @csrf -
- -
-
- -
-
- -
-
-
- -
-
- -
-
-
Loading
-
-
Your message has been sent. Thank you!
-
-
- -
+ {{-- PENTING --}} + +
+
+ +
+
+ +
+
+ +
+ +
+ +
+ +
+ + {{-- FILE INPUT (SUDAH SERAGAM) --}} +
+ +
+ +
+ +
+
+
+
-
- + inputLokasi.value = this.value; + + fotoTps.src = option.dataset.foto; + fotoWrapper.classList.remove('d-none'); + + infoTps.innerHTML = ` +

${option.dataset.nama}

+

${option.dataset.alamat}

+ + `; + + document.getElementById('ganti-tps').onclick = () => { + inputLokasi.value = ''; + fotoWrapper.classList.add('d-none'); + infoTps.innerHTML = '

Silakan pilih TPS yang akan diadukan

'; + infoTps.appendChild(selectTps); + selectTps.value = ''; + }; + }); +}); + @endsection diff --git a/resources/views/user/index.blade.php b/resources/views/user/index.blade.php index 53f56df..214885e 100644 --- a/resources/views/user/index.blade.php +++ b/resources/views/user/index.blade.php @@ -452,7 +452,7 @@ function markerIcon(color) {

atau

--}} - + Laporkan Aduan