返回 Pixelle-Video
image_healing.html
根目录 / templates / 1080x1920 / image_healing.html
1 <!DOCTYPE html>
2 <html lang="zh-CN">
3
4 <head>
5 <meta charset="UTF-8">
6 <meta name="template:media-width" content="1024">
7 <meta name="template:media-height" content="1024">
8 <meta name="viewport" content="width=1080, height=1920">
9 <title>疗愈 - 1080x1920</title>
10 <!-- Google Fonts - 中文字体 -->
11 <link rel="preconnect" href="https://fonts.googleapis.com">
12 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
13 <link
14 href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600&family=Ma+Shan+Zheng&family=ZCOOL+KuaiLe&display=swap"
15 rel="stylesheet">
16 <style>
17 * {
18 margin: 0;
19 padding: 0;
20 box-sizing: border-box;
21 }
22
23 html,
24 body {
25 width: 1080px;
26 height: 1920px;
27 overflow: hidden;
28 }
29
30 body {
31 font-family: 'Noto Serif SC', serif;
32 color: #2a2a2a;
33 position: relative;
34 background: #e8e5e0;
35 background-image: url("{{image}}");
36 background-size: cover;
37 background-position: center;
38 display: flex;
39 flex-direction: column;
40 }
41
42 /* 背景遮罩层 */
43 /* body::before {
44 content: '';
45 position: absolute;
46 inset: 0;
47 background: rgba(232, 229, 224, 0.85);
48 backdrop-filter: blur(5px);
49 -webkit-backdrop-filter: blur(5x);
50 z-index: 0;
51 } */
52
53 /* 顶部标题 */
54 .title {
55 position: absolute;
56 width: 500px;
57 top: 40%;
58 transform: translateY(-50%);
59 right: 60px;
60 z-index: 1;
61 }
62
63 .title-content {
64 font-size: 80px;
65 font-weight: 600;
66 font-family: 'Ma Shan Zheng', 'ZCOOL KuaiLe', cursive;
67 color: #2a2a2a;
68 letter-spacing: 8px;
69 text-align: right;
70 padding-bottom: 15px;
71 border-bottom: 2px solid #2a2a2a;
72 text-shadow: -1px -1px 0 #ddd,
73 1px -1px 0 #ddd,
74 -1px 1px 0 #ddd,
75 1px 1px 0 #ddd;
76 }
77
78 /* 作者 */
79 .author {
80 z-index: 1;
81 text-align: right;
82 font-size: 32px;
83 font-family: 'Noto Serif SC', serif;
84 color: #2a2a2a;
85 font-weight: 400;
86 text-shadow: -1px -1px 0 #ddd,
87 1px -1px 0 #ddd,
88 -1px 1px 0 #ddd,
89 1px 1px 0 #ddd;
90 }
91
92 /* 正文区域 */
93 .text {
94 width: 100%;
95 position: absolute;
96 font-size: 46px;
97 font-weight: 400;
98 line-height: 2.0;
99 font-family: 'Liu Jian Mao Cao', 'ZCOOL KuaiLe', cursive;
100 color: #ffffff;
101 text-align: justify;
102 text-indent: 2em;
103 letter-spacing: 1px;
104 white-space: pre-line;
105 top: 70%;
106 text-align: center;
107 text-shadow: -1px -1px 0 #222,
108 1px -1px 0 #222,
109 -1px 1px 0 #222,
110 1px 1px 0 #222;
111 padding: 0 100px;
112 }
113
114
115 .signature {
116 position: absolute;
117 font-size: 24px;
118 color: #333;
119 bottom: 20px;
120 right: 20px;
121 text-align: right;
122 text-shadow: -1px -1px 0 #ddd,
123 1px -1px 0 #ddd,
124 -1px 1px 0 #ddd,
125 1px 1px 0 #ddd;
126 }
127 </style>
128 </head>
129
130 <body>
131 <div class="title">
132 <div class="title-content">{{title}}</div>
133 </div>
134
135 <!-- 正文内容 -->
136 <div class="text">{{text}}</div>
137
138 <!-- 署名 -->
139 <div class="signature">{{signature=@Pixelle.AI}}</div>
140 <script>
141 const index = Number("{{index}}");
142
143 document.addEventListener('DOMContentLoaded', () => {
144 const titleElement = document.querySelector('.title');
145 titleElement.style.display = index > 1 ? 'none' : 'block';
146 });
147 </script>
148 </body>
149
150 </html>
150 lines HTML