static_excerpt.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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
  13. href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600&family=Ma+Shan+Zheng&family=ZCOOL+KuaiLe&display=swap"
  14. rel="stylesheet">
  15. <style>
  16. * {
  17. margin: 0;
  18. padding: 0;
  19. box-sizing: border-box;
  20. }
  21. html,
  22. body {
  23. width: 1080px;
  24. height: 1920px;
  25. overflow: hidden;
  26. }
  27. body {
  28. font-family: 'Noto Serif SC', serif;
  29. color: #2a2a2a;
  30. position: relative;
  31. background: transparent;
  32. display: flex;
  33. flex-direction: column;
  34. padding: 80px 100px;
  35. }
  36. /* 背景遮罩层 */
  37. body::before {
  38. content: '';
  39. position: absolute;
  40. inset: 0;
  41. background: rgba(232, 229, 224, 0.85);
  42. backdrop-filter: blur(10px);
  43. -webkit-backdrop-filter: blur(10px);
  44. z-index: 0;
  45. }
  46. /* 顶部标题 */
  47. .header {
  48. position: relative;
  49. z-index: 1;
  50. margin-bottom: 80px;
  51. }
  52. .title {
  53. font-size: 48px;
  54. font-weight: 500;
  55. font-family: 'Ma Shan Zheng', 'ZCOOL KuaiLe', cursive;
  56. color: #2a2a2a;
  57. letter-spacing: 8px;
  58. text-align: left;
  59. padding-bottom: 15px;
  60. border-bottom: 2px solid #2a2a2a;
  61. }
  62. /* 正文区域 */
  63. .content {
  64. position: relative;
  65. z-index: 1;
  66. /* flex: 1; */
  67. margin-bottom: 60px;
  68. }
  69. .excerpt {
  70. font-size: 36px;
  71. font-weight: 400;
  72. line-height: 2.0;
  73. font-family: 'Noto Serif SC', serif;
  74. color: #2a2a2a;
  75. text-align: justify;
  76. text-indent: 2em;
  77. letter-spacing: 1px;
  78. white-space: pre-line;
  79. }
  80. /* 署名 */
  81. .author {
  82. position: relative;
  83. z-index: 1;
  84. text-align: right;
  85. font-size: 32px;
  86. font-family: 'Noto Serif SC', serif;
  87. color: #2a2a2a;
  88. font-weight: 400;
  89. }
  90. .signature {
  91. position: absolute;
  92. font-size: 24px;
  93. font-family: 'Liu Jian Mao Cao', 'ZCOOL KuaiLe', cursive;
  94. color: #333;
  95. bottom: 20px;
  96. left: 50%;
  97. transform: translateX(-50%);
  98. }
  99. </style>
  100. </head>
  101. <body>
  102. <!-- 顶部标题 -->
  103. <div class="header">
  104. <div class="title">{{title}}</div>
  105. </div>
  106. <!-- 正文内容 -->
  107. <div class="content">
  108. <div class="excerpt">{{text}}</div>
  109. </div>
  110. <!-- 作者 -->
  111. <div class="author">——{{author=Pixelle.AI}}</div>
  112. <!-- 署名 -->
  113. <div class="signature">{{signature=@Pixelle.AI}}</div>
  114. </body>
  115. </html>