58 lines
1.6 KiB
TypeScript
58 lines
1.6 KiB
TypeScript
/* eslint-disable @next/next/no-page-custom-font */
|
|
import "./styles/globals.scss";
|
|
import "./styles/markdown.scss";
|
|
import "./styles/highlight.scss";
|
|
import { getClientConfig } from "./config/client";
|
|
import { type Metadata } from "next";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "ChatGPT Next Web",
|
|
description: "Your personal ChatGPT Chat Bot.",
|
|
viewport: {
|
|
width: "device-width",
|
|
initialScale: 1,
|
|
maximumScale: 1,
|
|
},
|
|
themeColor: [
|
|
{ media: "(prefers-color-scheme: light)", color: "#fafafa" },
|
|
{ media: "(prefers-color-scheme: dark)", color: "#151515" },
|
|
],
|
|
appleWebApp: {
|
|
title: "ChatGPT Next Web",
|
|
statusBarStyle: "default",
|
|
},
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html lang="en">
|
|
<head>
|
|
<meta name="config" content={JSON.stringify(getClientConfig())} />
|
|
<link rel="manifest" href="/site.webmanifest"></link>
|
|
<script src="/serviceWorkerRegister.js" defer></script>
|
|
<script
|
|
async
|
|
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2935642389749184"
|
|
crossOrigin="anonymous"
|
|
></script>
|
|
{/*
|
|
// @ts-ignore */}
|
|
<ins
|
|
className="adsbygoogle"
|
|
style={{ display: "block" }}
|
|
data-ad-client="ca-pub-2935642389749184"
|
|
data-ad-slot="7953564210"
|
|
data-ad-format="auto"
|
|
data-full-width-responsive="true"
|
|
></ins>
|
|
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
|
|
</head>
|
|
<body>{children}</body>
|
|
</html>
|
|
);
|
|
}
|