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