169 lines
3.6 KiB
HTML
169 lines
3.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="id">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Detail Permohonan TPS</title>
|
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap" rel="stylesheet">
|
|
<style>
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
body {
|
|
font-family: 'Open Sans', sans-serif;
|
|
background-color: #f5f5f5;
|
|
padding: 20px;
|
|
color: #222;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.container {
|
|
background-color: #fff;
|
|
padding: 30px;
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 20px rgba(0,0,0,0.05);
|
|
max-width: 500px;
|
|
width: 100%;
|
|
}
|
|
|
|
.back-btn {
|
|
background: none;
|
|
border: none;
|
|
font-size: 24px;
|
|
margin-bottom: 20px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 20px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
p.sub {
|
|
font-size: 13px;
|
|
color: #888;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.detail {
|
|
font-size: 14px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.detail span {
|
|
font-weight: 600;
|
|
display: inline-block;
|
|
width: 140px;
|
|
}
|
|
|
|
.document-link {
|
|
margin: 16px 0 10px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.document-link a {
|
|
color: #3498db;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.document-link a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.actions {
|
|
margin-top: 30px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
}
|
|
|
|
.btn {
|
|
flex: 1 1 200px;
|
|
padding: 14px;
|
|
font-size: 14px;
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.btn.reject {
|
|
background: #fff;
|
|
color: #e74c3c;
|
|
border: 2px solid #e74c3c;
|
|
}
|
|
|
|
.btn.approve {
|
|
background: #e74c3c;
|
|
color: #fff;
|
|
border: none;
|
|
}
|
|
|
|
.action-buttons {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.action-button {
|
|
padding: 10px 20px;
|
|
border-radius: 5px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.terima {
|
|
background-color: #ff4d4d;
|
|
color: white;
|
|
border: none;
|
|
}
|
|
|
|
.tolak {
|
|
background-color: #e2e2e2;
|
|
color: #333;
|
|
border: none;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.actions {
|
|
flex-wrap: nowrap;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<button class="back-btn" onclick="history.back()">←</button>
|
|
|
|
<h2>Permohonan Pindah TPS</h2>
|
|
<p class="sub">Berikut adalah informasi pemindahan TPS yang diajukan oleh masyarakat.</p>
|
|
|
|
<div class="detail"><span>Nomor NIK</span>: 1234567891234567</div>
|
|
<div class="detail"><span>Email</span>: koko@gmail.com</div>
|
|
|
|
<div class="document-link">
|
|
<span>Dokumen Pendukung:</span>
|
|
<a href="img/suketdom.jpeg" target="_blank">Lihat Dokumen</a>
|
|
</div>
|
|
|
|
<div class="action-buttons">
|
|
<button class="action-button tolak">Tolak</button>
|
|
<button class="action-button terima">Terima</button>
|
|
</div>
|
|
|
|
<script>
|
|
document.querySelector('.tolak').addEventListener('click', function() {
|
|
alert('Permohonan telah ditolak');
|
|
window.location.href = 'home-adhoc.html'; // Redirect to home-adhoc.html after rejection
|
|
});
|
|
|
|
document.querySelector('.terima').addEventListener('click', function() {
|
|
alert('Permohonan telah diterima');
|
|
window.location.href = 'home-adhoc.html'; // Redirect to home-adhoc.html after approval
|
|
});
|
|
</script>
|
|
</div>
|
|
</body>
|
|
</html>
|