This commit introduces a new admin dashboard and a page collection feature. The admin dashboard allows for managing KTP data, including viewing details and exporting data. The page collection provides a structure for organizing different pages within the application. The following files were added: - `dashboard-admin-ktp/index.html`: HTML structure for the admin dashboard. - `dashboard-admin-ktp/script.js`: JavaScript logic for the admin dashboard. - `dashboard-admin-ktp/style.css`: Styling for the admin dashboard. - `page-collection/index.html`: HTML structure for a sample page collection. - `page-collection/script.js`: JavaScript logic for the sample page collection. - `page-collection/style.css`: Styling for the sample page collection. - `design-styles.json`: JSON file to store design styles.
101 lines
3.2 KiB
HTML
101 lines
3.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Admin Dashboard</title>
|
|
<link rel="stylesheet" href="style.css">
|
|
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1>Admin Dashboard</h1>
|
|
<button id="logout-button">Logout</button>
|
|
</header>
|
|
<main>
|
|
<section id="summary">
|
|
<div class="summary-item">
|
|
<h3>Total KTPs Scanned:</h3>
|
|
<p id="total-ktps">0</p>
|
|
</div>
|
|
<div class="summary-item">
|
|
<h3>Originating Regions:</h3>
|
|
<canvas id="regions-chart"></canvas>
|
|
</div>
|
|
</section>
|
|
<section id="ktp-list">
|
|
<h2>KTP List</h2>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>NIK</th>
|
|
<th>Name</th>
|
|
<th>Email</th>
|
|
<th>Phone Number</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="ktp-table-body">
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
|
|
<div id="ktp-modal" class="modal" style="display: none;">
|
|
<div class="modal-content">
|
|
<span class="close">×</span>
|
|
<h2>KTP Details</h2>
|
|
<img src="placeholder-ktp.png" alt="KTP Image" id="ktp-image">
|
|
<p><strong>NIK:</strong> <span id="ktp-nik"></span></p>
|
|
<p><strong>Name:</strong> <span id="ktp-name"></span></p>
|
|
<p><strong>Email:</strong> <span id="ktp-email"></span></p>
|
|
<p><strong>Phone Number:</strong> <span id="ktp-phone"></span></p>
|
|
</div>
|
|
</div>
|
|
<style>
|
|
/* The Modal (background) */
|
|
.modal {
|
|
display: none; /* Hidden by default */
|
|
position: fixed; /* Stay in place */
|
|
z-index: 1; /* Sit on top */
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%; /* Full width */
|
|
height: 100%; /* Full height */
|
|
overflow: auto; /* Enable scroll if needed */
|
|
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
|
|
}
|
|
|
|
/* Modal Content/Box */
|
|
.modal-content {
|
|
background-color: #fefefe;
|
|
margin: 15% auto; /* 15% from the top and centered */
|
|
padding: 20px;
|
|
border: 1px solid #888;
|
|
width: 80%; /* Could be more or less, depending on screen size */
|
|
}
|
|
|
|
/* The Close Button */
|
|
.close {
|
|
color: #aaa;
|
|
float: right;
|
|
font-size: 28px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.close:hover,
|
|
.close:focus {
|
|
color: black;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
#ktp-image {
|
|
max-width: 200px;
|
|
height: auto;
|
|
margin-bottom: 10px;
|
|
}
|
|
</style>
|
|
<button id="export-button">Export to Excel</button>
|
|
</main>
|
|
<script src="script.js"></script>
|
|
</body>
|
|
</html>
|