Change : UI/UX design
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Geist+Mono:wght@300;400;500&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}?v=ui3">
|
||||
</head>
|
||||
<body>
|
||||
<div class="layout">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="en" data-theme="dark">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
@@ -10,53 +10,82 @@
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: 'Syne', sans-serif;
|
||||
background: #0a0b0e;
|
||||
background: #07080c;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
min-height: 100vh; color: #e8ecf4;
|
||||
min-height: 100vh; color: #eef1f8;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
body::before {
|
||||
content: ''; position: fixed; inset: 0;
|
||||
content: ''; position: fixed; inset: 0; pointer-events: none;
|
||||
background:
|
||||
radial-gradient(ellipse 80% 60% at 50% -10%, rgba(79,140,255,0.12), transparent 55%),
|
||||
radial-gradient(ellipse 50% 40% at 100% 80%, rgba(183,148,255,0.08), transparent 50%);
|
||||
}
|
||||
body::after {
|
||||
content: ''; position: fixed; inset: 0; pointer-events: none;
|
||||
background-image:
|
||||
linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
|
||||
background-size: 40px 40px; pointer-events: none;
|
||||
linear-gradient(rgba(79,140,255,0.025) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(79,140,255,0.025) 1px, transparent 1px);
|
||||
background-size: 48px 48px;
|
||||
}
|
||||
.card {
|
||||
background: #111318; border: 1px solid #1e2330;
|
||||
border-radius: 20px; padding: 44px 40px; width: 380px; position: relative;
|
||||
background: rgba(14,16,23,0.9);
|
||||
backdrop-filter: blur(24px);
|
||||
border: 1px solid #1a2030;
|
||||
border-radius: 22px;
|
||||
padding: 44px 40px;
|
||||
width: 400px;
|
||||
position: relative;
|
||||
box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.03);
|
||||
animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
|
||||
}
|
||||
@keyframes cardIn {
|
||||
from { opacity: 0; transform: translateY(16px) scale(0.98); }
|
||||
to { opacity: 1; transform: translateY(0) scale(1); }
|
||||
}
|
||||
.card::before {
|
||||
content: ''; position: absolute; top: 0; left: 40px; right: 40px; height: 2px;
|
||||
background: linear-gradient(90deg, #3b82f6, #60a5fa, #a78bfa);
|
||||
content: ''; position: absolute; top: 0; left: 32px; right: 32px; height: 2px;
|
||||
background: linear-gradient(90deg, #4f8cff, #7eb3ff, #b794ff);
|
||||
border-radius: 0 0 4px 4px;
|
||||
}
|
||||
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
|
||||
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
|
||||
.brand-mark {
|
||||
width: 40px; height: 40px; background: #3b82f6; border-radius: 10px;
|
||||
width: 42px; height: 42px;
|
||||
background: linear-gradient(135deg, #4f8cff, #6366f1);
|
||||
border-radius: 12px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-family: 'Geist Mono', monospace; font-weight: 500; font-size: 13px; color: #fff;
|
||||
font-family: 'Geist Mono', monospace; font-weight: 600; font-size: 13px; color: #fff;
|
||||
box-shadow: 0 4px 16px rgba(79,140,255,0.35);
|
||||
}
|
||||
.brand-name { font-size: 18px; font-weight: 700; }
|
||||
.brand-sub { font-size: 11px; color: #4a5568; font-family: 'Geist Mono', monospace; letter-spacing: 0.08em; }
|
||||
label { display: block; font-size: 11px; font-weight: 600; color: #8892a4; letter-spacing: 0.1em; margin-bottom: 7px; }
|
||||
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
|
||||
.brand-sub { font-size: 9px; color: #525d72; font-family: 'Geist Mono', monospace; letter-spacing: 0.14em; margin-top: 2px; }
|
||||
label { display: block; font-size: 10px; font-weight: 700; color: #8b95aa; letter-spacing: 0.12em; margin-bottom: 8px; }
|
||||
input[type="password"] {
|
||||
width: 100%; padding: 11px 14px; background: #181c24;
|
||||
border: 1px solid #262d3d; border-radius: 10px;
|
||||
width: 100%; padding: 12px 16px; background: #141820;
|
||||
border: 1px solid #252d42; border-radius: 12px;
|
||||
font-size: 14px; font-family: 'Geist Mono', monospace;
|
||||
color: #e8ecf4; letter-spacing: 0.1em; margin-bottom: 20px;
|
||||
transition: border-color 0.18s;
|
||||
color: #eef1f8; letter-spacing: 0.08em; margin-bottom: 22px;
|
||||
transition: border-color 0.22s, box-shadow 0.22s;
|
||||
}
|
||||
input[type="password"]:focus {
|
||||
outline: none; border-color: #4f8cff;
|
||||
box-shadow: 0 0 0 3px rgba(79,140,255,0.15);
|
||||
}
|
||||
input[type="password"]:focus { outline: none; border-color: #3b82f6; }
|
||||
button {
|
||||
width: 100%; padding: 12px; background: #3b82f6; color: #fff;
|
||||
border: none; border-radius: 10px; font-size: 14px; font-weight: 600;
|
||||
font-family: 'Syne', sans-serif; cursor: pointer; transition: background 0.18s;
|
||||
width: 100%; padding: 13px;
|
||||
background: linear-gradient(135deg, #4f8cff, #6366f1);
|
||||
color: #fff; border: none; border-radius: 12px;
|
||||
font-size: 14px; font-weight: 700;
|
||||
font-family: 'Syne', sans-serif; cursor: pointer;
|
||||
transition: filter 0.22s, transform 0.15s, box-shadow 0.22s;
|
||||
box-shadow: 0 4px 18px rgba(79,140,255,0.35);
|
||||
}
|
||||
button:hover { background: #2563eb; }
|
||||
button:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(79,140,255,0.45); }
|
||||
button:active { transform: translateY(0); }
|
||||
.error {
|
||||
color: #ef4444; font-size: 12px; margin-bottom: 14px;
|
||||
padding: 9px 12px; background: rgba(239,68,68,0.08);
|
||||
border: 1px solid rgba(239,68,68,0.2); border-radius: 8px;
|
||||
color: #f05252; font-size: 12px; margin-bottom: 16px;
|
||||
padding: 10px 14px; background: rgba(240,82,82,0.08);
|
||||
border: 1px solid rgba(240,82,82,0.22); border-radius: 10px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@@ -1,88 +1,37 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
|
||||
<style>
|
||||
.dash-charts {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 16px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.dash-chart-card {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 18px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
min-height: 260px;
|
||||
}
|
||||
.dash-chart-card h3 {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.06em;
|
||||
color: var(--text2);
|
||||
margin: 0 0 12px;
|
||||
align-self: flex-start;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.dash-chart-card h3 i { color: var(--accent2); font-size: 11px; }
|
||||
.dash-chart-wrap {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
max-width: 200px;
|
||||
height: 200px;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.dash-chart-legend {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px 16px;
|
||||
justify-content: center;
|
||||
margin-top: 12px;
|
||||
font-family: var(--mono);
|
||||
font-size: 10px;
|
||||
color: var(--text2);
|
||||
}
|
||||
.dash-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
|
||||
.dash-chart-legend .dot { width: 8px; height: 8px; border-radius: 50%; }
|
||||
.dash-quick-links {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-top: 10px;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
@media (max-width: 1100px) {
|
||||
.dash-charts { grid-template-columns: 1fr; }
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="metrics-row">
|
||||
<div class="metric-card cpu">
|
||||
<div class="metric-label">CPU USAGE</div>
|
||||
<div class="metric-top">
|
||||
<div class="metric-label">CPU USAGE</div>
|
||||
<div class="metric-icon"><i class="fas fa-microchip"></i></div>
|
||||
</div>
|
||||
<div class="metric-value" id="m-cpu">{{ system.cpu_pct or '…' }}<span>%</span></div>
|
||||
<div class="gauge-bar"><div class="gauge-fill" id="g-cpu" style="width:{{ system.cpu_pct or 0 }}%"></div></div>
|
||||
</div>
|
||||
<div class="metric-card mem">
|
||||
<div class="metric-label">MEMORY</div>
|
||||
<div class="metric-value" id="m-mem" style="font-size:16px;">{{ system.memory or '…' }}</div>
|
||||
<div class="metric-top">
|
||||
<div class="metric-label">MEMORY</div>
|
||||
<div class="metric-icon"><i class="fas fa-memory"></i></div>
|
||||
</div>
|
||||
<div class="metric-value small" id="m-mem">{{ system.memory or '…' }}</div>
|
||||
<div class="gauge-bar"><div class="gauge-fill" id="g-mem" style="width:{{ system.mem_pct or 0 }}%"></div></div>
|
||||
</div>
|
||||
<div class="metric-card disk">
|
||||
<div class="metric-label">DISK /</div>
|
||||
<div class="metric-value" id="m-disk" style="font-size:16px;">{{ system.disk or '…' }}</div>
|
||||
<div class="metric-top">
|
||||
<div class="metric-label">DISK /</div>
|
||||
<div class="metric-icon"><i class="fas fa-hard-drive"></i></div>
|
||||
</div>
|
||||
<div class="metric-value small" id="m-disk">{{ system.disk or '…' }}</div>
|
||||
<div class="gauge-bar"><div class="gauge-fill" id="g-disk" style="width:{{ system.disk_pct or 0 }}%"></div></div>
|
||||
</div>
|
||||
<div class="metric-card load">
|
||||
<div class="metric-label">LOAD AVG</div>
|
||||
<div class="metric-value" id="m-load" style="font-size:16px;">{{ system.load or '…' }}</div>
|
||||
<div class="metric-top">
|
||||
<div class="metric-label">LOAD AVG</div>
|
||||
<div class="metric-icon"><i class="fas fa-gauge-high"></i></div>
|
||||
</div>
|
||||
<div class="metric-value small" id="m-load">{{ system.load or '…' }}</div>
|
||||
<div class="gauge-bar"><div class="gauge-fill" id="g-load" style="width:10%"></div></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -161,8 +110,10 @@
|
||||
datasets: [{
|
||||
data: values,
|
||||
backgroundColor: colors,
|
||||
borderWidth: 0,
|
||||
hoverOffset: 4,
|
||||
borderWidth: 2,
|
||||
borderColor: isDark() ? '#0e1017' : '#ffffff',
|
||||
hoverOffset: 8,
|
||||
hoverBorderWidth: 0,
|
||||
}],
|
||||
},
|
||||
options: {
|
||||
|
||||
Reference in New Issue
Block a user