image_life_insights.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="template:media-width" content="1024">
  6. <meta name="template:media-height" content="1024">
  7. <link rel="preconnect" href="https://fonts.googleapis.com">
  8. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  9. <link href="https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=ZCOOL+KuaiLe&display=swap" rel="stylesheet">
  10. <style>
  11. html {
  12. margin: 0;
  13. padding: 0;
  14. }
  15. body {
  16. margin: 0;
  17. padding: 0;
  18. width: 1080px;
  19. height: 1920px;
  20. background: #000000;
  21. font-family: 'Noto Sans SC', 'PingFang SC', 'Source Han Sans', 'Microsoft YaHei', sans-serif;
  22. position: relative;
  23. overflow: hidden;
  24. display: flex;
  25. flex-direction: column;
  26. align-items: center;
  27. }
  28. /* 顶部标题区域 */
  29. .top-title {
  30. width: 100%;
  31. text-align: center;
  32. padding: 240px 60px 40px 60px;
  33. box-sizing: border-box;
  34. z-index: 1;
  35. }
  36. .top-title-text {
  37. font-size: 80px;
  38. font-weight: 400;
  39. color: #FFFFFF;
  40. letter-spacing: 2px;
  41. font-family: 'Ma Shan Zheng', cursive;
  42. }
  43. /* 中间图片区域 */
  44. .image-section {
  45. width: 100%;
  46. height: auto;
  47. display: flex;
  48. justify-content: center;
  49. padding: 0 40px;
  50. box-sizing: border-box;
  51. position: relative;
  52. z-index: 1;
  53. }
  54. .image-frame {
  55. width: 1000px;
  56. height: 800px;
  57. position: relative;
  58. display: flex;
  59. align-items: center;
  60. justify-content: center;
  61. background: #FFFFFF;
  62. padding: 8px;
  63. box-sizing: border-box;
  64. }
  65. /* 图片边框 - 白色,带老旧胶片感 */
  66. .image-frame::before {
  67. content: '';
  68. position: absolute;
  69. top: 0;
  70. left: 0;
  71. right: 0;
  72. bottom: 0;
  73. border: 3px solid #FFFFFF;
  74. border-radius: 0;
  75. box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  76. z-index: 2;
  77. pointer-events: none;
  78. }
  79. /* 图片容器 - 固定尺寸,强制裁剪 */
  80. .image-container {
  81. width: 984px;
  82. height: 784px;
  83. position: relative;
  84. overflow: hidden;
  85. }
  86. .image-container img {
  87. width: 984px;
  88. height: 784px;
  89. object-fit: cover;
  90. object-position: center;
  91. display: block;
  92. }
  93. /* 底部文字区域 */
  94. .bottom-text-section {
  95. width: 100%;
  96. padding: 0 60px;
  97. box-sizing: border-box;
  98. display: flex;
  99. flex-direction: column;
  100. align-items: center;
  101. justify-content: flex-start;
  102. z-index: 1;
  103. }
  104. /* 人生感悟 - 大红色粗体 */
  105. .highlight-text {
  106. font-size: 40px;
  107. color: #FFFFFF;
  108. font-weight: 400;
  109. letter-spacing: 3px;
  110. text-align: center;
  111. line-height: 1.2;
  112. font-family: 'ZCOOL KuaiLe', cursive;
  113. }
  114. </style>
  115. </head>
  116. <body>
  117. <!-- 顶部标题 -->
  118. <div class="top-title">
  119. <div class="top-title-text">{{title}}</div>
  120. </div>
  121. <!-- 中间图片区域 -->
  122. <div class="image-section">
  123. <div class="image-frame">
  124. <div class="image-container">
  125. <img src="{{image}}" alt="Frame Image">
  126. </div>
  127. </div>
  128. </div>
  129. <!-- 底部文字区域 -->
  130. <div class="bottom-text-section">
  131. <div class="highlight-text">{{text}}</div>
  132. </div>
  133. </body>
  134. </html>