36 lines
996 B
TypeScript
36 lines
996 B
TypeScript
import type { Metadata } from 'next';
|
|
import './globals.css';
|
|
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'HTML Generator',
|
|
description: '生成HTML文件并返回可访问链接',
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode
|
|
}) {
|
|
return (
|
|
<html lang="zh-CN">
|
|
<body>
|
|
<div className="min-h-screen flex flex-col">
|
|
<header className="bg-primary text-primary-foreground py-4 px-6 shadow-md">
|
|
<div className="container mx-auto">
|
|
<h1 className="text-2xl font-bold">HTML Generator</h1>
|
|
</div>
|
|
</header>
|
|
<main className="flex-1 container mx-auto py-8 px-6">
|
|
{children}
|
|
</main>
|
|
<footer className="bg-muted text-muted-foreground py-4 px-6 border-t">
|
|
<div className="container mx-auto text-center">
|
|
<p>© 2026 HTML Generator</p>
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
);
|
|
} |