Skip to content

Commit 5a2334c

Browse files
committed
feat:update templaters
1 parent cd09e80 commit 5a2334c

12 files changed

Lines changed: 26 additions & 18 deletions
-8.64 KB
Loading
-6.57 KB
Loading
1.05 KB
Loading
86 Bytes
Loading
-25.3 KB
Loading
-34.3 KB
Loading
-166 Bytes
Loading
-2.51 KB
Loading

templates/1080x1920/image_book.html

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,28 @@
2323
background: #1a1a1a;
2424
background-image: url("{{image}}");
2525
background-size: cover;
26-
background-position: center;
26+
background-position: center bottom 400px;
2727
}
2828

2929
/* 顶部区域 */
3030
.top-section {
3131
position: absolute;
32-
top: 18%;
32+
top: 10%;
3333
left: 50%;
3434
transform: translateX(-50%);
3535
text-align: center;
3636
width: 90%;
3737
}
3838

39+
.image {
40+
position: absolute;
41+
top: 400px;
42+
left: 50%;
43+
transform: translate(-50%);
44+
}
45+
3946
.title {
40-
font-size: 120px;
47+
font-size: 100px;
4148
font-weight: 900;
4249
line-height: 1.1;
4350
font-family: 'Noto Sans SC', sans-serif;
@@ -51,7 +58,7 @@
5158
}
5259

5360
.subtitle {
54-
font-size: 36px;
61+
font-size: 30px;
5562
font-weight: 500;
5663
font-family: 'Noto Sans SC', sans-serif;
5764
color: #000;
@@ -65,15 +72,15 @@
6572
/* 底部文字区域 */
6673
.bottom-section {
6774
position: absolute;
68-
bottom: 200px;
75+
top: 1000px;
6976
left: 50%;
7077
transform: translateX(-50%);
7178
text-align: center;
7279
width: 90%;
7380
}
7481

7582
.main-text {
76-
font-size: 60px;
83+
font-size: 50px;
7784
font-weight: 700;
7885
font-family: 'Noto Sans SC', sans-serif;
7986
text-shadow: -2px -2px 0 #000,
@@ -101,6 +108,8 @@
101108
<div class="subtitle">{{subtitle=作者}}</div>
102109
</div>
103110

111+
<!-- <img class="img" src="{{image}}" alt="内容图片"> -->
112+
104113
<!-- 底部文字区 -->
105114
<div class="bottom-section">
106115
<div class="main-text">{{text}}</div>

templates/1080x1920/image_fashion_vintage.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020

2121
/* 顶部标题区(约25%)*/
2222
.top {
23-
height: 25%;
23+
height: 20%;
2424
background: #e8d5cc; /* 淡棕粉色 */
2525
position: relative;
2626
display: flex;
27-
align-items: center;
27+
align-items: flex-end;
2828
justify-content: center;
2929
padding: 80px 60px;
3030
}
@@ -76,7 +76,7 @@
7676
background: #f8f6f4; /* 浅灰白色 */
7777
position: relative;
7878
display: flex;
79-
align-items: center;
79+
align-items: flex-start;
8080
justify-content: center;
8181
overflow: hidden;
8282
}
@@ -100,9 +100,9 @@
100100
background: #e8d5cc; /* 与顶部相同颜色 */
101101
position: relative;
102102
display: flex;
103-
align-items: center;
103+
align-items: flex-start;
104104
justify-content: center;
105-
padding: 60px;
105+
padding: 0px;
106106
}
107107

108108
.bottom-decoration {

0 commit comments

Comments
 (0)