返回 Pixelle-Video
image_blur_card.html
根目录 / 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 background-image: url("{{image}}");
34 background-size: cover;
35 background-position: center;
36 filter: blur(24px) brightness(0.9);
37 transform: scale(1.1);
38 z-index: 0;
39 }
40
41 /* 顶部标题区 */
42 .top {
43 position: relative;
44 z-index: 2;
45 height: 26%;
46 display: flex;
47 align-items: center; /* 改为居中,避免被遮挡 */
48 justify-content: center;
49 padding: 60px 70px 40px; /* 减少顶部padding */
50 text-align: center;
51 }
52
53 .title {
54 max-width: 920px;
55 font-size: 92px;
56 font-weight: 400;
57 line-height: 1.2;
58 text-shadow: 0 6px 22px rgba(0,0,0,0.6),
59 -2px -2px 0 #000,
60 2px -2px 0 #000,
61 -2px 2px 0 #000,
62 2px 2px 0 #000;
63 /* 使用 Ma Shan Zheng 毛笔字体 */
64 font-family: 'Ma Shan Zheng', 'PingFang SC', 'Source Han Sans', 'Microsoft YaHei', cursive;
65 letter-spacing: 4px;
66 }
67
68 /* 中部图片区(图片居中,填满宽度) */
69 .image-center {
70 position: absolute;
71 top: 50%;
72 left: 50%;
73 transform: translate(-50%, -50%);
74 width: 100%;
75 height: 58%;
76 z-index: 2;
77 padding: 0 0; /* 无左右内边距 */
78 }
79
80 .image-box { position: relative; width: 100%; height: 100%; }
81
82 .image-box img {
83 width: 100%;
84 height: 100%;
85 object-fit: cover; /* 改为 cover 填满宽度 */
86 display: block;
87 }
88
89 /* 底部字幕覆盖在图片底部 */
90 .caption {
91 position: absolute;
92 left: 50%;
93 bottom: 18px;
94 transform: translateX(-50%);
95 width: 96%; /* 稍微调整以适应全宽图片 */
96 text-align: center;
97 font-size: 48px;
98 font-weight: 400;
99 /* line-height: 1.2; */
100 color: #fff;
101 font-family: 'ArtisticFont', 'Noto Serif SC', 'Noto Sans SC', 'PingFang SC', serif;
102 letter-spacing: 2px;
103 text-shadow: 0 6px 22px rgba(0,0,0,0.6),
104 -1px -1px 0 #000,
105 1px -1px 0 #000,
106 -1px 1px 0 #000,
107 1px 1px 0 #000;
108 }
109
110 /* Footer */
111 .footer {
112 display: flex;
113 align-items: center;
114 justify-content: space-between;
115 width: 100%;
116 padding: 25px 20px 0 20px;
117 position: absolute;
118 bottom: 20px;
119 color: #fff;
120 text-shadow: -1px -1px 0 #000,
121 1px -1px 0 #000,
122 -1px 1px 0 #000,
123 1px 1px 0 #000;
124 }
125
126 .author {
127 display: flex;
128 flex-direction: column;
129 gap: 6px;
130 letter-spacing: 2px;
131 }
132
133 .author-name {
134 font-size: 30px;
135 font-weight: 600;
136 display: flex;
137 align-items: center;
138 gap: 10px;
139 }
140
141 .author-mark {
142 width: 8px;
143 height: 8px;
144 /* border-radius: 50%; */
145 /* background: rgba(149, 165, 166, 0.7); */
146 }
147
148 .author-desc {
149 font-size: 22px;
150 /* color: #5d6d7e; */
151 line-height: 1.3;
152 font-weight: 400;
153 }
154
155 .logo-section {
156 display: flex;
157 flex-direction: column;
158 align-items: flex-end;
159 gap: 8px;
160 }
161
162 .logo {
163 font-size: 24px;
164 font-weight: 500;
165 }
166
167 .logo-marks {
168 display: flex;
169 gap: 5px;
170 }
171
172 .logo-mark {
173 width: 6px;
174 height: 6px;
175 border-radius: 50%;
176 background: rgba(149, 165, 166, 0.45);
177 }
178
179 .logo-mark.active {
180 background: rgba(149, 165, 166, 0.75);
181 }
182 </style>
183 </head>
184 <body>
185 <div class="bg"></div>
186 <div class="top">
187 <div class="title">{{title}}</div>
188 </div>
189
190 <div class="image-center">
191 <div class="image-box">
192 <img src="{{image}}" alt="内容图片">
193 <div class="caption">{{text}}</div>
194 </div>
195 </div>
196 <div class="footer">
197 <div class="author">
198 <div class="author-name">
199 <span class="author-mark"></span>
200 <div class="logo">{{author=@Pixelle.AI}}</div>
201 </div>
202 <div class="author-desc">{{describe=Open Source Omnimodal AI Creative Agent}}</div>
203 </div>
204 <div class="logo-section">
205 <div class="logo">{{brand=Pixelle-Video}}</div>
206 <div class="logo-marks">
207 <div class="logo-mark"></div>
208 <div class="logo-mark active"></div>
209 <div class="logo-mark"></div>
210 <div class="logo-mark"></div>
211 </div>
212 </div>
213 </div>
214 </body>
215 </html>
216
216 lines HTML