31 lines
804 B
TypeScript
31 lines
804 B
TypeScript
import { GeistSans } from "geist/font/sans";
|
|
import "./globals.css";
|
|
import { GoogleAnalytics } from "@next/third-parties/google";
|
|
|
|
const defaultUrl = process.env.VERCEL_URL
|
|
? `https://${process.env.VERCEL_URL}`
|
|
: "http://localhost:3000";
|
|
|
|
export const metadata = {
|
|
metadataBase: new URL(defaultUrl),
|
|
title: "paper ai 使用真实文献让AI完成论文",
|
|
description: "写论文最高效的方式",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html lang="en" className={GeistSans.className}>
|
|
<body className="bg-background text-foreground">
|
|
<main className="min-h-screen flex flex-col items-center">
|
|
{children}
|
|
</main>
|
|
</body>
|
|
<GoogleAnalytics gaId="G-05DHTG9XQ5" />
|
|
</html>
|
|
);
|
|
}
|