Menambahkan landing page yang yang hubungkan ke 3 proyek saya
This commit is contained in:
+220
-159
@@ -1,25 +1,30 @@
|
||||
/* ============================================================
|
||||
WebGIS SPBU — Style (disesuaikan dengan tema Manajemen Jalan & Parsil)
|
||||
============================================================ */
|
||||
|
||||
:root {
|
||||
--bg-dark: #0f1117;
|
||||
--border: #2a3248;
|
||||
--accent-green: #10b981;
|
||||
--accent-orange: #f97316;
|
||||
--accent-blue: #3b82f6;
|
||||
--bg-dark: #0f1117;
|
||||
--bg-sidebar: #161b27;
|
||||
--bg-card: #1e2538;
|
||||
--bg-card-hover: #252d42;
|
||||
--border: #2a3248;
|
||||
--accent-blue: #3b82f6;
|
||||
--accent-green: #10b981;
|
||||
--accent-yellow: #f59e0b;
|
||||
--accent-red: #ef4444;
|
||||
--text-primary: #f1f5f9;
|
||||
--text-secondary: #94a3b8;
|
||||
--text-muted: #64748b;
|
||||
--radius-sm: 6px;
|
||||
--accent-red: #ef4444;
|
||||
--accent-orange: #f97316;
|
||||
--text-primary: #f1f5f9;
|
||||
--text-secondary:#94a3b8;
|
||||
--text-muted: #4b5563;
|
||||
--radius-sm: 6px;
|
||||
--radius-md: 10px;
|
||||
--shadow: 0 4px 24px rgba(0,0,0,.4);
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
* { margin:0; padding:0; box-sizing:border-box; }
|
||||
|
||||
body {
|
||||
font-family: 'Inter', system-ui, sans-serif;
|
||||
font-family: 'Inter', sans-serif;
|
||||
background: var(--bg-dark);
|
||||
color: var(--text-primary);
|
||||
height: 100vh;
|
||||
@@ -28,10 +33,11 @@ body {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* ── Header ────────────────────────────────────────── */
|
||||
#header-bar {
|
||||
background: linear-gradient(135deg, #161b27 0%, #0f1117 100%);
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding: 14px 20px;
|
||||
padding: 12px 20px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
@@ -39,141 +45,56 @@ body {
|
||||
}
|
||||
|
||||
#header-bar h1 {
|
||||
font-size: 18px;
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#header-bar p {
|
||||
font-size: 12px;
|
||||
font-size: 11px;
|
||||
color: var(--text-secondary);
|
||||
margin-top: 2px;
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
/* ── Stats Badge ───────────────────────────────────── */
|
||||
#stats-bar {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
font-size: 12px;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.stat-badge {
|
||||
padding: 6px 12px;
|
||||
padding: 5px 12px;
|
||||
border-radius: 20px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
border: 1px solid var(--border);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
background: rgba(255,255,255,0.04);
|
||||
letter-spacing: .3px;
|
||||
}
|
||||
|
||||
.stat-badge.green {
|
||||
color: var(--accent-green);
|
||||
border-color: rgba(16, 185, 129, 0.35);
|
||||
border-color: rgba(16,185,129,0.35);
|
||||
background: rgba(16,185,129,0.07);
|
||||
}
|
||||
|
||||
.stat-badge.orange {
|
||||
color: var(--accent-orange);
|
||||
border-color: rgba(249, 115, 22, 0.35);
|
||||
border-color: rgba(249,115,22,0.35);
|
||||
background: rgba(249,115,22,0.07);
|
||||
}
|
||||
|
||||
/* ── Map ───────────────────────────────────────────── */
|
||||
#map {
|
||||
flex: 1;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.leaflet-control-layers {
|
||||
border-radius: 8px !important;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.leaflet-control-layers-expanded {
|
||||
padding: 10px 12px !important;
|
||||
}
|
||||
|
||||
.gis-popup {
|
||||
min-width: 220px;
|
||||
font-family: 'Inter', system-ui, sans-serif;
|
||||
}
|
||||
|
||||
.popup-title {
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 10px;
|
||||
padding-bottom: 8px;
|
||||
border-bottom: 2px solid var(--border);
|
||||
}
|
||||
|
||||
.info-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
margin-bottom: 6px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.info-label {
|
||||
color: var(--text-muted);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.info-value {
|
||||
text-align: right;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.status-badge {
|
||||
display: inline-block;
|
||||
padding: 2px 8px;
|
||||
border-radius: 4px;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.status-24jam {
|
||||
background: rgba(16, 185, 129, 0.15);
|
||||
color: #10b981;
|
||||
}
|
||||
|
||||
.status-tidak24jam {
|
||||
background: rgba(249, 115, 22, 0.15);
|
||||
color: #f97316;
|
||||
}
|
||||
|
||||
#toast {
|
||||
position: fixed;
|
||||
bottom: 24px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%) translateY(80px);
|
||||
background: #1e2538;
|
||||
color: var(--text-primary);
|
||||
padding: 10px 20px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border);
|
||||
font-size: 13px;
|
||||
z-index: 9999;
|
||||
opacity: 0;
|
||||
transition: all 0.3s ease;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
#toast.show {
|
||||
opacity: 1;
|
||||
transform: translateX(-50%) translateY(0);
|
||||
}
|
||||
|
||||
#toast.error {
|
||||
border-color: rgba(239, 68, 68, 0.5);
|
||||
color: #fca5a5;
|
||||
}
|
||||
|
||||
#toast.success {
|
||||
border-color: rgba(16, 185, 129, 0.5);
|
||||
color: #6ee7b7;
|
||||
}
|
||||
|
||||
#toast.info {
|
||||
border-color: rgba(59, 130, 246, 0.5);
|
||||
color: #93c5fd;
|
||||
}
|
||||
|
||||
/* ── FAB ───────────────────────────────────────────── */
|
||||
.fab-container {
|
||||
position: fixed;
|
||||
bottom: 30px;
|
||||
@@ -185,10 +106,10 @@ body {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(135deg, var(--accent-green), #059669);
|
||||
background: linear-gradient(135deg, var(--accent-blue), #2563eb);
|
||||
color: white;
|
||||
border: none;
|
||||
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
|
||||
box-shadow: 0 4px 15px rgba(0,0,0,.4);
|
||||
font-size: 24px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
@@ -199,27 +120,178 @@ body {
|
||||
|
||||
.fab-btn:hover {
|
||||
transform: scale(1.05);
|
||||
background: linear-gradient(135deg, #60a5fa, var(--accent-blue));
|
||||
}
|
||||
|
||||
.fab-btn.active {
|
||||
background: linear-gradient(135deg, var(--accent-orange), #ea580c);
|
||||
box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.3);
|
||||
background: linear-gradient(135deg, var(--accent-red), #dc2626);
|
||||
box-shadow: 0 0 0 4px rgba(239,68,68,.3);
|
||||
}
|
||||
|
||||
/* ── Toast Notification ────────────────────────────── */
|
||||
#toast {
|
||||
position: fixed;
|
||||
bottom: 30px;
|
||||
right: 30px;
|
||||
z-index: 10000;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.toast-item {
|
||||
padding: 10px 18px;
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: #fff;
|
||||
box-shadow: var(--shadow);
|
||||
animation: slideIn .3s ease;
|
||||
max-width: 300px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.toast-success {
|
||||
background: #065f46;
|
||||
border: 1px solid #10b981;
|
||||
}
|
||||
|
||||
.toast-error {
|
||||
background: #7f1d1d;
|
||||
border: 1px solid #ef4444;
|
||||
}
|
||||
|
||||
.toast-info {
|
||||
background: #1e3a5f;
|
||||
border: 1px solid #3b82f6;
|
||||
}
|
||||
|
||||
@keyframes slideIn {
|
||||
from { opacity:0; transform: translateX(30px); }
|
||||
to { opacity:1; transform: translateX(0); }
|
||||
}
|
||||
|
||||
/* ── Leaflet Popup Dark Theme ──────────────────────── */
|
||||
.leaflet-popup-content-wrapper {
|
||||
background: var(--bg-card) !important;
|
||||
border: 1px solid var(--border) !important;
|
||||
border-radius: var(--radius-md) !important;
|
||||
box-shadow: var(--shadow) !important;
|
||||
color: var(--text-primary) !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.leaflet-popup-tip {
|
||||
background: var(--bg-card) !important;
|
||||
}
|
||||
|
||||
.leaflet-popup-close-button {
|
||||
color: var(--text-secondary) !important;
|
||||
top: 8px !important;
|
||||
right: 8px !important;
|
||||
}
|
||||
|
||||
.leaflet-popup-content {
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
/* ── Leaflet Layer Control Dark ────────────────────── */
|
||||
.leaflet-control-layers {
|
||||
background: var(--bg-card) !important;
|
||||
border: 1px solid var(--border) !important;
|
||||
border-radius: var(--radius-md) !important;
|
||||
color: var(--text-primary) !important;
|
||||
box-shadow: var(--shadow) !important;
|
||||
}
|
||||
|
||||
.leaflet-control-layers label {
|
||||
color: var(--text-primary) !important;
|
||||
font-size: 12px !important;
|
||||
font-family: 'Inter', sans-serif !important;
|
||||
}
|
||||
|
||||
.leaflet-control-layers-separator {
|
||||
border-top-color: var(--border) !important;
|
||||
}
|
||||
|
||||
.leaflet-control-layers-expanded {
|
||||
padding: 10px 14px !important;
|
||||
}
|
||||
|
||||
.leaflet-control-layers-toggle {
|
||||
background-color: var(--bg-card) !important;
|
||||
border-radius: var(--radius-sm) !important;
|
||||
}
|
||||
|
||||
/* ── GIS Popup Content ─────────────────────────────── */
|
||||
.gis-popup {
|
||||
padding: 16px;
|
||||
min-width: 240px;
|
||||
max-width: 300px;
|
||||
font-family: 'Inter', sans-serif;
|
||||
}
|
||||
|
||||
.popup-title {
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 12px;
|
||||
padding-bottom: 8px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.info-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 5px 0;
|
||||
border-bottom: 1px solid var(--border);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.info-row:last-of-type {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.info-label { color: var(--text-secondary); }
|
||||
.info-value { color: var(--text-primary); font-weight: 600; }
|
||||
|
||||
/* ── Status Badges (SPBU specific) ────────────────── */
|
||||
.status-badge {
|
||||
display: inline-block;
|
||||
padding: 2px 8px;
|
||||
border-radius: 4px;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
letter-spacing: .4px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.status-24jam {
|
||||
background: rgba(16,185,129,.15);
|
||||
color: #10b981;
|
||||
border: 1px solid rgba(16,185,129,.3);
|
||||
}
|
||||
|
||||
.status-tidak24jam {
|
||||
background: rgba(249,115,22,.15);
|
||||
color: #f97316;
|
||||
border: 1px solid rgba(249,115,22,.3);
|
||||
}
|
||||
|
||||
/* ── Popup Form ────────────────────────────────────── */
|
||||
.popup-form label {
|
||||
display: block;
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
letter-spacing: .5px;
|
||||
margin-bottom: 4px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.popup-form label:first-of-type {
|
||||
margin-top: 0;
|
||||
}
|
||||
.popup-form label:first-of-type { margin-top: 0; }
|
||||
|
||||
.popup-form input,
|
||||
.popup-form select {
|
||||
@@ -230,8 +302,9 @@ body {
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--text-primary);
|
||||
font-size: 12px;
|
||||
font-family: inherit;
|
||||
font-family: 'Inter', sans-serif;
|
||||
outline: none;
|
||||
transition: border-color .2s;
|
||||
}
|
||||
|
||||
.popup-form input:focus,
|
||||
@@ -239,6 +312,7 @@ body {
|
||||
border-color: var(--accent-blue);
|
||||
}
|
||||
|
||||
/* ── Popup Buttons ─────────────────────────────────── */
|
||||
.popup-actions {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
@@ -252,42 +326,29 @@ body {
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
font-family: inherit;
|
||||
font-family: 'Inter', sans-serif;
|
||||
cursor: pointer;
|
||||
transition: opacity 0.2s;
|
||||
pointer-events: auto;
|
||||
transition: all .2s;
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.popup-btn:hover {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.popup-btn-save {
|
||||
background: var(--accent-green);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.popup-btn-edit {
|
||||
background: var(--accent-yellow);
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.popup-btn-delete {
|
||||
background: var(--accent-red);
|
||||
color: #fff;
|
||||
opacity: .85;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.popup-btn-save { background: var(--accent-green); color: #fff; }
|
||||
.popup-btn-edit { background: var(--accent-yellow); color: #000; }
|
||||
.popup-btn-delete { background: var(--accent-red); color: #fff; }
|
||||
.popup-btn-cancel {
|
||||
background: #334155;
|
||||
color: #fff;
|
||||
background: var(--bg-dark);
|
||||
color: var(--text-secondary);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.leaflet-popup-content-wrapper {
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.leaflet-popup-content {
|
||||
margin: 12px 14px;
|
||||
}
|
||||
/* ── Scrollbar ─────────────────────────────────────── */
|
||||
::-webkit-scrollbar { width: 4px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
|
||||
|
||||
Reference in New Issue
Block a user