polish premium webui visuals
This commit is contained in:
1 parent
eea0c48a44
commit
60741369f2
3 files changed
+194
-15
No files matched your search
+157
-10
@@ -874,8 +874,12 @@ body {
|
||||
padding: 14px;
|
||||
border: 1px solid rgba(15, 23, 42, 0.08);
|
||||
border-radius: 0;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 28px 70px rgba(15, 23, 42, 0.13);
|
||||
background:
|
||||
linear-gradient(90deg, rgba(109, 93, 252, 0.028), transparent 26%, transparent 74%, rgba(15, 159, 142, 0.025)),
|
||||
#ffffff;
|
||||
box-shadow:
|
||||
0 32px 80px rgba(15, 23, 42, 0.14),
|
||||
0 1px 0 rgba(255, 255, 255, 0.86) inset;
|
||||
overflow: hidden;
|
||||
font-family: var(--font-ui);
|
||||
}
|
||||
@@ -893,6 +897,12 @@ body {
|
||||
"footer";
|
||||
}
|
||||
|
||||
:root:not([data-premium-panel="device"]) .app {
|
||||
background:
|
||||
linear-gradient(180deg, rgba(248, 250, 252, 0.86), rgba(255, 255, 255, 0.98)),
|
||||
#ffffff;
|
||||
}
|
||||
|
||||
.header {
|
||||
position: static;
|
||||
display: flex;
|
||||
@@ -1118,16 +1128,53 @@ body {
|
||||
}
|
||||
|
||||
.overviewCard {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
min-height: 78px;
|
||||
padding: 11px 12px;
|
||||
border-color: #edf0f6;
|
||||
background: linear-gradient(135deg, #ffffff, #f9faff);
|
||||
background:
|
||||
radial-gradient(circle at 92% 18%, rgba(109, 93, 252, 0.12), transparent 28px),
|
||||
linear-gradient(135deg, #ffffff, #f9faff);
|
||||
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
|
||||
}
|
||||
|
||||
.overviewPrimary {
|
||||
min-height: 78px;
|
||||
background: linear-gradient(135deg, #ffffff, #f5f3ff);
|
||||
background:
|
||||
radial-gradient(circle at 92% 18%, rgba(244, 63, 94, 0.13), transparent 31px),
|
||||
linear-gradient(135deg, #ffffff, #f5f3ff);
|
||||
}
|
||||
|
||||
.premiumMetricIcon {
|
||||
position: absolute;
|
||||
top: 14px;
|
||||
right: 14px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
color: #6657f5;
|
||||
background: linear-gradient(135deg, #eeeaff, #ffffff);
|
||||
font-size: 13px;
|
||||
font-weight: 900;
|
||||
box-shadow: 0 8px 18px rgba(109, 93, 252, 0.14);
|
||||
}
|
||||
|
||||
.premiumMetricIcon[data-tone="device"] {
|
||||
color: #0ea5e9;
|
||||
background: linear-gradient(135deg, #e6f6ff, #ffffff);
|
||||
}
|
||||
|
||||
.premiumMetricIcon[data-tone="gift"] {
|
||||
color: #13a56a;
|
||||
background: linear-gradient(135deg, #e7f8ef, #ffffff);
|
||||
}
|
||||
|
||||
.premiumMetricIcon[data-tone="log"] {
|
||||
color: #f97316;
|
||||
background: linear-gradient(135deg, #fff1e4, #ffffff);
|
||||
}
|
||||
|
||||
.overviewValue {
|
||||
@@ -1160,8 +1207,12 @@ body {
|
||||
padding: 13px 14px;
|
||||
border: 1px solid #edf0f6;
|
||||
border-radius: 8px;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 252, 255, 0.96)),
|
||||
#ffffff;
|
||||
box-shadow:
|
||||
0 8px 24px rgba(15, 23, 42, 0.045),
|
||||
0 1px 0 rgba(255, 255, 255, 0.9) inset;
|
||||
}
|
||||
|
||||
.premiumDashHead {
|
||||
@@ -1196,7 +1247,7 @@ body {
|
||||
|
||||
.premiumTrendSvg {
|
||||
width: 100%;
|
||||
height: 150px;
|
||||
height: 170px;
|
||||
}
|
||||
|
||||
.premiumTrendGrid {
|
||||
@@ -1214,6 +1265,7 @@ body {
|
||||
stroke: #6d5dfc;
|
||||
stroke-width: 3;
|
||||
stroke-linecap: round;
|
||||
filter: drop-shadow(0 6px 7px rgba(109, 93, 252, 0.18));
|
||||
}
|
||||
|
||||
.premiumTrendGhost {
|
||||
@@ -1224,6 +1276,26 @@ body {
|
||||
stroke-linecap: round;
|
||||
}
|
||||
|
||||
.premiumTrendAxis,
|
||||
.premiumTrendTick {
|
||||
fill: #8a94a6;
|
||||
font-family: var(--font-ui);
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.premiumTrendPoint {
|
||||
fill: #ffffff;
|
||||
stroke: #6d5dfc;
|
||||
stroke-width: 2;
|
||||
}
|
||||
|
||||
.premiumTrendPointHot {
|
||||
fill: #6d5dfc;
|
||||
stroke: #ffffff;
|
||||
filter: drop-shadow(0 5px 7px rgba(109, 93, 252, 0.35));
|
||||
}
|
||||
|
||||
.premiumDeviceTable,
|
||||
.premiumLatestLogs {
|
||||
display: grid;
|
||||
@@ -1242,10 +1314,23 @@ body {
|
||||
}
|
||||
|
||||
.premiumDeviceRow {
|
||||
grid-template-columns: 70px minmax(0, 1fr) 44px;
|
||||
grid-template-columns: 78px minmax(0, 1fr) 50px;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.premiumDeviceHead {
|
||||
min-height: 26px;
|
||||
color: #667085;
|
||||
background: #f8faff;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.premiumDeviceHead b,
|
||||
.premiumDeviceHead em {
|
||||
color: #667085;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.premiumDeviceRow b {
|
||||
overflow: hidden;
|
||||
color: #111827;
|
||||
@@ -1287,10 +1372,21 @@ body {
|
||||
|
||||
:root:not([data-premium-panel="device"]) .configWorkspace {
|
||||
max-height: none;
|
||||
padding-right: 6px;
|
||||
padding: 12px 6px 0;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
:root:not([data-premium-panel="device"]) .configRail {
|
||||
border-color: #e7ebf3;
|
||||
box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
|
||||
}
|
||||
|
||||
:root:not([data-premium-panel="device"]) .sideNav {
|
||||
border: 1px solid #e9edf5;
|
||||
border-radius: 8px;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.workspaceHeader {
|
||||
display: none;
|
||||
}
|
||||
@@ -1309,17 +1405,45 @@ body {
|
||||
}
|
||||
|
||||
.premiumConfigCard {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
min-width: 0;
|
||||
padding: 11px 14px 10px;
|
||||
border: 1px solid #eceff6;
|
||||
border-radius: 8px;
|
||||
background: #ffffff;
|
||||
background:
|
||||
linear-gradient(90deg, rgba(109, 93, 252, 0.028), transparent 44%),
|
||||
#ffffff;
|
||||
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
|
||||
opacity: 1 !important;
|
||||
transform: none !important;
|
||||
animation: none !important;
|
||||
}
|
||||
|
||||
.premiumConfigCard::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 12px;
|
||||
bottom: 12px;
|
||||
width: 3px;
|
||||
border-radius: 0 99px 99px 0;
|
||||
background: linear-gradient(180deg, #6d5dfc, #22c55e);
|
||||
opacity: 0.82;
|
||||
}
|
||||
|
||||
.premiumConfigCard::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: -82px;
|
||||
top: -92px;
|
||||
width: 190px;
|
||||
height: 190px;
|
||||
border-radius: 50%;
|
||||
background: radial-gradient(circle, rgba(109, 93, 252, 0.08), transparent 68%);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.premiumConfigHead {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -1417,6 +1541,12 @@ body {
|
||||
box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
|
||||
}
|
||||
|
||||
.premiumField input:hover,
|
||||
.premiumField select:hover {
|
||||
border-color: #cdd5e5;
|
||||
background: #fbfcff;
|
||||
}
|
||||
|
||||
.premiumField input:focus,
|
||||
.premiumField select:focus {
|
||||
border-color: #7568ff;
|
||||
@@ -1614,6 +1744,23 @@ body {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
:root:not([data-premium-panel="device"]) .cardTitle {
|
||||
margin: 0 0 12px;
|
||||
padding: 13px 14px;
|
||||
border: 1px solid #edf0f6;
|
||||
border-radius: 8px;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
|
||||
}
|
||||
|
||||
:root:not([data-premium-panel="device"]) .logSection {
|
||||
border: 1px solid #e3e9f1;
|
||||
border-radius: 8px;
|
||||
background: #f8fbfa;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
|
||||
}
|
||||
|
||||
.panel > .sectionTitle {
|
||||
margin: 8px 0 0;
|
||||
padding: 13px 14px 9px;
|
||||
|
||||
+2
-2
@@ -21,7 +21,7 @@
|
||||
<link rel="stylesheet" href="css/logs.css?v=console-20260531-split-css-3" />
|
||||
<link rel="stylesheet" href="css/charts.css?v=console-20260531-split-css-3" />
|
||||
<link rel="stylesheet" href="styles.css?v=console-20260531-split-css-3" />
|
||||
<link rel="stylesheet" href="css/premium.css?v=console-20260601-reference-font-2" />
|
||||
<link rel="stylesheet" href="css/premium.css?v=console-20260601-premium-polish-3" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="app">
|
||||
@@ -845,6 +845,6 @@
|
||||
<script src="js/ui_init.js?v=console-20260531-split-8"></script>
|
||||
<script src="js/runtime_actions.js?v=console-20260531-split-8"></script>
|
||||
<script src="app.js?v=console-20260531-split-8"></script>
|
||||
<script src="js/premium_ui.js?v=console-20260601-reference-font-2"></script>
|
||||
<script src="js/premium_ui.js?v=console-20260601-premium-polish-3"></script>
|
||||
</body>
|
||||
</html>
|
||||
+35
-3
@@ -12,6 +12,7 @@
|
||||
syncActivePanelState();
|
||||
ensureReferenceWorkspace();
|
||||
ensureDashboardRail();
|
||||
enhanceMetricCards();
|
||||
bindReplicaBindings();
|
||||
updateReplicaBindings();
|
||||
updateDashboardRail();
|
||||
@@ -241,6 +242,24 @@
|
||||
workspace.scrollTop = 0;
|
||||
}
|
||||
|
||||
function enhanceMetricCards() {
|
||||
const specs = [
|
||||
["运行", "run"],
|
||||
["设备", "device"],
|
||||
["福袋", "gift"],
|
||||
["日志", "log"],
|
||||
];
|
||||
document.querySelectorAll(".overviewCard").forEach((card, index) => {
|
||||
if (card.querySelector(".premiumMetricIcon")) return;
|
||||
const [label, tone] = specs[index] || ["状态", "default"];
|
||||
const icon = document.createElement("span");
|
||||
icon.className = "premiumMetricIcon";
|
||||
icon.dataset.tone = tone;
|
||||
icon.textContent = label.slice(0, 1);
|
||||
card.appendChild(icon);
|
||||
});
|
||||
}
|
||||
|
||||
function bindReplicaBindings() {
|
||||
document.querySelectorAll("[data-premium-click]").forEach((btn) => {
|
||||
if (btn.dataset.premiumClickBound === "1") return;
|
||||
@@ -319,10 +338,20 @@
|
||||
<stop offset="100%" stop-color="#6d5dfc" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<path class="premiumTrendGrid" d="M38 30 H500 M38 70 H500 M38 110 H500 M38 150 H500"/>
|
||||
<path class="premiumTrendGrid" d="M38 30 H500 M38 70 H500 M38 110 H500 M38 150 H500 M38 30 V156 M142 30 V156 M246 30 V156 M350 30 V156 M454 30 V156"/>
|
||||
<text class="premiumTrendAxis" x="6" y="34">4,000</text>
|
||||
<text class="premiumTrendAxis" x="6" y="74">3,000</text>
|
||||
<text class="premiumTrendAxis" x="6" y="114">2,000</text>
|
||||
<text class="premiumTrendAxis" x="12" y="154">0</text>
|
||||
<path class="premiumTrendArea" d="M38 148 C72 146 85 135 112 136 C150 138 162 115 198 112 C242 107 260 82 300 76 C338 70 354 44 396 48 C432 52 450 72 500 68 L500 170 L38 170 Z"/>
|
||||
<path class="premiumTrendLine" d="M38 148 C72 146 85 135 112 136 C150 138 162 115 198 112 C242 107 260 82 300 76 C338 70 354 44 396 48 C432 52 450 72 500 68"/>
|
||||
<path class="premiumTrendGhost" d="M38 158 C88 150 112 150 150 142 C198 133 214 124 260 122 C312 118 348 94 396 96 C438 98 456 112 500 108"/>
|
||||
<circle class="premiumTrendPoint" cx="198" cy="112" r="3.5"/>
|
||||
<circle class="premiumTrendPoint" cx="300" cy="76" r="3.5"/>
|
||||
<circle class="premiumTrendPoint premiumTrendPointHot" cx="396" cy="48" r="4.5"/>
|
||||
<text class="premiumTrendTick" x="38" y="184">00:00</text>
|
||||
<text class="premiumTrendTick" x="246" y="184">12:00</text>
|
||||
<text class="premiumTrendTick" x="470" y="184">24:00</text>
|
||||
</svg>
|
||||
</section>
|
||||
<section class="premiumDashCard">
|
||||
@@ -367,12 +396,15 @@
|
||||
|
||||
deviceTable.innerHTML = "";
|
||||
[
|
||||
["设备名称", "状态摘要", "状态"],
|
||||
["当前设备", selectedDevice, runState],
|
||||
["连接状态", adbState, "在线"],
|
||||
["运行信息", runMeta, "同步"],
|
||||
].forEach((row) => {
|
||||
["策略队列", "预约 / 福袋 / 养号", "就绪"],
|
||||
["日志链路", "运行日志 + 行为日志", "正常"],
|
||||
].forEach((row, index) => {
|
||||
const item = document.createElement("div");
|
||||
item.className = "premiumDeviceRow";
|
||||
item.className = index === 0 ? "premiumDeviceRow premiumDeviceHead" : "premiumDeviceRow";
|
||||
item.innerHTML = `<span>${escapeSmall(row[0])}</span><b>${escapeSmall(row[1])}</b><em>${escapeSmall(row[2])}</em>`;
|
||||
deviceTable.appendChild(item);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user