Files
LunaTV/src/components/DoubanCardSkeleton.tsx
SongPro 7f22bc87b5 refactor(components): 优化卡片组件并更新运行时配置
- 移除多个卡片组件的懒加载属性以提升首屏性能
- 使用ImagePlaceholder组件统一骨架屏实现
- 修复DemoCard组件中的拼写错误
- 标准化runtime.ts中的JSON格式
- 更新package.json中的包管理器配置
2025-07-03 23:09:05 +08:00

22 lines
715 B
TypeScript

import { ImagePlaceholder } from '@/components/ImagePlaceholder';
const DoubanCardSkeleton = () => {
return (
<div className='w-full'>
<div className='group relative w-full rounded-lg bg-transparent shadow-none flex flex-col'>
{/* 图片占位符 - 骨架屏效果 */}
<ImagePlaceholder aspectRatio='aspect-[2/3]' />
{/* 信息层骨架 */}
<div className='absolute top-[calc(100%+0.5rem)] left-0 right-0'>
<div className='flex flex-col items-center justify-center'>
<div className='h-4 w-24 sm:w-32 bg-gray-200 rounded animate-pulse mb-2'></div>
</div>
</div>
</div>
</div>
);
};
export default DoubanCardSkeleton;