feat: add video demo to digital-humans page, add force-dynamic to pages with prisma queries, update seed data
This commit is contained in:
@@ -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,
|
||||
}: {
|
||||
|
||||
@@ -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,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,
|
||||
}: {
|
||||
|
||||
@@ -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,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 },
|
||||
|
||||
Reference in New Issue
Block a user