Files
TransPyC/2.html

246 lines
7.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">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>温暖存折 - 我的微长征</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #e6d5b8; /* 复古纸张背景色 */
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 30px;
font-family: 'Segoe UI', '华文楷书', 'Microsoft YaHei', '楷体', serif;
}
/* 存折整体容器:模拟对折小册子 */
.passbook {
width: 800px; /* 展开宽度 */
max-width: 100%;
background-color: #fef7e0;
overflow: hidden;
border: 1px solid #d4a373;
margin-left: 20px;
}
/* 每一页为一半宽度,浮动实现左右页 */
.page {
width: 50%;
float: left;
padding: 20px 18px;
box-sizing: border-box;
min-height: 580px;
background: #fffcf0;
border-right: 1px dashed #d4a373;
}
.page:last-child {
border-right: none;
}
/* 存折封面色调 */
.cover {
background: linear-gradient(145deg, #fae6cd, #f5d5a4);
}
.cover h1 {
font-size: 28px;
color: #b44c1c;
text-align: center;
margin-top: 40px;
font-weight: bold;
letter-spacing: 4px;
border-bottom: 2px solid #c97e3a;
display: inline-block;
width: 100%;
padding-bottom: 12px;
}
.cover .sub {
text-align: center;
font-size: 16px;
color: #8b5a2b;
margin: 20px 0;
font-style: italic;
}
.cover .info {
background: #f4e2c1;
padding: 15px;
border-radius: 16px;
margin: 30px 0;
}
.cover .info p {
margin: 10px 0;
font-size: 16px;
display: flex;
align-items: baseline;
}
.cover .info span.label {
width: 80px;
font-weight: bold;
color: #a55117;
}
.cover .sign {
margin-top: 50px;
text-align: center;
font-size: 14px;
color: #9b6a3c;
border-top: 1px dotted #cfad7a;
padding-top: 20px;
}
.cover .red-seal {
font-size: 40px;
text-align: center;
margin: 20px 0;
color: #d4320f;
transform: rotate(-10deg);
font-family: 'Segoe UI', serif;
}
/* 内页表格样式 */
.inner-page h3 {
color: #a55117;
border-left: 6px solid #e7a05e;
padding-left: 12px;
margin-bottom: 20px;
font-size: 20px;
}
.record-table {
width: 100%;
border-collapse: collapse;
margin: 15px 0;
font-size: 13px;
}
.record-table th, .record-table td {
border: 1px solid #d9b382;
padding: 8px 5px;
text-align: left;
vertical-align: top;
}
.record-table th {
background-color: #fae2c1;
font-weight: bold;
color: #7b3f0e;
}
.reflection {
margin-top: 35px;
border-top: 1px solid #e7cba5;
padding-top: 15px;
}
.reflection p {
background: #fff3e0;
padding: 10px;
border-radius: 12px;
margin: 10px 0;
}
.sign-line {
margin-top: 20px;
font-size: 12px;
text-align: right;
color: #aa7844;
}
/* 封底 */
.back-cover {
background: #fdf4e6;
}
.back-cover h4 {
color: #b85c1a;
margin: 20px 0 15px;
}
.medal-area {
background: #fffaec;
border: 2px dashed #e2b87a;
padding: 15px;
border-radius: 24px;
text-align: center;
margin: 30px 0;
}
.medal-area span {
font-size: 32px;
letter-spacing: 10px;
}
.quote {
font-style: italic;
color: #866633;
margin-top: 35px;
font-size: 14px;
text-align: center;
}
/* 清除浮动 */
.clearfix::after {
content: "";
display: table;
clear: both;
}
@media print {
body {
background-color: white;
padding: 0;
margin: 0;
}
.passbook {
box-shadow: none;
margin: 0 auto;
page-break-after: avoid;
break-inside: avoid;
}
.page {
break-inside: avoid;
}
}
</style>
</head>
<body>
<!-- 第二面需再复制一个类似的passbook或者用另一组页。实际上存折需要双面打印但为了方便第二组作为背后两页。我们通过添加第二个容器来实现背面内容打印时选择双面打印即可。 -->
<div class="passbook clearfix">
<!-- 左侧第二内页记录4-6次 -->
<div class="page inner-page">
<h3>📖 温暖存款记录(续)</h3>
<table class="record-table">
<thead><tr><th>日期</th><th>我做了什么</th><th>对方反应/我的感受</th><th>见证人</th></tr></thead>
<tbody>
<tr><td>__月&nbsp;__日</td><td></td><td></td><td></td></tr>
<tr><td>__月&nbsp;__日</td><td></td><td></td><td></td></tr>
<tr><td>__月&nbsp;__日</td><td></td><td></td><td></td></tr>
</tbody>
</table>
<div class="reflection">
<p>🏅 我获得的第一枚勋章日期__________ 因为我帮助了____________</p >
<p>❤️ 我的成长发现:</p >
</div>
<div class="sign-line">第2周 · 小红军签名 ___________</div>
</div>
<!-- 右侧:封底+勋章区+反思 -->
<div class="page back-cover">
<h4>⭐ 微长征勋章 ⭐</h4>
<div class="medal-area">
<span>🏅 🏅 🏅</span><br>
每积累3笔温暖请老师/伙伴盖一枚红章)
</div>
<div class="reflection">
<p>🌟 21天后我最想对自己说</p >
<p style="border-bottom:1px solid #e9c891; min-height:60px;"></p >
<p>🌟 我想对蔡威叔叔说:</p >
<p style="border-bottom:1px solid #e9c891; min-height:60px;"></p >
</div>
<div class="quote">
“英雄不是做惊天动地的事,<br>
而是在别人最需要的时候,选择不转身离开。”
</div>
<div class="sign-line" style="margin-top:15px;">温暖见证人__________ 家长/老师</div>
</div>
</div>
</body>
</html>