修复多个问题

This commit is contained in:
ZhangYonghao
2026-03-21 20:32:19 +08:00
parent f2c371b87d
commit 10d463a55f
12 changed files with 1021 additions and 275 deletions

View File

@@ -1,36 +1,41 @@
import type { Metadata } from 'next';
import './globals.css';
import type { Metadata } from "next";
import type { ReactNode } from "react";
import "./globals.css";
export const metadata: Metadata = {
title: 'HTML Generator',
description: '生成HTML文件并返回可访问链接',
title: "HTML Knowledge API",
description: "保存智能体生成的 HTML 页面并返回可访问链接。",
};
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
}: Readonly<{
children: 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 className="flex min-h-screen flex-col">
<header className="border-b border-border bg-card/90 px-6 py-5 backdrop-blur">
<div className="mx-auto flex max-w-6xl items-center justify-between">
<div>
<p className="text-xs uppercase tracking-[0.35em] text-muted-foreground">
Education Agent
</p>
<h1 className="text-2xl font-bold text-foreground">
HTML Knowledge API
</h1>
</div>
</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>
<main className="flex-1 px-6 py-10">{children}</main>
<footer className="border-t border-border bg-card px-6 py-5 text-sm text-muted-foreground">
<div className="mx-auto max-w-6xl">
</div>
</footer>
</div>
</body>
</html>
);
}
}