feat:add template
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="template:media-width" content="1024">
|
||||
@@ -9,18 +10,29 @@
|
||||
<!-- Google Fonts - 中文字体 -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700;900&family=Noto+Serif+SC:wght@400;700;900&family=Liu+Jian+Mao+Cao&family=Ma+Shan+Zheng&display=swap" rel="stylesheet">
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700;900&family=Noto+Serif+SC:wght@400;700;900&family=Liu+Jian+Mao+Cao&family=Ma+Shan+Zheng&display=swap"
|
||||
rel="stylesheet">
|
||||
<style>
|
||||
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html, body { width: 1920px; height: 1080px; overflow: hidden; }
|
||||
html,
|
||||
body {
|
||||
width: 1920px;
|
||||
height: 1080px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Noto Sans SC', 'PingFang SC', 'Source Han Sans', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
|
||||
color: #fff;
|
||||
position: relative;
|
||||
background: transparent; /* 移除黑色背景 */
|
||||
background: transparent;
|
||||
/* 移除黑色背景 */
|
||||
background-image: url("{{image}}");
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
@@ -43,18 +55,18 @@
|
||||
}
|
||||
|
||||
.title {
|
||||
position: absolute;
|
||||
top: 160px;
|
||||
position: absolute;
|
||||
top: 160px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
font-size: 80px;
|
||||
font-weight: 600;
|
||||
line-height: 1.2;
|
||||
text-shadow: 0 6px 22px rgba(0,0,0,0.6),
|
||||
-2px -2px 0 #000,
|
||||
2px -2px 0 #000,
|
||||
-2px 2px 0 #000,
|
||||
2px 2px 0 #000;
|
||||
text-shadow: 0 6px 22px rgba(0, 0, 0, 0.6),
|
||||
-2px -2px 0 #000,
|
||||
2px -2px 0 #000,
|
||||
-2px 2px 0 #000,
|
||||
2px 2px 0 #000;
|
||||
/* 使用 Ma Shan Zheng 毛笔字体 */
|
||||
font-family: 'Ma Shan Zheng', 'PingFang SC', 'Source Han Sans', 'Microsoft YaHei', cursive;
|
||||
letter-spacing: 4px;
|
||||
@@ -62,9 +74,10 @@
|
||||
|
||||
/* 底部字幕覆盖在图片底部 */
|
||||
.text {
|
||||
position: absolute;
|
||||
bottom: 170px;
|
||||
width: 100%; /* 稍微调整以适应全宽图片 */
|
||||
position: absolute;
|
||||
bottom: 170px;
|
||||
width: 100%;
|
||||
/* 稍微调整以适应全宽图片 */
|
||||
padding: 0 60px;
|
||||
text-align: center;
|
||||
font-size: 54px;
|
||||
@@ -73,12 +86,13 @@
|
||||
color: #ffffff;
|
||||
font-family: 'ArtisticFont', 'Noto Serif SC', 'Noto Sans SC', 'PingFang SC', serif;
|
||||
letter-spacing: 1px;
|
||||
text-shadow: 0 6px 22px rgba(0,0,0,0.6),
|
||||
-2px -2px 0 #000,
|
||||
2px -2px 0 #000,
|
||||
-2px 2px 0 #000,
|
||||
2px 2px 0 #000;
|
||||
text-shadow: 0 6px 22px rgba(0, 0, 0, 0.6),
|
||||
-2px -2px 0 #000,
|
||||
2px -2px 0 #000,
|
||||
-2px 2px 0 #000,
|
||||
2px 2px 0 #000;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
.footer {
|
||||
display: flex;
|
||||
@@ -90,18 +104,18 @@
|
||||
bottom: 20px;
|
||||
color: #fff;
|
||||
text-shadow: -1px -1px 0 #000,
|
||||
1px -1px 0 #000,
|
||||
-1px 1px 0 #000,
|
||||
1px 1px 0 #000;
|
||||
1px -1px 0 #000,
|
||||
-1px 1px 0 #000,
|
||||
1px 1px 0 #000;
|
||||
}
|
||||
|
||||
|
||||
.author {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
letter-spacing: 2px;
|
||||
}
|
||||
|
||||
|
||||
.author-name {
|
||||
font-size: 30px;
|
||||
font-weight: 600;
|
||||
@@ -109,53 +123,54 @@
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
|
||||
.author-mark {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
/* border-radius: 50%; */
|
||||
/* background: rgba(149, 165, 166, 0.7); */
|
||||
}
|
||||
|
||||
|
||||
.author-desc {
|
||||
font-size: 22px;
|
||||
/* color: #5d6d7e; */
|
||||
line-height: 1.3;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
|
||||
.logo-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
|
||||
.logo {
|
||||
font-size: 24px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
|
||||
.logo-marks {
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
|
||||
.logo-mark {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: rgba(149, 165, 166, 0.45);
|
||||
}
|
||||
|
||||
|
||||
.logo-mark.active {
|
||||
background: rgba(149, 165, 166, 0.75);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- <div class="bg"></div> -->
|
||||
<div class="main">
|
||||
<div class="main">
|
||||
<div class="title">{{title}}</div>
|
||||
<div class="text">{{text}}</div>
|
||||
</div>
|
||||
@@ -178,4 +193,5 @@
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user