image_excerpt.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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. .image {
  37. position: absolute;
  38. inset: 0;
  39. width: 100%;
  40. height: 100%;
  41. object-fit: contain;
  42. z-index: -1;
  43. }
  44. /* 背景遮罩层 */
  45. body::before {
  46. content: '';
  47. position: absolute;
  48. inset: 0;
  49. background: rgba(232, 229, 224, 0.85);
  50. backdrop-filter: blur(10px);
  51. -webkit-backdrop-filter: blur(10px);
  52. z-index: 0;
  53. }
  54. /* 顶部标题 */
  55. .header {
  56. position: relative;
  57. z-index: 1;
  58. margin-bottom: 80px;
  59. }
  60. .title {
  61. font-size: 48px;
  62. font-weight: 500;
  63. font-family: 'Ma Shan Zheng', 'ZCOOL KuaiLe', cursive;
  64. color: #2a2a2a;
  65. letter-spacing: 8px;
  66. text-align: left;
  67. padding-bottom: 15px;
  68. border-bottom: 2px solid #2a2a2a;
  69. }
  70. /* 正文区域 */
  71. .content {
  72. position: relative;
  73. z-index: 1;
  74. /* flex: 1; */
  75. margin-bottom: 60px;
  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. .author {
  90. position: relative;
  91. z-index: 1;
  92. text-align: right;
  93. font-size: 32px;
  94. font-family: 'Noto Serif SC', serif;
  95. color: #2a2a2a;
  96. font-weight: 400;
  97. }
  98. .signature {
  99. position: absolute;
  100. font-size: 24px;
  101. font-family: 'Liu Jian Mao Cao', 'ZCOOL KuaiLe', cursive;
  102. color: #333;
  103. bottom: 20px;
  104. left: 50%;
  105. transform: translateX(-50%);
  106. }
  107. </style>
  108. </head>
  109. <body>
  110. <img class="image" src="{{image}}" alt="{{title}}" />
  111. <!-- 顶部标题 -->
  112. <div class="header">
  113. <div class="title">{{title}}</div>
  114. </div>
  115. <!-- 正文内容 -->
  116. <div class="content">
  117. <div class="excerpt">{{text}}</div>
  118. </div>
  119. <!-- 作者 -->
  120. <div class="author">——{{author=Pixelle.AI}}</div>
  121. <!-- 署名 -->
  122. <div class="signature">{{signature=@Pixelle.AI}}</div>
  123. </body>
  124. </html>