返回 VideoClaw
image_blur_card.html
根目录 / video-claw / video-claw / backend / templates / 1080x1920 / image_blur_card.html
1 <!DOCTYPE html>
2 <html lang="zh-CN">
3 <head>
4 <meta charset="UTF-8">
5 <meta name="template:media-width" content="1024">
6 <meta name="template:media-height" content="1024">
7 <meta name="viewport" content="width=1080, height=1920">
8 <title>模糊背景卡片 - 1080x1920</title>
9 <!-- Google Fonts - 中文字体 -->
10 <link rel="preconnect" href="https://fonts.googleapis.com">
11 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
12 <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700;900&family=Noto+Serif+SC:wght@400;700;900&family=Liu+Jian+Mao+Cao&family=Ma+Shan+Zheng&display=swap" rel="stylesheet">
13 <style>
14
15 * { margin: 0; padding: 0; box-sizing: border-box; }
16
17 html, body { width: 1080px; height: 1920px; overflow: hidden; }
18
19 body {
20 font-family: 'Noto Sans SC', 'PingFang SC', 'Source Han Sans', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
21 color: #fff;
22 position: relative;
23 background: transparent; /* 移除黑色背景 */
24 }
25
26 /* 背景使用图片并做模糊处理,完全覆盖整个页面 */
27 .bg {
28 position: fixed;
29 top: 0;
30 left: 0;
31 width: 100%;
32 height: 100%;
33 filter: blur(24px) brightness(0.9);
34 transform: scale(1.1);
35 z-index: 0;
36 overflow: hidden;
37 }
38
39 /* 顶部标题区 */
40 .top {
41 position: relative;
42 z-index: 2;
43 height: 26%;
44 display: flex;
45 align-items: center; /* 改为居中,避免被遮挡 */
46 justify-content: center;
47 padding: 60px 70px 40px; /* 减少顶部padding */
48 text-align: center;
49 }
50
51 .title {
52 max-width: 920px;
53 font-size: 92px;
54 font-weight: 400;
55 line-height: 1.2;
56 text-shadow: 0 6px 22px rgba(0,0,0,0.6),
57 -2px -2px 0 #000,
58 2px -2px 0 #000,
59 -2px 2px 0 #000,
60 2px 2px 0 #000;
61 /* 使用 Ma Shan Zheng 毛笔字体 */
62 font-family: 'Ma Shan Zheng', 'PingFang SC', 'Source Han Sans', 'Microsoft YaHei', cursive;
63 letter-spacing: 4px;
64 }
65
66 /* 中部图片区(图片居中,填满宽度) */
67 .image-center {
68 position: absolute;
69 top: 50%;
70 left: 50%;
71 transform: translate(-50%, -50%);
72 width: 100%;
73 height: 58%;
74 z-index: 2;
75 padding: 0 0; /* 无左右内边距 */
76 }
77
78 .image-box { position: relative; width: 100%; height: 100%; }
79
80 .image-box .template-media {
81 width: 100%;
82 height: 100%;
83 object-fit: cover; /* 改为 cover 填满宽度 */
84 display: block;
85 }
86
87 /* 底部字幕覆盖在图片底部 */
88 .caption {
89 position: absolute;
90 left: 50%;
91 bottom: 18px;
92 transform: translateX(-50%);
93 width: 96%; /* 稍微调整以适应全宽图片 */
94 text-align: center;
95 font-size: 48px;
96 font-weight: 400;
97 /* line-height: 1.2; */
98 color: #fff;
99 font-family: 'ArtisticFont', 'Noto Serif SC', 'Noto Sans SC', 'PingFang SC', serif;
100 letter-spacing: 2px;
101 text-shadow: 0 6px 22px rgba(0,0,0,0.6),
102 -1px -1px 0 #000,
103 1px -1px 0 #000,
104 -1px 1px 0 #000,
105 1px 1px 0 #000;
106 }
107
108 /* Footer */
109 .footer {
110 display: flex;
111 align-items: center;
112 justify-content: space-between;
113 width: 100%;
114 padding: 25px 20px 0 20px;
115 position: absolute;
116 bottom: 20px;
117 color: #fff;
118 text-shadow: -1px -1px 0 #000,
119 1px -1px 0 #000,
120 -1px 1px 0 #000,
121 1px 1px 0 #000;
122 }
123
124 .author {
125 display: flex;
126 flex-direction: column;
127 gap: 6px;
128 letter-spacing: 2px;
129 }
130
131 .author-name {
132 font-size: 30px;
133 font-weight: 600;
134 display: flex;
135 align-items: center;
136 gap: 10px;
137 }
138
139 .author-mark {
140 width: 8px;
141 height: 8px;
142 /* border-radius: 50%; */
143 /* background: rgba(149, 165, 166, 0.7); */
144 }
145
146 .author-desc {
147 font-size: 22px;
148 /* color: #5d6d7e; */
149 line-height: 1.3;
150 font-weight: 400;
151 }
152
153 .logo-section {
154 display: flex;
155 flex-direction: column;
156 align-items: flex-end;
157 gap: 8px;
158 }
159
160 .logo {
161 font-size: 24px;
162 font-weight: 500;
163 }
164
165 .logo-marks {
166 display: flex;
167 gap: 5px;
168 }
169
170 .logo-mark {
171 width: 6px;
172 height: 6px;
173 border-radius: 50%;
174 background: rgba(149, 165, 166, 0.45);
175 }
176
177 .logo-mark.active {
178 background: rgba(149, 165, 166, 0.75);
179 }
180 </style>
181 </head>
182 <body>
183 <div class="bg">{{media}}</div>
184 <div class="top">
185 <div class="title">{{title}}</div>
186 </div>
187
188 <div class="image-center">
189 <div class="image-box">
190 {{media}}
191 <div class="caption">{{text}}</div>
192 </div>
193 </div>
194 <div class="footer">
195 <div class="author">
196 <div class="author-name">
197 <span class="author-mark"></span>
198 <div class="logo">{{author=HITsz-TMG}}</div>
199 </div>
200 <div class="author-desc">{{describe=开源视频生成智能体}}</div>
201 </div>
202 <div class="logo-section">
203 <div class="logo">{{brand=Video-Claw}}</div>
204 <div class="logo-marks">
205 <div class="logo-mark"></div>
206 <div class="logo-mark active"></div>
207 <div class="logo-mark"></div>
208 <div class="logo-mark"></div>
209 </div>
210 </div>
211 </div>
212 </body>
213 </html>
214
214 lines HTML