修复多个问题
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user