@@ -88,25 +88,35 @@ const description = "分享软件开发经验、技术心得和摄影作品。
8888 </div >
8989 </div >
9090
91- <!-- Photos Section -->
92- <div class =" mt-16 sm:mt-20" >
93- <div class =" -my-4 flex justify-center gap-5 overflow-hidden py-4 sm:gap-8" >
94- { photosPosts .map ((photo , index ) => {
95- const rotations = [' rotate-2' , ' -rotate-2' , ' rotate-2' , ' -rotate-2' , ' rotate-2' ];
96- const rotation = rotations [index % rotations .length ];
97- const photoUrl = photo .data .gallery ?.[0 ]?.src || getPreviewImage (photo );
98- return photoUrl && (
99- <div class = { ` relative aspect-[9/10] w-44 flex-none overflow-hidden rounded-xl bg-zinc-100 sm:w-72 sm:rounded-2xl dark:bg-zinc-800 ${rotation } ` } >
100- <img
101- src = { photoUrl }
102- alt = { photo .data .title }
103- class = " absolute inset-0 h-full w-full object-cover"
104- />
105- </div >
106- );
107- })}
108- </div >
91+ </div >
92+ </div >
93+ </div >
94+ </div >
95+
96+ <!-- Photos Section - Full Width -->
97+ <div class =" mt-16 sm:mt-20" >
98+ <div class =" -my-4 flex justify-center gap-5 overflow-hidden py-4 sm:gap-8" >
99+ { photosPosts .map ((photo , index ) => {
100+ const rotations = [' rotate-2' , ' -rotate-2' , ' rotate-2' , ' -rotate-2' , ' rotate-2' ];
101+ const rotation = rotations [index % rotations .length ];
102+ const photoUrl = photo .data .gallery ?.[0 ]?.src || getPreviewImage (photo );
103+ return photoUrl && (
104+ <div class = { ` relative aspect-[9/10] w-44 flex-none overflow-hidden rounded-xl bg-zinc-100 sm:w-72 sm:rounded-2xl dark:bg-zinc-800 ${rotation } ` } >
105+ <img
106+ src = { photoUrl }
107+ alt = { photo .data .title }
108+ class = " absolute inset-0 h-full w-full object-cover"
109+ />
109110 </div >
111+ );
112+ })}
113+ </div >
114+ </div >
115+
116+ <div class =" sm:px-8" >
117+ <div class =" mx-auto w-full max-w-7xl lg:px-8" >
118+ <div class =" relative px-4 sm:px-8 lg:px-12" >
119+ <div class =" mx-auto max-w-2xl lg:max-w-5xl" >
110120
111121 </div >
112122 </div >
0 commit comments