feat: Add new updated version
All checks were successful
Build Docker / BuildImage (push) Successful in 1m0s
All checks were successful
Build Docker / BuildImage (push) Successful in 1m0s
This commit is contained in:
133
templates/assets/style.css
Normal file
133
templates/assets/style.css
Normal file
@@ -0,0 +1,133 @@
|
||||
:root {
|
||||
--bg-body: #0f172a;
|
||||
--bg-card: #1e293b;
|
||||
--bg-card-hover: #334155;
|
||||
--text-main: #f1f5f9;
|
||||
--text-muted: #94a3b8;
|
||||
--border: #334155;
|
||||
--accent: #3b82f6;
|
||||
--success: #22c55e;
|
||||
--error: #ef4444;
|
||||
--warning: #f59e0b;
|
||||
--shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
body {
|
||||
font-family: system-ui, -apple-system, sans-serif;
|
||||
background-color: var(--bg-body);
|
||||
color: var(--text-main);
|
||||
line-height: 1.5;
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
header {
|
||||
margin-bottom: 2rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
h1 { font-size: 1.5rem; font-weight: 700; }
|
||||
h2 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--text-main); }
|
||||
|
||||
.meta { color: var(--text-muted); font-size: 0.875rem; }
|
||||
|
||||
/* Alerts */
|
||||
.alerts-section { margin-bottom: 2rem; }
|
||||
.alert-box {
|
||||
padding: 1rem;
|
||||
border-radius: 0.5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.alert-box.error { background-color: rgba(239, 68, 68, 0.1); border: 1px solid var(--error); color: #fca5a5; }
|
||||
.alert-box.warning { background-color: rgba(245, 158, 11, 0.1); border: 1px solid var(--warning); color: #fcd34d; }
|
||||
|
||||
/* Grid */
|
||||
.node-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||
gap: 1.5rem;
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.card {
|
||||
background-color: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 0.75rem;
|
||||
padding: 1.5rem;
|
||||
box-shadow: var(--shadow);
|
||||
transition: transform 0.2s, border-color 0.2s;
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
transform: translateY(-2px);
|
||||
border-color: var(--text-muted);
|
||||
}
|
||||
|
||||
.card-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
margin-bottom: 1rem;
|
||||
padding-bottom: 0.75rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.node-name { font-weight: 600; font-size: 1.125rem; }
|
||||
.node-location { font-size: 0.875rem; color: var(--text-muted); }
|
||||
.node-ip { font-family: monospace; font-size: 0.75rem; color: var(--text-muted); background: rgba(0,0,0,0.2); padding: 2px 6px; border-radius: 4px; }
|
||||
|
||||
.status-list { display: flex; flex-direction: column; gap: 0.75rem; }
|
||||
.status-item { display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; }
|
||||
|
||||
.badge {
|
||||
padding: 0.25rem 0.75rem;
|
||||
border-radius: 9999px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.badge.up { background-color: rgba(34, 197, 94, 0.15); color: var(--success); }
|
||||
.badge.down { background-color: rgba(239, 68, 68, 0.15); color: var(--error); }
|
||||
|
||||
.cert-info { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; text-align: right; }
|
||||
|
||||
/* History Table */
|
||||
.table-container {
|
||||
background-color: var(--bg-card);
|
||||
border-radius: 0.75rem;
|
||||
border: 1px solid var(--border);
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
|
||||
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); }
|
||||
th { background-color: rgba(0,0,0,0.2); font-weight: 600; color: var(--text-muted); }
|
||||
tr:last-child td { border-bottom: none; }
|
||||
tr:hover td { background-color: var(--bg-card-hover); }
|
||||
|
||||
.uptime-bar {
|
||||
height: 6px;
|
||||
background-color: var(--bg-body);
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
width: 100px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
.uptime-fill { height: 100%; background-color: var(--success); }
|
||||
.uptime-fill.warn { background-color: var(--warning); }
|
||||
.uptime-fill.bad { background-color: var(--error); }
|
||||
|
||||
.footer { margin-top: 4rem; text-align: center; color: var(--text-muted); font-size: 0.875rem; }
|
||||
a { color: var(--accent); text-decoration: none; }
|
||||
a:hover { text-decoration: underline; }
|
||||
Reference in New Issue
Block a user