Compare commits
17 Commits
02e8752a36
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| d258e37c02 | |||
| 1cf6967e46 | |||
| e19864b0c4 | |||
| 16c52b0cf6 | |||
| 94968e6b0b | |||
| 1cccc69e14 | |||
| 0f0ff44bd0 | |||
| fa2737cb8f | |||
| fe46133160 | |||
| 879d683a05 | |||
| 4f85bedfc3 | |||
| f83b1c675f | |||
| 16177783fd | |||
| b64b896960 | |||
| c6d8b34f56 | |||
| 49a8d0e0d4 | |||
| e30d1b4891 |
File diff suppressed because one or more lines are too long
+111
-5
@@ -74,6 +74,7 @@ $isAdmin = isset($_SESSION['role']) && $_SESSION['role'] === 'admin';
|
||||
<div class="custom-select-options" id="custom-select-options">
|
||||
<div class="custom-option selected" data-value="Semua">Semua Layer</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>
|
||||
|
||||
@@ -85,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" />
|
||||
</svg>
|
||||
</span>
|
||||
<input type="text" id="search-input" placeholder="Cari nama lokasi atau rumah ibadah..."
|
||||
<input type="text" id="search-input" placeholder="Cari nama kepala keluarga atau rumah ibadah..."
|
||||
onkeyup="jalankanPencarian()" oninput="toggleClearBtn()" autocomplete="off">
|
||||
<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">
|
||||
@@ -134,21 +135,76 @@ $isAdmin = isset($_SESSION['role']) && $_SESSION['role'] === 'admin';
|
||||
</a>
|
||||
<?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">
|
||||
<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>
|
||||
<div class="status-dot"></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">
|
||||
<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>
|
||||
</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>
|
||||
|
||||
@@ -377,13 +433,63 @@ $isAdmin = isset($_SESSION['role']) && $_SESSION['role'] === 'admin';
|
||||
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() {
|
||||
var dropdown = document.getElementById('profile-dropdown');
|
||||
if (dropdown) dropdown.classList.remove('active');
|
||||
|
||||
var menu = document.getElementById('mobile-menu-dropdown');
|
||||
if (menu) menu.classList.remove('active');
|
||||
});
|
||||
</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>
|
||||
</body>
|
||||
|
||||
|
||||
@@ -1,8 +1,19 @@
|
||||
<?php
|
||||
$host = "localhost";
|
||||
$user = "root";
|
||||
$pass = "";
|
||||
$db = "webgis_db";
|
||||
$host_sekarang = $_SERVER['HTTP_HOST'];
|
||||
|
||||
// Cek apakah URL yang sedang diakses mengandung kata 'localhost' atau '127.0.0.1'
|
||||
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
|
||||
$conn = new mysqli($host, $user, $pass);
|
||||
@@ -39,10 +50,9 @@ if ($row['count'] == 0) {
|
||||
$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_role = 'admin';
|
||||
|
||||
|
||||
$stmt = $conn->prepare("INSERT INTO users (username, password, avatar, role) VALUES (?, ?, ?, ?)");
|
||||
$stmt->bind_param("ssss", $default_user, $default_pass, $default_avatar, $default_role);
|
||||
$stmt->execute();
|
||||
$stmt->close();
|
||||
}
|
||||
?>
|
||||
+143
-18
@@ -64,8 +64,7 @@ var povertyHeatLayer = L.heatLayer([], { radius: 22, blur: 18, maxZoom: 17 }).ad
|
||||
var overlayMaps = {
|
||||
"🕌 Rumah Ibadah": rumahIbadahLayer,
|
||||
"🔥 Kepadatan Kemiskinan (Heatmap)": povertyHeatLayer,
|
||||
"👥 Semua Penduduk Miskin": pendudukMiskinCluster,
|
||||
"👥 Penduduk Terdekat (Analisis)": pendudukMiskinLayer
|
||||
"👥 Semua Penduduk Miskin": pendudukMiskinCluster
|
||||
};
|
||||
L.control.layers(null, overlayMaps, { collapsed: true, position: 'bottomleft' }).addTo(map);
|
||||
|
||||
@@ -97,6 +96,7 @@ var databasePendudukMiskin = [];
|
||||
|
||||
function loadRumahIbadah() {
|
||||
rumahIbadahLayer.clearLayers();
|
||||
databasePencarian = []; // Reset database pencarian untuk mencegah duplikat
|
||||
|
||||
fetch('load.php?jenis=rumah_ibadah')
|
||||
.then(res => res.json())
|
||||
@@ -168,6 +168,17 @@ function loadRumahIbadah() {
|
||||
.bindPopup(htmlIsi);
|
||||
|
||||
pendudukMiskinCluster.addLayer(marker);
|
||||
|
||||
var namaKK = penduduk.nama_kk || 'Tanpa Nama';
|
||||
databasePencarian.push({
|
||||
namaLower: namaKK.toLowerCase(),
|
||||
namaAsli: namaKK,
|
||||
kategori: 'Penduduk Miskin',
|
||||
bantuan: statusBantuan,
|
||||
ikon: '👥',
|
||||
tipe: 'titik',
|
||||
layer: marker
|
||||
});
|
||||
});
|
||||
|
||||
dataRumahIbadah.forEach(ibadah => {
|
||||
@@ -492,10 +503,11 @@ var databasePencarian = [];
|
||||
|
||||
var ikonKategori = {
|
||||
'Rumah Ibadah': '🕌',
|
||||
'Penduduk Miskin': '👥'
|
||||
};
|
||||
|
||||
var warnaBadge = {
|
||||
'Rumah Ibadah': 'badge-Rumah-Ibadah',
|
||||
'Rumah Ibadah': 'badge-Rumah-Ibadah'
|
||||
};
|
||||
|
||||
function jalankanPencarian() {
|
||||
@@ -522,11 +534,28 @@ function jalankanPencarian() {
|
||||
|
||||
hasil.forEach(function (item) {
|
||||
var badgeClass = warnaBadge[item.kategori] || 'badge-default';
|
||||
var ikon = ikonKategori[item.kategori] || '📍';
|
||||
var kategoriText = item.kategori;
|
||||
var ikon = item.ikon || '📍';
|
||||
var bgColors = {
|
||||
'Rumah Ibadah': 'rgba(59,130,246,0.12)'
|
||||
'Rumah Ibadah': 'rgba(59,130,246,0.12)',
|
||||
'Penduduk Miskin': item.bantuan === 'Sudah Menerima' ? 'rgba(16,185,129,0.12)' : 'rgba(239,68,68,0.12)'
|
||||
};
|
||||
|
||||
if (item.kategori === 'Penduduk Miskin') {
|
||||
if (item.bantuan === 'Sudah Menerima') {
|
||||
badgeClass = 'badge-penduduk-sudah';
|
||||
kategoriText = 'Sudah Menerima';
|
||||
} else {
|
||||
badgeClass = 'badge-penduduk-belum';
|
||||
kategoriText = 'Belum Menerima';
|
||||
}
|
||||
}
|
||||
|
||||
var subText = 'Klik untuk zoom ke lokasi';
|
||||
if (item.kategori === 'Penduduk Miskin') {
|
||||
subText = 'Penduduk Miskin • ' + subText;
|
||||
}
|
||||
|
||||
var div = document.createElement('div');
|
||||
div.className = 'result-item';
|
||||
div.innerHTML = `
|
||||
@@ -535,17 +564,24 @@ function jalankanPencarian() {
|
||||
</div>
|
||||
<div class="result-item-text">
|
||||
<div class="result-item-name">${item.namaAsli}</div>
|
||||
<div class="result-item-sub">Klik untuk zoom ke lokasi</div>
|
||||
<div class="result-item-sub">${subText}</div>
|
||||
</div>
|
||||
<span class="badge-kategori ${badgeClass}">${item.kategori}</span>`;
|
||||
<span class="badge-kategori ${badgeClass}">${kategoriText}</span>`;
|
||||
|
||||
div.onclick = function () {
|
||||
if (item.tipe === 'titik') {
|
||||
map.flyTo(item.layer.getLatLng(), 17, { animate: true, duration: 1.5 });
|
||||
if (item.kategori === 'Penduduk Miskin') {
|
||||
// For markers in markerClusterGroup, use zoomToShowLayer to expand clusters
|
||||
pendudukMiskinCluster.zoomToShowLayer(item.layer, function () {
|
||||
item.layer.openPopup();
|
||||
});
|
||||
} else {
|
||||
map.flyTo(item.layer.getLatLng(), 17, { animate: true, duration: 1.5 });
|
||||
item.layer.openPopup();
|
||||
}
|
||||
} else {
|
||||
map.fitBounds(item.layer.getBounds());
|
||||
}
|
||||
item.layer.openPopup();
|
||||
wadahHasil.style.display = 'none';
|
||||
document.getElementById('search-input').value = item.namaAsli;
|
||||
toggleClearBtn();
|
||||
@@ -604,15 +640,25 @@ var sidebarPickMode = null; // 'ibadah' | 'penduduk'
|
||||
var sidebarTempLat = 0, sidebarTempLng = 0;
|
||||
|
||||
// Buka/Tutup Sidebar
|
||||
document.getElementById('sidebar-toggle').addEventListener('click', function () {
|
||||
var sidebar = document.getElementById('input-sidebar');
|
||||
sidebar.classList.toggle('open');
|
||||
this.classList.toggle('open');
|
||||
});
|
||||
document.getElementById('sidebar-close').addEventListener('click', function () {
|
||||
document.getElementById('input-sidebar').classList.remove('open');
|
||||
document.getElementById('sidebar-toggle').classList.remove('open');
|
||||
});
|
||||
var sidebarToggle = document.getElementById('sidebar-toggle');
|
||||
if (sidebarToggle) {
|
||||
sidebarToggle.addEventListener('click', function () {
|
||||
var sidebar = document.getElementById('input-sidebar');
|
||||
if (sidebar) sidebar.classList.toggle('open');
|
||||
this.classList.toggle('open');
|
||||
});
|
||||
}
|
||||
|
||||
var sidebarClose = document.getElementById('sidebar-close');
|
||||
if (sidebarClose) {
|
||||
sidebarClose.addEventListener('click', function () {
|
||||
var sidebar = document.getElementById('input-sidebar');
|
||||
if (sidebar) sidebar.classList.remove('open');
|
||||
|
||||
var sidebarToggle = document.getElementById('sidebar-toggle');
|
||||
if (sidebarToggle) sidebarToggle.classList.remove('open');
|
||||
});
|
||||
}
|
||||
|
||||
// Ganti Tab
|
||||
function switchSidebarTab(tabName) {
|
||||
@@ -877,4 +923,83 @@ function showDashboard(ibadahName, totalKK, sudahBantuan, belumBantuan, families
|
||||
|
||||
function closeDashboard() {
|
||||
document.getElementById('dashboard-sidebar').classList.remove('open');
|
||||
}
|
||||
|
||||
// ==========================================
|
||||
// 16. SISTEM MONITORING KONEKSI DINAMIS
|
||||
// ==========================================
|
||||
function updateConnectionStatus() {
|
||||
var statusEl = document.getElementById('connection-status');
|
||||
var mobileStatusEl = document.getElementById('mobile-connection-status');
|
||||
var mobileStatusText = document.getElementById('mobile-connection-text');
|
||||
|
||||
if (navigator.onLine) {
|
||||
if (statusEl) {
|
||||
statusEl.classList.remove('offline');
|
||||
statusEl.classList.add('online');
|
||||
statusEl.setAttribute('title', 'Koneksi Stabil');
|
||||
}
|
||||
if (mobileStatusEl) {
|
||||
mobileStatusEl.style.color = '#10b981';
|
||||
}
|
||||
if (mobileStatusText) {
|
||||
mobileStatusText.textContent = 'Online';
|
||||
}
|
||||
} else {
|
||||
if (statusEl) {
|
||||
statusEl.classList.remove('online');
|
||||
statusEl.classList.add('offline');
|
||||
statusEl.setAttribute('title', 'Koneksi Terputus - Peta mungkin tidak dimuat sempurna');
|
||||
}
|
||||
if (mobileStatusEl) {
|
||||
mobileStatusEl.style.color = '#ef4444';
|
||||
}
|
||||
if (mobileStatusText) {
|
||||
mobileStatusText.textContent = 'Offline';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Event listeners untuk mendeteksi perubahan status koneksi
|
||||
window.addEventListener('online', updateConnectionStatus);
|
||||
window.addEventListener('offline', updateConnectionStatus);
|
||||
|
||||
// Jalankan saat pertama kali dimuat
|
||||
document.addEventListener('DOMContentLoaded', updateConnectionStatus);
|
||||
updateConnectionStatus();
|
||||
|
||||
// ==========================================
|
||||
// 17. MODAL TENTANG APLIKASI
|
||||
// ==========================================
|
||||
var aboutBtn = document.getElementById('about-btn');
|
||||
var mobileAboutBtn = document.getElementById('mobile-about-btn');
|
||||
var aboutModal = document.getElementById('about-modal');
|
||||
var aboutCloseBtn = document.getElementById('about-close-btn');
|
||||
var aboutOkBtn = document.getElementById('about-ok-btn');
|
||||
|
||||
var openAboutModal = function (e) {
|
||||
e.preventDefault();
|
||||
aboutModal.classList.add('active');
|
||||
// Tutup menu mobile jika sedang terbuka
|
||||
var menu = document.getElementById('mobile-menu-dropdown');
|
||||
if (menu) menu.classList.remove('active');
|
||||
};
|
||||
|
||||
if (aboutModal) {
|
||||
if (aboutBtn) aboutBtn.addEventListener('click', openAboutModal);
|
||||
if (mobileAboutBtn) mobileAboutBtn.addEventListener('click', openAboutModal);
|
||||
|
||||
var closeModal = function () {
|
||||
aboutModal.classList.remove('active');
|
||||
};
|
||||
|
||||
if (aboutCloseBtn) aboutCloseBtn.addEventListener('click', closeModal);
|
||||
if (aboutOkBtn) aboutOkBtn.addEventListener('click', closeModal);
|
||||
|
||||
// Tutup modal jika klik area luar modal-content
|
||||
aboutModal.addEventListener('click', function (e) {
|
||||
if (e.target === aboutModal) {
|
||||
closeModal();
|
||||
}
|
||||
});
|
||||
}
|
||||
+329
-5
@@ -430,6 +430,16 @@ body {
|
||||
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 {
|
||||
background: rgba(148, 163, 184, 0.15);
|
||||
color: #94a3b8;
|
||||
@@ -458,6 +468,14 @@ body {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.hamburger-menu-btn {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mobile-menu-dropdown {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.tool-btn {
|
||||
background: rgba(255, 255, 255, 0.07);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
@@ -495,6 +513,21 @@ body {
|
||||
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)
|
||||
============================ */
|
||||
@@ -1733,9 +1766,128 @@ body {
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.tool-btn {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
.header-tools-divider,
|
||||
.user-profile-menu,
|
||||
.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%) */
|
||||
@@ -1749,10 +1901,21 @@ body {
|
||||
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 */
|
||||
.sidebar-toggle {
|
||||
top: auto;
|
||||
bottom: 24px;
|
||||
bottom: 80px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
|
||||
@@ -1768,8 +1931,12 @@ body {
|
||||
top: 65px !important;
|
||||
}
|
||||
|
||||
.leaflet-bottom {
|
||||
bottom: 68px !important;
|
||||
}
|
||||
|
||||
.pick-mode-overlay {
|
||||
bottom: 80px;
|
||||
bottom: 136px;
|
||||
}
|
||||
|
||||
/* Naikkan sedikit agar tidak tertutup tombol toggle */
|
||||
@@ -2424,4 +2591,161 @@ body {
|
||||
|
||||
.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
@@ -4,118 +4,398 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Landing Page - Tugas WebGIS</title>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
<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>
|
||||
:root {
|
||||
--bg-primary: #090d16;
|
||||
--bg-card: rgba(17, 24, 39, 0.7);
|
||||
--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 */
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Plus Jakarta Sans', sans-serif;
|
||||
margin: 0;
|
||||
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;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
/* Background gelap dengan gradien yang sama persis dengan login page */
|
||||
background: #0f172a;
|
||||
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%);
|
||||
color: #f8fafc;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
padding: 40px 20px;
|
||||
box-sizing: border-box;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.container {
|
||||
/* Efek glassmorphism */
|
||||
background: rgba(30, 41, 59, 0.85);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: 16px;
|
||||
padding: 40px 32px;
|
||||
max-width: 1200px;
|
||||
width: 100%;
|
||||
max-width: 450px;
|
||||
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
|
||||
text-align: center;
|
||||
margin: auto;
|
||||
margin: 0 auto;
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.icon-wrapper {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
background: rgba(59, 130, 246, 0.1);
|
||||
border-radius: 16px;
|
||||
/* ==============================
|
||||
HEADER SECTION
|
||||
============================== */
|
||||
header {
|
||||
text-align: center;
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
|
||||
.brand-icon-wrapper {
|
||||
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;
|
||||
color: #3b82f6;
|
||||
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: 0 0 12px 0;
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.profile-badge {
|
||||
display: inline-block;
|
||||
background: rgba(15, 23, 42, 0.6);
|
||||
padding: 8px 16px;
|
||||
border-radius: 8px;
|
||||
font-size: 13px;
|
||||
color: #94a3b8;
|
||||
margin-bottom: 32px;
|
||||
.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;
|
||||
}
|
||||
|
||||
.profile-badge span {
|
||||
color: #cbd5e1;
|
||||
font-weight: 600;
|
||||
@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; }
|
||||
}
|
||||
|
||||
.link-list {
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
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;
|
||||
gap: 14px;
|
||||
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);
|
||||
}
|
||||
|
||||
.link-list a {
|
||||
/* 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;
|
||||
padding: 16px 20px;
|
||||
background-color: rgba(15, 23, 42, 0.5);
|
||||
border: 1px solid rgba(255, 255, 255, 0.05);
|
||||
color: #e2e8f0;
|
||||
text-decoration: none;
|
||||
border-radius: 12px;
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
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;
|
||||
}
|
||||
|
||||
.link-list a:hover {
|
||||
background-color: #3b82f6;
|
||||
border-color: #3b82f6;
|
||||
.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;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
|
||||
margin-bottom: 12px;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.link-icon {
|
||||
opacity: 0.5;
|
||||
transition: transform 0.3s ease, opacity 0.3s ease;
|
||||
.card-description {
|
||||
font-size: 0.92rem;
|
||||
color: var(--text-muted);
|
||||
line-height: 1.6;
|
||||
margin-bottom: 24px;
|
||||
min-height: 72px; /* aligns grid content heights */
|
||||
}
|
||||
|
||||
.link-list a:hover .link-icon {
|
||||
opacity: 1;
|
||||
/* 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);
|
||||
/* Animasi panah bergeser ke kanan */
|
||||
}
|
||||
|
||||
/* ==============================
|
||||
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>
|
||||
</head>
|
||||
@@ -123,44 +403,202 @@
|
||||
<body>
|
||||
|
||||
<div class="container">
|
||||
<div class="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>
|
||||
|
||||
<!-- 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>
|
||||
|
||||
<h2>Portal Tugas WebGIS</h2>
|
||||
<!-- FOOTER -->
|
||||
<footer>
|
||||
<p>© 2026 Aleksander William • Portal Tugas WebGIS Terpadu</p>
|
||||
</footer>
|
||||
|
||||
<div class="profile-badge">
|
||||
<span>Aleksander William</span> <span style="opacity: 0.3; margin: 0 8px;">|</span> NIM: D1041231003
|
||||
</div>
|
||||
|
||||
<ul class="link-list">
|
||||
<li>
|
||||
<a href="./pertemuan1/index.php">
|
||||
<span>Tugas Pertemuan 1</span>
|
||||
<svg class="link-icon" width="20" height="20" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 5l7 7m0 0l-7 7m7-7H3" />
|
||||
</svg>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./pertemuan2/index.php">
|
||||
<span>Tugas Pertemuan 2</span>
|
||||
<svg class="link-icon" width="20" height="20" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 5l7 7m0 0l-7 7m7-7H3" />
|
||||
</svg>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="./WebGISPovertyMap/index.php">
|
||||
<span>Tugas Poverty Map</span>
|
||||
<svg class="link-icon" width="20" height="20" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 5l7 7m0 0l-7 7m7-7H3" />
|
||||
</svg>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
+15
-4
@@ -1,8 +1,19 @@
|
||||
<?php
|
||||
$host = "localhost";
|
||||
$user = "root";
|
||||
$pass = "";
|
||||
$db = "webgis_db_pertemuan1";
|
||||
$host_sekarang = $_SERVER['HTTP_HOST'];
|
||||
|
||||
// Cek apakah URL yang sedang diakses mengandung kata 'localhost' atau '127.0.0.1'
|
||||
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
|
||||
|
||||
@@ -1260,3 +1260,137 @@ body {
|
||||
.leaflet-control-layers-selector:focus {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
+14
-4
@@ -1,9 +1,19 @@
|
||||
<?php
|
||||
$host_sekarang = $_SERVER['HTTP_HOST'];
|
||||
|
||||
$host = "localhost";
|
||||
$user = "root";
|
||||
$pass = "";
|
||||
$db = "webgis_db_pertemuan2";
|
||||
// Cek apakah URL yang sedang diakses mengandung kata 'localhost' atau '127.0.0.1'
|
||||
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
|
||||
|
||||
@@ -1221,3 +1221,137 @@ body {
|
||||
.leaflet-control-layers-selector:focus {
|
||||
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