2026-05-19 21:09:56 +08:00
|
|
|
import './globals.css';
|
2026-05-21 14:12:50 +08:00
|
|
|
import 'fumadocs-ui/style.css';
|
2026-05-20 01:30:41 +08:00
|
|
|
import type { Metadata } from 'next';
|
2026-05-21 14:12:50 +08:00
|
|
|
import { RootProvider } from 'fumadocs-ui/provider';
|
2026-05-20 14:22:14 +08:00
|
|
|
import { Header } from '../components/Header';
|
2026-05-19 21:09:56 +08:00
|
|
|
|
|
|
|
|
export const metadata: Metadata = {
|
2026-05-20 01:30:41 +08:00
|
|
|
title: 'NewspaperUI — Production Newspaper Components',
|
2026-05-20 14:22:14 +08:00
|
|
|
description: '生产级报纸布局组件库',
|
2026-05-19 21:09:56 +08:00
|
|
|
};
|
|
|
|
|
|
2026-05-20 01:30:41 +08:00
|
|
|
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
2026-05-19 21:09:56 +08:00
|
|
|
return (
|
2026-05-21 14:12:50 +08:00
|
|
|
<html lang="zh" suppressHydrationWarning>
|
|
|
|
|
<body className="flex flex-col min-h-screen">
|
|
|
|
|
<RootProvider>
|
|
|
|
|
<Header />
|
|
|
|
|
{children}
|
|
|
|
|
</RootProvider>
|
2026-05-20 14:22:14 +08:00
|
|
|
</body>
|
2026-05-19 21:09:56 +08:00
|
|
|
</html>
|
|
|
|
|
);
|
|
|
|
|
}
|