Refresh calculator layout for Anomaly Front

This commit is contained in:
2026-01-14 20:02:42 +01:00
parent 328f872588
commit 5c2397a559
10 changed files with 511 additions and 823 deletions
+284 -4
View File
@@ -27,14 +27,13 @@ input[type="text"] {
}
body {
background-image: url("/trlstats/static/img/trlbg1.jpg");
background-repeat: no-repeat;
background: radial-gradient(circle at top, #0f172a 0%, #0b1120 45%, #020617 100%);
background-attachment: fixed;
background-size: cover;
position: relative;
z-index: auto;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
margin: 20px;
color: #e2e8f0;
}
header nav {
@@ -784,7 +783,7 @@ body::before {
content: "";
position: fixed;
inset: 0;
background: linear-gradient(180deg, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.25)), var(--bg-tint);
background: linear-gradient(180deg, rgba(2, 6, 23, 0.45), rgba(2, 6, 23, 0.25));
pointer-events: none;
z-index: 0;
}
@@ -1060,3 +1059,284 @@ th, td {
flex: 1;
}
}
/* --------------------------
Anomaly Front calculator
-------------------------- */
.af-body {
margin: 0;
padding: 32px;
}
.af-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
background: rgba(15, 23, 42, 0.7);
border: 1px solid rgba(148, 163, 184, 0.2);
border-radius: 20px;
padding: 20px 28px;
margin-bottom: 24px;
position: relative;
z-index: 2;
backdrop-filter: blur(12px);
}
.af-brand {
display: flex;
align-items: center;
gap: 16px;
}
.af-badge {
font-size: 0.9rem;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
background: rgba(59, 130, 246, 0.2);
color: #bae6fd;
padding: 6px 12px;
border-radius: 999px;
border: 1px solid rgba(59, 130, 246, 0.35);
}
.af-title {
font-size: 1.5rem;
margin: 0;
color: #f8fafc;
font-weight: 600;
}
.af-subtitle {
margin: 4px 0 0;
color: #cbd5f5;
font-size: 0.95rem;
}
.af-nav {
display: flex;
gap: 16px;
flex-wrap: wrap;
}
.af-nav a {
color: #e2e8f0;
font-weight: 500;
padding: 8px 14px;
border-radius: 999px;
border: 1px solid rgba(148, 163, 184, 0.2);
background: rgba(15, 23, 42, 0.4);
}
.af-nav a:hover {
color: #fff;
background: rgba(59, 130, 246, 0.3);
text-decoration: none;
}
.af-shell {
display: flex;
flex-direction: column;
gap: 24px;
position: relative;
z-index: 2;
}
.af-hero {
display: flex;
flex-wrap: wrap;
gap: 24px;
align-items: center;
justify-content: space-between;
background: rgba(15, 23, 42, 0.65);
border-radius: 24px;
padding: 28px;
border: 1px solid rgba(148, 163, 184, 0.2);
box-shadow: 0 20px 40px rgba(2, 6, 23, 0.4);
}
.af-hero h1 {
margin-top: 0;
color: #f8fafc;
}
.af-hero p {
color: #cbd5f5;
max-width: 560px;
}
.af-status {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 16px;
width: min(520px, 100%);
}
.af-status-label {
text-transform: uppercase;
font-size: 0.75rem;
letter-spacing: 0.08em;
color: #94a3b8;
margin-bottom: 6px;
}
.af-status-value {
margin: 0;
font-weight: 600;
color: #e2e8f0;
}
.af-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 24px;
}
.af-card {
background: rgba(15, 23, 42, 0.65);
border-radius: 20px;
padding: 24px;
border: 1px solid rgba(148, 163, 184, 0.2);
box-shadow: 0 16px 30px rgba(2, 6, 23, 0.35);
}
.af-card-header h2 {
margin-top: 0;
color: #f8fafc;
}
.af-card-header p {
color: #cbd5f5;
margin-bottom: 20px;
}
.af-form {
display: grid;
gap: 14px;
}
.af-form label {
display: grid;
gap: 6px;
color: #e2e8f0;
font-weight: 500;
}
.af-form input {
background: rgba(15, 23, 42, 0.8);
border: 1px solid rgba(148, 163, 184, 0.3);
color: #f8fafc;
}
.af-form-actions {
display: flex;
gap: 12px;
flex-wrap: wrap;
margin-top: 6px;
}
.af-form-actions button {
background: rgba(59, 130, 246, 0.9);
color: #f8fafc;
border: none;
border-radius: 999px;
padding: 10px 18px;
font-weight: 600;
}
#af-reset {
background: rgba(148, 163, 184, 0.4);
}
.af-metrics {
display: grid;
gap: 16px;
}
.af-metric {
background: rgba(2, 6, 23, 0.35);
border-radius: 16px;
padding: 16px;
border: 1px solid rgba(148, 163, 184, 0.15);
}
.af-metric-label {
text-transform: uppercase;
font-size: 0.75rem;
letter-spacing: 0.08em;
color: #94a3b8;
margin-bottom: 8px;
}
.af-metric-value {
margin: 0;
font-size: 1.4rem;
font-weight: 600;
color: #f8fafc;
}
.af-callout {
margin-top: 20px;
background: rgba(59, 130, 246, 0.15);
border-radius: 16px;
padding: 16px;
border: 1px solid rgba(59, 130, 246, 0.35);
}
.af-callout h3 {
margin-top: 0;
color: #e0f2fe;
}
.af-callout ul {
margin: 0;
padding-left: 18px;
color: #cbd5f5;
}
.af-empty {
display: grid;
gap: 12px;
color: #cbd5f5;
background: rgba(2, 6, 23, 0.3);
border-radius: 16px;
padding: 18px;
border: 1px dashed rgba(148, 163, 184, 0.3);
}
.af-muted-button {
background: rgba(148, 163, 184, 0.2);
border-radius: 999px;
padding: 10px 16px;
color: #e2e8f0;
border: none;
width: fit-content;
}
.af-notes {
width: 100%;
min-height: 180px;
border-radius: 16px;
padding: 16px;
background: rgba(15, 23, 42, 0.8);
border: 1px solid rgba(148, 163, 184, 0.3);
color: #f8fafc;
resize: vertical;
}
@media (max-width: 720px) {
.af-body {
padding: 20px;
}
.af-header {
flex-direction: column;
align-items: flex-start;
}
.af-nav {
width: 100%;
justify-content: flex-start;
}
}