返回 Pixelle-Video
static_excerpt.html
根目录 / templates / 1080x1920 / static_excerpt.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 padding: 80px 100px;
38 }
39
40 /* 背景遮罩层 */
41 body::before {
42 content: '';
43 position: absolute;
44 inset: 0;
45 background: rgba(232, 229, 224, 0.85);
46 backdrop-filter: blur(10px);
47 -webkit-backdrop-filter: blur(10px);
48 z-index: 0;
49 }
50
51 /* 顶部标题 */
52 .header {
53 position: relative;
54 z-index: 1;
55 margin-bottom: 80px;
56 }
57
58 .title {
59 font-size: 48px;
60 font-weight: 500;
61 font-family: 'Ma Shan Zheng', 'ZCOOL KuaiLe', cursive;
62 color: #2a2a2a;
63 letter-spacing: 8px;
64 text-align: left;
65 padding-bottom: 15px;
66 border-bottom: 2px solid #2a2a2a;
67 }
68
69 /* 正文区域 */
70 .content {
71 position: relative;
72 z-index: 1;
73 /* flex: 1; */
74 margin-bottom: 60px;
75 }
76
77 .excerpt {
78 font-size: 36px;
79 font-weight: 400;
80 line-height: 2.0;
81 font-family: 'Noto Serif SC', serif;
82 color: #2a2a2a;
83 text-align: justify;
84 text-indent: 2em;
85 letter-spacing: 1px;
86 white-space: pre-line;
87 }
88
89
90 /* 署名 */
91 .author {
92 position: relative;
93 z-index: 1;
94 text-align: right;
95 font-size: 32px;
96 font-family: 'Noto Serif SC', serif;
97 color: #2a2a2a;
98 font-weight: 400;
99 }
100
101 .signature {
102 position: absolute;
103 font-size: 24px;
104 font-family: 'Liu Jian Mao Cao', 'ZCOOL KuaiLe', cursive;
105 color: #333;
106 bottom: 20px;
107 left: 50%;
108 transform: translateX(-50%);
109 }
110 </style>
111 </head>
112
113 <body>
114 <!-- 顶部标题 -->
115 <div class="header">
116 <div class="title">{{title}}</div>
117 </div>
118
119 <!-- 正文内容 -->
120 <div class="content">
121 <div class="excerpt">{{text}}</div>
122 </div>
123
124 <!-- 作者 -->
125 <div class="author">——{{author=Pixelle.AI}}</div>
126
127 <!-- 署名 -->
128 <div class="signature">{{signature=@Pixelle.AI}}</div>
129 </body>
130
131 </html>
131 lines HTML