feat: redesign portal UX and stabilize web session runtime

This commit is contained in:
2026-04-13 08:35:07 +00:00
commit fc46d90194
29 changed files with 3915 additions and 0 deletions

BIN
app/static/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -0,0 +1,7 @@
<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120" fill="none">
<rect width="120" height="120" rx="16" fill="#E8EFF6"/>
<rect x="20" y="28" width="80" height="16" rx="6" fill="#B8CBDC"/>
<rect x="20" y="52" width="80" height="40" rx="8" fill="#CBD9E7"/>
<circle cx="36" cy="72" r="8" fill="#9FB4C8"/>
<rect x="50" y="66" width="38" height="12" rx="6" fill="#9FB4C8"/>
</svg>

After

Width:  |  Height:  |  Size: 421 B

330
app/static/style.css Normal file
View File

@@ -0,0 +1,330 @@
:root {
--bg: #f4f6f8;
--fg: #1a2634;
--card: #ffffff;
--accent: #0f5b94;
--line: #d6e1eb;
}
body {
margin: 0;
font-family: "IBM Plex Sans", sans-serif;
color: var(--fg);
background: radial-gradient(circle at top right, #d7e8f7, var(--bg) 45%);
}
.center-box {
min-height: 100vh;
display: grid;
place-content: center;
gap: 1rem;
padding: 1.2rem;
}
.brand-logo {
width: min(440px, 80vw);
height: auto;
justify-self: center;
}
.brand-logo-fullscreen {
width: min(23vw, 360px);
max-height: 14vh;
object-fit: contain;
}
.login-page .panel {
width: min(520px, 92vw);
justify-self: center;
}
.login-title {
text-align: center;
margin: 0;
font-size: clamp(1.1rem, 2.2vw, 1.6rem);
}
.header-logo {
width: 120px;
height: auto;
}
.panel {
background: var(--card);
padding: 1.25rem;
border-radius: 12px;
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
display: grid;
gap: 0.5rem;
min-width: 320px;
}
input, button, textarea {
padding: 0.6rem;
border-radius: 8px;
border: 1px solid #bdd1e2;
font: inherit;
}
textarea {
min-height: 92px;
resize: vertical;
}
button {
background: var(--accent);
color: #fff;
border: none;
cursor: pointer;
}
.btn-link {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.58rem 0.9rem;
border-radius: 8px;
background: #0f5b94;
color: #fff;
text-decoration: none;
font-weight: 600;
}
.btn-link.secondary {
background: #e7eef5;
color: #16344f;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
padding: 1rem 1.25rem;
background: #fff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 1rem;
padding: 1rem;
}
.admin-layout {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
padding: 1rem;
max-width: 1400px;
margin: 0 auto;
}
.admin-intro {
border: 1px solid var(--line);
border-radius: 10px;
background: #f8fbfe;
padding: 0.8rem 0.9rem;
color: #2b4760;
line-height: 1.4;
}
.summary-strip {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 0.6rem;
margin: 0.7rem 0 0.8rem;
}
.summary-card {
border: 1px solid var(--line);
border-radius: 10px;
background: #fff;
padding: 0.65rem 0.75rem;
}
.summary-label {
color: #53718c;
font-size: 0.8rem;
}
.summary-value {
margin-top: 0.2rem;
font-weight: 700;
color: #14354f;
}
.form-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 0.5rem;
margin-bottom: 0.5rem;
}
.labelled-grid {
gap: 0.7rem;
}
.field-col {
display: grid;
gap: 0.32rem;
}
.field-col > span {
font-size: 0.83rem;
color: #44627d;
font-weight: 600;
}
.field-help {
margin: -0.2rem 0 0.4rem;
color: #52708a;
font-size: 0.85rem;
}
.admin-table {
width: 100%;
border-collapse: collapse;
font-size: 14px;
}
.admin-table th,
.admin-table td {
border-bottom: 1px solid #e2e8ef;
padding: 0.45rem 0.35rem;
text-align: left;
vertical-align: top;
}
.actions {
display: flex;
gap: 0.35rem;
}
.acl-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 0.35rem;
margin: 0.6rem 0;
}
.tab-row {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}
.tab-btn {
background: #e7eef5;
color: #15344f;
}
.active-tab {
background: #0f5b94;
color: #fff;
}
.split {
display: grid;
grid-template-columns: 320px 1fr;
gap: 1rem;
}
.list-title {
font-weight: 600;
margin-bottom: 0.4rem;
}
.list-box {
border: 1px solid var(--line);
border-radius: 10px;
background: #f8fbfe;
max-height: 460px;
overflow: auto;
padding: 0.3rem;
}
.list-search {
width: 100%;
box-sizing: border-box;
margin-bottom: 0.45rem;
background: #fff;
}
.list-item {
width: 100%;
text-align: left;
margin-bottom: 0.35rem;
background: #fff;
color: #17354f;
border: 1px solid #d6e1eb;
}
.list-item.selected-item {
border-color: #4b8fc4;
box-shadow: inset 0 0 0 1px rgba(75, 143, 196, 0.35);
background: #f1f8ff;
}
.service-row {
display: flex;
align-items: center;
gap: 0.6rem;
}
.service-thumb {
width: 40px;
height: 40px;
border-radius: 8px;
object-fit: cover;
border: 1px solid #d8e3ed;
background: #edf3f9;
flex: 0 0 40px;
}
.service-icon-preview {
width: 80px;
height: 80px;
border-radius: 10px;
object-fit: cover;
border: 1px solid #d8e3ed;
background: #edf3f9;
}
.icon-row {
display: flex;
gap: 0.8rem;
align-items: center;
}
.status-dot {
display: inline-block;
width: 9px;
height: 9px;
border-radius: 999px;
margin-right: 0.35rem;
}
.status-ok { background: #17a35d; }
.status-degraded { background: #f1a312; }
.status-down { background: #d33d3d; }
.health-box, .icon-box {
border: 1px solid #d6e1eb;
background: #f8fbfe;
border-radius: 10px;
padding: 0.8rem;
}
.container-table-wrap {
margin-top: 0.6rem;
max-height: 220px;
overflow: auto;
border: 1px solid #d6e1eb;
border-radius: 8px;
background: #fff;
}
.muted {
color: #4b6178;
font-size: 0.86rem;
}
@media (max-width: 900px) {
.split {
grid-template-columns: 1fr;
}
.brand-logo-fullscreen {
width: min(42vw, 260px);
max-height: 20vh;
}
}
.tile {
display: block;
text-decoration: none;
background: var(--card);
color: inherit;
border-radius: 12px;
padding: 1rem;
box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
border: 1px solid transparent;
transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tile:hover {
transform: translateY(-2px);
border-color: #bdd3e6;
box-shadow: 0 14px 26px rgba(15, 64, 103, 0.12);
}
.tile-icon {
width: 56px;
height: 56px;
border-radius: 10px;
object-fit: cover;
border: 1px solid #d8e3ed;
background: #edf3f9;
margin-bottom: 0.5rem;
}
.tile h3 {
margin: 0.1rem 0 0.25rem;
}
.tile p {
margin: 0;
color: #48637c;
}
.tile small {
display: block;
margin-top: 0.45rem;
color: #4b6178;
}