feat:add template

This commit is contained in:
li
2025-11-28 10:37:39 +08:00
parent 3fd4696137
commit 6720f63095
8 changed files with 286 additions and 81 deletions

View File

@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="template:media-width" content="1024">
@@ -12,13 +13,14 @@
padding: 0;
box-sizing: border-box;
}
html, body {
html,
body {
width: 1920px;
height: 1080px;
overflow: hidden;
}
body {
background: black;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
@@ -29,7 +31,7 @@
justify-content: center;
align-items: center;
}
.main {
width: 100%;
height: 1000px;
@@ -37,22 +39,23 @@
}
.top {
width: 100%;
height: 15%;
display: flex;
justify-content: center;
align-items: center;
padding: 0 60px;
z-index: 1;
width: 100%;
height: 15%;
display: flex;
justify-content: center;
align-items: center;
padding: 0 60px;
z-index: 1;
}
.title {
width: 100%; /* 稍微调整以适应全宽图片 */
width: 100%;
/* 稍微调整以适应全宽图片 */
text-align: center;
font-size: 70px;
font-weight: 800;
line-height: 1.2;
text-shadow: 0 6px 22px rgba(0,0,0,0.6);
text-shadow: 0 6px 22px rgba(0, 0, 0, 0.6);
letter-spacing: 4px;
}
@@ -65,22 +68,24 @@
.middle img {
width: 100%;
height: 100%;
object-fit: cover; /* 改为 cover 填满宽度 */
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;
width: 100%;
height: 15%;
display: flex;
justify-content: center;
align-items: center;
padding: 0 60px;
z-index: 1;
}
.text {
width: 100%; /* 稍微调整以适应全宽图片 */
width: 100%;
/* 稍微调整以适应全宽图片 */
padding: 0 60px;
text-align: center;
font-size: 40px;
@@ -89,11 +94,11 @@
color: #ffffff;
letter-spacing: 1px;
text-shadow: 0 0 0 #000,
-3px -3px 0 #000,
3px -3px 0 #000,
-3px 3px 0 #000,
3px 3px 0 #000,
0 10px 24px rgba(0,0,0,0.6);
-3px -3px 0 #000,
3px -3px 0 #000,
-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; */
@@ -110,18 +115,18 @@
bottom: 20px;
color: #fff;
text-shadow: -1px -1px 0 #000,
1px -1px 0 #000,
-1px 1px 0 #000,
1px 1px 0 #000;
1px -1px 0 #000,
-1px 1px 0 #000,
1px 1px 0 #000;
}
.author {
display: flex;
flex-direction: column;
gap: 6px;
letter-spacing: 2px;
}
.author-name {
font-size: 30px;
font-weight: 600;
@@ -129,50 +134,51 @@
align-items: center;
gap: 10px;
}
.author-mark {
width: 8px;
height: 8px;
/* border-radius: 50%; */
/* background: rgba(149, 165, 166, 0.7); */
}
.author-desc {
font-size: 22px;
/* color: #5d6d7e; */
line-height: 1.3;
font-weight: 400;
}
.logo-section {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 8px;
}
.logo {
font-size: 24px;
font-weight: 500;
}
.logo-marks {
display: flex;
gap: 5px;
}
.logo-mark {
width: 6px;
height: 6px;
border-radius: 50%;
background: rgba(149, 165, 166, 0.45);
}
.logo-mark.active {
background: rgba(149, 165, 166, 0.75);
}
</style>
</head>
<body>
<div class="main">
<div class="top">
@@ -180,7 +186,7 @@
</div>
<div class="middle">
<img src="{{image}}" alt="内容图片">
</div>
<div class="bottom">
<div class="text">{{text}}</div>
@@ -205,4 +211,5 @@
</div>
</div>
</body>
</html>