forked from nineya/halo-theme-dream
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sheet_Bilibili.ftl
177 lines (148 loc) · 3.91 KB
/
sheet_Bilibili.ftl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<#include "template/layout.ftl">
<@layout title="追番 - ${blog_title!}" canonical="/s/fan">
<style>
.noBilibili {
display: none;
}
.imgBox {
margin: 0 auto;
display: none
}
.imgItem {
display: inline-block;
width: 25%;
aspect-ratio: 3/4;
margin: 0 auto;
position: relative;
padding:5px
}
#bilibili .imgItem1::before {
content: "";
position: absolute;
/* background-color: paleturquoise; var(--width)*/
background: linear-gradient(
to right,
paleturquoise 0%,
paleturquoise var(--width),
pink var(--width),
pink 100%
);
width: 100%;
height: 0.5rem;
width: 100%;
bottom: 0px;
left: 0;
bottom:0px;
}
.imgItem1 {
height: 100%;
background-color: #eee;
position: relative;
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
.isEnd {
text-align: center;
padding: 1rem;
}
@keyframes maskframes {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.descText {
position: absolute;
left: 0%;
right: 0%;
top: 0%;
bottom: 0%;
opacity: 0;
margin:5px;
color: #eee;
background-color: rgb(31, 30, 30, 0.7);
display: table-cell;
vertical-align: bottom;
}
.descText1 {
position: relative;
width: 100%;
height: 100%;
}
.descText2 {
position: absolute;
bottom: 0;
}
.descText:hover {
animation: maskframes 300ms ease-in;
animation-fill-mode: forwards;
}
.des {
width: 98%;
padding-bottom: 10px;
margin: 0 auto;
text-align: left;
}
.watched_progress_text {
background-color: pink;
width: 100%;
height: 30px;
display: flex;
justify-content: center;
align-items: center;
color: #333;
position: relative;
}
.watched_progress {
position: absolute;
left: 0;
background-color: paleturquoise;
height: 100%;
bottom: 0px
}
.watched_progress_text1 {
z-index:10
}
@media (max-width: 750px) {
.imgItem {
width: 33%;
}
}
@media (max-width: 600px) {
.imgItem {
width: 50%;
}
}
@media (max-width: 400px) {
.imgItem {
width: 100%;
}
}
</style>
<div class="imgBox bilibili card" id="bilibili" v-show="show">
<div class="imgItem" :style="{ '--width': (item.watched_progress*100)+'%' }" v-for="(item,index) in bilibiliContents" :key="index+'bilibiliContents'">
<div class="imgItem1" v-bind:style="{ backgroundImage: 'url(' + item.img + ')' }"></div>
<div class="descText">
<div class="descText1">
<div class="descText2">
<div class="des" @click="window.open(item.link)">{{item.des}}</div>
<div class="watched_progress_text">
<div class="watched_progress_text1">{{item.watched_progress_text}}</div>
<div class="watched_progress" :style="{width:(item.watched_progress*100)+'%'}">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="isEnd" v-show="isEnd">数据已经全部加载完了啦~</div>
</div>
<div class="card card-empty noBilibili">
<i class="fa fa-inbox"></i>
这家伙居然不追番,回<a href="${context!}">主页</a>看看吧
</div>
<input style="display:none" id="bilibili_api" value="${settings.bilibili_api!}" />
</@layout>