Refresh Anomaly Front pages and nav

This commit is contained in:
2026-01-14 20:12:40 +01:00
parent 328f872588
commit a7108bdc20
10 changed files with 875 additions and 1030 deletions
+421 -7
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 {
@@ -283,9 +282,9 @@ input[type="text"], input[type="number"], textarea {
}
input[type="text"]:focus, input[type="number"]:focus, textarea:focus {
border-color: black;
box-shadow: 0 0 5px darkred;
background-color: #fff;
border-color: #60a5fa;
box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.35);
background-color: #0f172a;
outline: none;
}
@@ -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,418 @@ 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: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.6));
border: 1px solid rgba(148, 163, 184, 0.25);
border-radius: 24px;
padding: 20px 28px;
margin-bottom: 24px;
position: relative;
z-index: 2;
backdrop-filter: blur(12px);
}
.af-header::before {
content: "";
position: absolute;
inset: 0;
border-radius: 24px;
padding: 1px;
background: linear-gradient(120deg, rgba(56, 189, 248, 0.6), rgba(59, 130, 246, 0.2), rgba(14, 116, 144, 0.5));
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
pointer-events: none;
}
.af-brand {
display: flex;
align-items: center;
gap: 16px;
}
.af-logo {
width: 44px;
height: 44px;
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(2, 1fr);
gap: 4px;
padding: 6px;
border-radius: 14px;
background: rgba(15, 23, 42, 0.8);
border: 1px solid rgba(148, 163, 184, 0.35);
box-shadow: 0 8px 20px rgba(2, 6, 23, 0.45);
}
.af-logo span {
border-radius: 6px;
background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(59, 130, 246, 0.6));
}
.af-logo span:nth-child(2) {
background: linear-gradient(135deg, rgba(14, 116, 144, 0.9), rgba(2, 132, 199, 0.6));
}
.af-logo span:nth-child(3) {
background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(15, 23, 42, 0.6));
}
.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-toggle {
display: none;
align-items: center;
gap: 8px;
padding: 8px 14px;
border-radius: 999px;
background: rgba(15, 23, 42, 0.6);
border: 1px solid rgba(148, 163, 184, 0.35);
color: #e2e8f0;
font-weight: 600;
cursor: pointer;
z-index: 1;
}
.af-nav {
display: flex;
gap: 16px;
flex-wrap: wrap;
z-index: 1;
}
.af-nav-link {
position: relative;
color: #e2e8f0;
font-weight: 500;
padding: 8px 16px;
border-radius: 999px;
border: 1px solid rgba(148, 163, 184, 0.3);
background: rgba(15, 23, 42, 0.4);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.af-nav-link::after {
content: "";
position: absolute;
left: 16px;
right: 16px;
bottom: 6px;
height: 2px;
border-radius: 999px;
background: linear-gradient(90deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.9), rgba(56, 189, 248, 0));
opacity: 0;
transition: opacity 0.2s ease;
}
.af-nav-link:hover {
color: #fff;
background: rgba(59, 130, 246, 0.3);
box-shadow: 0 10px 20px rgba(14, 116, 144, 0.2);
transform: translateY(-1px);
text-decoration: none;
}
.af-nav-link:hover::after {
opacity: 1;
}
.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-actions {
margin-top: 18px;
}
.af-cta {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 10px 18px;
border-radius: 999px;
background: linear-gradient(120deg, rgba(56, 189, 248, 0.9), rgba(59, 130, 246, 0.85));
color: #f8fafc;
font-weight: 600;
border: 1px solid rgba(56, 189, 248, 0.6);
box-shadow: 0 12px 24px rgba(14, 116, 144, 0.35);
}
.af-cta:hover {
color: #fff;
text-decoration: none;
transform: translateY(-1px);
}
.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 input:focus,
.af-notes:focus,
.af-input:focus {
border-color: rgba(56, 189, 248, 0.7);
box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35);
background: rgba(15, 23, 42, 0.92);
color: #f8fafc;
}
.af-field {
display: grid;
gap: 6px;
color: #e2e8f0;
font-weight: 500;
}
.af-input {
width: 100%;
padding: 12px 14px;
border-radius: 12px;
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;
}
.af-copy-grid {
display: grid;
gap: 18px;
color: #cbd5f5;
}
.af-copy-grid ul {
padding-left: 18px;
margin: 8px 0 0;
}
@media (max-width: 720px) {
.af-body {
padding: 20px;
}
.af-header {
flex-direction: column;
align-items: flex-start;
}
.af-nav-toggle {
display: inline-flex;
}
.af-nav {
width: 100%;
flex-direction: column;
align-items: flex-start;
gap: 10px;
display: none;
}
.af-nav.is-open {
display: flex;
}
}