initial commit

This commit is contained in:
Abimanyu Ridho
2026-06-11 11:09:32 +07:00
commit 5ab7251f4f
30 changed files with 5828 additions and 0 deletions
+895
View File
@@ -0,0 +1,895 @@
:root {
--bg: #eef3f8;
--panel: rgba(255, 255, 255, .92);
--panel-strong: #ffffff;
--line: #d7e0ea;
--line-strong: #bcc9d7;
--text: #0f172a;
--muted: #5b6b82;
--muted-2: #7d8ca2;
--accent: #165dff;
--accent-2: #0ea5e9;
--accent-soft: #eaf1ff;
--shadow: 0 12px 36px rgba(15, 23, 42, .12);
--shadow-soft: 0 8px 18px rgba(15, 23, 42, .08);
--radius: 18px;
--radius-sm: 12px;
--font: 'Inter', sans-serif;
--font-head: 'Space Grotesk', sans-serif;
}
* {
box-sizing: border-box;
}
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: var(--font);
color: var(--text);
background:
radial-gradient(circle at top left, rgba(22, 93, 255, .12), transparent 32%),
radial-gradient(circle at right center, rgba(14, 165, 233, .10), transparent 28%),
linear-gradient(180deg, #f6f9fc 0%, var(--bg) 100%);
overflow: hidden;
}
button,
input,
select,
textarea {
font: inherit;
}
button {
cursor: pointer;
}
#app {
height: 100%;
display: grid;
grid-template-rows: 64px 1fr;
}
#header {
display: flex;
align-items: center;
gap: 16px;
padding: 0 18px;
background: rgba(255, 255, 255, .8);
border-bottom: 1px solid rgba(215, 224, 234, .9);
backdrop-filter: blur(14px);
box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset;
position: relative;
z-index: 4000;
overflow: visible;
}
.brand {
display: flex;
flex-direction: column;
gap: 2px;
white-space: nowrap;
}
.brand-title {
font-family: var(--font-head);
font-weight: 700;
letter-spacing: -.04em;
font-size: 15px;
}
.brand-sub {
font-size: 11px;
color: var(--muted);
}
.nav-tabs {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.header-search {
position: relative;
width: min(500px, 100%);
flex: 1 1 360px;
max-width: 500px;
z-index: 4001;
}
.search-box {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
border: 1px solid var(--line);
background: rgba(255, 255, 255, .96);
border-radius: 999px;
padding: 9px 14px;
box-shadow: var(--shadow-soft);
}
.search-icon {
flex: 0 0 auto;
color: var(--muted-2);
font-size: 14px;
line-height: 1;
}
#search-input {
width: 100%;
border: none;
outline: none;
background: transparent;
color: var(--text);
font-size: 12px;
}
#search-input::placeholder {
color: var(--muted-2);
}
.search-results {
position: absolute;
top: calc(100% + 8px);
left: 0;
right: 0;
z-index: 5000;
display: none;
padding: 8px;
border: 1px solid var(--line);
border-radius: 18px;
background: rgba(255, 255, 255, .98);
box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
backdrop-filter: blur(12px);
max-height: 320px;
overflow-y: auto;
overflow-x: hidden;
}
.search-results.show {
display: grid;
gap: 10px;
}
.search-results-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 10px;
padding: 2px 4px 0;
}
.search-results-hint {
padding: 0 4px;
font-size: 11px;
color: var(--muted);
}
.search-results-title {
font-size: 10px;
font-weight: 800;
letter-spacing: .08em;
text-transform: uppercase;
color: var(--muted-2);
}
.search-results-count {
font-size: 10px;
color: var(--muted);
white-space: nowrap;
}
.search-results-list {
display: grid;
gap: 6px;
}
.search-result-item {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
border: 1px solid transparent;
background: #f8fbff;
border-radius: 14px;
padding: 10px 12px;
text-align: left;
transition: all .14s ease;
}
.search-result-item:hover,
.search-result-item.active {
border-color: #cfe0ff;
background: #eef5ff;
transform: translateY(-1px);
}
.search-result-icon {
width: 30px;
height: 30px;
border-radius: 10px;
display: inline-flex;
align-items: center;
justify-content: center;
background: #fff;
border: 1px solid var(--line);
flex: 0 0 auto;
}
.search-result-info {
flex: 1;
min-width: 0;
}
.search-result-name {
font-size: 12px;
font-weight: 700;
color: var(--text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.search-result-sub {
margin-top: 2px;
font-size: 10px;
color: var(--muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.search-result-type {
flex: 0 0 auto;
font-size: 9px;
font-weight: 800;
letter-spacing: .04em;
text-transform: uppercase;
color: var(--accent);
background: var(--accent-soft);
border: 1px solid #cfe0ff;
border-radius: 999px;
padding: 4px 8px;
}
.search-empty {
padding: 14px 12px;
border: 1px dashed #cbd6e3;
border-radius: 14px;
color: var(--muted);
font-size: 12px;
text-align: center;
background: #fbfcfe;
}
.search-empty strong {
color: var(--text);
}
.nav-tab {
border: 1px solid transparent;
background: transparent;
color: var(--muted);
border-radius: 999px;
padding: 9px 14px;
font-size: 12px;
font-weight: 600;
transition: all .16s ease;
}
.nav-tab:hover {
background: #f3f7fb;
color: var(--text);
}
.nav-tab.active {
background: var(--accent-soft);
color: var(--accent);
border-color: #cfe0ff;
box-shadow: 0 0 0 1px rgba(22, 93, 255, .04) inset;
}
.header-right {
margin-left: auto;
display: flex;
align-items: center;
gap: 10px;
}
.coord-display,
.status-pill {
border: 1px solid var(--line);
background: rgba(255, 255, 255, .86);
box-shadow: var(--shadow-soft);
border-radius: 999px;
padding: 8px 12px;
font-size: 11px;
color: var(--muted);
white-space: nowrap;
}
.coord-display {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.status-pill strong {
color: var(--text);
}
#main {
display: grid;
grid-template-columns: minmax(0, 1fr) 362px;
min-height: 0;
position: relative;
z-index: 1;
}
#map-wrap {
position: relative;
min-width: 0;
}
#map {
height: 100%;
width: 100%;
}
#instruction-banner {
position: absolute;
left: 18px;
top: 18px;
z-index: 500;
background: rgba(15, 23, 42, .92);
color: #fff;
padding: 10px 14px;
border-radius: 999px;
font-size: 12px;
box-shadow: var(--shadow);
opacity: 0;
transform: translateY(-8px);
pointer-events: none;
transition: all .18s ease;
}
#instruction-banner.show {
opacity: 1;
transform: translateY(0);
}
#panel {
min-width: 0;
background: var(--panel);
border-left: 1px solid rgba(215, 224, 234, .95);
box-shadow: -1px 0 0 rgba(255, 255, 255, .75) inset;
display: grid;
grid-template-rows: auto 1fr;
min-height: 0;
}
#panel-head {
padding: 16px 16px 12px;
border-bottom: 1px solid var(--line);
background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .82));
}
#panel-head h2 {
margin: 0 0 8px;
font-family: var(--font-head);
letter-spacing: -.04em;
font-size: 17px;
}
.panel-meta {
display: flex;
flex-wrap: wrap;
gap: 8px;
font-size: 11px;
color: var(--muted);
}
#panel-body {
min-height: 0;
overflow: auto;
padding: 14px;
background: linear-gradient(180deg, rgba(247, 250, 253, .8), rgba(242, 246, 250, .88));
}
#panel-body::-webkit-scrollbar {
width: 10px;
}
#panel-body::-webkit-scrollbar-thumb {
background: #c7d3e0;
border-radius: 999px;
border: 2px solid transparent;
background-clip: padding-box;
}
.layer-section {
margin-bottom: 16px;
}
.layer-section-title {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 10px;
font-weight: 800;
letter-spacing: .08em;
text-transform: uppercase;
color: var(--muted-2);
margin: 0 0 8px;
}
.layer-item,
.data-item {
display: flex;
align-items: center;
gap: 10px;
border: 1px solid var(--line);
background: var(--panel-strong);
border-radius: var(--radius-sm);
box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.layer-item {
padding: 9px 11px;
margin-bottom: 6px;
transition: all .16s ease;
}
.layer-item:hover,
.data-item:hover {
border-color: #bcd0ff;
box-shadow: 0 10px 20px rgba(22, 93, 255, .08);
}
.layer-item.checked {
background: linear-gradient(180deg, #f8fbff, #eef5ff);
border-color: #cfe0ff;
}
.layer-item.checked .layer-check {
color: #fff;
background: var(--accent);
border-color: var(--accent);
}
.layer-check {
width: 18px;
height: 18px;
border-radius: 5px;
border: 1.5px solid #b8c5d4;
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
font-size: 11px;
color: transparent;
background: #fff;
}
.layer-dot {
width: 12px;
height: 12px;
border-radius: 999px;
flex: 0 0 auto;
}
.layer-label {
font-size: 12px;
font-weight: 600;
color: var(--text);
flex: 1;
min-width: 0;
}
.layer-count {
font-size: 10px;
font-weight: 700;
color: var(--muted);
background: #f4f7fb;
border: 1px solid var(--line);
border-radius: 999px;
padding: 3px 8px;
}
.btn-add {
width: 100%;
text-align: left;
border: 1.5px dashed #aebfda;
background: rgba(255, 255, 255, .92);
color: var(--muted);
border-radius: var(--radius-sm);
padding: 11px 12px;
margin-top: 6px;
transition: all .16s ease;
}
.btn-add:hover,
.btn-add.active {
border-color: var(--accent);
color: var(--accent);
background: var(--accent-soft);
}
.data-list {
display: grid;
gap: 8px;
}
.data-item {
padding: 10px 11px;
transition: all .16s ease;
}
.item-icon {
width: 28px;
height: 28px;
border-radius: 10px;
display: inline-flex;
align-items: center;
justify-content: center;
background: #f3f7fb;
flex: 0 0 auto;
}
.item-info {
flex: 1;
min-width: 0;
}
.item-name {
font-size: 12px;
font-weight: 700;
color: var(--text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.item-sub {
font-size: 10px;
color: var(--muted);
margin-top: 2px;
}
.item-badge {
font-size: 9px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: .04em;
border-radius: 999px;
padding: 4px 8px;
border: 1px solid transparent;
flex: 0 0 auto;
}
.badge-green {
background: #e6f8ec;
color: #15803d;
border-color: #b9ebc9;
}
.badge-red {
background: #feecec;
color: #dc2626;
border-color: #fecaca;
}
.badge-blue {
background: #eaf1ff;
color: #165dff;
border-color: #cfe0ff;
}
.badge-amber {
background: #fff4df;
color: #d97706;
border-color: #f9deb0;
}
.badge-purple {
background: #f1eaff;
color: #7c3aed;
border-color: #ddd2ff;
}
.loading {
padding: 14px;
border: 1px dashed #cbd6e3;
border-radius: var(--radius-sm);
background: rgba(255, 255, 255, .7);
color: var(--muted);
font-size: 12px;
text-align: center;
}
.spinner {
display: inline-block;
width: 12px;
height: 12px;
border: 2px solid rgba(22, 93, 255, .18);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin .8s linear infinite;
margin-right: 8px;
vertical-align: -2px;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
#modal-overlay {
position: fixed;
inset: 0;
display: none;
align-items: center;
justify-content: center;
background: rgba(15, 23, 42, .42);
z-index: 2000;
padding: 18px;
}
#modal-overlay.open {
display: flex;
}
#modal {
width: min(720px, 100%);
max-height: min(90vh, 860px);
background: var(--panel-strong);
border-radius: 24px;
box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
overflow: hidden;
display: grid;
grid-template-rows: auto 1fr auto;
}
.modal-head {
padding: 18px 20px 14px;
border-bottom: 1px solid var(--line);
background: linear-gradient(180deg, #fff, #fbfdff);
}
.modal-head h3 {
margin: 0;
font-family: var(--font-head);
font-size: 18px;
letter-spacing: -.03em;
}
#modal-body {
padding: 18px 20px;
overflow: auto;
background: #fbfcfe;
}
#modal-footer {
padding: 14px 20px 18px;
display: flex;
justify-content: flex-end;
gap: 10px;
border-top: 1px solid var(--line);
background: #fff;
}
.form-group {
margin-bottom: 14px;
}
.form-row {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.form-label {
display: block;
margin-bottom: 6px;
font-size: 12px;
font-weight: 700;
color: var(--text);
}
.form-input,
.form-select {
width: 100%;
border: 1px solid var(--line-strong);
background: #fff;
border-radius: 12px;
padding: 11px 12px;
outline: none;
transition: all .14s ease;
}
.form-input:focus,
.form-select:focus {
border-color: #8eb3ff;
box-shadow: 0 0 0 4px rgba(22, 93, 255, .10);
}
.form-coord,
.form-calc {
margin-bottom: 14px;
padding: 11px 12px;
background: #eef5ff;
color: #1140b8;
border: 1px solid #d7e5ff;
border-radius: 12px;
font-size: 12px;
font-weight: 600;
}
.popup-actions {
display: flex;
gap: 8px;
margin-top: 10px;
}
.popup-drag-hint,
.proximity-info {
margin-top: 10px;
padding: 10px 12px;
border-radius: 12px;
font-size: 12px;
}
.popup-drag-hint {
background: #f3f7fb;
color: var(--muted);
}
.proximity-info.dalam {
background: #e6f8ec;
color: #15803d;
}
.proximity-info.luar {
background: #feecec;
color: #dc2626;
}
.btn {
border: 1px solid transparent;
border-radius: 12px;
padding: 10px 14px;
font-weight: 700;
font-size: 12px;
transition: all .16s ease;
}
.btn:hover {
transform: translateY(-1px);
}
.btn-primary {
background: var(--accent);
color: #fff;
box-shadow: 0 12px 22px rgba(22, 93, 255, .18);
}
.btn-primary:hover {
background: #0d4ae0;
}
.btn-ghost {
background: #fff;
border-color: var(--line);
color: var(--text);
}
.btn-danger {
background: #ef4444;
color: #fff;
}
.btn-sm {
padding: 7px 10px;
border-radius: 10px;
}
#toast-container {
position: fixed;
right: 18px;
bottom: 18px;
display: grid;
gap: 10px;
z-index: 3000;
}
.toast {
min-width: 240px;
max-width: 360px;
border-radius: 14px;
padding: 12px 14px;
color: #fff;
box-shadow: var(--shadow);
animation: toast-in .2s ease;
}
.toast.info {
background: #0f172a;
}
.toast.success {
background: #16a34a;
}
.toast.error {
background: #dc2626;
}
@keyframes toast-in {
from {
opacity: 0;
transform: translateY(8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 1100px) {
#main {
grid-template-columns: 1fr;
}
#panel {
grid-template-rows: auto 360px;
border-left: none;
border-top: 1px solid var(--line);
}
}
@media (max-width: 720px) {
#header {
flex-wrap: wrap;
height: auto;
padding: 12px 14px;
gap: 10px;
}
.header-search {
order: 3;
width: 100%;
max-width: none;
flex-basis: 100%;
}
.header-right {
margin-left: 0;
width: 100%;
justify-content: space-between;
}
.nav-tabs {
width: 100%;
overflow: auto;
}
.form-row {
grid-template-columns: 1fr;
}
#panel {
grid-template-rows: auto minmax(320px, 48vh);
}
#modal {
width: 100%;
border-radius: 20px;
}
}
+193
View File
@@ -0,0 +1,193 @@
/* css/landing.css */
:root {
--bg: #eef3f8;
--text: #0f172a;
--muted: #5b6b82;
--accent: #165dff;
--accent-2: #0ea5e9;
--accent-soft: #eaf1ff;
--shadow-soft: 0 12px 36px rgba(15, 23, 42, .06);
--shadow-hover: 0 24px 48px rgba(22, 93, 255, .15);
--radius-lg: 24px;
--font: 'Inter', sans-serif;
--font-head: 'Space Grotesk', sans-serif;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: var(--font);
color: var(--text);
background:
radial-gradient(circle at 10% 20%, rgba(22, 93, 255, 0.15) 0%, transparent 40%),
radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.12) 0%, transparent 40%),
linear-gradient(135deg, #f8fbff 0%, var(--bg) 100%);
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Navbar */
.landing-header {
padding: 24px 48px;
display: flex;
justify-content: space-between;
align-items: center;
background: rgba(255, 255, 255, 0.6);
backdrop-filter: blur(12px);
border-bottom: 1px solid rgba(255, 255, 255, 0.8);
position: sticky;
top: 0;
z-index: 10;
}
.brand {
text-decoration: none;
display: flex;
flex-direction: column;
}
.brand-title {
font-family: var(--font-head);
font-weight: 700;
font-size: 22px;
color: var(--text);
letter-spacing: -0.04em;
background: linear-gradient(90deg, var(--accent), var(--accent-2));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.brand-sub {
font-size: 13px;
color: var(--muted);
}
/* Hero Section */
.hero {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 24px;
text-align: center;
position: relative;
overflow: hidden;
}
.hero h1 {
font-family: var(--font-head);
font-size: 48px;
font-weight: 800;
letter-spacing: -0.05em;
margin: 0 0 16px;
max-width: 800px;
line-height: 1.1;
color: var(--text);
}
.hero p {
font-size: 18px;
color: var(--muted);
max-width: 600px;
margin: 0 0 48px;
line-height: 1.6;
}
/* Grid Menu */
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 24px;
width: 100%;
max-width: 1100px;
padding: 0 24px;
}
.feature-card {
background: rgba(255, 255, 255, 0.9);
border: 1px solid rgba(255, 255, 255, 1);
border-radius: var(--radius-lg);
padding: 32px 24px;
text-decoration: none;
color: var(--text);
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
box-shadow: var(--shadow-soft);
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
position: relative;
overflow: hidden;
}
.feature-card::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgba(22,93,255,0.05), rgba(14,165,233,0.02));
opacity: 0;
transition: opacity 0.3s ease;
}
.feature-card:hover {
transform: translateY(-8px);
box-shadow: var(--shadow-hover);
border-color: rgba(22, 93, 255, 0.2);
}
.feature-card:hover::before {
opacity: 1;
}
.feature-icon {
width: 72px;
height: 72px;
border-radius: 20px;
display: flex;
align-items: center;
justify-content: center;
font-size: 32px;
margin-bottom: 24px;
background: linear-gradient(135deg, var(--accent-soft), #fff);
color: var(--accent);
box-shadow: 0 8px 16px rgba(22, 93, 255, 0.1);
transition: transform 0.3s ease;
}
.feature-card:hover .feature-icon {
transform: scale(1.1) rotate(5deg);
}
.feature-title {
font-family: var(--font-head);
font-size: 20px;
font-weight: 700;
margin: 0 0 12px;
position: relative;
}
.feature-desc {
font-size: 14px;
color: var(--muted);
line-height: 1.5;
position: relative;
}
/* Footer */
.footer {
text-align: center;
padding: 32px 24px;
font-size: 13px;
color: var(--muted);
border-top: 1px solid rgba(0,0,0,0.05);
}
@media (max-width: 768px) {
.hero h1 { font-size: 36px; }
.features-grid { grid-template-columns: 1fr; }
}