feat: add template
This commit is contained in:
@@ -137,6 +137,14 @@ Suitable for TikTok, Kuaishou, Xiaohongshu, and other short video platforms.
|
||||

|
||||
|
||||
Book style, suitable for book lists
|
||||
|
||||
- **Long Text**
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
Long text style, suitable for inspirational content
|
||||
</div>
|
||||
|
||||
---
|
||||
|
||||
BIN
docs/images/1080x1920/long_text.jpg
Normal file
BIN
docs/images/1080x1920/long_text.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 52 KiB |
@@ -138,6 +138,14 @@
|
||||

|
||||
|
||||
图书解读,适合科普类内容
|
||||
|
||||
- **Long Text**
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
长文本,适合励志鸡汤类内容
|
||||
---
|
||||
|
||||
### 横屏模板 (1920x1080)
|
||||
|
||||
98
templates/1080x1920/image_long_text.html
Normal file
98
templates/1080x1920/image_long_text.html
Normal file
@@ -0,0 +1,98 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="template:media-width" content="1024">
|
||||
<meta name="template:media-height" content="1024">
|
||||
<meta name="viewport" content="width=1080, height=1920">
|
||||
<title>长文本 - 1080x1920</title>
|
||||
<!-- Google Fonts - 中文字体 -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700;900&family=Noto+Serif+SC:wght@400&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
|
||||
html, body { width: 1080px; height: 1920px; overflow: hidden; }
|
||||
|
||||
body {
|
||||
font-family: 'Noto Sans SC', 'PingFang SC', 'Source Han Sans', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
|
||||
color: #000;
|
||||
position: relative;
|
||||
background: #e8e8e8;
|
||||
background-image: url("{{image}}");
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
/* 背景模糊效果 */
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 0 60px;
|
||||
}
|
||||
|
||||
/* 背景遮罩层 */
|
||||
body::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: rgba(220, 220, 220, 0.75);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
/* 顶部标题 */
|
||||
.title {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
font-size: 110px;
|
||||
font-weight: 900;
|
||||
line-height: 1.2;
|
||||
font-family: 'Noto Sans SC', sans-serif;
|
||||
color: #000;
|
||||
letter-spacing: 0;
|
||||
text-align: center;
|
||||
margin-top: 80px;
|
||||
margin-bottom: 100px;
|
||||
/* 白色描边 */
|
||||
text-shadow: -2px -2px 0 #fff,
|
||||
2px -2px 0 #fff,
|
||||
-2px 2px 0 #fff,
|
||||
2px 2px 0 #fff;
|
||||
}
|
||||
|
||||
/* 正文区域 */
|
||||
.content {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
font-size: 56px;
|
||||
font-weight: 400;
|
||||
line-height: 4;
|
||||
font-family: 'Noto Sans SC', 'Noto Serif SC', serif;
|
||||
color: #000;
|
||||
text-align: center;
|
||||
letter-spacing: 0.5px;
|
||||
/* 白色描边 */
|
||||
text-shadow: -1px -1px 0 #fff,
|
||||
1px -1px 0 #fff,
|
||||
-1px 1px 0 #fff,
|
||||
1px 1px 0 #fff;
|
||||
/* 保留换行符 */
|
||||
white-space: pre-line;
|
||||
}
|
||||
|
||||
.content p {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- 标题 -->
|
||||
<div class="title">{{title}}</div>
|
||||
|
||||
<!-- 正文 -->
|
||||
<div class="content">{{text}}</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user