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 Link from "next/link"
export const dynamic = "force-dynamic"
export default async function AgentDetailPage({
params,
}: {
+34
View File
@@ -130,6 +130,22 @@ export default function DigitalHumansPage() {
</div>
</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">
<div className="max-w-6xl mx-auto px-6">
@@ -178,6 +194,24 @@ export default function DigitalHumansPage() {
</div>
</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">
<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 Link from "next/link"
export const dynamic = "force-dynamic"
export default async function NewsDetailPage({
params,
}: {
+2
View File
@@ -1,6 +1,8 @@
import { prisma } from "@//app/lib/prisma"
import Link from "next/link"
export const dynamic = "force-dynamic"
export default async function NewsPage() {
const news = await prisma.news.findMany({
where: { published: true },
+2
View File
@@ -2,6 +2,8 @@ import { prisma } from "@/app/lib/prisma"
import Link from "next/link"
import Image from "next/image"
export const dynamic = "force-dynamic"
export default async function HomePage() {
const agents = await prisma.agent.findMany({
where: { isFeatured: true },