diff --git a/package.json b/package.json index f634ebc..14c0ab6 100644 --- a/package.json +++ b/package.json @@ -80,5 +80,6 @@ "**/*.{json,css,scss,md,webmanifest}": [ "prettier -w" ] - } + }, + "packageManager": "pnpm@10.12.4+sha512.5ea8b0deed94ed68691c9bad4c955492705c5eeb8a87ef86bc62c74a26b037b08ff9570f108b2e4dbd1dd1a9186fea925e527f141c648e85af45631074680184" } diff --git a/src/app/douban/page.tsx b/src/app/douban/page.tsx index 92628be..ecf9688 100644 --- a/src/app/douban/page.tsx +++ b/src/app/douban/page.tsx @@ -189,7 +189,7 @@ function DoubanPageClient() { ) : ( <> {/* 内容网格 */} -
+
{loading ? // 显示骨架屏 skeletonData.map((index) => ( diff --git a/src/components/AggregateCard.tsx b/src/components/AggregateCard.tsx index 760b944..d04fece 100644 --- a/src/components/AggregateCard.tsx +++ b/src/components/AggregateCard.tsx @@ -134,7 +134,6 @@ const AggregateCard: React.FC = ({ src={first.poster} alt={first.title} fill - loading='lazy' className={`object-cover transition-transform duration-500 cubic-bezier(0.4,0,0.2,1) group-hover:scale-110 ${ isLoaded diff --git a/src/components/DemoCard.tsx b/src/components/DemoCard.tsx index 1995086..ba65546 100644 --- a/src/components/DemoCard.tsx +++ b/src/components/DemoCard.tsx @@ -58,7 +58,7 @@ const DemoCard = ({ id, title, poster, rate, type }: DemoCardProps) => { return (
{/* 海报图片区域 */} @@ -72,7 +72,6 @@ const DemoCard = ({ id, title, poster, rate, type }: DemoCardProps) => { alt={title} fill ref={imgRef} - loading='lazy' className={`object-cover transition-transform duration-500 cubic-bezier(0.4,0,0.2,1) group-hover:scale-110 ${ isLoaded diff --git a/src/components/DoubanCardSkeleton.tsx b/src/components/DoubanCardSkeleton.tsx index 26bc645..1d4e80b 100644 --- a/src/components/DoubanCardSkeleton.tsx +++ b/src/components/DoubanCardSkeleton.tsx @@ -1,11 +1,11 @@ +import { ImagePlaceholder } from '@/components/ImagePlaceholder'; + const DoubanCardSkeleton = () => { return (
- {/* 海报骨架 - 2:3 比例 */} -
-
-
+ {/* 图片占位符 - 骨架屏效果 */} + {/* 信息层骨架 */}
diff --git a/src/components/VideoCard.tsx b/src/components/VideoCard.tsx index d8a0e33..2452f39 100644 --- a/src/components/VideoCard.tsx +++ b/src/components/VideoCard.tsx @@ -158,7 +158,7 @@ export default function VideoCard({ )}${year ? `&year=${year}` : ''}${from ? `&from=${from}` : ''}`} >
@@ -171,7 +171,6 @@ export default function VideoCard({ src={poster} alt={title} fill - loading='lazy' className={`object-cover transition-transform duration-500 cubic-bezier(0.4,0,0.2,1) group-hover:scale-110 ${ isLoaded