返回 VideoClaw
image_healing.html
根目录 / video-claw / video-claw / backend / 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 display: flex;
36 flex-direction: column;
37 }
38
39 .media-bg {
40 position: absolute;
41 inset: 0;
42 z-index: 0;
43 overflow: hidden;
44 }
45
46 /* 背景遮罩层 */
47 /* body::before {
48 content: '';
49 position: absolute;
50 inset: 0;
51 background: rgba(232, 229, 224, 0.85);
52 backdrop-filter: blur(5px);
53 -webkit-backdrop-filter: blur(5x);
54 z-index: 0;
55 } */
56
57 /* 顶部标题 */
58 .title {
59 position: absolute;
60 width: 500px;
61 top: 40%;
62 transform: translateY(-50%);
63 right: 60px;
64 z-index: 1;
65 }
66
67 .title-content {
68 font-size: 80px;
69 font-weight: 600;
70 font-family: 'Ma Shan Zheng', 'ZCOOL KuaiLe', cursive;
71 color: #2a2a2a;
72 letter-spacing: 8px;
73 text-align: right;
74 padding-bottom: 15px;
75 border-bottom: 2px solid #2a2a2a;
76 text-shadow: -1px -1px 0 #ddd,
77 1px -1px 0 #ddd,
78 -1px 1px 0 #ddd,
79 1px 1px 0 #ddd;
80 }
81
82 /* 作者 */
83 .author {
84 z-index: 1;
85 text-align: right;
86 font-size: 32px;
87 font-family: 'Noto Serif SC', serif;
88 color: #2a2a2a;
89 font-weight: 400;
90 text-shadow: -1px -1px 0 #ddd,
91 1px -1px 0 #ddd,
92 -1px 1px 0 #ddd,
93 1px 1px 0 #ddd;
94 }
95
96 /* 正文区域 */
97 .text {
98 width: 100%;
99 position: absolute;
100 font-size: 46px;
101 font-weight: 400;
102 line-height: 2.0;
103 font-family: 'Liu Jian Mao Cao', 'ZCOOL KuaiLe', cursive;
104 color: #ffffff;
105 text-align: justify;
106 text-indent: 2em;
107 letter-spacing: 1px;
108 white-space: pre-line;
109 top: 70%;
110 text-align: center;
111 text-shadow: -1px -1px 0 #222,
112 1px -1px 0 #222,
113 -1px 1px 0 #222,
114 1px 1px 0 #222;
115 padding: 0 100px;
116 }
117
118
119 .signature {
120 position: absolute;
121 font-size: 24px;
122 color: #333;
123 bottom: 20px;
124 right: 20px;
125 text-align: right;
126 text-shadow: -1px -1px 0 #ddd,
127 1px -1px 0 #ddd,
128 -1px 1px 0 #ddd,
129 1px 1px 0 #ddd;
130 }
131 </style>
132 </head>
133
134 <body>
135 <div class="media-bg">{{media}}</div>
136
137 <div class="title">
138 <div class="title-content">{{title}}</div>
139 </div>
140
141 <!-- 正文内容 -->
142 <div class="text">{{text}}</div>
143
144 <!-- 署名 -->
145 <div class="signature">{{signature=HITsz-TMG}}</div>
146 <script>
147 const index = Number("{{index}}");
148
149 document.addEventListener('DOMContentLoaded', () => {
150 const titleElement = document.querySelector('.title');
151 titleElement.style.display = index > 1 ? 'none' : 'block';
152 });
153 </script>
154 </body>
155
156 </html>
157
157 lines HTML