import { prisma } from "@//app/lib/prisma"
import Link from "next/link"
import Image from "next/image"
export default async function HomePage() {
const agents = await prisma.agent.findMany({
include: { category: true },
take: 6,
})
const news = await prisma.news.findMany({
where: { published: true },
orderBy: { createdAt: "desc" },
take: 3,
})
const categories = await prisma.category.findMany({
include: { _count: { select: { agents: true } },
},
})
return (
{/* 导航栏 */}
{/* Hero 区域 */}
探索 AI 智能体的
无限可能
江苏冲浪软件科技有限公司打造的智能体广场,为您提供全方位的 AI 智能体服务,
助力企业数字化转型,提升个人工作效率。
浏览智能体
了解更多
您好!智能客服助手支持多轮对话、知识库查询、工单提交等功能,24小时在线为您服务。
🤖
{/* 热门智能体 */}
{agents.map((agent) => (
{agent.icon || "🤖"}
{agent.name}
{agent.category && (
{agent.category.name}
)}
{agent.description}
查看详情 →
))}
查看全部智能体 →
{/* 智能分类与使用场景 */}
智能分类与使用场景
{categories.map((category) => (
{category.icon || "📊"}
{category.name}
{category._count.agents}个智能体
{category.description || "智能应用场景"}
))}
{/* 前沿动态 */}
前沿动态
{news.map((item) => (
📰
{item.type === "news" ? "新闻" : item.type}
{new Date(item.createdAt).toLocaleDateString("zh-CN")}
{item.title}
{item.content.substring(0, 100)}...
))}
查看全部 →
{/* 底部 */}
© 2026 江苏冲浪软件科技有限公司 · AI 智能体广场
)
}