image_book.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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=1920, height=1080">
  8. <!-- Google Fonts - 手写艺术字体 -->
  9. <link rel="preconnect" href="https://fonts.googleapis.com">
  10. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  11. <link href="https://fonts.googleapis.com/css2?family=Liu+Jian+Mao+Cao&family=Ma+Shan+Zheng&family=ZCOOL+XiaoWei&display=swap" rel="stylesheet">
  12. <style>
  13. * {
  14. margin: 0;
  15. padding: 0;
  16. box-sizing: border-box;
  17. }
  18. html, body {
  19. width: 1920px;
  20. height: 1080px;
  21. overflow: hidden;
  22. }
  23. body {
  24. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  25. background-color: #1a1a1a;
  26. color: #ffffff;
  27. background-image: url("{{image}}");
  28. background-size: cover;
  29. background-position: center;
  30. position: relative;
  31. }
  32. .container {
  33. position: relative;
  34. min-height: 100vh;
  35. width: 100%;
  36. }
  37. /* Stars background */
  38. .stars {
  39. position: absolute;
  40. inset: 0;
  41. overflow: hidden;
  42. }
  43. .star {
  44. position: absolute;
  45. width: 4px;
  46. height: 4px;
  47. background-color: rgba(255, 255, 255, 0.3);
  48. border-radius: 50%;
  49. animation: pulse 2s ease-in-out infinite;
  50. }
  51. @keyframes pulse {
  52. 0%, 100% { opacity: 0.3; }
  53. 50% { opacity: 0.8; }
  54. }
  55. /* Title */
  56. .title {
  57. position: absolute;
  58. top: 32px;
  59. right: 32px;
  60. z-index: 10;
  61. font-size: 50px;
  62. text-align: right;
  63. /* 黑色描边 */
  64. text-shadow: 0 0 0 #0e0a0a,
  65. -2px -2px 0 #0e0a0a,
  66. 2px -2px 0 #0e0a0a,
  67. -2px 2px 0 #0e0a0a,
  68. 2px 2px 0 #0e0a0a;
  69. }
  70. /* Main Content */
  71. .main-content {
  72. position: relative;
  73. display: flex;
  74. align-items: center;
  75. justify-content: center;
  76. min-height: 100vh;
  77. padding: 32px;
  78. }
  79. /* Decorative blobs */
  80. .blob {
  81. position: absolute;
  82. border-radius: 50%;
  83. filter: blur(60px);
  84. opacity: 0.5;
  85. }
  86. .blob-1 {
  87. top: 25%;
  88. left: 25%;
  89. width: 128px;
  90. height: 192px;
  91. background-color: #4a7c8c;
  92. }
  93. .blob-2 {
  94. top: 33%;
  95. right: 25%;
  96. width: 160px;
  97. height: 224px;
  98. background-color: #8b3a3a;
  99. }
  100. .blob-3 {
  101. bottom: 25%;
  102. left: 33%;
  103. width: 144px;
  104. height: 176px;
  105. background-color: #6b4423;
  106. opacity: 0.4;
  107. }
  108. /* Text Content */
  109. .text-content {
  110. position: relative;
  111. z-index: 10;
  112. text-align: center;
  113. }
  114. .content {
  115. font-size: 70px;
  116. font-weight: 900;
  117. color: white;
  118. letter-spacing: 0.05em;
  119. font-style: italic;
  120. /* 黑色描边 6px */
  121. text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9),
  122. -4px -4px 4px #0e0a0a,
  123. 4px -4px 4px #0e0a0a,
  124. -4px 4px 4px #0e0a0a,
  125. 4px 4px 4px #0e0a0a,
  126. 0 8px 16px rgba(0,0,0,0.5);
  127. /* 手写艺术字体 */
  128. font-family: 'ZCOOL XiaoWei', cursive, serif;
  129. }
  130. /* Footer */
  131. .footer {
  132. display: flex;
  133. align-items: center;
  134. justify-content: center;
  135. width: 100%;
  136. padding: 25px 20px 0 20px;
  137. position: absolute;
  138. bottom: 32px;
  139. color: #fff;
  140. }
  141. .author {
  142. font-size: 50px;
  143. font-weight: 500;
  144. color: gray;
  145. /* 手写艺术字体 */
  146. font-family: 'Liu Jian Mao Cao', cursive, serif;
  147. }
  148. </style>
  149. </head>
  150. <body>
  151. <div class="container">
  152. <!-- Stars background -->
  153. <div class="stars" id="stars"></div>
  154. <!-- Title -->
  155. <div class="title">{{title}}</div>
  156. <!-- Main Content -->
  157. <div class="main-content">
  158. <!-- Decorative blobs -->
  159. <div class="blob blob-1"></div>
  160. <div class="blob blob-2"></div>
  161. <div class="blob blob-3"></div>
  162. <!-- Text Content -->
  163. <div class="text-content">
  164. <p class="content">{{text}}</p>
  165. </div>
  166. </div>
  167. </div>
  168. <div class="footer">
  169. <div class="author">{{author=@Pixelle.AI}}</div>
  170. </div>
  171. <script>
  172. // Generate stars
  173. const starsContainer = document.getElementById('stars');
  174. for (let i = 0; i < 50; i++) {
  175. const star = document.createElement('div');
  176. star.className = 'star';
  177. star.style.left = Math.random() * 100 + '%';
  178. star.style.top = Math.random() * 100 + '%';
  179. star.style.animationDelay = Math.random() * 3 + 's';
  180. star.style.animationDuration = (2 + Math.random() * 3) + 's';
  181. starsContainer.appendChild(star);
  182. }
  183. </script>
  184. </body>
  185. </html>