File tree Expand file tree Collapse file tree 3 files changed +56
-7
lines changed Expand file tree Collapse file tree 3 files changed +56
-7
lines changed Original file line number Diff line number Diff line change 30
30
"rehype-stringify" :
" https://esm.sh/[email protected] " ,
31
31
"rehype-slug" :
" https://esm.sh/[email protected] " ,
32
32
"rehype-autolink-headings" :
" https://esm.sh/[email protected] " ,
33
- "@shikijs/rehype" : " https://esm.sh/@shikijs/rehype@1.11.1 " ,
33
+ "@shikijs/rehype" : " https://esm.sh/@shikijs/rehype@1.12.0 " ,
34
34
"remark-gfm" :
" https://esm.sh/[email protected] " ,
35
35
"yaml" :
" https://deno.land/[email protected] /yaml/mod.ts" ,
36
36
"Command" :
" https://deno.land/x/[email protected] /command/mod.ts" ,
Original file line number Diff line number Diff line change @@ -16,10 +16,12 @@ body {
16
16
--second-color : # 34495e ;
17
17
--title-color : # e67e22 ;
18
18
--box-size : 3.6rem ;
19
+ --carousel-width : min (80vw , 32rem );
19
20
}
20
21
21
22
body {
22
23
color : var (--global-color );
24
+ background-color : var (--bg-color );
23
25
}
24
26
25
27
.h2-title ,
34
36
text-decoration : none;
35
37
}
36
38
37
- body {
38
- background-color : var (--bg-color );
39
- }
40
-
41
-
42
39
.wrapper {
43
40
display : flex;
44
41
flex-direction : column;
45
42
align-items : center;
46
43
justify-content : center;
47
44
height : 100% ;
48
- padding-block-start : 4rem ;
45
+ padding-block : 4rem ;
49
46
color : var (--global-color );
50
47
51
48
& .text {
@@ -148,4 +145,48 @@ dialog::backdrop {
148
145
text-decoration-thickness : 0.2rem ;
149
146
text-decoration-color : var (--global-color );
150
147
text-underline-offset : 0.5rem ;
148
+ }
149
+
150
+ .photos-container {
151
+ display : flex;
152
+ justify-content : center;
153
+ width : var (--carousel-width );
154
+ overflow : hidden;
155
+ position : relative;
156
+ }
157
+
158
+ .photos-box {
159
+ display : flex;
160
+ }
161
+
162
+ .photos-box img {
163
+ width : 100% ;
164
+ height : 100% ;
165
+ background-color : white;
166
+ object-fit : contain;
167
+ flex-shrink : 0 ;
168
+ }
169
+
170
+ @keyframes carousel {
171
+
172
+ 0% ,
173
+ 100% {
174
+ transform : translateX (0 );
175
+ }
176
+
177
+ 25% {
178
+ transform : translateX (calc (var (--carousel-width ) * -1 ));
179
+ }
180
+
181
+ 50% {
182
+ transform : translateX (calc (var (--carousel-width ) * -2 ));
183
+ }
184
+
185
+ 75% {
186
+ transform : translateX (calc (var (--carousel-width ) * -3 ));
187
+ }
188
+ }
189
+
190
+ .photos-box {
191
+ animation : carousel 15s infinite;
151
192
}
Original file line number Diff line number Diff line change @@ -68,6 +68,14 @@ <h2 class="h2-title animate__animated animate__backInDown">❤️记录我和小
68
68
</ div >
69
69
< div class ="container " id ="photos-wall ">
70
70
< p class ="text animate__animated animate__swing animate__infinite " id ="hidden-button "> 我有好多话想对你说,你愿意听吗</ p >
71
+ < div class ="photos-container ">
72
+ < div class ="photos-box ">
73
+ < img src ="https://remain.fwqaq.us/xiaochen_admission.jpg " alt ="陈录取通知书 ">
74
+ < img src ="https://remain.fwqaq.us/sfo.jpg " alt ="张 sfo ">
75
+ < img src ="https://remain.fwqaq.us/chen_cat.jpg " alt ="猫咪 ">
76
+ < img src ="https://remain.fwqaq.us/chen_heian.jpg " alt ="黑暗料理 ">
77
+ </ div >
78
+ </ div >
71
79
72
80
< dialog close id ="x-dialog ">
73
81
< p class ="text "> 我有好多话想对你说,你愿意听吗</ p >
You can’t perform that action at this time.
0 commit comments