feat: update templates

This commit is contained in:
li
2025-11-07 17:47:55 +08:00
parent aae4004254
commit a2709485e1
4 changed files with 100 additions and 69 deletions

View File

@@ -28,40 +28,58 @@
align-items: center;
}
.main {
width: 100%;
height: 1000px;
margin-bottom: 80px;
}
.top {
width: 100%;
height: 15%;
display: flex;
justify-content: center;
align-items: center;
padding: 0 60px;
z-index: 1;
}
.title {
position: absolute;
top: -30px;
left: 50%;
transform: translate(-50%, -100%);
max-width: 90%;
width: 100%; /* 稍微调整以适应全宽图片 */
text-align: center;
font-size: 80px;
font-size: 70px;
font-weight: 800;
line-height: 1.2;
text-shadow: 0 6px 22px rgba(0,0,0,0.6);
letter-spacing: 4px;
}
.main {
position: relative;
.middle {
width: 100%;
height: 70%;
/*display: block;*/
}
.main img {
width: 100%;
height: 100%;
.middle img {
width: 100%;
height: 100%;
object-fit: cover; /* 改为 cover 填满宽度 */
display: block;
}
.bottom {
width: 100%;
height: 15%;
display: flex;
justify-content: center;
align-items: center;
padding: 0 60px;
z-index: 1;
}
.text {
position: absolute;
top: 102%;
left: 50%;
transform: translate(-50%, 0);
max-width: 90%; /* 稍微调整以适应全宽图片 */
width: 100%; /* 稍微调整以适应全宽图片 */
padding: 0 60px;
text-align: center;
font-size: 40px;
font-weight: 400;
@@ -74,15 +92,24 @@
-3px 3px 0 #000,
3px 3px 0 #000,
0 10px 24px rgba(0,0,0,0.6);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style>
</head>
<body>
<div class="main">
<div class="title">{{title}}</div>
<img src="{{image}}" alt="内容图片">
<div class="text">{{text}}</div>
</div>
<div class="top">
<div class="title">{{title}}</div>
</div>
<div class="middle">
<img src="{{image}}" alt="内容图片">
</div>
<div class="bottom">
<div class="text">{{text}}</div>
</div>
</div>
</body>
</html>