image_healing.html 4.1 KB

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