Files
astrbot_plugin_jx3/templates/zhuangshi.html
T
2026-01-25 22:21:38 +08:00

179 lines
3.9 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. 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;
}
.container {
max-width: 1200px;
margin: 0 auto;
}
h1 {
text-align: center;
font-size: 34px;
font-weight: 800;
margin-bottom: 30px;
color: #222;
}
.card {
display: flex;
background: #fff;
border-radius: 16px;
box-shadow: 0 6px 20px rgba(0,0,0,0.08);
margin-bottom: 24px;
overflow: hidden;
}
.card img {
width: 220px;
height: 220px;
object-fit: contain;
background: #fafafa;
padding: 16px;
}
.content {
flex: 1;
padding: 20px 24px;
}
.title {
font-size: 26px;
font-weight: 800;
margin-bottom: 6px;
}
/* 品质颜色 */
.q1 { color: #999; }
.q2 { color: #2ecc71; }
.q3 { color: #3498db; }
.q4 { color: #9b59b6; }
.q5 { color: #e67e22; }
.meta {
color: #666;
font-size: 15px;
margin-bottom: 14px;
}
.meta span {
margin-right: 18px;
}
.tip {
background: #f8f9fb;
border-left: 4px solid #d93939;
padding: 10px 14px;
font-size: 14px;
color: #555;
margin-bottom: 16px;
}
.stats {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 12px;
}
.stat {
background: #fafafa;
border-radius: 10px;
padding: 10px;
text-align: center;
}
.stat-name {
font-size: 13px;
color: #777;
margin-bottom: 6px;
}
.stat-value {
font-size: 18px;
font-weight: 700;
color: #333;
}
.footer {
margin-top: 12px;
font-size: 14px;
color: #888;
}
</style>
</head>
<body>
<div class="container">
<h1>家园家具展示</h1>
{% for item in data %}
<div class="card">
<img src="{{ item.image }}" alt="{{ item.name }}">
<div class="content">
<div class="title q{{ item.color }}">
{{ item.name }}
</div>
<div class="meta">
<span>来源:{{ item.source }}</span>
<span>数量限制:{{ item.limit }}</span>
<span>品质值:{{ item.quality }}</span>
</div>
{% if item.tip %}
<div class="tip">
{{ item.tip }}
</div>
{% endif %}
<div class="stats">
<div class="stat">
<div class="stat-name">观赏</div>
<div class="stat-value">{{ item.view }}</div>
</div>
<div class="stat">
<div class="stat-name">实用</div>
<div class="stat-value">{{ item.practical }}</div>
</div>
<div class="stat">
<div class="stat-name">坚固</div>
<div class="stat-value">{{ item.hard }}</div>
</div>
<div class="stat">
<div class="stat-name">风水</div>
<div class="stat-value">{{ item.geomantic }}</div>
</div>
<div class="stat">
<div class="stat-name">趣味</div>
<div class="stat-value">{{ item.interesting }}</div>
</div>
</div>
<div class="footer">
建筑适配:{{ item.architecture }} 
{% if item.produce %}
|可制作
{% else %}
|不可制作
{% endif %}
</div>
</div>
</div>
{% endfor %}
</div>
</body>
</html>