This commit is contained in:
root
2026-06-07 18:06:52 +08:00
parent 9de2465793
commit a1daa040ef
33 changed files with 1917 additions and 439 deletions

View File

@@ -14,7 +14,7 @@ interface ContentItem {
description: string;
descriptionEn?: string;
coverImage: string;
mediaUrl: string;
mediaUrl?: string;
chapters?: { title: string; time?: string }[];
relatedProfiles?: string[];
durationMinutes?: number;
@@ -56,7 +56,13 @@ export default function VideoPage({ params }: { params: Promise<{ slug: string }
<main className="mx-auto max-w-6xl px-4 py-8 sm:px-6 sm:py-12">
<Link href="/" className="text-sm text-white/60 hover:text-white">← 返回首页</Link>
<div className="mt-6 overflow-hidden rounded-2xl bg-black shadow-2xl">
<video src={item.mediaUrl} poster={item.coverImage} controls playsInline className="aspect-video w-full bg-black object-contain" />
{item.mediaUrl ? (
<video src={item.mediaUrl} poster={item.coverImage} controls playsInline className="aspect-video w-full bg-black object-contain" />
) : (
<div className="flex aspect-video w-full items-center justify-center bg-black text-sm text-white/60">
暂无可播放视频
</div>
)}
</div>
<div className="mt-8 grid gap-8 lg:grid-cols-[1fr_320px]">
<section>