// 自动生成:站点首页组件(源自底座 classic 形态,品牌来自 @/site/brand) import { siteConfig } from "@/site/brand"; import { Search, TrendingUp, Sparkles, Clock, Award, LayoutGrid, MessageSquareQuote } from "lucide-react"; import { getTranslations } from "next-intl/server"; import { ToolCard, ToolCardGrid } from "@/components/tool-card"; import { LocaleLink } from "@/components/locale-link"; import { SectionHeader } from "@/kit/section"; import { ThemeHeader } from "@/kit/theme-header"; import { ThemeFooter } from "@/kit/theme-footer"; import { getHomeDataSafe } from "@/kit/home-data"; /** Classic:专业 AI Directory(Clean / Dense / Professional) */ const navItems = [ { label: "Discover", href: "/tools" }, { label: "Categories", href: "/tools" }, { label: "Use Cases", href: "/ai-tools-for" }, { label: "Best Lists", href: "/best" }, { label: "Rankings", href: "/rankings" }, { label: "Blog", href: "/blog" }, { label: "Submit", href: "/submit" }, ]; const footerGroups = [ { title: "Discover", links: [ { label: "All Tools", href: "/tools" }, { label: "Use Cases", href: "/ai-tools-for" }, { label: "Best Lists", href: "/best" }, { label: "Rankings", href: "/rankings" }, ], }, { title: "Community", links: [ { label: "Submit a Tool", href: "/submit" }, { label: "Blog", href: "/blog" }, { label: "Dashboard", href: "/dashboard" }, ], }, { title: "Legal", links: [ { label: "Terms", href: "/terms" }, { label: "Privacy", href: "/privacy" }, { label: "Contact", href: "/contact" }, ], }, ]; async function SiteHome({ locale }: { locale: string }) { const t = await getTranslations("siteHome"); const th = await getTranslations("hero"); const data = await getHomeDataSafe(8); return (
{th("description")}
{/* 统计条(深色 Hero 内的白色数字) */}{category.toolCount} tools
{locale === "zh" && col.introZh ? col.introZh : col.introEn}
{col.toolCount} tools
{review.content}
Submit it to {siteConfig.brand.name} and get discovered by thousands of users looking for tools like yours.