Compare commits
28 Commits
11d736e90c
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| d258e37c02 | |||
| 1cf6967e46 | |||
| e19864b0c4 | |||
| 16c52b0cf6 | |||
| 94968e6b0b | |||
| 1cccc69e14 | |||
| 0f0ff44bd0 | |||
| fa2737cb8f | |||
| fe46133160 | |||
| 879d683a05 | |||
| 4f85bedfc3 | |||
| f83b1c675f | |||
| 16177783fd | |||
| b64b896960 | |||
| c6d8b34f56 | |||
| 49a8d0e0d4 | |||
| e30d1b4891 | |||
| 02e8752a36 | |||
| d7a38164ad | |||
| 7b09aba468 | |||
| 0e1cda087c | |||
| d045f2cc28 | |||
| ec4749b123 | |||
| 36a02dad66 | |||
| f4065a84b6 | |||
| 25bdf082cc | |||
| 0651a90336 | |||
| a62e01e932 |
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@ session_start();
|
|||||||
// Tolak akses jika bukan admin
|
// Tolak akses jika bukan admin
|
||||||
if (!isset($_SESSION['role']) || $_SESSION['role'] !== 'admin') {
|
if (!isset($_SESSION['role']) || $_SESSION['role'] !== 'admin') {
|
||||||
http_response_code(403); // Status Forbidden
|
http_response_code(403); // Status Forbidden
|
||||||
echo "Akses ditolak! Anda bukan operator.";
|
echo "Akses ditolak! Anda bukan admin.";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
|||||||
$tabel = $_POST['tabel'];
|
$tabel = $_POST['tabel'];
|
||||||
|
|
||||||
// Daftar tabel yang diizinkan (untuk keamanan)
|
// Daftar tabel yang diizinkan (untuk keamanan)
|
||||||
$allowed_tables = ['spbu_locations', 'jalan', 'parsil', 'rumah_ibadah', 'penduduk_miskin'];
|
$allowed_tables = ['rumah_ibadah', 'penduduk_miskin'];
|
||||||
|
|
||||||
if (in_array($tabel, $allowed_tables)) {
|
if (in_array($tabel, $allowed_tables)) {
|
||||||
$stmt = $conn->prepare("DELETE FROM $tabel WHERE id = ?");
|
$stmt = $conn->prepare("DELETE FROM $tabel WHERE id = ?");
|
||||||
@@ -32,4 +32,3 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
|||||||
}
|
}
|
||||||
$conn->close();
|
$conn->close();
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
+185
-166
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
session_start();
|
session_start();
|
||||||
// Mengecek apakah user yang mengakses adalah admin/operator
|
// Mengecek apakah user yang mengakses adalah admin
|
||||||
$isAdmin = isset($_SESSION['role']) && $_SESSION['role'] === 'admin';
|
$isAdmin = isset($_SESSION['role']) && $_SESSION['role'] === 'admin';
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
@@ -12,7 +12,8 @@ $isAdmin = isset($_SESSION['role']) && $_SESSION['role'] === 'admin';
|
|||||||
<title>Sistem WebGIS Terpadu — Kota Pontianak</title>
|
<title>Sistem WebGIS Terpadu — Kota Pontianak</title>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
|
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.css" />
|
<link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.4.1/dist/MarkerCluster.css" />
|
||||||
|
<link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.4.1/dist/MarkerCluster.Default.css" />
|
||||||
<link
|
<link
|
||||||
href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap"
|
href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap"
|
||||||
rel="stylesheet">
|
rel="stylesheet">
|
||||||
@@ -72,10 +73,8 @@ $isAdmin = isset($_SESSION['role']) && $_SESSION['role'] === 'admin';
|
|||||||
<!-- Kotak Pilihan Dropdown yang Luas -->
|
<!-- Kotak Pilihan Dropdown yang Luas -->
|
||||||
<div class="custom-select-options" id="custom-select-options">
|
<div class="custom-select-options" id="custom-select-options">
|
||||||
<div class="custom-option selected" data-value="Semua">Semua Layer</div>
|
<div class="custom-option selected" data-value="Semua">Semua Layer</div>
|
||||||
<div class="custom-option" data-value="SPBU">SPBU</div>
|
|
||||||
<div class="custom-option" data-value="Jalan">Jaringan Jalan</div>
|
|
||||||
<div class="custom-option" data-value="Parsil">Parsil / Lahan</div>
|
|
||||||
<div class="custom-option" data-value="Rumah Ibadah">Rumah Ibadah</div>
|
<div class="custom-option" data-value="Rumah Ibadah">Rumah Ibadah</div>
|
||||||
|
<div class="custom-option" data-value="Penduduk Miskin">Penduduk Miskin</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -87,7 +86,7 @@ $isAdmin = isset($_SESSION['role']) && $_SESSION['role'] === 'admin';
|
|||||||
d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
|
d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
|
||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
<input type="text" id="search-input" placeholder="Cari nama lokasi, jalan, atau lahan..."
|
<input type="text" id="search-input" placeholder="Cari nama kepala keluarga atau rumah ibadah..."
|
||||||
onkeyup="jalankanPencarian()" oninput="toggleClearBtn()" autocomplete="off">
|
onkeyup="jalankanPencarian()" oninput="toggleClearBtn()" autocomplete="off">
|
||||||
<button class="search-clear-btn" id="search-clear" onclick="clearSearch()" title="Hapus pencarian">
|
<button class="search-clear-btn" id="search-clear" onclick="clearSearch()" title="Hapus pencarian">
|
||||||
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5">
|
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5">
|
||||||
@@ -116,7 +115,7 @@ $isAdmin = isset($_SESSION['role']) && $_SESSION['role'] === 'admin';
|
|||||||
<div class="profile-dropdown" id="profile-dropdown">
|
<div class="profile-dropdown" id="profile-dropdown">
|
||||||
<div class="dropdown-user-info">
|
<div class="dropdown-user-info">
|
||||||
<div class="dropdown-username"><?php echo htmlspecialchars($_SESSION['username']); ?></div>
|
<div class="dropdown-username"><?php echo htmlspecialchars($_SESSION['username']); ?></div>
|
||||||
<div class="dropdown-role">Operator Wilayah</div>
|
<div class="dropdown-role">Admin</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="dropdown-divider"></div>
|
<div class="dropdown-divider"></div>
|
||||||
<a href="logout.php" class="dropdown-item logout-link">
|
<a href="logout.php" class="dropdown-item logout-link">
|
||||||
@@ -136,21 +135,76 @@ $isAdmin = isset($_SESSION['role']) && $_SESSION['role'] === 'admin';
|
|||||||
</a>
|
</a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div style="width: 1px; height: 20px; background: rgba(255,255,255,0.1); margin: 0 4px;"></div>
|
<div style="width: 1px; height: 20px; background: rgba(255,255,255,0.1); margin: 0 4px;" class="header-tools-divider"></div>
|
||||||
|
|
||||||
<div class="tool-btn" title="Status Koneksi">
|
<div class="tool-btn" id="connection-status" title="Status Koneksi">
|
||||||
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
||||||
<path stroke-linecap="round" stroke-linejoin="round"
|
<path stroke-linecap="round" stroke-linejoin="round"
|
||||||
d="M8.111 16.404a5.5 5.5 0 017.778 0M12 20h.01m-7.08-7.071c3.904-3.905 10.236-3.905 14.141 0M1.394 9.393c5.857-5.857 15.355-5.857 21.213 0" />
|
d="M8.111 16.404a5.5 5.5 0 017.778 0M12 20h.01m-7.08-7.071c3.904-3.905 10.236-3.905 14.141 0M1.394 9.393c5.857-5.857 15.355-5.857 21.213 0" />
|
||||||
</svg>
|
</svg>
|
||||||
<div class="status-dot"></div>
|
<div class="status-dot"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tool-btn" title="Tentang Aplikasi">
|
<div class="tool-btn" id="about-btn" title="Tentang Aplikasi">
|
||||||
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
||||||
<path stroke-linecap="round" stroke-linejoin="round"
|
<path stroke-linecap="round" stroke-linejoin="round"
|
||||||
d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
|
d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Hamburger Menu Button (Mobile Only) -->
|
||||||
|
<button class="hamburger-menu-btn" id="hamburger-menu-btn" onclick="toggleMobileMenu(event)" title="Menu">
|
||||||
|
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 12h16M4 18h16" />
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<!-- Dropdown Menu (Mobile Only) -->
|
||||||
|
<div class="mobile-menu-dropdown" id="mobile-menu-dropdown">
|
||||||
|
<?php if ($isAdmin): ?>
|
||||||
|
<div class="mobile-menu-user">
|
||||||
|
<img src="<?php echo htmlspecialchars($_SESSION['avatar']); ?>" class="mobile-avatar" alt="Avatar">
|
||||||
|
<div>
|
||||||
|
<div class="mobile-username"><?php echo htmlspecialchars($_SESSION['username']); ?></div>
|
||||||
|
<div class="mobile-role">Admin</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="mobile-menu-divider"></div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<?php if ($isAdmin): ?>
|
||||||
|
<a href="logout.php" class="mobile-menu-item logout-link">
|
||||||
|
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1" />
|
||||||
|
</svg>
|
||||||
|
<span>Logout</span>
|
||||||
|
</a>
|
||||||
|
<?php else: ?>
|
||||||
|
<a href="login.php" class="mobile-menu-item">
|
||||||
|
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H7a3 3 0 01-3-3V7a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1" />
|
||||||
|
</svg>
|
||||||
|
<span>Login Operator</span>
|
||||||
|
</a>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<div class="mobile-menu-divider"></div>
|
||||||
|
|
||||||
|
<div class="mobile-menu-item" id="mobile-connection-status">
|
||||||
|
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round"
|
||||||
|
d="M8.111 16.404a5.5 5.5 0 017.778 0M12 20h.01m-7.08-7.071c3.904-3.905 10.236-3.905 14.141 0M1.394 9.393c5.857-5.857 15.355-5.857 21.213 0" />
|
||||||
|
</svg>
|
||||||
|
<span><strong id="mobile-connection-text">Online</strong></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="mobile-menu-item" id="mobile-about-btn">
|
||||||
|
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round"
|
||||||
|
d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
|
||||||
|
</svg>
|
||||||
|
<span>Tentang Aplikasi</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -191,19 +245,7 @@ $isAdmin = isset($_SESSION['role']) && $_SESSION['role'] === 'admin';
|
|||||||
|
|
||||||
<!-- Tab Navigation -->
|
<!-- Tab Navigation -->
|
||||||
<div class="sidebar-tabs">
|
<div class="sidebar-tabs">
|
||||||
<button class="stab active" data-tab="spbu" onclick="switchSidebarTab('spbu')">
|
<button class="stab active" data-tab="ibadah" onclick="switchSidebarTab('ibadah')">
|
||||||
<span class="stab-icon">⛽</span>
|
|
||||||
<span>SPBU</span>
|
|
||||||
</button>
|
|
||||||
<button class="stab" data-tab="jalan" onclick="switchSidebarTab('jalan')">
|
|
||||||
<span class="stab-icon">🛣️</span>
|
|
||||||
<span>Jalan</span>
|
|
||||||
</button>
|
|
||||||
<button class="stab" data-tab="parsil" onclick="switchSidebarTab('parsil')">
|
|
||||||
<span class="stab-icon">🏘️</span>
|
|
||||||
<span>Parsil</span>
|
|
||||||
</button>
|
|
||||||
<button class="stab" data-tab="ibadah" onclick="switchSidebarTab('ibadah')">
|
|
||||||
<span class="stab-icon">🕌</span>
|
<span class="stab-icon">🕌</span>
|
||||||
<span>Ibadah</span>
|
<span>Ibadah</span>
|
||||||
</button>
|
</button>
|
||||||
@@ -216,147 +258,8 @@ $isAdmin = isset($_SESSION['role']) && $_SESSION['role'] === 'admin';
|
|||||||
<!-- Scrollable Content -->
|
<!-- Scrollable Content -->
|
||||||
<div class="sidebar-body">
|
<div class="sidebar-body">
|
||||||
|
|
||||||
<!-- ===== TAB: SPBU ===== -->
|
|
||||||
<div class="stab-content active" id="tab-spbu">
|
|
||||||
<div class="step-guide">
|
|
||||||
<div class="step-badge">Langkah 1</div>
|
|
||||||
<p>Klik tombol <strong>Tandai Lokasi</strong>, lalu klik titik di peta untuk menentukan posisi SPBU.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<button class="btn-pick-location" id="btn-pick-spbu" onclick="activatePickMode('spbu')">
|
|
||||||
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
|
||||||
<path stroke-linecap="round" stroke-linejoin="round"
|
|
||||||
d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" />
|
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" />
|
|
||||||
</svg>
|
|
||||||
Tandai Lokasi di Peta
|
|
||||||
</button>
|
|
||||||
<div class="coords-display" id="coords-spbu">
|
|
||||||
<span class="coords-label">Koordinat:</span>
|
|
||||||
<span class="coords-value" id="coords-spbu-val">Belum dipilih</span>
|
|
||||||
</div>
|
|
||||||
<div class="step-guide" style="margin-top:14px;">
|
|
||||||
<div class="step-badge">Langkah 2</div>
|
|
||||||
<p>Isi detail informasi SPBU di bawah ini.</p>
|
|
||||||
</div>
|
|
||||||
<div class="sfield">
|
|
||||||
<label class="sfield-label">Nama SPBU <span class="required">*</span></label>
|
|
||||||
<input type="text" id="sb_nama_spbu" class="sinput" placeholder="Contoh: SPBU Jl. Ahmad Yani">
|
|
||||||
</div>
|
|
||||||
<div class="sfield">
|
|
||||||
<label class="sfield-label">Nomor Telepon</label>
|
|
||||||
<input type="text" id="sb_nohp_spbu" class="sinput" placeholder="Contoh: 0561-xxxxxx">
|
|
||||||
</div>
|
|
||||||
<div class="sfield">
|
|
||||||
<label class="sfield-label">Status Operasional</label>
|
|
||||||
<select id="sb_kategori_spbu" class="sselect">
|
|
||||||
<option value="Ya">Buka 24 Jam</option>
|
|
||||||
<option value="Tidak">Reguler</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<button class="btn-save-sidebar" onclick="saveSPBUSidebar()">
|
|
||||||
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5">
|
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" />
|
|
||||||
</svg>
|
|
||||||
Simpan SPBU
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- ===== TAB: JALAN ===== -->
|
|
||||||
<div class="stab-content" id="tab-jalan">
|
|
||||||
<div class="step-guide">
|
|
||||||
<div class="step-badge">Langkah 1</div>
|
|
||||||
<p>Klik tombol <strong>Gambar Jalur</strong>, lalu klik titik-titik di peta membentuk ruas jalan.
|
|
||||||
Klik dua kali untuk selesai.</p>
|
|
||||||
</div>
|
|
||||||
<button class="btn-pick-location btn-draw" id="btn-draw-jalan" onclick="activateDrawMode('polyline')">
|
|
||||||
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
|
||||||
<path stroke-linecap="round" stroke-linejoin="round"
|
|
||||||
d="M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z" />
|
|
||||||
</svg>
|
|
||||||
Gambar Jalur di Peta
|
|
||||||
</button>
|
|
||||||
<div class="coords-display" id="coords-jalan">
|
|
||||||
<span class="coords-label">Status:</span>
|
|
||||||
<span class="coords-value" id="coords-jalan-val">Belum digambar</span>
|
|
||||||
</div>
|
|
||||||
<div class="step-guide" style="margin-top:14px;">
|
|
||||||
<div class="step-badge">Langkah 2</div>
|
|
||||||
<p>Isi detail informasi jalan di bawah ini.</p>
|
|
||||||
</div>
|
|
||||||
<div class="sfield">
|
|
||||||
<label class="sfield-label">Nama Jalan <span class="required">*</span></label>
|
|
||||||
<input type="text" id="sb_nama_jalan" class="sinput" placeholder="Contoh: Jl. Gajah Mada">
|
|
||||||
</div>
|
|
||||||
<div class="sfield">
|
|
||||||
<label class="sfield-label">Status Jalan</label>
|
|
||||||
<select id="sb_status_jalan" class="sselect">
|
|
||||||
<option value="Jalan Nasional">Jalan Nasional</option>
|
|
||||||
<option value="Jalan Provinsi">Jalan Provinsi</option>
|
|
||||||
<option value="Jalan Kabupaten">Jalan Kabupaten</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div class="sfield">
|
|
||||||
<label class="sfield-label">Panjang Terukur</label>
|
|
||||||
<input type="text" id="sb_panjang_jalan" class="sinput" placeholder="Otomatis terisi" readonly>
|
|
||||||
</div>
|
|
||||||
<button class="btn-save-sidebar btn-teal" onclick="saveJalanSidebar()">
|
|
||||||
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5">
|
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" />
|
|
||||||
</svg>
|
|
||||||
Simpan Jalan
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- ===== TAB: PARSIL ===== -->
|
|
||||||
<div class="stab-content" id="tab-parsil">
|
|
||||||
<div class="step-guide">
|
|
||||||
<div class="step-badge">Langkah 1</div>
|
|
||||||
<p>Klik tombol <strong>Gambar Parsil</strong>, lalu klik titik-titik untuk membentuk batas lahan.
|
|
||||||
Klik dua kali untuk selesai.</p>
|
|
||||||
</div>
|
|
||||||
<button class="btn-pick-location btn-purple" id="btn-draw-parsil" onclick="activateDrawMode('polygon')">
|
|
||||||
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
|
||||||
<path stroke-linecap="round" stroke-linejoin="round"
|
|
||||||
d="M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7" />
|
|
||||||
</svg>
|
|
||||||
Gambar Area Parsil
|
|
||||||
</button>
|
|
||||||
<div class="coords-display" id="coords-parsil">
|
|
||||||
<span class="coords-label">Status:</span>
|
|
||||||
<span class="coords-value" id="coords-parsil-val">Belum digambar</span>
|
|
||||||
</div>
|
|
||||||
<div class="step-guide" style="margin-top:14px;">
|
|
||||||
<div class="step-badge">Langkah 2</div>
|
|
||||||
<p>Isi detail informasi lahan di bawah ini.</p>
|
|
||||||
</div>
|
|
||||||
<div class="sfield">
|
|
||||||
<label class="sfield-label">Nama Pemilik <span class="required">*</span></label>
|
|
||||||
<input type="text" id="sb_nama_parsil" class="sinput" placeholder="Contoh: Budi Santoso">
|
|
||||||
</div>
|
|
||||||
<div class="sfield">
|
|
||||||
<label class="sfield-label">Status Tanah</label>
|
|
||||||
<select id="sb_status_parsil" class="sselect">
|
|
||||||
<option value="SHM">SHM (Hak Milik)</option>
|
|
||||||
<option value="HGB">HGB (Guna Bangunan)</option>
|
|
||||||
<option value="HGU">HGU (Guna Usaha)</option>
|
|
||||||
<option value="HP">HP (Hak Pakai)</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div class="sfield">
|
|
||||||
<label class="sfield-label">Luas Terukur</label>
|
|
||||||
<input type="text" id="sb_luas_parsil" class="sinput" placeholder="Otomatis terisi" readonly>
|
|
||||||
</div>
|
|
||||||
<button class="btn-save-sidebar btn-purple-solid" onclick="saveParsil_Sidebar()">
|
|
||||||
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5">
|
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" />
|
|
||||||
</svg>
|
|
||||||
Simpan Parsil
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- ===== TAB: RUMAH IBADAH ===== -->
|
<!-- ===== TAB: RUMAH IBADAH ===== -->
|
||||||
<div class="stab-content" id="tab-ibadah">
|
<div class="stab-content active" id="tab-ibadah">
|
||||||
<div class="step-guide">
|
<div class="step-guide">
|
||||||
<div class="step-badge">Langkah 1</div>
|
<div class="step-badge">Langkah 1</div>
|
||||||
<p>Klik tombol <strong>Tandai Lokasi</strong>, lalu klik titik di peta untuk menentukan posisi rumah
|
<p>Klik tombol <strong>Tandai Lokasi</strong>, lalu klik titik di peta untuk menentukan posisi rumah
|
||||||
@@ -422,6 +325,13 @@ $isAdmin = isset($_SESSION['role']) && $_SESSION['role'] === 'admin';
|
|||||||
<label class="sfield-label">Nama Kepala Keluarga <span class="required">*</span></label>
|
<label class="sfield-label">Nama Kepala Keluarga <span class="required">*</span></label>
|
||||||
<input type="text" id="sb_nama_penduduk" class="sinput" placeholder="Contoh: Siti Rahayu">
|
<input type="text" id="sb_nama_penduduk" class="sinput" placeholder="Contoh: Siti Rahayu">
|
||||||
</div>
|
</div>
|
||||||
|
<div class="sfield">
|
||||||
|
<label class="sfield-label">Status Bantuan <span class="required">*</span></label>
|
||||||
|
<select id="sb_status_bantuan" class="sselect">
|
||||||
|
<option value="Belum Menerima">Belum Menerima Bantuan</option>
|
||||||
|
<option value="Sudah Menerima">Sudah Menerima Bantuan</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
<button class="btn-save-sidebar btn-red-solid" onclick="savePendudukSidebar()">
|
<button class="btn-save-sidebar btn-red-solid" onclick="savePendudukSidebar()">
|
||||||
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5">
|
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5">
|
||||||
@@ -434,6 +344,65 @@ $isAdmin = isset($_SESSION['role']) && $_SESSION['role'] === 'admin';
|
|||||||
</div><!-- end sidebar-body -->
|
</div><!-- end sidebar-body -->
|
||||||
</div><!-- end input-sidebar -->
|
</div><!-- end input-sidebar -->
|
||||||
|
|
||||||
|
<!-- ==============================
|
||||||
|
DASHBOARD STATISTIK (RIGHT SIDEBAR)
|
||||||
|
============================== -->
|
||||||
|
<div class="dashboard-sidebar" id="dashboard-sidebar">
|
||||||
|
<div class="dashboard-header">
|
||||||
|
<div class="dashboard-title">
|
||||||
|
<div class="dashboard-title-icon">
|
||||||
|
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M11 3.055A9.003 9.003 0 1020.945 13H11V3.055z" />
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z" />
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div class="dashboard-title-text">Dashboard Analisis</div>
|
||||||
|
<div class="dashboard-title-sub" id="dashboard-target-name">Rumah Ibadah</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button class="dashboard-close" id="dashboard-close-btn" onclick="closeDashboard()" title="Tutup">
|
||||||
|
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="dashboard-body">
|
||||||
|
<!-- Stats Summary Cards -->
|
||||||
|
<div class="stats-grid">
|
||||||
|
<div class="stat-card">
|
||||||
|
<div class="stat-num" id="stat-total-kk">0</div>
|
||||||
|
<div class="stat-label">Total KK Miskin</div>
|
||||||
|
</div>
|
||||||
|
<div class="stat-card stat-success">
|
||||||
|
<div class="stat-num" id="stat-sudah-bantuan">0</div>
|
||||||
|
<div class="stat-label">Sudah Menerima</div>
|
||||||
|
</div>
|
||||||
|
<div class="stat-card stat-danger">
|
||||||
|
<div class="stat-num" id="stat-belum-bantuan">0</div>
|
||||||
|
<div class="stat-label">Belum Menerima</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Chart Section -->
|
||||||
|
<div class="chart-section">
|
||||||
|
<div class="chart-title">Distribusi Penerima Bantuan</div>
|
||||||
|
<div class="chart-container" style="position: relative; height: 180px; width: 100%;">
|
||||||
|
<canvas id="povertyChart"></canvas>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- List of Families inside Radius -->
|
||||||
|
<div class="families-section">
|
||||||
|
<div class="families-title">Daftar KK Miskin Terdekat</div>
|
||||||
|
<div class="families-list" id="dashboard-families-list">
|
||||||
|
<!-- Dynamic List Items -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Overlay saat mode pilih lokasi aktif -->
|
<!-- Overlay saat mode pilih lokasi aktif -->
|
||||||
<div class="pick-mode-overlay" id="pick-overlay">
|
<div class="pick-mode-overlay" id="pick-overlay">
|
||||||
<div class="pick-mode-banner">
|
<div class="pick-mode-banner">
|
||||||
@@ -449,9 +418,9 @@ $isAdmin = isset($_SESSION['role']) && $_SESSION['role'] === 'admin';
|
|||||||
<div id="map" style="padding-top: 56px; height: 100vh; box-sizing: border-box;"></div>
|
<div id="map" style="padding-top: 56px; height: 100vh; box-sizing: border-box;"></div>
|
||||||
|
|
||||||
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
|
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.js"></script>
|
<script src="https://unpkg.com/leaflet.markercluster@1.4.1/dist/leaflet.markercluster.js"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/@turf/turf@6/turf.min.js"></script>
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/leaflet.heat@0.2.0/dist/leaflet-heat.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/leaflet.heat@0.2.0/dist/leaflet-heat.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// Variabel global untuk mendeteksi status admin di script.js
|
// Variabel global untuk mendeteksi status admin di script.js
|
||||||
@@ -464,13 +433,63 @@ $isAdmin = isset($_SESSION['role']) && $_SESSION['role'] === 'admin';
|
|||||||
if (dropdown) dropdown.classList.toggle('active');
|
if (dropdown) dropdown.classList.toggle('active');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tutup dropdown saat klik di luar area profil
|
// Toggle mobile hamburger menu
|
||||||
|
function toggleMobileMenu(e) {
|
||||||
|
e.stopPropagation();
|
||||||
|
var menu = document.getElementById('mobile-menu-dropdown');
|
||||||
|
if (menu) menu.classList.toggle('active');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Tutup dropdown saat klik di luar area profil / menu mobile
|
||||||
document.addEventListener('click', function() {
|
document.addEventListener('click', function() {
|
||||||
var dropdown = document.getElementById('profile-dropdown');
|
var dropdown = document.getElementById('profile-dropdown');
|
||||||
if (dropdown) dropdown.classList.remove('active');
|
if (dropdown) dropdown.classList.remove('active');
|
||||||
|
|
||||||
|
var menu = document.getElementById('mobile-menu-dropdown');
|
||||||
|
if (menu) menu.classList.remove('active');
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<!-- Modal Tentang Aplikasi -->
|
||||||
|
<div id="about-modal" class="modal-overlay">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<h3>Tentang Aplikasi</h3>
|
||||||
|
<button class="modal-close-btn" id="about-close-btn" title="Tutup">×</button>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="modal-logo">
|
||||||
|
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" width="48" height="48">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round"
|
||||||
|
d="M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7" />
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
<h4 class="app-title">WebGIS Poverty Map</h4>
|
||||||
|
<p class="app-desc">Sistem Pemetaan Penduduk Miskin Kota Pontianak. Aplikasi ini dirancang untuk memetakan penyebaran penduduk miskin serta mempermudah analisis spasial sebaran bantuan sosial di sekitar rumah ibadah secara dinamis.</p>
|
||||||
|
|
||||||
|
<div class="modal-divider"></div>
|
||||||
|
|
||||||
|
<div class="credits-section">
|
||||||
|
<div class="credit-row">
|
||||||
|
<span class="credit-label">Pengembang:</span>
|
||||||
|
<span class="credit-value">Aleksander William</span>
|
||||||
|
</div>
|
||||||
|
<div class="credit-row">
|
||||||
|
<span class="credit-label">NIM:</span>
|
||||||
|
<span class="credit-value">D1041231003</span>
|
||||||
|
</div>
|
||||||
|
<div class="credit-row">
|
||||||
|
<span class="credit-label">Versi Aplikasi:</span>
|
||||||
|
<span class="credit-value">v1.1.0</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button class="btn btn-save" id="about-ok-btn">Selesai</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<script src="script.js"></script>
|
<script src="script.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,19 @@
|
|||||||
<?php
|
<?php
|
||||||
$host = "localhost";
|
$host_sekarang = $_SERVER['HTTP_HOST'];
|
||||||
$user = "root";
|
|
||||||
$pass = "";
|
// Cek apakah URL yang sedang diakses mengandung kata 'localhost' atau '127.0.0.1'
|
||||||
$db = "webgis_db";
|
if (strpos($host_sekarang, 'localhost') !== false || strpos($host_sekarang, '127.0.0.1') !== false) {
|
||||||
|
$host = "localhost";
|
||||||
|
$user = "root";
|
||||||
|
$pass = "";
|
||||||
|
$db = "webgis_db";
|
||||||
|
} else {
|
||||||
|
// Gunakan Kredensial Normal User dari Coolify
|
||||||
|
$host = "b84c4osgw4kcw0wc8o8cg8cg";
|
||||||
|
$user = "mysql"; // Menggunakan normal user
|
||||||
|
$pass = "YN54ned6j7P6K7c76sLqh9ERUbm8xvhPFj31Mnt0yKPXxqrIhWICWlbJbJjUCfn7"; // Normal User Password
|
||||||
|
$db = "webgis_db";
|
||||||
|
}
|
||||||
|
|
||||||
// Connect to MySQL server first
|
// Connect to MySQL server first
|
||||||
$conn = new mysqli($host, $user, $pass);
|
$conn = new mysqli($host, $user, $pass);
|
||||||
@@ -39,10 +50,9 @@ if ($row['count'] == 0) {
|
|||||||
$default_pass = password_hash('admin123', PASSWORD_BCRYPT);
|
$default_pass = password_hash('admin123', PASSWORD_BCRYPT);
|
||||||
$default_avatar = 'https://ui-avatars.com/api/?name=Admin+Operator&background=1e40af&color=fff&bold=true&size=128';
|
$default_avatar = 'https://ui-avatars.com/api/?name=Admin+Operator&background=1e40af&color=fff&bold=true&size=128';
|
||||||
$default_role = 'admin';
|
$default_role = 'admin';
|
||||||
|
|
||||||
$stmt = $conn->prepare("INSERT INTO users (username, password, avatar, role) VALUES (?, ?, ?, ?)");
|
$stmt = $conn->prepare("INSERT INTO users (username, password, avatar, role) VALUES (?, ?, ?, ?)");
|
||||||
$stmt->bind_param("ssss", $default_user, $default_pass, $default_avatar, $default_role);
|
$stmt->bind_param("ssss", $default_user, $default_pass, $default_avatar, $default_role);
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
$stmt->close();
|
$stmt->close();
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
@@ -1,16 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
include 'koneksi.php';
|
include 'koneksi.php';
|
||||||
|
|
||||||
// Cek data apa yang diminta, jika kosong jadikan 'spbu' sebagai default
|
// Cek data apa yang diminta, jika kosong jadikan 'rumah_ibadah' sebagai default
|
||||||
$jenis = isset($_GET['jenis']) ? $_GET['jenis'] : 'spbu';
|
$jenis = isset($_GET['jenis']) ? $_GET['jenis'] : 'rumah_ibadah';
|
||||||
|
|
||||||
if ($jenis == 'spbu') {
|
if ($jenis == 'rumah_ibadah') {
|
||||||
$sql = "SELECT * FROM spbu_locations";
|
|
||||||
} else if ($jenis == 'jalan') {
|
|
||||||
$sql = "SELECT * FROM jalan";
|
|
||||||
} else if ($jenis == 'parsil') {
|
|
||||||
$sql = "SELECT * FROM parsil";
|
|
||||||
} else if ($jenis == 'rumah_ibadah') {
|
|
||||||
$sql = "SELECT * FROM rumah_ibadah";
|
$sql = "SELECT * FROM rumah_ibadah";
|
||||||
} else if ($jenis == 'penduduk_miskin') {
|
} else if ($jenis == 'penduduk_miskin') {
|
||||||
$sql = "SELECT * FROM penduduk_miskin";
|
$sql = "SELECT * FROM penduduk_miskin";
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$error = "Username atau password salah!";
|
$error = "Username atau password salah!";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@@ -40,7 +40,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Login Operator - WebGIS Pontianak</title>
|
<title>Login Admin - WebGIS Pontianak</title>
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
</head>
|
</head>
|
||||||
@@ -53,7 +53,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||||||
<path stroke-linecap="round" stroke-linejoin="round" d="M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7" />
|
<path stroke-linecap="round" stroke-linejoin="round" d="M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7" />
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
<h2>Login Operator</h2>
|
<h2>Login Admin</h2>
|
||||||
<p>Masuk untuk mengelola data WebGIS</p>
|
<p>Masuk untuk mengelola data WebGIS</p>
|
||||||
|
|
||||||
<?php if (isset($error)): ?>
|
<?php if (isset($error)): ?>
|
||||||
@@ -73,8 +73,37 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<a href="index.php" class="back-link">← Kembali ke Peta</a>
|
<a href="index.php" class="back-link">← Kembali ke Peta</a>
|
||||||
|
|
||||||
|
<div style="margin-top: 30px; padding: 16px; background-color: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; text-align: left;">
|
||||||
|
|
||||||
|
<p style="margin: 0 0 12px 0; font-size: 12px; color: #94a3b8; font-weight: 600; text-align: center; letter-spacing: 1px;">
|
||||||
|
Akun Admin
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px;">
|
||||||
|
<span style="color: #cbd5e1;"><span style="opacity: 0.7;">Admin</span></span>
|
||||||
|
<span style="color: #3b82f6; background-color: rgba(59, 130, 246, 0.1); padding: 3px 8px; border-radius: 4px; font-weight: 600;">admin</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px;">
|
||||||
|
<span style="color: #cbd5e1;"><span style="opacity: 0.7;">Admin Tingkat Provinsi</span></span>
|
||||||
|
<span style="color: #3b82f6; background-color: rgba(59, 130, 246, 0.1); padding: 3px 8px; border-radius: 4px; font-weight: 600;">adminProvinsi</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 13px;">
|
||||||
|
<span style="color: #cbd5e1;"> <span style="opacity: 0.7;">Admin Tingkat Kota</span></span>
|
||||||
|
<span style="color: #3b82f6; background-color: rgba(59, 130, 246, 0.1); padding: 3px 8px; border-radius: 4px; font-weight: 600;">adminKota</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="border-top: 1px dashed rgba(255, 255, 255, 0.1); padding-top: 10px; text-align: center; font-size: 12px; color: #64748b;">
|
||||||
|
Password semua akun: <code style="color: #f87171; font-family: monospace; font-size: 13px;">password</code>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
<?php
|
|
||||||
session_start();
|
|
||||||
|
|
||||||
// Tolak akses jika bukan admin
|
|
||||||
if (!isset($_SESSION['role']) || $_SESSION['role'] !== 'admin') {
|
|
||||||
http_response_code(403); // Status Forbidden
|
|
||||||
echo "Akses ditolak! Anda bukan operator.";
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
include 'koneksi.php';
|
|
||||||
|
|
||||||
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
|
||||||
$nama = $_POST['nama_spbu'];
|
|
||||||
$hp = $_POST['no_hp'];
|
|
||||||
$kategori = $_POST['kategori'];
|
|
||||||
$lat = $_POST['latitude'];
|
|
||||||
$lng = $_POST['longitude'];
|
|
||||||
|
|
||||||
// Perhatikan: id dihilangkan, tanda tanya hanya 5
|
|
||||||
$stmt = $conn->prepare("INSERT INTO spbu_locations (nama_spbu, no_hp, kategori, latitude, longitude) VALUES (?, ?, ?, ?, ?)");
|
|
||||||
|
|
||||||
// Perhatikan: huruf sssdd (5 huruf untuk 5 variabel)
|
|
||||||
$stmt->bind_param("sssdd", $nama, $hp, $kategori, $lat, $lng);
|
|
||||||
|
|
||||||
if ($stmt->execute()) {
|
|
||||||
echo "Data SPBU berhasil disimpan!";
|
|
||||||
} else {
|
|
||||||
echo "Gagal menyimpan data: " . $conn->error;
|
|
||||||
}
|
|
||||||
|
|
||||||
$stmt->close();
|
|
||||||
$conn->close();
|
|
||||||
}
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
<?php
|
|
||||||
session_start();
|
|
||||||
|
|
||||||
// Tolak akses jika bukan admin
|
|
||||||
if (!isset($_SESSION['role']) || $_SESSION['role'] !== 'admin') {
|
|
||||||
http_response_code(403); // Status Forbidden
|
|
||||||
echo "Akses ditolak! Anda bukan operator.";
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
include 'koneksi.php';
|
|
||||||
|
|
||||||
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
|
||||||
$nama = $_POST['nama_jalan'];
|
|
||||||
$status = $_POST['status'];
|
|
||||||
$panjang = $_POST['panjang'];
|
|
||||||
$koordinat = $_POST['koordinat'];
|
|
||||||
|
|
||||||
// Perhatikan: id dihilangkan, tanda tanya hanya 4
|
|
||||||
$stmt = $conn->prepare("INSERT INTO jalan (nama_jalan, status, panjang, koordinat) VALUES (?, ?, ?, ?)");
|
|
||||||
|
|
||||||
// Perhatikan: huruf ssds (4 huruf untuk 4 variabel)
|
|
||||||
$stmt->bind_param("ssds", $nama, $status, $panjang, $koordinat);
|
|
||||||
|
|
||||||
if ($stmt->execute()) {
|
|
||||||
echo "Data Jalan berhasil disimpan!";
|
|
||||||
} else {
|
|
||||||
echo "Gagal: " . $conn->error;
|
|
||||||
}
|
|
||||||
|
|
||||||
$stmt->close();
|
|
||||||
$conn->close();
|
|
||||||
}
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
<?php
|
|
||||||
session_start();
|
|
||||||
|
|
||||||
// Tolak akses jika bukan admin
|
|
||||||
if (!isset($_SESSION['role']) || $_SESSION['role'] !== 'admin') {
|
|
||||||
http_response_code(403); // Status Forbidden
|
|
||||||
echo "Akses ditolak! Anda bukan operator.";
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
include 'koneksi.php';
|
|
||||||
|
|
||||||
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
|
||||||
$nama = $_POST['nama_pemilik'];
|
|
||||||
$status = $_POST['status'];
|
|
||||||
$luas = $_POST['luas'];
|
|
||||||
$koordinat = $_POST['koordinat'];
|
|
||||||
|
|
||||||
// Perhatikan: id dihilangkan, tanda tanya hanya 4
|
|
||||||
$stmt = $conn->prepare("INSERT INTO parsil (nama_pemilik, status, luas, koordinat) VALUES (?, ?, ?, ?)");
|
|
||||||
|
|
||||||
// Perhatikan: huruf ssds (4 huruf untuk 4 variabel)
|
|
||||||
$stmt->bind_param("ssds", $nama, $status, $luas, $koordinat);
|
|
||||||
|
|
||||||
if ($stmt->execute()) {
|
|
||||||
echo "Data Parsil berhasil disimpan!";
|
|
||||||
} else {
|
|
||||||
echo "Gagal: " . $conn->error;
|
|
||||||
}
|
|
||||||
|
|
||||||
$stmt->close();
|
|
||||||
$conn->close();
|
|
||||||
}
|
|
||||||
@@ -15,10 +15,11 @@ $nama = $_POST['nama'];
|
|||||||
$alamat = $_POST['alamat'];
|
$alamat = $_POST['alamat'];
|
||||||
$latitude = $_POST['latitude'];
|
$latitude = $_POST['latitude'];
|
||||||
$longitude = $_POST['longitude'];
|
$longitude = $_POST['longitude'];
|
||||||
|
$bantuan = isset($_POST['bantuan']) ? $_POST['bantuan'] : 'Belum Menerima';
|
||||||
|
|
||||||
// Gunakan Prepared Statement untuk mencegah SQL Injection
|
// Gunakan Prepared Statement untuk mencegah SQL Injection
|
||||||
$query = $conn->prepare("INSERT INTO penduduk_miskin (nama_kk, alamat, lat, lng) VALUES (?, ?, ?, ?)");
|
$query = $conn->prepare("INSERT INTO penduduk_miskin (nama_kk, alamat, lat, lng, bantuan) VALUES (?, ?, ?, ?, ?)");
|
||||||
$query->bind_param("ssdd", $nama, $alamat, $latitude, $longitude);
|
$query->bind_param("ssdds", $nama, $alamat, $latitude, $longitude, $bantuan);
|
||||||
|
|
||||||
// Eksekusi dan kirim respon ke Javascript
|
// Eksekusi dan kirim respon ke Javascript
|
||||||
if ($query->execute()) {
|
if ($query->execute()) {
|
||||||
|
|||||||
+402
-772
File diff suppressed because it is too large
Load Diff
+754
-24
@@ -424,26 +424,22 @@ body {
|
|||||||
letter-spacing: 0.3px;
|
letter-spacing: 0.3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.badge-SPBU {
|
|
||||||
background: rgba(16, 185, 129, 0.15);
|
|
||||||
color: #34d399;
|
|
||||||
}
|
|
||||||
|
|
||||||
.badge-Jalan {
|
|
||||||
background: rgba(245, 158, 11, 0.15);
|
|
||||||
color: #fbbf24;
|
|
||||||
}
|
|
||||||
|
|
||||||
.badge-Parsil {
|
|
||||||
background: rgba(139, 92, 246, 0.15);
|
|
||||||
color: #c084fc;
|
|
||||||
}
|
|
||||||
|
|
||||||
.badge-Rumah-Ibadah {
|
.badge-Rumah-Ibadah {
|
||||||
background: rgba(59, 130, 246, 0.15);
|
background: rgba(59, 130, 246, 0.15);
|
||||||
color: #60a5fa;
|
color: #60a5fa;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.badge-penduduk-sudah {
|
||||||
|
background: rgba(16, 185, 129, 0.15);
|
||||||
|
color: #34d399;
|
||||||
|
}
|
||||||
|
|
||||||
|
.badge-penduduk-belum {
|
||||||
|
background: rgba(239, 68, 68, 0.15);
|
||||||
|
color: #f87171;
|
||||||
|
}
|
||||||
|
|
||||||
.badge-default {
|
.badge-default {
|
||||||
background: rgba(148, 163, 184, 0.15);
|
background: rgba(148, 163, 184, 0.15);
|
||||||
color: #94a3b8;
|
color: #94a3b8;
|
||||||
@@ -472,6 +468,14 @@ body {
|
|||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hamburger-menu-btn {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-menu-dropdown {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.tool-btn {
|
.tool-btn {
|
||||||
background: rgba(255, 255, 255, 0.07);
|
background: rgba(255, 255, 255, 0.07);
|
||||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
@@ -509,6 +513,21 @@ body {
|
|||||||
border: 1px solid #0f172a;
|
border: 1px solid #0f172a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#connection-status.online {
|
||||||
|
color: #10b981;
|
||||||
|
border-color: rgba(16, 185, 129, 0.25);
|
||||||
|
}
|
||||||
|
#connection-status.online .status-dot {
|
||||||
|
background: #10b981;
|
||||||
|
}
|
||||||
|
#connection-status.offline {
|
||||||
|
color: #ef4444;
|
||||||
|
border-color: rgba(239, 68, 68, 0.25);
|
||||||
|
}
|
||||||
|
#connection-status.offline .status-dot {
|
||||||
|
background: #ef4444;
|
||||||
|
}
|
||||||
|
|
||||||
/* ============================
|
/* ============================
|
||||||
POPUP STYLES (MODERN CARD)
|
POPUP STYLES (MODERN CARD)
|
||||||
============================ */
|
============================ */
|
||||||
@@ -616,7 +635,7 @@ body {
|
|||||||
|
|
||||||
.info-label {
|
.info-label {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: var(--text-muted);
|
color: var(--text-secondary);
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
letter-spacing: 0.8px;
|
letter-spacing: 0.8px;
|
||||||
@@ -627,7 +646,7 @@ body {
|
|||||||
.info-value {
|
.info-value {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: var(--text-primary);
|
color: var(--text-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Popup form inputs */
|
/* Popup form inputs */
|
||||||
@@ -1523,10 +1542,11 @@ body {
|
|||||||
/* Halaman Login Khusus */
|
/* Halaman Login Khusus */
|
||||||
.login-body {
|
.login-body {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
overflow-y: auto;
|
||||||
justify-content: center;
|
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
background: #0f172a;
|
background: #0f172a;
|
||||||
|
padding: 40px 20px;
|
||||||
|
box-sizing: border-box;
|
||||||
background-image: radial-gradient(circle at top right, rgba(30, 64, 175, 0.15), transparent 40%),
|
background-image: radial-gradient(circle at top right, rgba(30, 64, 175, 0.15), transparent 40%),
|
||||||
radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.15), transparent 40%);
|
radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.15), transparent 40%);
|
||||||
}
|
}
|
||||||
@@ -1537,11 +1557,13 @@ body {
|
|||||||
-webkit-backdrop-filter: blur(16px);
|
-webkit-backdrop-filter: blur(16px);
|
||||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
border-radius: var(--radius-lg);
|
border-radius: var(--radius-lg);
|
||||||
padding: 32px;
|
padding: 24px;
|
||||||
|
margin: auto;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 380px;
|
max-width: 380px;
|
||||||
box-shadow: var(--shadow-lg);
|
box-shadow: var(--shadow-lg);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-logo {
|
.login-logo {
|
||||||
@@ -1744,9 +1766,128 @@ body {
|
|||||||
gap: 4px;
|
gap: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tool-btn {
|
.header-tools-divider,
|
||||||
width: 30px;
|
.user-profile-menu,
|
||||||
height: 30px;
|
.auth-btn,
|
||||||
|
#connection-status,
|
||||||
|
#about-btn {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hamburger-menu-btn {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
background: rgba(255, 255, 255, 0.07);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
|
border-radius: 8px;
|
||||||
|
width: 34px;
|
||||||
|
height: 34px;
|
||||||
|
color: #94a3b8;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.15s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hamburger-menu-btn:hover {
|
||||||
|
background: rgba(255, 255, 255, 0.12);
|
||||||
|
color: #e2e8f0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hamburger-menu-btn svg {
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-menu-dropdown {
|
||||||
|
position: absolute;
|
||||||
|
top: calc(100% + 8px);
|
||||||
|
right: 10px;
|
||||||
|
width: 200px;
|
||||||
|
background: rgba(15, 23, 42, 0.96);
|
||||||
|
backdrop-filter: blur(16px);
|
||||||
|
-webkit-backdrop-filter: blur(16px);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||||
|
border-radius: var(--radius-md);
|
||||||
|
box-shadow: var(--shadow-lg);
|
||||||
|
padding: 8px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 4px;
|
||||||
|
z-index: 1250;
|
||||||
|
opacity: 0;
|
||||||
|
visibility: hidden;
|
||||||
|
transform: translateY(-8px) scale(0.95);
|
||||||
|
transform-origin: top right;
|
||||||
|
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-menu-dropdown.active {
|
||||||
|
opacity: 1;
|
||||||
|
visibility: visible;
|
||||||
|
transform: translateY(0) scale(1);
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-menu-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 10px 12px;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #cbd5e1;
|
||||||
|
text-decoration: none;
|
||||||
|
border-radius: 6px;
|
||||||
|
transition: all 0.15s ease;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-menu-item:hover {
|
||||||
|
background: rgba(255, 255, 255, 0.05);
|
||||||
|
color: #f1f5f9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-menu-item svg {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-menu-divider {
|
||||||
|
height: 1px;
|
||||||
|
background: rgba(255, 255, 255, 0.06);
|
||||||
|
margin: 4px 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-menu-user {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px;
|
||||||
|
padding: 8px 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-avatar {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 1.5px solid var(--primary);
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-username {
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #f8fafc;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
max-width: 130px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-role {
|
||||||
|
font-size: 10.5px;
|
||||||
|
color: #64748b;
|
||||||
|
margin-top: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Sidebar Full-width (100%) */
|
/* Sidebar Full-width (100%) */
|
||||||
@@ -1760,10 +1901,21 @@ body {
|
|||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Dashboard Sidebar Full-width (100%) */
|
||||||
|
.dashboard-sidebar {
|
||||||
|
width: 100%;
|
||||||
|
right: -100%;
|
||||||
|
border-left: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-sidebar.open {
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* Pindahkan Tombol Toggle ke Bawah Tengah pada Mobile */
|
/* Pindahkan Tombol Toggle ke Bawah Tengah pada Mobile */
|
||||||
.sidebar-toggle {
|
.sidebar-toggle {
|
||||||
top: auto;
|
top: auto;
|
||||||
bottom: 24px;
|
bottom: 80px;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
|
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
|
||||||
@@ -1779,8 +1931,12 @@ body {
|
|||||||
top: 65px !important;
|
top: 65px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.leaflet-bottom {
|
||||||
|
bottom: 68px !important;
|
||||||
|
}
|
||||||
|
|
||||||
.pick-mode-overlay {
|
.pick-mode-overlay {
|
||||||
bottom: 80px;
|
bottom: 136px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Naikkan sedikit agar tidak tertutup tombol toggle */
|
/* Naikkan sedikit agar tidak tertutup tombol toggle */
|
||||||
@@ -2018,4 +2174,578 @@ body {
|
|||||||
.logout-link:hover {
|
.logout-link:hover {
|
||||||
background: rgba(239, 68, 68, 0.1);
|
background: rgba(239, 68, 68, 0.1);
|
||||||
color: #f87171;
|
color: #f87171;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==========================================
|
||||||
|
POPUP CLOSE BUTTON OVERRIDES
|
||||||
|
========================================== */
|
||||||
|
.leaflet-popup-close-button {
|
||||||
|
position: absolute !important;
|
||||||
|
top: 12px !important;
|
||||||
|
right: 12px !important;
|
||||||
|
width: 20px !important;
|
||||||
|
height: 20px !important;
|
||||||
|
line-height: 20px !important;
|
||||||
|
text-align: center !important;
|
||||||
|
color: rgba(255, 255, 255, 0.75) !important;
|
||||||
|
background: rgba(255, 255, 255, 0.15) !important;
|
||||||
|
border-radius: 50% !important;
|
||||||
|
font-size: 12px !important;
|
||||||
|
font-weight: normal !important;
|
||||||
|
z-index: 1000 !important;
|
||||||
|
transition: all 0.2s ease !important;
|
||||||
|
display: flex !important;
|
||||||
|
align-items: center !important;
|
||||||
|
justify-content: center !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
text-decoration: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-popup-close-button:hover {
|
||||||
|
color: #ffffff !important;
|
||||||
|
background: rgba(255, 255, 255, 0.3) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==========================================
|
||||||
|
DASHBOARD STATISTIK (RIGHT SIDEBAR)
|
||||||
|
========================================== */
|
||||||
|
.dashboard-sidebar {
|
||||||
|
position: fixed;
|
||||||
|
top: 56px;
|
||||||
|
right: -340px;
|
||||||
|
width: 330px;
|
||||||
|
height: calc(100vh - 56px);
|
||||||
|
background: rgba(13, 20, 36, 0.97);
|
||||||
|
backdrop-filter: blur(16px);
|
||||||
|
-webkit-backdrop-filter: blur(16px);
|
||||||
|
border-left: 1px solid rgba(255, 255, 255, 0.08);
|
||||||
|
z-index: 1040;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
box-shadow: -4px 0 32px rgba(0, 0, 0, 0.4);
|
||||||
|
color: #e2e8f0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-sidebar.open {
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-header {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 16px;
|
||||||
|
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-title {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-title-icon {
|
||||||
|
width: 34px;
|
||||||
|
height: 34px;
|
||||||
|
background: linear-gradient(135deg, #10b981, #059669);
|
||||||
|
border-radius: 9px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-title-icon svg {
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-title-text {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #f1f5f9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-title-sub {
|
||||||
|
font-size: 11px;
|
||||||
|
color: #64748b;
|
||||||
|
margin-top: 1px;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
max-width: 180px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-close {
|
||||||
|
width: 28px;
|
||||||
|
height: 28px;
|
||||||
|
background: rgba(255, 255, 255, 0.06);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
|
border-radius: 7px;
|
||||||
|
color: #94a3b8;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.15s;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-close:hover {
|
||||||
|
background: rgba(255, 255, 255, 0.12);
|
||||||
|
color: #f1f5f9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-close svg {
|
||||||
|
width: 13px;
|
||||||
|
height: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-body {
|
||||||
|
flex: 1;
|
||||||
|
overflow-y: auto;
|
||||||
|
padding: 16px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Stats Grid cards */
|
||||||
|
.stats-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-card {
|
||||||
|
background: rgba(255, 255, 255, 0.03);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 10px 6px;
|
||||||
|
text-align: center;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-card:hover {
|
||||||
|
background: rgba(255, 255, 255, 0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-num {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #e2e8f0;
|
||||||
|
font-family: var(--font-mono);
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-label {
|
||||||
|
font-size: 9px;
|
||||||
|
color: #64748b;
|
||||||
|
margin-top: 4px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-card.stat-success {
|
||||||
|
border-color: rgba(16, 185, 129, 0.2);
|
||||||
|
background: rgba(16, 185, 129, 0.03);
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-card.stat-success .stat-num {
|
||||||
|
color: #10b981;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-card.stat-danger {
|
||||||
|
border-color: rgba(239, 68, 68, 0.2);
|
||||||
|
background: rgba(239, 68, 68, 0.03);
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-card.stat-danger .stat-num {
|
||||||
|
color: #ef4444;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Chart Section */
|
||||||
|
.chart-section {
|
||||||
|
background: rgba(255, 255, 255, 0.02);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||||
|
border-radius: 10px;
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.chart-title {
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #cbd5e1;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Families List Section */
|
||||||
|
.families-section {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-height: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.families-title {
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #cbd5e1;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.families-list {
|
||||||
|
flex: 1;
|
||||||
|
overflow-y: auto;
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||||
|
border-radius: 8px;
|
||||||
|
background: rgba(0, 0, 0, 0.15);
|
||||||
|
max-height: 250px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.family-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 10px 12px;
|
||||||
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.15s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.family-item:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.family-item:hover {
|
||||||
|
background: rgba(255, 255, 255, 0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
.family-details {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 2px;
|
||||||
|
min-width: 0;
|
||||||
|
flex: 1;
|
||||||
|
padding-right: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.family-name {
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #f1f5f9;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.family-address {
|
||||||
|
font-size: 10px;
|
||||||
|
color: #64748b;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.family-badge {
|
||||||
|
font-size: 8.5px;
|
||||||
|
font-weight: 700;
|
||||||
|
padding: 2px 6px;
|
||||||
|
border-radius: 12px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
white-space: nowrap;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.family-badge.badge-success {
|
||||||
|
background: rgba(16, 185, 129, 0.15);
|
||||||
|
color: #34d399;
|
||||||
|
}
|
||||||
|
|
||||||
|
.family-badge.badge-danger {
|
||||||
|
background: rgba(239, 68, 68, 0.15);
|
||||||
|
color: #f87171;
|
||||||
|
}
|
||||||
|
|
||||||
|
.families-empty {
|
||||||
|
padding: 20px;
|
||||||
|
text-align: center;
|
||||||
|
color: #64748b;
|
||||||
|
font-size: 11.5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==========================================
|
||||||
|
MARKER CLUSTER CUSTOM STYLING
|
||||||
|
========================================== */
|
||||||
|
.marker-cluster-small {
|
||||||
|
background-color: rgba(59, 130, 246, 0.4) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.marker-cluster-small div {
|
||||||
|
background-color: rgba(37, 99, 235, 0.95) !important;
|
||||||
|
color: white !important;
|
||||||
|
font-weight: 700 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.marker-cluster-medium {
|
||||||
|
background-color: rgba(37, 99, 235, 0.4) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.marker-cluster-medium div {
|
||||||
|
background-color: rgba(29, 78, 216, 0.95) !important;
|
||||||
|
color: white !important;
|
||||||
|
font-weight: 700 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.marker-cluster-large {
|
||||||
|
background-color: rgba(30, 58, 138, 0.4) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.marker-cluster-large div {
|
||||||
|
background-color: rgba(30, 64, 175, 0.95) !important;
|
||||||
|
color: white !important;
|
||||||
|
font-weight: 700 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.marker-cluster div {
|
||||||
|
font-family: var(--font-mono) !important;
|
||||||
|
font-size: 12px !important;
|
||||||
|
box-shadow: 0 0 10px rgba(37, 99, 235, 0.5) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Menghapus padding agar header hijau bisa mentok ke atas dan samping */
|
||||||
|
.leaflet-popup-content-wrapper {
|
||||||
|
padding: 0 !important;
|
||||||
|
border-radius: 12px !important;
|
||||||
|
overflow: hidden !important;
|
||||||
|
/* Agar sudut tetap melengkung walau header mentok */
|
||||||
|
background-color: #1e2130 !important;
|
||||||
|
/* Warna gelap utama body popup */
|
||||||
|
border: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Menghapus margin bawaan konten */
|
||||||
|
.leaflet-popup-content {
|
||||||
|
margin: 0 !important;
|
||||||
|
width: 280px !important;
|
||||||
|
/* Sesuaikan lebar popup */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Mengubah warna panah di bawah popup agar menyatu dengan body */
|
||||||
|
.leaflet-popup-tip {
|
||||||
|
background-color: #1e2130 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Menyesuaikan tombol silang (close/x) bawaan Leaflet */
|
||||||
|
.leaflet-popup-close-button {
|
||||||
|
color: #ffffff !important;
|
||||||
|
padding: 4px 8px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================================================
|
||||||
|
CUSTOM LAYERS CONTROL - KHUSUS KANAN BAWAH SAJA
|
||||||
|
============================================================ */
|
||||||
|
|
||||||
|
/* Menargetkan tombol Basemap HANYA yang berada di pojok kanan bawah */
|
||||||
|
.leaflet-bottom.leaflet-right .leaflet-control-layers-toggle {
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l6-3 6 3 6-3v15l-6 3-6-3-6 3V6z'%3E%3C/path%3E%3Cline x1='9' y1='3' x2='9' y2='21'%3E%3C/line%3E%3Cline x1='15' y1='6' x2='15' y2='24'%3E%3C/line%3E%3C/svg%3E") !important;
|
||||||
|
background-color: #1e2130 !important;
|
||||||
|
|
||||||
|
background-size: 18px 18px !important;
|
||||||
|
|
||||||
|
width: 30px !important;
|
||||||
|
|
||||||
|
height: 30px !important;
|
||||||
|
|
||||||
|
|
||||||
|
background-position: center !important;
|
||||||
|
background-repeat: no-repeat !important;
|
||||||
|
border-radius: 8px !important;
|
||||||
|
/* Jika tombol zoom Anda kotak tajam, ubah ini jadi 4px atau 2px */
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
||||||
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3) !important;
|
||||||
|
transition: background-color 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Efek hover khusus tombol di kanan bawah */
|
||||||
|
.leaflet-bottom.leaflet-right .leaflet-control-layers-toggle:hover {
|
||||||
|
background-color: #2a2d3d !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Styling panel pop-up pilihan peta (hanya di kanan bawah) */
|
||||||
|
.leaflet-bottom.leaflet-right .leaflet-control-layers {
|
||||||
|
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5) !important;
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.05) !important;
|
||||||
|
border-radius: 12px !important;
|
||||||
|
background-color: #1e2130 !important;
|
||||||
|
color: #f8fafc !important;
|
||||||
|
padding: 6px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-bottom.leaflet-right .leaflet-control-layers-list {
|
||||||
|
padding: 4px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================
|
||||||
|
MODAL TENTANG APLIKASI
|
||||||
|
============================ */
|
||||||
|
.modal-overlay {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: rgba(15, 23, 42, 0.6);
|
||||||
|
backdrop-filter: blur(8px);
|
||||||
|
-webkit-backdrop-filter: blur(8px);
|
||||||
|
z-index: 2000;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
opacity: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
transition: opacity 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-overlay.active {
|
||||||
|
opacity: 1;
|
||||||
|
pointer-events: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-content {
|
||||||
|
background: #1e293b;
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||||
|
border-radius: var(--radius-lg);
|
||||||
|
width: 90%;
|
||||||
|
max-width: 460px;
|
||||||
|
box-shadow: var(--shadow-lg), 0 20px 25px -5px rgba(0, 0, 0, 0.5);
|
||||||
|
overflow: hidden;
|
||||||
|
transform: scale(0.95);
|
||||||
|
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-overlay.active .modal-content {
|
||||||
|
transform: scale(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
padding: 16px 20px;
|
||||||
|
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-header h3 {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #f1f5f9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-close-btn {
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
color: #94a3b8;
|
||||||
|
font-size: 24px;
|
||||||
|
cursor: pointer;
|
||||||
|
line-height: 1;
|
||||||
|
padding: 0;
|
||||||
|
transition: color 0.15s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-close-btn:hover {
|
||||||
|
color: #f1f5f9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-body {
|
||||||
|
padding: 24px 20px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-logo {
|
||||||
|
width: 64px;
|
||||||
|
height: 64px;
|
||||||
|
background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(96, 165, 250, 0.15));
|
||||||
|
border: 1px solid rgba(96, 165, 250, 0.25);
|
||||||
|
border-radius: 16px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
margin: 0 auto 16px;
|
||||||
|
color: #60a5fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-logo svg {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-title {
|
||||||
|
margin: 0 0 8px 0;
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #ffffff;
|
||||||
|
letter-spacing: -0.3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-desc {
|
||||||
|
font-size: 13px;
|
||||||
|
color: #94a3b8;
|
||||||
|
line-height: 1.6;
|
||||||
|
margin: 0 0 20px 0;
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-divider {
|
||||||
|
height: 1px;
|
||||||
|
background: rgba(255, 255, 255, 0.06);
|
||||||
|
margin: 20px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.credits-section {
|
||||||
|
background: rgba(15, 23, 42, 0.4);
|
||||||
|
border-radius: var(--radius-md);
|
||||||
|
padding: 14px 16px;
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.04);
|
||||||
|
}
|
||||||
|
|
||||||
|
.credit-row {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
font-size: 12.5px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.credit-row:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.credit-label {
|
||||||
|
color: #64748b;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.credit-value {
|
||||||
|
color: #e2e8f0;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-footer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
padding: 14px 20px;
|
||||||
|
background: rgba(15, 23, 42, 0.3);
|
||||||
|
border-top: 1px solid rgba(255, 255, 255, 0.06);
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-footer .btn {
|
||||||
|
min-width: 90px;
|
||||||
}
|
}
|
||||||
File diff suppressed because one or more lines are too long
@@ -15,27 +15,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
|||||||
$tabel = $_POST['tabel'];
|
$tabel = $_POST['tabel'];
|
||||||
$stmt = null;
|
$stmt = null;
|
||||||
|
|
||||||
if ($tabel == 'spbu_locations') {
|
if ($tabel == 'rumah_ibadah') {
|
||||||
$nama = $_POST['nama_spbu'];
|
|
||||||
$hp = $_POST['no_hp'];
|
|
||||||
$kategori = $_POST['kategori'];
|
|
||||||
$lat = $_POST['latitude'];
|
|
||||||
$lng = $_POST['longitude'];
|
|
||||||
|
|
||||||
$stmt = $conn->prepare("UPDATE spbu_locations SET nama_spbu=?, no_hp=?, kategori=?, latitude=?, longitude=? WHERE id=?");
|
|
||||||
$stmt->bind_param("sssddi", $nama, $hp, $kategori, $lat, $lng, $id);
|
|
||||||
|
|
||||||
} else if ($tabel == 'jalan') {
|
|
||||||
$nama = $_POST['nama_jalan']; $status = $_POST['status'];
|
|
||||||
$stmt = $conn->prepare("UPDATE jalan SET nama_jalan=?, status=? WHERE id=?");
|
|
||||||
$stmt->bind_param("ssi", $nama, $status, $id);
|
|
||||||
|
|
||||||
} else if ($tabel == 'parsil') {
|
|
||||||
$nama = $_POST['nama_pemilik']; $status = $_POST['status'];
|
|
||||||
$stmt = $conn->prepare("UPDATE parsil SET nama_pemilik=?, status=? WHERE id=?");
|
|
||||||
$stmt->bind_param("ssi", $nama, $status, $id);
|
|
||||||
|
|
||||||
} else if ($tabel == 'rumah_ibadah') {
|
|
||||||
$nama = $_POST['nama'];
|
$nama = $_POST['nama'];
|
||||||
$lat = $_POST['latitude'];
|
$lat = $_POST['latitude'];
|
||||||
$lng = $_POST['longitude'];
|
$lng = $_POST['longitude'];
|
||||||
@@ -47,8 +27,9 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
|||||||
$alamat = $_POST['alamat'];
|
$alamat = $_POST['alamat'];
|
||||||
$lat = $_POST['latitude'];
|
$lat = $_POST['latitude'];
|
||||||
$lng = $_POST['longitude'];
|
$lng = $_POST['longitude'];
|
||||||
$stmt = $conn->prepare("UPDATE penduduk_miskin SET nama_kk=?, alamat=?, lat=?, lng=? WHERE id=?");
|
$bantuan = isset($_POST['bantuan']) ? $_POST['bantuan'] : 'Belum Menerima';
|
||||||
$stmt->bind_param("ssddi", $nama, $alamat, $lat, $lng, $id);
|
$stmt = $conn->prepare("UPDATE penduduk_miskin SET nama_kk=?, alamat=?, lat=?, lng=?, bantuan=? WHERE id=?");
|
||||||
|
$stmt->bind_param("ssddsi", $nama, $alamat, $lat, $lng, $bantuan, $id);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($stmt) {
|
if ($stmt) {
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
{}
|
||||||
@@ -4,50 +4,398 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Landing Page - Tugas WebGIS</title>
|
<title>Sistem Informasi Geografis Terpadu - Portal WebGIS</title>
|
||||||
|
|
||||||
|
<!-- Premium Google Fonts -->
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
body {
|
:root {
|
||||||
font-family: Arial, sans-serif;
|
--bg-primary: #090d16;
|
||||||
margin: 40px;
|
--bg-card: rgba(17, 24, 39, 0.7);
|
||||||
background-color: #f4f4f9;
|
--border-color: rgba(255, 255, 255, 0.08);
|
||||||
|
--text-main: #f3f4f6;
|
||||||
|
--text-muted: #9ca3af;
|
||||||
|
|
||||||
|
/* Card Theme Accent Colors */
|
||||||
|
--color-road: #06b6d4; /* Cyan */
|
||||||
|
--color-spbu: #f59e0b; /* Amber */
|
||||||
|
--color-poverty: #f43f5e; /* Rose */
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
* {
|
||||||
max-width: 600px;
|
box-sizing: border-box;
|
||||||
margin: 0 auto;
|
margin: 0;
|
||||||
background: white;
|
|
||||||
padding: 20px;
|
|
||||||
border-radius: 8px;
|
|
||||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
h2 {
|
|
||||||
text-align: center;
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
.link-list {
|
|
||||||
list-style-type: none;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-list li {
|
body {
|
||||||
margin: 15px 0;
|
font-family: 'Plus Jakarta Sans', sans-serif;
|
||||||
|
background-color: var(--bg-primary);
|
||||||
|
/* Rich radial gradient for modern background depth */
|
||||||
|
background-image:
|
||||||
|
radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.08), transparent 40%),
|
||||||
|
radial-gradient(circle at 90% 80%, rgba(244, 63, 94, 0.08), transparent 45%),
|
||||||
|
radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.05), transparent 50%),
|
||||||
|
linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
|
||||||
|
linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
|
||||||
|
background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
|
||||||
|
color: var(--text-main);
|
||||||
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 40px 20px;
|
||||||
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-list a {
|
.container {
|
||||||
display: block;
|
max-width: 1200px;
|
||||||
padding: 10px 15px;
|
width: 100%;
|
||||||
background-color: #007bff;
|
margin: 0 auto;
|
||||||
color: white;
|
flex-grow: 1;
|
||||||
text-decoration: none;
|
display: flex;
|
||||||
border-radius: 5px;
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==============================
|
||||||
|
HEADER SECTION
|
||||||
|
============================== */
|
||||||
|
header {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: bold;
|
margin-bottom: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-list a:hover {
|
.brand-icon-wrapper {
|
||||||
background-color: #0056b3;
|
width: 70px;
|
||||||
|
height: 70px;
|
||||||
|
background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(244, 63, 94, 0.2));
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.15);
|
||||||
|
border-radius: 20px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
margin: 0 auto 20px;
|
||||||
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-icon-wrapper::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
inset: -4px;
|
||||||
|
border-radius: 24px;
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
||||||
|
animation: pulse-ring 3s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes pulse-ring {
|
||||||
|
0% { transform: scale(0.95); opacity: 0.8; }
|
||||||
|
50% { transform: scale(1.05); opacity: 0.4; }
|
||||||
|
100% { transform: scale(0.95); opacity: 0.8; }
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 2.5rem;
|
||||||
|
font-weight: 800;
|
||||||
|
letter-spacing: -0.5px;
|
||||||
|
background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.subtitle {
|
||||||
|
font-size: 1.05rem;
|
||||||
|
color: var(--text-muted);
|
||||||
|
max-width: 600px;
|
||||||
|
margin: 0 auto 24px;
|
||||||
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.developer-badge {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px;
|
||||||
|
background: rgba(15, 23, 42, 0.6);
|
||||||
|
backdrop-filter: blur(8px);
|
||||||
|
-webkit-backdrop-filter: blur(8px);
|
||||||
|
border: 1px solid var(--border-color);
|
||||||
|
padding: 8px 18px;
|
||||||
|
border-radius: 30px;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #e2e8f0;
|
||||||
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
.developer-badge .dot {
|
||||||
|
width: 8px;
|
||||||
|
height: 8px;
|
||||||
|
background-color: #10b981;
|
||||||
|
border-radius: 50%;
|
||||||
|
box-shadow: 0 0 10px #10b981;
|
||||||
|
animation: blink 2s infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes blink {
|
||||||
|
0%, 100% { opacity: 0.4; }
|
||||||
|
50% { opacity: 1; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.developer-badge span.separator {
|
||||||
|
opacity: 0.3;
|
||||||
|
margin: 0 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.developer-badge span.nim {
|
||||||
|
color: #a1a1aa;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==============================
|
||||||
|
CARD GRID SECTION
|
||||||
|
============================== */
|
||||||
|
.card-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
|
||||||
|
gap: 24px;
|
||||||
|
padding: 10px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
background: var(--bg-card);
|
||||||
|
backdrop-filter: blur(16px);
|
||||||
|
-webkit-backdrop-filter: blur(16px);
|
||||||
|
border: 1px solid var(--border-color);
|
||||||
|
border-radius: 24px;
|
||||||
|
padding: 32px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
||||||
|
box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Top glow line per card based on its custom color */
|
||||||
|
.card::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
height: 3px;
|
||||||
|
background: linear-gradient(90deg, transparent, var(--theme-color), transparent);
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card:hover {
|
||||||
|
transform: translateY(-8px);
|
||||||
|
border-color: rgba(255, 255, 255, 0.18);
|
||||||
|
box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5),
|
||||||
|
0 0 30px -5px var(--theme-glow);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Specific Accent Colors variables setup for each card */
|
||||||
|
.card.card-road {
|
||||||
|
--theme-color: var(--color-road);
|
||||||
|
--theme-glow: rgba(6, 182, 212, 0.15);
|
||||||
|
}
|
||||||
|
.card.card-spbu {
|
||||||
|
--theme-color: var(--color-spbu);
|
||||||
|
--theme-glow: rgba(245, 158, 11, 0.15);
|
||||||
|
}
|
||||||
|
.card.card-poverty {
|
||||||
|
--theme-color: var(--color-poverty);
|
||||||
|
--theme-glow: rgba(244, 63, 94, 0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Card Content Inner elements */
|
||||||
|
.card-header {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-bottom: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-icon {
|
||||||
|
width: 52px;
|
||||||
|
height: 52px;
|
||||||
|
background: rgba(255, 255, 255, 0.03);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||||
|
border-radius: 14px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
color: var(--theme-color);
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card:hover .card-icon {
|
||||||
|
background: var(--theme-color);
|
||||||
|
color: #000000;
|
||||||
|
transform: rotate(5deg) scale(1.05);
|
||||||
|
box-shadow: 0 0 15px var(--theme-glow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.module-badge {
|
||||||
|
font-size: 0.75rem;
|
||||||
|
font-weight: 700;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
padding: 4px 12px;
|
||||||
|
border-radius: 20px;
|
||||||
|
background: rgba(255, 255, 255, 0.05);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
||||||
|
color: var(--theme-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-title {
|
||||||
|
font-size: 1.4rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #ffffff;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
line-height: 1.3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-description {
|
||||||
|
font-size: 0.92rem;
|
||||||
|
color: var(--text-muted);
|
||||||
|
line-height: 1.6;
|
||||||
|
margin-bottom: 24px;
|
||||||
|
min-height: 72px; /* aligns grid content heights */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Features List styling */
|
||||||
|
.features-list {
|
||||||
|
list-style: none;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feature-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 12px;
|
||||||
|
font-size: 0.88rem;
|
||||||
|
color: #e2e8f0;
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feature-check {
|
||||||
|
flex-shrink: 0;
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
margin-top: 2px;
|
||||||
|
color: var(--theme-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Tech Tags Group styling */
|
||||||
|
.tech-tags {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 8px;
|
||||||
|
margin-bottom: 28px;
|
||||||
|
border-top: 1px dashed rgba(255, 255, 255, 0.06);
|
||||||
|
padding-top: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tech-tag {
|
||||||
|
font-size: 0.75rem;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #a1a1aa;
|
||||||
|
background: rgba(255, 255, 255, 0.02);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.04);
|
||||||
|
padding: 4px 10px;
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Launch Button styling */
|
||||||
|
.btn-launch {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 8px;
|
||||||
|
width: 100%;
|
||||||
|
background: rgba(255, 255, 255, 0.04);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||||
|
color: #ffffff;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
padding: 14px 20px;
|
||||||
|
border-radius: 14px;
|
||||||
|
text-decoration: none;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-launch svg {
|
||||||
|
transition: transform 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card:hover .btn-launch {
|
||||||
|
background: var(--theme-color);
|
||||||
|
border-color: var(--theme-color);
|
||||||
|
color: #090d16;
|
||||||
|
font-weight: 700;
|
||||||
|
box-shadow: 0 10px 20px -5px var(--theme-glow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.card:hover .btn-launch svg {
|
||||||
|
transform: translateX(4px);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==============================
|
||||||
|
FOOTER SECTION
|
||||||
|
============================== */
|
||||||
|
footer {
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 60px;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
color: #52525b;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==============================
|
||||||
|
RESPONSIVE STYLE OVERRIDES
|
||||||
|
============================== */
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
body {
|
||||||
|
padding: 24px 16px;
|
||||||
|
}
|
||||||
|
header {
|
||||||
|
margin-bottom: 30px;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
font-size: 1.85rem;
|
||||||
|
}
|
||||||
|
.subtitle {
|
||||||
|
font-size: 0.95rem;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
.card-grid {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
gap: 16px;
|
||||||
|
}
|
||||||
|
.card {
|
||||||
|
padding: 24px;
|
||||||
|
}
|
||||||
|
.card-description {
|
||||||
|
min-height: auto;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
.features-list {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
.tech-tags {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
@@ -55,14 +403,202 @@
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h2>Laman Tugas WebGIS</h2>
|
|
||||||
<p style="text-align: center;">Nama: Aleksander William | NIM: D1041231003</p>
|
<!-- HEADER -->
|
||||||
|
<header>
|
||||||
|
<div class="brand-icon-wrapper">
|
||||||
|
<svg width="32" height="32" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7" />
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
<h1>Portal Tugas WebGIS</h1>
|
||||||
|
<p class="subtitle">Kumpulan modul dan sistem pemetaan geografis digital berbasis web untuk visualisasi data spasial wilayah Kota Pontianak.</p>
|
||||||
|
|
||||||
|
<div class="developer-badge">
|
||||||
|
<div class="dot"></div>
|
||||||
|
<span>Aleksander William</span>
|
||||||
|
<span class="separator">|</span>
|
||||||
|
<span class="nim">NIM: D1041231003</span>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- CARD GRID -->
|
||||||
|
<div class="card-grid">
|
||||||
|
|
||||||
|
<!-- CARD 1: WEBGIS JALAN DAN PARSIL -->
|
||||||
|
<div class="card card-road">
|
||||||
|
<div>
|
||||||
|
<div class="card-header">
|
||||||
|
<div class="card-icon">
|
||||||
|
<!-- Custom Path & Area Vector Icon -->
|
||||||
|
<svg width="24" height="24" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7" />
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
<span class="module-badge">Pertemuan 1</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2 class="card-title">WebGIS Jalan dan Parsil</h2>
|
||||||
|
<p class="card-description">Sistem pemetaan interaktif untuk melakukan digitasi, modifikasi, serta kalkulasi otomatis terhadap data jalan dan bidang tanah.</p>
|
||||||
|
|
||||||
|
<ul class="features-list">
|
||||||
|
<li class="feature-item">
|
||||||
|
<svg class="feature-check" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" />
|
||||||
|
</svg>
|
||||||
|
<span>Digitasi & edit koordinat geometri (LineString & Polygon) di peta secara langsung.</span>
|
||||||
|
</li>
|
||||||
|
<li class="feature-item">
|
||||||
|
<svg class="feature-check" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" />
|
||||||
|
</svg>
|
||||||
|
<span>Kalkulasi otomatis panjang jalan (m) dan luas parsil tanah (m²).</span>
|
||||||
|
</li>
|
||||||
|
<li class="feature-item">
|
||||||
|
<svg class="feature-check" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" />
|
||||||
|
</svg>
|
||||||
|
<span>Manajemen data spasial yang terintegrasi penuh dengan sistem database MySQL.</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<div class="tech-tags">
|
||||||
|
<span class="tech-tag">Leaflet.js</span>
|
||||||
|
<span class="tech-tag">Leaflet Draw</span>
|
||||||
|
<span class="tech-tag">PHP</span>
|
||||||
|
<span class="tech-tag">MySQL</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<a href="./pertemuan1/index.php" class="btn-launch">
|
||||||
|
<span>Buka Aplikasi</span>
|
||||||
|
<svg width="18" height="18" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M14 5l7 7m0 0l-7 7m7-7H3" />
|
||||||
|
</svg>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- CARD 2: WEBGIS SPBU -->
|
||||||
|
<div class="card card-spbu">
|
||||||
|
<div>
|
||||||
|
<div class="card-header">
|
||||||
|
<div class="card-icon">
|
||||||
|
<!-- Fuel Pump Icon -->
|
||||||
|
<svg width="24" height="24" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10" />
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
<span class="module-badge">Pertemuan 2</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2 class="card-title">WebGIS SPBU</h2>
|
||||||
|
<p class="card-description">Portal informasi sebaran Stasiun Pengisian Bahan Bakar Umum (SPBU) di wilayah Pontianak beserta detail jam operasional.</p>
|
||||||
|
|
||||||
|
<ul class="features-list">
|
||||||
|
<li class="feature-item">
|
||||||
|
<svg class="feature-check" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" />
|
||||||
|
</svg>
|
||||||
|
<span>Layer Groups pengelompokan SPBU (Buka 24 Jam vs Tidak 24 Jam).</span>
|
||||||
|
</li>
|
||||||
|
<li class="feature-item">
|
||||||
|
<svg class="feature-check" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" />
|
||||||
|
</svg>
|
||||||
|
<span>Kontrol layer base map (Pilihan OpenStreetMap & Citra Satelit).</span>
|
||||||
|
</li>
|
||||||
|
<li class="feature-item">
|
||||||
|
<svg class="feature-check" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" />
|
||||||
|
</svg>
|
||||||
|
<span>CRUD data lokasi SPBU lengkap melalui Web API berbasis PHP.</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<div class="tech-tags">
|
||||||
|
<span class="tech-tag">Leaflet.js</span>
|
||||||
|
<span class="tech-tag">LayerControl</span>
|
||||||
|
<span class="tech-tag">PHP API</span>
|
||||||
|
<span class="tech-tag">MySQL</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<a href="./pertemuan2/index.php" class="btn-launch">
|
||||||
|
<span>Buka Aplikasi</span>
|
||||||
|
<svg width="18" height="18" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M14 5l7 7m0 0l-7 7m7-7H3" />
|
||||||
|
</svg>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- CARD 3: WEBGIS POVERTY MAP -->
|
||||||
|
<div class="card card-poverty">
|
||||||
|
<div>
|
||||||
|
<div class="card-header">
|
||||||
|
<div class="card-icon">
|
||||||
|
<!-- Chart & Pin/Analytics Icon -->
|
||||||
|
<svg width="24" height="24" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M11 3.055A9.003 9.003 0 1020.945 13H11V3.055z" />
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z" />
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
<span class="module-badge">Final Project</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2 class="card-title">WebGIS Poverty Map Kota Pontianak</h2>
|
||||||
|
<p class="card-description">Sistem terintegrasi analisis spasial sebaran penduduk miskin berbasis radius jarak (buffer) terhadap lokasi rumah ibadah.</p>
|
||||||
|
|
||||||
|
<ul class="features-list">
|
||||||
|
<li class="feature-item">
|
||||||
|
<svg class="feature-check" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" />
|
||||||
|
</svg>
|
||||||
|
<span>Analisis spasial radius radius (buffer) penduduk miskin terdekat dari rumah ibadah.</span>
|
||||||
|
</li>
|
||||||
|
<li class="feature-item">
|
||||||
|
<svg class="feature-check" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" />
|
||||||
|
</svg>
|
||||||
|
<span>Dashboard statistik terpadu dengan visualisasi chart data interaktif (Chart.js).</span>
|
||||||
|
</li>
|
||||||
|
<li class="feature-item">
|
||||||
|
<svg class="feature-check" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" />
|
||||||
|
</svg>
|
||||||
|
<span>Pencarian cepat, filter klaster data, & autentikasi keamanan admin/operator.</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<div class="tech-tags">
|
||||||
|
<span class="tech-tag">Leaflet.js</span>
|
||||||
|
<span class="tech-tag">Chart.js</span>
|
||||||
|
<span class="tech-tag">MarkerCluster</span>
|
||||||
|
<span class="tech-tag">PHP</span>
|
||||||
|
<span class="tech-tag">MySQL</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<a href="./WebGISPovertyMap/index.php" class="btn-launch">
|
||||||
|
<span>Buka Aplikasi</span>
|
||||||
|
<svg width="18" height="18" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M14 5l7 7m0 0l-7 7m7-7H3" />
|
||||||
|
</svg>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- FOOTER -->
|
||||||
|
<footer>
|
||||||
|
<p>© 2026 Aleksander William • Portal Tugas WebGIS Terpadu</p>
|
||||||
|
</footer>
|
||||||
|
|
||||||
<ul class="link-list">
|
|
||||||
<li><a href="./pertemuan1/index.php">Tugas Pertemuan 1</a></li>
|
|
||||||
<li><a href="./pertemuan2/index.php">Tugas Pertemuan 2</a></li>
|
|
||||||
<li><a href="./WebGISPovertyMap/index.php">Tugas Poverty Map</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
+16
-5
@@ -1,8 +1,20 @@
|
|||||||
<?php
|
<?php
|
||||||
$host = "localhost";
|
$host_sekarang = $_SERVER['HTTP_HOST'];
|
||||||
$user = "root";
|
|
||||||
$pass = "";
|
// Cek apakah URL yang sedang diakses mengandung kata 'localhost' atau '127.0.0.1'
|
||||||
$db = "webgis_db_pertemuan1";
|
if (strpos($host_sekarang, 'localhost') !== false || strpos($host_sekarang, '127.0.0.1') !== false) {
|
||||||
|
$host = "localhost";
|
||||||
|
$user = "root";
|
||||||
|
$pass = "";
|
||||||
|
$db = "webgis_db_pertemuan1";
|
||||||
|
} else {
|
||||||
|
// Gunakan Kredensial Normal User dari Coolify
|
||||||
|
$host = "b84c4osgw4kcw0wc8o8cg8cg";
|
||||||
|
$user = "mysql"; // Menggunakan normal user
|
||||||
|
$pass = "YN54ned6j7P6K7c76sLqh9ERUbm8xvhPFj31Mnt0yKPXxqrIhWICWlbJbJjUCfn7"; // Normal User Password
|
||||||
|
$db = "webgis_db_pertemuan1";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Connect first without DB to ensure we can create it if missing
|
// Connect first without DB to ensure we can create it if missing
|
||||||
$conn = new mysqli($host, $user, $pass);
|
$conn = new mysqli($host, $user, $pass);
|
||||||
@@ -43,4 +55,3 @@ if (!$conn->query($sql_jalan)) {
|
|||||||
if (!$conn->query($sql_parsil)) {
|
if (!$conn->query($sql_parsil)) {
|
||||||
die("Gagal membuat tabel parsil: " . $conn->error);
|
die("Gagal membuat tabel parsil: " . $conn->error);
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
|||||||
+157
-1
@@ -860,8 +860,30 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.leaflet-popup-close-button {
|
.leaflet-popup-close-button {
|
||||||
|
position: absolute !important;
|
||||||
|
top: 12px !important;
|
||||||
|
right: 12px !important;
|
||||||
|
width: 20px !important;
|
||||||
|
height: 20px !important;
|
||||||
|
line-height: 20px !important;
|
||||||
|
text-align: center !important;
|
||||||
|
color: rgba(255, 255, 255, 0.75) !important;
|
||||||
|
background: rgba(255, 255, 255, 0.15) !important;
|
||||||
|
border-radius: 50% !important;
|
||||||
|
font-size: 12px !important;
|
||||||
|
font-weight: normal !important;
|
||||||
|
z-index: 1000 !important;
|
||||||
|
transition: all 0.2s ease !important;
|
||||||
|
display: flex !important;
|
||||||
|
align-items: center !important;
|
||||||
|
justify-content: center !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
text-decoration: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-popup-close-button:hover {
|
||||||
color: #ffffff !important;
|
color: #ffffff !important;
|
||||||
padding: 12px !important;
|
background: rgba(255, 255, 255, 0.3) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.popup-container {
|
.popup-container {
|
||||||
@@ -1238,3 +1260,137 @@ body {
|
|||||||
.leaflet-control-layers-selector:focus {
|
.leaflet-control-layers-selector:focus {
|
||||||
box-shadow: 0 0 0 2.5px rgba(99, 102, 241, 0.25) !important;
|
box-shadow: 0 0 0 2.5px rgba(99, 102, 241, 0.25) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ==========================================
|
||||||
|
RESPONSIVE DESIGN (BREAKPOINTS)
|
||||||
|
========================================== */
|
||||||
|
|
||||||
|
/* 1. Tablet (< 1024px dan >= 768px) */
|
||||||
|
@media (max-width: 1023px) and (min-width: 768px) {
|
||||||
|
.search-wrapper {
|
||||||
|
max-width: 320px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-subtitle {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-select-trigger {
|
||||||
|
min-width: auto;
|
||||||
|
padding-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-sidebar {
|
||||||
|
width: 310px;
|
||||||
|
left: -330px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-sidebar.open {
|
||||||
|
left: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 2. Mobile (< 768px) */
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
/* Header Kompak */
|
||||||
|
.webgis-header {
|
||||||
|
height: 56px;
|
||||||
|
padding: 0 10px;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-name {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-subtitle {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-divider {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-wrapper {
|
||||||
|
max-width: 100%;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Layout Kompak untuk Search Bar */
|
||||||
|
.custom-select-trigger {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-category-wrap {
|
||||||
|
padding: 0 6px;
|
||||||
|
border-right: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.category-arrow {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-tools {
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tool-badge {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Sidebar Full-width (100%) */
|
||||||
|
.input-sidebar {
|
||||||
|
width: 100%;
|
||||||
|
left: -100%;
|
||||||
|
top: 56px;
|
||||||
|
bottom: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-sidebar.open {
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Pindahkan Tombol Toggle ke Bawah Tengah pada Mobile */
|
||||||
|
.sidebar-toggle {
|
||||||
|
top: auto;
|
||||||
|
bottom: 80px;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Sembunyikan tombol toggle saat sidebar terbuka penuh agar tidak menumpuk */
|
||||||
|
.sidebar-toggle.open {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Penyesuaian UI Peta pada Mobile */
|
||||||
|
.leaflet-top {
|
||||||
|
margin-top: 0 !important;
|
||||||
|
top: 65px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-bottom {
|
||||||
|
bottom: 68px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pick-mode-overlay {
|
||||||
|
top: 66px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pick-mode-overlay.active {
|
||||||
|
top: 66px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Buat legenda lebih kecil di perangkat seluler */
|
||||||
|
.legend h4 {
|
||||||
|
font-size: 10px;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.legend-item {
|
||||||
|
font-size: 9px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ session_start();
|
|||||||
<!-- Leaflet & Leaflet.draw CDN -->
|
<!-- Leaflet & Leaflet.draw CDN -->
|
||||||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
|
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.css" />
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.css" />
|
||||||
|
|
||||||
<!-- Premium Fonts -->
|
<!-- Premium Fonts -->
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
@@ -152,7 +152,7 @@ session_start();
|
|||||||
<div class="step-badge">Langkah 1</div>
|
<div class="step-badge">Langkah 1</div>
|
||||||
<p>Klik tombol <strong>Tandai Lokasi SPBU</strong> di bawah, lalu klik di peta pada posisi SPBU yang diinginkan.</p>
|
<p>Klik tombol <strong>Tandai Lokasi SPBU</strong> di bawah, lalu klik di peta pada posisi SPBU yang diinginkan.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button class="btn-pick-location" id="btn-pick-spbu" onclick="activatePickMode()">
|
<button class="btn-pick-location" id="btn-pick-spbu" onclick="activatePickMode()">
|
||||||
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
||||||
<path stroke-linecap="round" stroke-linejoin="round"
|
<path stroke-linecap="round" stroke-linejoin="round"
|
||||||
@@ -222,4 +222,4 @@ session_start();
|
|||||||
<script src="script.js"></script>
|
<script src="script.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
+16
-5
@@ -1,8 +1,20 @@
|
|||||||
<?php
|
<?php
|
||||||
$host = "localhost";
|
$host_sekarang = $_SERVER['HTTP_HOST'];
|
||||||
$user = "root";
|
|
||||||
$pass = "";
|
// Cek apakah URL yang sedang diakses mengandung kata 'localhost' atau '127.0.0.1'
|
||||||
$db = "webgis_db_pertemuan2";
|
if (strpos($host_sekarang, 'localhost') !== false || strpos($host_sekarang, '127.0.0.1') !== false) {
|
||||||
|
$host = "localhost";
|
||||||
|
$user = "root";
|
||||||
|
$pass = "";
|
||||||
|
$db = "webgis_db_pertemuan2";
|
||||||
|
} else {
|
||||||
|
// Gunakan Kredensial Normal User dari Coolify
|
||||||
|
$host = "b84c4osgw4kcw0wc8o8cg8cg";
|
||||||
|
$user = "mysql"; // Menggunakan normal user
|
||||||
|
$pass = "YN54ned6j7P6K7c76sLqh9ERUbm8xvhPFj31Mnt0yKPXxqrIhWICWlbJbJjUCfn7"; // Normal User Password
|
||||||
|
$db = "webgis_db_pertemuan2";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Connect first without DB to ensure we can create it if missing
|
// Connect first without DB to ensure we can create it if missing
|
||||||
$conn = new mysqli($host, $user, $pass);
|
$conn = new mysqli($host, $user, $pass);
|
||||||
@@ -30,4 +42,3 @@ $sql_spbu = "CREATE TABLE IF NOT EXISTS `spbu_locations` (
|
|||||||
if (!$conn->query($sql_spbu)) {
|
if (!$conn->query($sql_spbu)) {
|
||||||
die("Gagal membuat tabel spbu_locations: " . $conn->error);
|
die("Gagal membuat tabel spbu_locations: " . $conn->error);
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
+157
-1
@@ -842,8 +842,30 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.leaflet-popup-close-button {
|
.leaflet-popup-close-button {
|
||||||
|
position: absolute !important;
|
||||||
|
top: 12px !important;
|
||||||
|
right: 12px !important;
|
||||||
|
width: 20px !important;
|
||||||
|
height: 20px !important;
|
||||||
|
line-height: 20px !important;
|
||||||
|
text-align: center !important;
|
||||||
|
color: rgba(255, 255, 255, 0.75) !important;
|
||||||
|
background: rgba(255, 255, 255, 0.15) !important;
|
||||||
|
border-radius: 50% !important;
|
||||||
|
font-size: 12px !important;
|
||||||
|
font-weight: normal !important;
|
||||||
|
z-index: 1000 !important;
|
||||||
|
transition: all 0.2s ease !important;
|
||||||
|
display: flex !important;
|
||||||
|
align-items: center !important;
|
||||||
|
justify-content: center !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
text-decoration: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-popup-close-button:hover {
|
||||||
color: #ffffff !important;
|
color: #ffffff !important;
|
||||||
padding: 12px !important;
|
background: rgba(255, 255, 255, 0.3) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.popup-container {
|
.popup-container {
|
||||||
@@ -1199,3 +1221,137 @@ body {
|
|||||||
.leaflet-control-layers-selector:focus {
|
.leaflet-control-layers-selector:focus {
|
||||||
box-shadow: 0 0 0 2.5px rgba(16, 185, 129, 0.25) !important;
|
box-shadow: 0 0 0 2.5px rgba(16, 185, 129, 0.25) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ==========================================
|
||||||
|
RESPONSIVE DESIGN (BREAKPOINTS)
|
||||||
|
========================================== */
|
||||||
|
|
||||||
|
/* 1. Tablet (< 1024px dan >= 768px) */
|
||||||
|
@media (max-width: 1023px) and (min-width: 768px) {
|
||||||
|
.search-wrapper {
|
||||||
|
max-width: 320px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-subtitle {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-select-trigger {
|
||||||
|
min-width: auto;
|
||||||
|
padding-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-sidebar {
|
||||||
|
width: 310px;
|
||||||
|
left: -330px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-sidebar.open {
|
||||||
|
left: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 2. Mobile (< 768px) */
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
/* Header Kompak */
|
||||||
|
.webgis-header {
|
||||||
|
height: 56px;
|
||||||
|
padding: 0 10px;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-name {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-subtitle {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-divider {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-wrapper {
|
||||||
|
max-width: 100%;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Layout Kompak untuk Search Bar */
|
||||||
|
.custom-select-trigger {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-category-wrap {
|
||||||
|
padding: 0 6px;
|
||||||
|
border-right: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.category-arrow {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-tools {
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tool-badge {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Sidebar Full-width (100%) */
|
||||||
|
.input-sidebar {
|
||||||
|
width: 100%;
|
||||||
|
left: -100%;
|
||||||
|
top: 56px;
|
||||||
|
bottom: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-sidebar.open {
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Pindahkan Tombol Toggle ke Bawah Tengah pada Mobile */
|
||||||
|
.sidebar-toggle {
|
||||||
|
top: auto;
|
||||||
|
bottom: 80px;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Sembunyikan tombol toggle saat sidebar terbuka penuh agar tidak menumpuk */
|
||||||
|
.sidebar-toggle.open {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Penyesuaian UI Peta pada Mobile */
|
||||||
|
.leaflet-top {
|
||||||
|
margin-top: 0 !important;
|
||||||
|
top: 65px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-bottom {
|
||||||
|
bottom: 68px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pick-mode-overlay {
|
||||||
|
top: 66px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pick-mode-overlay.active {
|
||||||
|
top: 66px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Buat legenda lebih kecil di perangkat seluler */
|
||||||
|
.legend h4 {
|
||||||
|
font-size: 10px;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.legend-item {
|
||||||
|
font-size: 9px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user