feat: add video demo to digital-humans page, add force-dynamic to pages with prisma queries, update seed data

This commit is contained in:
root
2026-05-12 00:29:37 +08:00
parent d4105fc04d
commit ed6907d87e
8 changed files with 78 additions and 19 deletions
+2
View File
@@ -2,6 +2,8 @@ import { prisma } from "@/app/lib/prisma"
import { notFound } from "next/navigation" import { notFound } from "next/navigation"
import Link from "next/link" import Link from "next/link"
export const dynamic = "force-dynamic"
export default async function AgentDetailPage({ export default async function AgentDetailPage({
params, params,
}: { }: {
+34
View File
@@ -130,6 +130,22 @@ export default function DigitalHumansPage() {
</div> </div>
</section> </section>
{/* 视频展示 */}
<section className="py-12 bg-white border-b border-gray-200">
<div className="max-w-4xl mx-auto px-6">
<h2 className="text-2xl font-bold text-gray-900 text-center mb-2"></h2>
<p className="text-gray-500 text-center mb-8"></p>
<div className="relative rounded-2xl overflow-hidden shadow-lg bg-black aspect-video">
<video
className="w-full h-full object-contain"
src="/human/sample.mp4"
controls
playsInline
/>
</div>
</div>
</section>
{/* 分类筛选 */} {/* 分类筛选 */}
<section className="py-8 bg-white border-b border-gray-200"> <section className="py-8 bg-white border-b border-gray-200">
<div className="max-w-6xl mx-auto px-6"> <div className="max-w-6xl mx-auto px-6">
@@ -178,6 +194,24 @@ export default function DigitalHumansPage() {
</div> </div>
</section> </section>
{/* 试用区域 */}
<section className="py-16 bg-gradient-to-r from-purple-600 to-pink-600">
<div className="max-w-6xl mx-auto px-6 text-center">
<h2 className="text-3xl font-bold text-white mb-4"></h2>
<p className="text-lg text-white/90 mb-8 max-w-2xl mx-auto">
</p>
<a
href="https://www.baidu.com"
target="_blank"
rel="noopener noreferrer"
className="inline-block bg-white text-purple-600 font-semibold px-8 py-3 rounded-full text-lg hover:bg-purple-50 transition-colors shadow-lg"
>
</a>
</div>
</section>
{/* 特性介绍 */} {/* 特性介绍 */}
<section className="py-16 bg-white"> <section className="py-16 bg-white">
<div className="max-w-6xl mx-auto px-6"> <div className="max-w-6xl mx-auto px-6">
+2
View File
@@ -2,6 +2,8 @@ import { prisma } from "@//app/lib/prisma"
import { notFound } from "next/navigation" import { notFound } from "next/navigation"
import Link from "next/link" import Link from "next/link"
export const dynamic = "force-dynamic"
export default async function NewsDetailPage({ export default async function NewsDetailPage({
params, params,
}: { }: {
+2
View File
@@ -1,6 +1,8 @@
import { prisma } from "@//app/lib/prisma" import { prisma } from "@//app/lib/prisma"
import Link from "next/link" import Link from "next/link"
export const dynamic = "force-dynamic"
export default async function NewsPage() { export default async function NewsPage() {
const news = await prisma.news.findMany({ const news = await prisma.news.findMany({
where: { published: true }, where: { published: true },
+2
View File
@@ -2,6 +2,8 @@ import { prisma } from "@/app/lib/prisma"
import Link from "next/link" import Link from "next/link"
import Image from "next/image" import Image from "next/image"
export const dynamic = "force-dynamic"
export default async function HomePage() { export default async function HomePage() {
const agents = await prisma.agent.findMany({ const agents = await prisma.agent.findMany({
where: { isFeatured: true }, where: { isFeatured: true },
BIN
View File
Binary file not shown.
+36 -19
View File
@@ -250,33 +250,50 @@ async function main() {
// 创建新闻 // 创建新闻
const news = await Promise.all([ const news = await Promise.all([
prisma.news.upsert({ prisma.news.create({
where: { id: 1 }, data: {
update: {}, title: "腾讯云升级全栈企业级 Agent 能力,发布 ClawPro 等多款产品",
create: { content: "在 2026 腾讯云城市峰会上,腾讯云全面升级企业级 Agent 产品矩阵,首发 ClawPro 专有云版、ADP 智能工作台、Agent Memory、Agent Storage 等多款产品。企业可用自然语言搭建工作流,打通内部 Agent 孤岛,实现统一调度与安全管控。",
title: "智能客服助手 3.0 正式上线,支持多模态交互",
content: "全新版本集成图像识别与语音交互能力,响应速度提升 40%,企业客户满意度评分达 4.9/5.0。",
type: "news", type: "news",
published: true, published: true,
}, },
}), }),
prisma.news.upsert({ prisma.news.create({
where: { id: 2 }, data: {
update: {}, title: "阿里发布企业级 Agent 平台「悟空」,面向办公协同场景",
create: { content: "阿里巴巴发布企业级 AI 工作平台「悟空」,已启动邀测并内置于钉钉。悟空可接入企业账号体系与权限系统,支持在组织内部调用多种 AI 能力与业务系统,同步上线 AI 能力市场,首批覆盖电商、跨境电商、知识内容等十大行业场景。",
title: "2026 AI Agent 市场白皮书:企业渗透率突破 35%", type: "news",
content: "据最新行业报告,AI 智能体正在从尝鲜阶段走向规模化落地,客服与内容生成场景率先规模化。", published: true,
},
}),
prisma.news.create({
data: {
title: "科大讯飞发布玲珑 Agent OS,企业级 AI 迈进操作系统时代",
content: "科大讯飞在第九届数字中国建设峰会上正式发布玲珑 Agent OS,专为企业打造的 AI 原生工作台。内置超级智能体引擎,支持多智能体并行协作,跨系统自动完成任务。沉淀 300 多个开箱即用智能体,覆盖软件开发、贸易服务、数字创意等核心场景。",
type: "news",
published: true,
},
}),
prisma.news.create({
data: {
title: "高德发布汽车出行 AI Agent,车载导航进入主动服务时代",
content: "高德发布汽车出行 AI Agent,采用「语言大脑+空间大脑」双引擎设计,支持模糊语义搜索、复杂行程一句话串联、动态路线推理及多轮对话编辑。系统可根据充电桩状态与用餐偏好自动优化长途出行方案,标志着车载导航从被动执行走向主动服务。",
type: "industry", type: "industry",
published: true, published: true,
}, },
}), }),
prisma.news.upsert({ prisma.news.create({
where: { id: 3 }, data: {
update: {}, title: "Google Cloud 发布 Gemini Enterprise Agent Platform",
create: { content: "Google Cloud 宣布推出 Gemini Enterprise Agent Platform,提供从构建到治理的全栈企业级 Agent 能力。包含 Agent Studio 低代码构建工具、支持多天任务的 Agent Runtime、Agent Registry 统一目录与 Agent Gateway 安全网关,助力企业规模化部署可信 AI 智能体。",
title: "江苏冲浪软件科技与华为云达成战略合作", type: "industry",
published: true,
content: "双方将在 AI 智能体研发、云端部署与行业解决方案展开深度合作,首期联合创新实验室正式揭牌。", },
}),
prisma.news.create({
data: {
title: "OpenAI 推出 Frontier 企业 AI Agent 平台",
content: "OpenAI 发布 Frontier 企业平台,帮助企业构建、部署和管理 AI Agent。HP、Intuit、Oracle、Uber 等为首批客户。Frontier 支持 AI 同事拥有独立身份与权限,具备跨会话记忆与自主执行能力,已与多家头部 ISV 建立生态合作,推动企业 AI 从工具向协作者演进。",
type: "cooperation", type: "cooperation",
published: true, published: true,
}, },
Binary file not shown.