You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
208 lines
3.4 KiB
Vue
208 lines
3.4 KiB
Vue
|
|
<style scoped>
|
|
.screen-page {
|
|
background: #0f0f1a;
|
|
color: #e0e0e0;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-family: 'Microsoft YaHei', sans-serif;
|
|
overflow: hidden;
|
|
}
|
|
.screen-header {
|
|
height: 50px;
|
|
background: #1a1a2e;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 24px;
|
|
border-bottom: 1px solid #2a2a3e;
|
|
flex-shrink: 0;
|
|
}
|
|
.header-left {
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
color: #00e5ff;
|
|
letter-spacing: 2px;
|
|
}
|
|
.header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.header-time {
|
|
color: #aaa;
|
|
font-size: 14px;
|
|
font-family: 'Consolas', monospace;
|
|
}
|
|
.stat-row {
|
|
display: flex;
|
|
gap: 16px;
|
|
padding: 16px 24px;
|
|
flex-shrink: 0;
|
|
}
|
|
.stat-card {
|
|
flex: 1;
|
|
background: #1a1a2e;
|
|
border-radius: 8px;
|
|
padding: 12px 16px;
|
|
text-align: center;
|
|
border: 1px solid #2a2a3e;
|
|
transition: box-shadow 0.3s;
|
|
}
|
|
.stat-card:hover {
|
|
box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
|
|
}
|
|
.stat-label {
|
|
font-size: 13px;
|
|
color: #909399;
|
|
margin-bottom: 4px;
|
|
}
|
|
.stat-value {
|
|
font-size: 28px;
|
|
font-weight: bold;
|
|
letter-spacing: 1px;
|
|
}
|
|
.stat-sub {
|
|
font-size: 12px;
|
|
color: #606266;
|
|
margin-top: 2px;
|
|
}
|
|
.chart-row {
|
|
display: flex;
|
|
gap: 16px;
|
|
padding: 0 24px 16px;
|
|
flex-shrink: 0;
|
|
}
|
|
.chart-card {
|
|
flex: 1;
|
|
background: #1a1a2e;
|
|
border-radius: 8px;
|
|
padding: 12px;
|
|
border: 1px solid #2a2a3e;
|
|
height: 300px;
|
|
}
|
|
.chart-title {
|
|
font-size: 14px;
|
|
color: #bbb;
|
|
margin-bottom: 8px;
|
|
}
|
|
.chart-container {
|
|
width: 100%;
|
|
height: calc(100% - 30px);
|
|
}
|
|
.bottom-row {
|
|
display: flex;
|
|
gap: 16px;
|
|
padding: 0 24px 16px;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
.rank-card {
|
|
flex: 1;
|
|
background: #1a1a2e;
|
|
border-radius: 8px;
|
|
padding: 12px;
|
|
border: 1px solid #2a2a3e;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.rank-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
}
|
|
.rank-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 6px 0;
|
|
border-bottom: 1px solid #2a2a3e;
|
|
}
|
|
.rank-item:last-child { border-bottom: none; }
|
|
.rank-num {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 4px;
|
|
background: #2a2a3e;
|
|
color: #909399;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 12px;
|
|
margin-right: 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
.rank-num.rank-top {
|
|
background: #00e5ff;
|
|
color: #0f0f1a;
|
|
font-weight: bold;
|
|
}
|
|
.rank-name {
|
|
flex: 1;
|
|
font-size: 13px;
|
|
}
|
|
.rank-value {
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
color: #76ff03;
|
|
}
|
|
.status-card {
|
|
flex: 1;
|
|
background: #1a1a2e;
|
|
border-radius: 8px;
|
|
padding: 12px;
|
|
border: 1px solid #2a2a3e;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.status-grid {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
align-content: flex-start;
|
|
overflow-y: auto;
|
|
}
|
|
.status-block {
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 3px;
|
|
cursor: default;
|
|
}
|
|
.status-block.online {
|
|
background: #4caf50;
|
|
box-shadow: 0 0 4px rgba(76, 175, 80, 0.5);
|
|
}
|
|
.status-block.offline {
|
|
background: #555;
|
|
}
|
|
.status-legend {
|
|
display: flex;
|
|
gap: 16px;
|
|
margin-top: 8px;
|
|
font-size: 12px;
|
|
color: #999;
|
|
}
|
|
.legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
.legend-block {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 2px;
|
|
display: inline-block;
|
|
}
|
|
.legend-block.online {
|
|
background: #4caf50;
|
|
}
|
|
.legend-block.offline {
|
|
background: #555;
|
|
}
|
|
.no-data {
|
|
color: #666;
|
|
text-align: center;
|
|
padding: 20px;
|
|
font-size: 13px;
|
|
}
|
|
</style>
|