feat: add frame caching demo documentation

This commit is contained in:
zhangheng
2026-05-19 16:19:55 +08:00
commit 3ffeb1ae62
18 changed files with 4002 additions and 0 deletions

42
web/app/layout.tsx Normal file
View File

@@ -0,0 +1,42 @@
import type { Metadata } from "next";
import { IBM_Plex_Mono, Noto_Sans_SC, Space_Grotesk } from "next/font/google";
import "./globals.css";
const display = Space_Grotesk({
subsets: ["latin"],
variable: "--font-display",
display: "swap",
});
const body = Noto_Sans_SC({
subsets: ["latin"],
weight: ["400", "500", "700"],
variable: "--font-body",
display: "swap",
});
const mono = IBM_Plex_Mono({
subsets: ["latin"],
weight: ["400", "500"],
variable: "--font-mono",
display: "swap",
});
export const metadata: Metadata = {
title: "H.264 Frame Viewer",
description: "Rust backend + Next.js frontend for H.264 frame extraction",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="zh-CN">
<body className={`${display.variable} ${body.variable} ${mono.variable}`}>
{children}
</body>
</html>
);
}