feat:update templaters

This commit is contained in:
li
2025-12-26 16:16:38 +08:00
parent cd09e8034f
commit 5a2334ccde
12 changed files with 26 additions and 18 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 61 KiB

View File

@@ -23,21 +23,28 @@
background: #1a1a1a; background: #1a1a1a;
background-image: url("{{image}}"); background-image: url("{{image}}");
background-size: cover; background-size: cover;
background-position: center; background-position: center bottom 400px;
} }
/* 顶部区域 */ /* 顶部区域 */
.top-section { .top-section {
position: absolute; position: absolute;
top: 18%; top: 10%;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
text-align: center; text-align: center;
width: 90%; width: 90%;
} }
.image {
position: absolute;
top: 400px;
left: 50%;
transform: translate(-50%);
}
.title { .title {
font-size: 120px; font-size: 100px;
font-weight: 900; font-weight: 900;
line-height: 1.1; line-height: 1.1;
font-family: 'Noto Sans SC', sans-serif; font-family: 'Noto Sans SC', sans-serif;
@@ -51,7 +58,7 @@
} }
.subtitle { .subtitle {
font-size: 36px; font-size: 30px;
font-weight: 500; font-weight: 500;
font-family: 'Noto Sans SC', sans-serif; font-family: 'Noto Sans SC', sans-serif;
color: #000; color: #000;
@@ -65,7 +72,7 @@
/* 底部文字区域 */ /* 底部文字区域 */
.bottom-section { .bottom-section {
position: absolute; position: absolute;
bottom: 200px; top: 1000px;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
text-align: center; text-align: center;
@@ -73,7 +80,7 @@
} }
.main-text { .main-text {
font-size: 60px; font-size: 50px;
font-weight: 700; font-weight: 700;
font-family: 'Noto Sans SC', sans-serif; font-family: 'Noto Sans SC', sans-serif;
text-shadow: -2px -2px 0 #000, text-shadow: -2px -2px 0 #000,
@@ -101,6 +108,8 @@
<div class="subtitle">{{subtitle=作者}}</div> <div class="subtitle">{{subtitle=作者}}</div>
</div> </div>
<!-- <img class="img" src="{{image}}" alt="内容图片"> -->
<!-- 底部文字区 --> <!-- 底部文字区 -->
<div class="bottom-section"> <div class="bottom-section">
<div class="main-text">{{text}}</div> <div class="main-text">{{text}}</div>

View File

@@ -20,11 +20,11 @@
/* 顶部标题区约25%*/ /* 顶部标题区约25%*/
.top { .top {
height: 25%; height: 20%;
background: #e8d5cc; /* 淡棕粉色 */ background: #e8d5cc; /* 淡棕粉色 */
position: relative; position: relative;
display: flex; display: flex;
align-items: center; align-items: flex-end;
justify-content: center; justify-content: center;
padding: 80px 60px; padding: 80px 60px;
} }
@@ -76,7 +76,7 @@
background: #f8f6f4; /* 浅灰白色 */ background: #f8f6f4; /* 浅灰白色 */
position: relative; position: relative;
display: flex; display: flex;
align-items: center; align-items: flex-start;
justify-content: center; justify-content: center;
overflow: hidden; overflow: hidden;
} }
@@ -100,9 +100,9 @@
background: #e8d5cc; /* 与顶部相同颜色 */ background: #e8d5cc; /* 与顶部相同颜色 */
position: relative; position: relative;
display: flex; display: flex;
align-items: center; align-items: flex-start;
justify-content: center; justify-content: center;
padding: 60px; padding: 0px;
} }
.bottom-decoration { .bottom-decoration {

View File

@@ -47,9 +47,8 @@
/* 中间图片区域 */ /* 中间图片区域 */
.image-section { .image-section {
width: 100%; width: 100%;
flex: 1; height: auto;
display: flex; display: flex;
align-items: center;
justify-content: center; justify-content: center;
padding: 0 40px; padding: 0 40px;
box-sizing: border-box; box-sizing: border-box;
@@ -103,7 +102,7 @@
/* 底部文字区域 */ /* 底部文字区域 */
.bottom-text-section { .bottom-text-section {
width: 100%; width: 100%;
padding: 0px 60px 90px 60px; padding: 0 60px;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -114,7 +113,7 @@
/* 人生感悟 - 大红色粗体 */ /* 人生感悟 - 大红色粗体 */
.highlight-text { .highlight-text {
font-size: 80px; font-size: 40px;
color: #FFFFFF; color: #FFFFFF;
font-weight: 400; font-weight: 400;
letter-spacing: 3px; letter-spacing: 3px;

View File

@@ -22,7 +22,7 @@
/* 顶部黑底标题区 */ /* 顶部黑底标题区 */
.top { .top {
height: 30%; height: 20%;
background: #0a0a0a; background: #0a0a0a;
padding: 100px 70px 40px; padding: 100px 70px 40px;
display: flex; display: flex;
@@ -47,7 +47,7 @@
/* 将图片中心对齐到整页正中心(与标题无关) */ /* 将图片中心对齐到整页正中心(与标题无关) */
.media { .media {
position: absolute; position: absolute;
top: 50%; top: 40%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
max-width: 86%; max-width: 86%;
@@ -78,7 +78,7 @@
3px 3px 0 #000; 3px 3px 0 #000;
} }
@media (max-width: 1080px) { .title { font-size: 84px; } .caption { font-size: 48px; bottom: 300px; } } @media (max-width: 1080px) { .title { font-size: 84px; } .caption { font-size: 48px; bottom: 600px; } }
</style> </style>
</head> </head>
<body> <body>