294 lines
6.1 KiB
HTML
294 lines
6.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="id">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Home Pemilih</title>
|
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap" rel="stylesheet">
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
font-family: 'Open Sans', sans-serif;
|
|
background-color: #f5f7fa;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.header {
|
|
background-color: #e74c3c;
|
|
color: white;
|
|
text-align: center;
|
|
padding: 30px 20px 60px;
|
|
border-bottom-left-radius: 40px;
|
|
border-bottom-right-radius: 40px;
|
|
position: relative;
|
|
}
|
|
|
|
.header h1 {
|
|
margin: 10px 0 0;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.tps-label {
|
|
font-size: 14px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.tps-number {
|
|
font-size: 36px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.status-container {
|
|
text-align: center;
|
|
margin-top: 20px;
|
|
background-color: #f39c12;
|
|
padding: 12px;
|
|
border-radius: 8px;
|
|
color: white;
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
width: fit-content;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
max-width: 90%;
|
|
}
|
|
|
|
.content {
|
|
margin-top: -40px;
|
|
padding: 0 20px 40px;
|
|
}
|
|
|
|
.map-container {
|
|
background: white;
|
|
border-radius: 16px;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
iframe {
|
|
width: 100%;
|
|
height: 300px;
|
|
border: none;
|
|
}
|
|
|
|
.btn {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 14px;
|
|
margin-bottom: 15px;
|
|
border: none;
|
|
border-radius: 10px;
|
|
font-size: 16px;
|
|
color: white;
|
|
background-color: #e74c3c;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.btn:hover {
|
|
background-color: #c0392b;
|
|
}
|
|
|
|
.menu-btn {
|
|
position: absolute;
|
|
left: 20px;
|
|
top: 20px;
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
background: none;
|
|
color: white;
|
|
border: none;
|
|
}
|
|
|
|
.profile-icon {
|
|
position: absolute;
|
|
right: 20px;
|
|
top: 20px;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background-color: #fff;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.profile-icon img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
/* Sidebar styles */
|
|
.sidebar {
|
|
position: fixed;
|
|
top: 0;
|
|
left: -100%;
|
|
width: 250px;
|
|
height: 100vh;
|
|
background-color: white;
|
|
box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
|
|
padding: 20px;
|
|
transition: left 0.3s ease;
|
|
z-index: 1001;
|
|
overflow-y: auto;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.sidebar.open {
|
|
left: 0;
|
|
}
|
|
|
|
.sidebar img {
|
|
width: 100px;
|
|
height: auto;
|
|
display: block;
|
|
margin: 0 auto 30px;
|
|
}
|
|
|
|
.sidebar a {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 16px;
|
|
text-decoration: none;
|
|
color: #333;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid #eee;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
.sidebar a span {
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.sidebar a:hover {
|
|
color: #e74c3c;
|
|
}
|
|
|
|
.overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
z-index: 1000;
|
|
display: none;
|
|
}
|
|
|
|
.overlay.show {
|
|
display: block;
|
|
}
|
|
|
|
/* Media Query untuk perangkat kecil (tablet dan ponsel) */
|
|
@media (max-width: 768px) {
|
|
.header h1 {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.tps-number {
|
|
font-size: 28px;
|
|
}
|
|
|
|
.btn {
|
|
padding: 12px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.map-container iframe {
|
|
height: 250px;
|
|
}
|
|
|
|
.menu-btn {
|
|
font-size: 20px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.header h1 {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.tps-number {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.btn {
|
|
padding: 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.map-container iframe {
|
|
height: 200px;
|
|
}
|
|
|
|
.menu-btn {
|
|
font-size: 18px;
|
|
}
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<!-- Sidebar -->
|
|
<div class="sidebar" id="sidebar">
|
|
<img src="favicon.png" alt="Logo KPU">
|
|
<a href="home-pemilih.html"><span>🏠</span> Beranda</a>
|
|
<a href="tps-asal-pemilih.html"><span>📍</span> Permohonan Pindah TPS</a>
|
|
<a href="#" onclick="logout()"><span>🚪</span> Logout</a>
|
|
</div>
|
|
|
|
<div class="overlay" id="overlay" onclick="toggleSidebar()"></div>
|
|
|
|
<!-- Header -->
|
|
<div class="header">
|
|
<button class="menu-btn" onclick="toggleSidebar()">☰</button>
|
|
|
|
<h1>Selamat Pagi!</h1>
|
|
<div class="tps-label">Nomor TPS :</div>
|
|
<div class="tps-number">001</div>
|
|
</div>
|
|
|
|
<!-- Content -->
|
|
<div class="content">
|
|
<div class="map-container">
|
|
<iframe
|
|
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3966.227278429397!2d106.79836367417775!3d-6.235245993752847!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x2e69f15fd3ef90c3%3A0xd3cb7bb548dc2ef5!2sGBK%20Arena!5e0!3m2!1sen!2sid!4v1700000000000!5m2!1sen!2sid"
|
|
allowfullscreen=""
|
|
loading="lazy"
|
|
referrerpolicy="no-referrer-when-downgrade">
|
|
</iframe>
|
|
</div>
|
|
|
|
<a href="https://maps.google.com?q=GBK+Arena" target="_blank" class="btn">Cek Google Maps</a>
|
|
<a href="tps-asal-pemilih.html" class="btn">Ubah Lokasi Memilih</a>
|
|
|
|
<!-- Status Pendaftaran (Ditempatkan di bawah tombol "Ubah Lokasi Memilih") -->
|
|
<div class="status-container">
|
|
Status Pendaftaran: Diproses
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Script -->
|
|
<script>
|
|
function toggleSidebar() {
|
|
document.getElementById("sidebar").classList.toggle("open");
|
|
document.getElementById("overlay").classList.toggle("show");
|
|
}
|
|
|
|
function logout() {
|
|
const confirmation = confirm("Apakah Anda yakin ingin logout?");
|
|
if (confirmation) {
|
|
window.location.href = "index.html";
|
|
} else {
|
|
window.location.href = "home-pemilih.html";
|
|
}
|
|
}
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|