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>
+129
View File
@@ -0,0 +1,129 @@
:root {
--bg: #0f1115;
--panel: #161b22;
--border: #30363d;
--text: #e6edf3;
--muted: #8b949e;
--accent: #f0883e;
--ok: #3fb950;
}
* { box-sizing: border-box; }
html, body {
margin: 0;
padding: 0;
background: var(--bg);
color: var(--text);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.container {
max-width: 980px;
margin: 40px auto;
padding: 32px;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 12px;
}
.banner {
font-size: 42px;
line-height: 1;
}
h1 {
margin: 12px 0 8px;
font-size: 28px;
font-weight: 700;
}
.subtitle {
margin: 0;
color: var(--muted);
font-size: 16px;
}
.note {
margin: 6px 0 24px;
color: var(--muted);
font-size: 14px;
}
.visitor-panel {
margin-top: 28px;
padding: 18px;
background: #0d1117;
border: 1px solid var(--border);
border-radius: 10px;
}
.visitor-panel h2 {
margin: 0 0 4px;
font-size: 18px;
font-weight: 600;
}
.visitor-note {
margin: 0;
color: var(--muted);
font-size: 13px;
}
.table-wrap {
margin-top: 12px;
overflow-x: auto;
}
table {
width: 100%;
border-collapse: collapse;
font-size: 14px;
}
thead th {
text-align: left;
color: var(--muted);
font-weight: 600;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.08em;
padding: 8px 10px;
border-bottom: 1px solid var(--border);
}
tbody tr:nth-child(even) {
background: rgba(255, 255, 255, 0.02);
}
td {
padding: 10px 10px;
border-bottom: 1px solid var(--border);
vertical-align: top;
}
td.mono {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
color: #c9d1d9;
}
.btn {
margin-top: 14px;
padding: 10px 14px;
background: var(--accent);
color: #fff;
border: none;
border-radius: 8px;
cursor: pointer;
font-weight: 600;
}
.btn:hover {
opacity: .95;
}
footer {
margin-top: 28px;
color: var(--muted);
font-size: 12px;
}