feat: implement favorites

This commit is contained in:
shinya
2025-06-20 01:27:31 +08:00
parent 9bf8596ea8
commit cf28d1206d
8 changed files with 511 additions and 113 deletions

View File

@@ -66,7 +66,7 @@ const DemoCard = ({ title, poster }: DemoCardProps) => {
onClick={handleClick}
>
{/* 海报图片 - 2:3 比例 */}
<div className='relative aspect-[2/3] w-full overflow-hidden'>
<div className='relative aspect-[2/3] w-full overflow-hidden rounded-md'>
<Image
src={poster}
alt={title}
@@ -90,7 +90,7 @@ const DemoCard = ({ title, poster }: DemoCardProps) => {
</div>
</div>
{/* 信息层 */}
<div className='absolute top-[calc(100%+0.5rem)] left-0 right-0'>
<div className='absolute top-[calc(100%+0.2rem)] left-0 right-0'>
<div className='flex flex-col items-center justify-center'>
<span className='text-gray-900 font-semibold truncate w-full text-center'>
{title}