Files
astrbot_plugin_jx3/templates/zilipaixing.html
T
2026-06-19 18:12:30 +08:00

164 lines
3.5 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>资历排行</title>
<style>
body {
font-family: "Microsoft YaHei", Arial, sans-serif;
background: #f1f2f6;
margin: 0;
padding: 20px;
color: #2c2c33;
}
.container {
max-width: 1040px;
margin: 0 auto;
}
h1 {
font-size: 32px;
margin: 0 0 8px 0;
color: #222;
font-weight: 800;
text-align: center;
}
.meta {
margin-bottom: 24px;
color: #7a7f99;
font-size: 16px;
text-align: center;
}
table {
width: 100%;
border-collapse: collapse;
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 16px rgba(0,0,0,0.08);
text-align: left;
}
thead {
background: #d93939;
color: white;
font-size: 17px;
}
th, td {
padding: 12px 10px;
border-bottom: 1px solid #eee;
font-size: 15px;
vertical-align: middle;
}
tbody tr:nth-child(even) {
background: #fafafa;
}
.rank-col,
.server-col,
.score-col {
white-space: nowrap;
text-align: center;
}
.rank-col {
width: 56px;
color: #d93939;
font-weight: 800;
}
.role,
.force {
display: flex;
align-items: center;
gap: 8px;
min-width: 150px;
font-weight: 700;
color: #333;
white-space: nowrap;
}
.avatar {
width: 34px;
height: 34px;
border-radius: 50%;
object-fit: cover;
flex: 0 0 auto;
background: #eef2f8;
}
.force-icon {
width: 30px;
height: 30px;
border-radius: 50%;
object-fit: contain;
flex: 0 0 auto;
background: #eef2f8;
}
.server-col {
color: #333;
}
.score-col {
color: #d93939;
font-weight: 800;
font-variant-numeric: tabular-nums;
}
</style>
</head>
<body>
<div class="container">
<h1>{{ school }} 资历排行</h1>
<div class="meta">{{ server }} 更新时间:{{ update_time }}</div>
<table>
<thead>
<tr>
<th>排名</th>
<th>角色</th>
<th>职业</th>
<th>服务器</th>
<th>资历值</th>
</tr>
</thead>
<tbody>
{% for item in items %}
<tr>
<td class="rank-col">{{ loop.index }}</td>
<td>
<div class="role">
{% if item.avatarUrl %}
<img class="avatar" src="{{ item.avatarUrl }}" alt="{{ item.roleName }}">
{% endif %}
<span>{{ item.roleName }}</span>
</div>
</td>
<td>
<div class="force">
{% set force_icon = item.forceIcon or icons.sect.get(item.forceName) %}
{% if force_icon %}
<img class="force-icon" src="{{ force_icon }}" alt="{{ item.forceName }}">
{% endif %}
<span>{{ item.forceName }}</span>
</div>
</td>
<td class="server-col">{{ item.serverName }}</td>
<td class="score-col">{{ item.seniority }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</body>
</html>