Switch to Django with visitor tracking and server info footnote
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
This commit is contained in:
87
core/templates/core/index.html
Normal file
87
core/templates/core/index.html
Normal file
@@ -0,0 +1,87 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>k-boris.tech</title>
|
||||
<style>
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||||
background: #0f172a;
|
||||
color: #e2e8f0;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
main {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
h1 { font-size: 2.5rem; letter-spacing: -0.05em; }
|
||||
.sub { color: #94a3b8; margin-top: 0.5rem; }
|
||||
footer {
|
||||
background: #0a0f1e;
|
||||
border-top: 1px solid #1e293b;
|
||||
padding: 1.5rem 2rem;
|
||||
font-size: 0.78rem;
|
||||
color: #64748b;
|
||||
}
|
||||
.grid {
|
||||
max-width: 900px;
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 1.5rem;
|
||||
}
|
||||
.section h3 {
|
||||
color: #94a3b8;
|
||||
font-size: 0.68rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
.section p { line-height: 2; }
|
||||
.val { color: #38bdf8; font-variant-numeric: tabular-nums; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<div style="text-align:center">
|
||||
<h1>k-boris.tech</h1>
|
||||
<p class="sub">Work in progress.</p>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<div class="grid">
|
||||
|
||||
<div class="section">
|
||||
<h3>Your Visit</h3>
|
||||
<p>IP address: <span class="val">{{ visitor_ip }}</span></p>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<h3>Site Traffic</h3>
|
||||
<p>
|
||||
Today: <span class="val">{{ visits_today }}</span><br>
|
||||
This week: <span class="val">{{ visits_week }}</span><br>
|
||||
This month: <span class="val">{{ visits_month }}</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<h3>Server</h3>
|
||||
<p>
|
||||
Uptime: <span class="val">{{ uptime }}</span><br>
|
||||
Load (1/5/15m): <span class="val">{{ load }}</span><br>
|
||||
Memory: <span class="val">{{ mem_used }} MB used / {{ mem_total }} MB total</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user