183 lines
5.8 KiB
PHP
183 lines
5.8 KiB
PHP
<?php
|
|
session_start();
|
|
$role = $_SESSION['role'] ?? null;
|
|
$is_logged_in = isset($_SESSION['login']);
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="id">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Portal Utama - WebGIS Poverty Mapping</title>
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"/>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap" rel="stylesheet">
|
|
<style>
|
|
:root {
|
|
--primary: #2563eb;
|
|
--primary-dark: #1e40af;
|
|
--sosial: #db2777;
|
|
--infra: #059669;
|
|
--bg: #f8fafc;
|
|
--dark: #0f172a;
|
|
}
|
|
body {
|
|
font-family: 'Inter', sans-serif;
|
|
background: var(--bg);
|
|
margin: 0;
|
|
padding: 0;
|
|
color: var(--dark);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
}
|
|
.header {
|
|
text-align: center;
|
|
margin-bottom: 40px;
|
|
}
|
|
.header h1 {
|
|
font-size: 3rem;
|
|
font-weight: 800;
|
|
margin: 0;
|
|
background: linear-gradient(135deg, var(--primary), #8b5cf6);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
.header p {
|
|
font-size: 1.2rem;
|
|
color: #64748b;
|
|
margin-top: 10px;
|
|
}
|
|
.portal-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 30px;
|
|
width: 100%;
|
|
max-width: 1000px;
|
|
padding: 0 20px;
|
|
box-sizing: border-box;
|
|
}
|
|
.portal-card {
|
|
background: white;
|
|
border-radius: 20px;
|
|
padding: 40px 30px;
|
|
text-align: center;
|
|
box-shadow: 0 10px 30px rgba(0,0,0,0.05);
|
|
transition: transform 0.3s, box-shadow 0.3s;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
.portal-card:hover {
|
|
transform: translateY(-10px);
|
|
box-shadow: 0 20px 40px rgba(0,0,0,0.1);
|
|
}
|
|
.card-icon {
|
|
font-size: 4rem;
|
|
margin-bottom: 20px;
|
|
}
|
|
.card-infra .card-icon { color: var(--infra); }
|
|
.card-sosial .card-icon { color: var(--sosial); }
|
|
.card-warga .card-icon { color: var(--primary); }
|
|
|
|
.portal-card h2 {
|
|
font-size: 1.5rem;
|
|
margin: 0 0 15px 0;
|
|
font-weight: 600;
|
|
}
|
|
.portal-card p {
|
|
color: #64748b;
|
|
font-size: 0.95rem;
|
|
line-height: 1.5;
|
|
margin-bottom: 25px;
|
|
}
|
|
.btn-enter {
|
|
display: inline-block;
|
|
padding: 12px 25px;
|
|
border-radius: 10px;
|
|
color: white;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
transition: 0.3s;
|
|
}
|
|
.card-infra .btn-enter { background: var(--infra); }
|
|
.card-sosial .btn-enter { background: var(--sosial); }
|
|
.card-warga .btn-enter { background: var(--primary); }
|
|
|
|
.btn-enter:hover {
|
|
opacity: 0.9;
|
|
transform: scale(1.05);
|
|
}
|
|
.auth-bar {
|
|
position: absolute;
|
|
top: 20px;
|
|
right: 30px;
|
|
}
|
|
.btn-auth {
|
|
background: white;
|
|
color: var(--primary);
|
|
padding: 10px 20px;
|
|
border-radius: 10px;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.05);
|
|
transition: 0.3s;
|
|
}
|
|
.btn-auth.logout {
|
|
color: #ef4444;
|
|
}
|
|
.btn-auth:hover {
|
|
box-shadow: 0 6px 12px rgba(0,0,0,0.1);
|
|
}
|
|
.locked-badge {
|
|
position: absolute;
|
|
top: 20px;
|
|
right: 20px;
|
|
background: #f1f5f9;
|
|
color: #94a3b8;
|
|
padding: 5px 10px;
|
|
border-radius: 8px;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
|
|
|
|
<div class="header">
|
|
<h1>WebGIS Poverty Mapping</h1>
|
|
<p>Pusat Integrasi Data GIS Kota Pontianak</p>
|
|
</div>
|
|
|
|
<div class="portal-grid">
|
|
<!-- Project 1: Infrastruktur -->
|
|
<div class="portal-card card-infra">
|
|
<i class="fas fa-city card-icon"></i>
|
|
<h2>Fasilitas & Tata Kota</h2>
|
|
<p>Manajemen data spasial fasilitas umum, jaringan jalan raya, batas kepemilikan lahan, dan lokasi SPBU.</p>
|
|
<a href="../infra/index.php" class="btn-enter">Buka Dashboard <i class="fas fa-arrow-right"></i></a>
|
|
</div>
|
|
|
|
<!-- Project 2: Sosial & Warga -->
|
|
<div class="portal-card card-sosial">
|
|
<i class="fas fa-hands-helping card-icon"></i>
|
|
<h2>Sosial & Kemasyarakatan</h2>
|
|
<p>Pemetaan kawasan rentan, distribusi penduduk, pemantauan rumah ibadah, dan pelaporan darurat.</p>
|
|
<a href="../sosial/index.php" class="btn-enter">Buka Dashboard <i class="fas fa-arrow-right"></i></a>
|
|
</div>
|
|
|
|
<!-- Project 3: Publik / Warga -->
|
|
<div class="portal-card card-warga">
|
|
<i class="fas fa-bullhorn card-icon"></i>
|
|
<h2>Portal Publik (Warga)</h2>
|
|
<p>Akses terbuka untuk masyarakat. Lihat fasilitas umum terdekat dan lakukan pelaporan cepat kedaruratan.</p>
|
|
<a href="../warga/index.php" class="btn-enter">Akses Publik <i class="fas fa-arrow-right"></i></a>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|