image_book.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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 href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=Dancing+Script:wght@400;700&family=Liu+Jian+Mao+Cao&family=ZCOOL+KuaiLe&display=swap" rel="stylesheet">
  13. <style>
  14. * { margin: 0; padding: 0; box-sizing: border-box; }
  15. html, body { width: 1080px; height: 1920px; overflow: hidden; }
  16. body {
  17. font-family: 'Noto Sans SC', 'PingFang SC', 'Source Han Sans', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  18. color: #fff;
  19. position: relative;
  20. background: #1a1a1a;
  21. background-image: url("{{image}}");
  22. background-size: cover;
  23. background-position: center bottom 400px;
  24. }
  25. /* 顶部区域 */
  26. .top-section {
  27. position: absolute;
  28. top: 10%;
  29. left: 50%;
  30. transform: translateX(-50%);
  31. text-align: center;
  32. width: 90%;
  33. }
  34. .image {
  35. position: absolute;
  36. top: 400px;
  37. left: 50%;
  38. transform: translate(-50%);
  39. }
  40. .title {
  41. font-size: 100px;
  42. font-weight: 900;
  43. line-height: 1.1;
  44. font-family: 'Noto Sans SC', sans-serif;
  45. color: #000;
  46. text-shadow: -3px -3px 0 #fff,
  47. 3px -3px 0 #fff,
  48. -3px 3px 0 #fff,
  49. 3px 3px 0 #fff;
  50. letter-spacing: 2px;
  51. margin-bottom: 20px;
  52. }
  53. .subtitle {
  54. font-size: 30px;
  55. font-weight: 500;
  56. font-family: 'Noto Sans SC', sans-serif;
  57. color: #000;
  58. text-shadow: -2px -2px 0 #fff,
  59. 2px -2px 0 #fff,
  60. -2px 2px 0 #fff,
  61. 2px 2px 0 #fff;
  62. letter-spacing: 2px;
  63. }
  64. /* 底部文字区域 */
  65. .bottom-section {
  66. position: absolute;
  67. top: 1000px;
  68. left: 50%;
  69. transform: translateX(-50%);
  70. text-align: center;
  71. width: 90%;
  72. }
  73. .main-text {
  74. font-size: 50px;
  75. font-weight: 700;
  76. font-family: 'Noto Sans SC', sans-serif;
  77. text-shadow: -2px -2px 0 #000,
  78. 2px -2px 0 #000,
  79. -2px 2px 0 #000,
  80. 2px 2px 0 #000;
  81. margin-bottom: 15px;
  82. letter-spacing: 3px;
  83. }
  84. .author {
  85. font-size: 30px;
  86. font-family: 'Liu Jian Mao Cao', 'ZCOOL KuaiLe', cursive;
  87. text-shadow: -1px -1px 0 #000,
  88. 1px -1px 0 #000,
  89. -1px 1px 0 #000,
  90. 1px 1px 0 #000;
  91. }
  92. </style>
  93. </head>
  94. <body>
  95. <!-- 顶部标题区 -->
  96. <div class="top-section">
  97. <div class="title">{{title}}</div>
  98. <div class="subtitle">{{subtitle=作者}}</div>
  99. </div>
  100. <!-- <img class="img" src="{{image}}" alt="内容图片"> -->
  101. <!-- 底部文字区 -->
  102. <div class="bottom-section">
  103. <div class="main-text">{{text}}</div>
  104. <div class="author">{{author=@Pixelle.AI}}</div>
  105. </div>
  106. </body>
  107. </html>