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