feat: remove homepage recommends

This commit is contained in:
shinya
2025-06-23 19:21:15 +08:00
parent b913c0cecd
commit b223771554
2 changed files with 0 additions and 94 deletions

View File

@@ -1,21 +1,11 @@
'use client';
import {
Film,
MessageCircleHeart,
MountainSnow,
Star,
Swords,
Tv,
VenetianMask,
} from 'lucide-react';
import { Suspense, useEffect, useState } from 'react';
// 客户端收藏 API
import { getAllFavorites } from '@/lib/db.client';
import CapsuleSwitch from '@/components/CapsuleSwitch';
import CollectionCard from '@/components/CollectionCard';
import ContinueWatching from '@/components/ContinueWatching';
import DemoCard from '@/components/DemoCard';
import PageLayout from '@/components/PageLayout';
@@ -33,29 +23,6 @@ interface DoubanResponse {
list: DoubanItem[];
}
// 合集数据
const collections = [
{
icon: Film,
title: '热门电影',
href: '/douban?type=movie&tag=热门&title=热门电影',
},
{
icon: Tv,
title: '热门剧集',
href: '/douban?type=tv&tag=热门&title=热门剧集',
},
{
icon: Star,
title: '豆瓣 Top250',
href: '/douban?type=movie&tag=top250&title=豆瓣 Top250',
},
{ icon: Swords, title: '美剧', href: '/douban?type=tv&tag=美剧' },
{ icon: MessageCircleHeart, title: '韩剧', href: '/douban?type=tv&tag=韩剧' },
{ icon: MountainSnow, title: '日剧', href: '/douban?type=tv&tag=日剧' },
{ icon: VenetianMask, title: '日漫', href: '/douban?type=tv&tag=日本动画' },
];
function HomeClient() {
const [activeTab, setActiveTab] = useState('home');
const [hotMovies, setHotMovies] = useState<DoubanItem[]>([]);
@@ -166,27 +133,6 @@ function HomeClient() {
) : (
// 首页视图
<>
{/* 推荐 */}
<section className='mb-8'>
<h2 className='mb-4 text-xl font-bold text-gray-800 text-left'>
</h2>
<ScrollableRow scrollDistance={800}>
{collections.map((collection) => (
<div
key={collection.title}
className='min-w-[150px] w-44 sm:min-w-[280px] sm:w-72'
>
<CollectionCard
title={collection.title}
icon={collection.icon}
href={collection.href}
/>
</div>
))}
</ScrollableRow>
</section>
{/* 继续观看 */}
<ContinueWatching />