2023-03-25 14:24:52 +00:00
|
|
|
/* eslint-disable @next/next/no-page-custom-font */
|
2023-03-19 14:13:00 +00:00
|
|
|
import "./styles/globals.scss";
|
|
|
|
import "./styles/markdown.scss";
|
2023-04-02 14:48:18 +00:00
|
|
|
import "./styles/highlight.scss";
|
2023-06-13 16:37:42 +00:00
|
|
|
import { getClientConfig } from "./config/client";
|
2023-08-14 13:55:18 +00:00
|
|
|
import { type Metadata } from "next";
|
2023-03-07 15:23:54 +00:00
|
|
|
|
2023-07-16 13:34:01 +00:00
|
|
|
export const metadata: Metadata = {
|
2023-12-23 08:48:16 +00:00
|
|
|
title: "NextChat",
|
2023-03-25 14:24:52 +00:00
|
|
|
description: "Your personal ChatGPT Chat Bot.",
|
2023-05-12 11:23:49 +00:00
|
|
|
viewport: {
|
|
|
|
width: "device-width",
|
|
|
|
initialScale: 1,
|
|
|
|
maximumScale: 1,
|
|
|
|
},
|
|
|
|
themeColor: [
|
|
|
|
{ media: "(prefers-color-scheme: light)", color: "#fafafa" },
|
|
|
|
{ media: "(prefers-color-scheme: dark)", color: "#151515" },
|
|
|
|
],
|
2023-03-27 07:02:12 +00:00
|
|
|
appleWebApp: {
|
2023-12-23 08:48:16 +00:00
|
|
|
title: "NextChat",
|
2023-04-03 16:24:59 +00:00
|
|
|
statusBarStyle: "default",
|
2023-03-27 07:02:12 +00:00
|
|
|
},
|
2023-03-09 17:01:40 +00:00
|
|
|
};
|
2023-03-07 15:23:54 +00:00
|
|
|
|
|
|
|
export default function RootLayout({
|
|
|
|
children,
|
|
|
|
}: {
|
2023-03-09 17:01:40 +00:00
|
|
|
children: React.ReactNode;
|
2023-03-07 15:23:54 +00:00
|
|
|
}) {
|
|
|
|
return (
|
2023-03-15 17:24:03 +00:00
|
|
|
<html lang="en">
|
2023-03-20 06:06:29 +00:00
|
|
|
<head>
|
2023-06-13 16:37:42 +00:00
|
|
|
<meta name="config" content={JSON.stringify(getClientConfig())} />
|
2023-03-20 06:06:29 +00:00
|
|
|
<link rel="manifest" href="/site.webmanifest"></link>
|
2023-03-27 10:02:35 +00:00
|
|
|
<script src="/serviceWorkerRegister.js" defer></script>
|
2023-03-20 06:06:29 +00:00
|
|
|
</head>
|
2023-03-07 15:23:54 +00:00
|
|
|
<body>{children}</body>
|
|
|
|
</html>
|
2023-03-09 17:01:40 +00:00
|
|
|
);
|
2023-03-07 15:23:54 +00:00
|
|
|
}
|