Add under-construction placeholder with visitor log UI

This commit is contained in:
2026-06-18 07:50:45 -05:00
commit ac9dadc3db
2 changed files with 206 additions and 0 deletions
+77
View File
@@ -0,0 +1,77 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Site Under Construction</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="container">
<div class="banner">🚧</div>
<h1>Service Temporarily Down</h1>
<p class="subtitle">This site is currently under construction.</p>
<p class="note">Were working on something better. Please check back soon.</p>
<div class="visitor-panel">
<h2>Recent Visitors</h2>
<p class="visitor-note">Showing the last 50 visitors. IP octets are masked for privacy.</p>
<div class="table-wrap">
<table id="visitors">
<thead>
<tr>
<th>#</th>
<th>IP Address</th>
<th>Location</th>
<th>Time</th>
</tr>
</thead>
<tbody id="visitor-body">
<!-- Populated by JS (static demo below) -->
</tbody>
</table>
</div>
<button id="refresh" class="btn">Refresh</button>
</div>
<footer>Protected access · Visitor logging is masked for privacy</footer>
</div>
<script>
const DEMO = [
{ ip: "192.168.1.42", loc: "Overland Park, KS", time: "2026-06-18 07:12" },
{ ip: "10.0.10.55", loc: "Kansas City, MO", time: "2026-06-18 07:10" },
{ ip: "172.16.0.9", loc: "Olathe, KS", time: "2026-06-18 07:05" },
{ ip: "192.168.2.201", loc: "Lenexa, KS", time: "2026-06-18 06:58" },
{ ip: "10.20.30.40", loc: " Shawnee, KS", time: "2026-06-18 06:50" }
];
function maskIp(ip) {
const parts = ip.split('.');
if (parts.length !== 4) return '****';
return `${parts[0]}.***.***`;
}
function render(rows) {
const body = document.getElementById('visitor-body');
body.innerHTML = '';
rows.slice(0, 50).forEach((row, idx) => {
const tr = document.createElement('tr');
tr.innerHTML = `
<td>${idx + 1}</td>
<td class="mono">${maskIp(row.ip)}</td>
<td>${row.loc}</td>
<td>${row.time}</td>
`;
body.appendChild(tr);
});
}
document.getElementById('refresh').addEventListener('click', () => {
render(DEMO);
});
render(DEMO);
</script>
</body>
</html>