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

159 lines
3.6 KiB
HTML

<!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: 1120px;
margin: 0 auto;
}
h1 {
font-size: 34px;
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;
}
.section {
margin-bottom: 24px;
}
.section-title {
display: flex;
align-items: center;
gap: 10px;
margin: 0 0 12px 0;
color: #222;
font-size: 24px;
font-weight: 800;
}
.section-title::before {
content: "";
display: block;
width: 5px;
height: 30px;
background: #2f74d0;
border-radius: 3px;
}
.cards {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}
.card {
display: grid;
grid-template-columns: 54px minmax(0, 1fr);
gap: 12px;
background: white;
border-radius: 12px;
padding: 14px;
box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.icon {
width: 48px;
height: 48px;
border-radius: 8px;
object-fit: cover;
background: #f1f2f6;
}
.head {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 8px;
}
.name {
color: #222;
font-size: 18px;
font-weight: 800;
line-height: 1.25;
}
.tag {
color: #5d6680;
background: #eef2f8;
border-radius: 999px;
padding: 2px 8px;
font-size: 13px;
white-space: nowrap;
}
.desc {
color: #333;
font-size: 15px;
line-height: 1.55;
word-break: break-word;
}
</style>
</head>
<body>
<div class="container">
<h1>{{ name }} 技能详情</h1>
<div class="meta">更新时间:{{ update_time }}</div>
{% for group in groups %}
<div class="section">
<div class="section-title">{{ group.title }}</div>
<div class="cards">
{% for skill in group.skills %}
<div class="card">
{% if skill.icon %}
<img class="icon" src="{{ skill.icon }}" alt="{{ skill.name }}">
{% else %}
<div class="icon"></div>
{% endif %}
<div>
<div class="head">
<span class="name">{{ skill.name }}</span>
{% if skill.interval %}
<span class="tag">{{ skill.interval }}</span>
{% endif %}
{% if skill.distance %}
<span class="tag">{{ skill.distance }}</span>
{% endif %}
{% if skill.release_type %}
<span class="tag">{{ skill.release_type }}</span>
{% endif %}
{% if skill.weapon %}
<span class="tag">{{ skill.weapon }}</span>
{% endif %}
</div>
<div class="desc">{{ skill.desc }}</div>
</div>
</div>
{% endfor %}
</div>
</div>
{% endfor %}
</div>
</body>
</html>