From cb667b732149ce98262c8fb84cc7261676002d00 Mon Sep 17 00:00:00 2001 From: Caihaohan Date: Tue, 30 Dec 2025 20:07:19 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=B2=BE=E7=AE=80=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E5=92=8C=E9=A1=B9=E7=9B=AE=E5=88=97=E8=A1=A8=E9=A1=B5?= =?UTF-8?q?=EF=BC=8C=E7=A7=BB=E9=99=A4=E9=87=8D=E5=A4=8D=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 首页删除"按标签浏览"区块,功能与项目列表页重复 - 项目列表页删除顶部标题、副标题及装饰元素 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/app/[locale]/page.tsx | 16 ++-------------- src/app/[locale]/projects/page.tsx | 17 +---------------- 2 files changed, 3 insertions(+), 30 deletions(-) diff --git a/src/app/[locale]/page.tsx b/src/app/[locale]/page.tsx index c72d733..d59c900 100644 --- a/src/app/[locale]/page.tsx +++ b/src/app/[locale]/page.tsx @@ -1,7 +1,6 @@ import { getTranslations } from 'next-intl/server' -import { getProjects, getAllTags } from '@/hooks/useProjects' +import { getProjects } from '@/hooks/useProjects' import { ProjectList } from '@/components/project/ProjectList' -import { TagCloud } from '@/components/project/TagCloud' import { SearchBar } from '@/components/search/SearchBar' import { Suspense } from 'react' @@ -14,10 +13,7 @@ export default async function HomePage({ params }: HomePageProps) { const t = await getTranslations('home') const tCommon = await getTranslations('common') - const [projectsData, tags] = await Promise.all([ - getProjects({ limit: 6 }), - getAllTags(), - ]) + const projectsData = await getProjects({ limit: 6 }) return ( <> @@ -42,14 +38,6 @@ export default async function HomePage({ params }: HomePageProps) { - {/* Browse by Tags Section */} -
-

- {t('browseByTagsSection')} -

- -
- {/* Featured Projects Section */}
diff --git a/src/app/[locale]/projects/page.tsx b/src/app/[locale]/projects/page.tsx index b36757a..57eff01 100644 --- a/src/app/[locale]/projects/page.tsx +++ b/src/app/[locale]/projects/page.tsx @@ -29,22 +29,7 @@ export default async function ProjectsPage({ ]) return ( -
- {/* Decorative shapes */} -
-
- - {/* Page Header */} -
-

- PROJECT
NAVIGATOR -

-

- Discover and explore high-quality AI projects from across the web.
- Curated for developers and enthusiasts. -

-
- +
{/* Search and Filter Section */}
}>