74 lines
2.1 KiB
TypeScript
74 lines
2.1 KiB
TypeScript
// RootLayout.tsx
|
|
import { fontSans } from "@/config/fonts";
|
|
import { siteConfig } from "@/config/site";
|
|
import { Inter } from "next/font/google";
|
|
|
|
import "@/styles/globals.css";
|
|
import clsx from "clsx";
|
|
import { Metadata } from "next";
|
|
import { Providers } from "./providers";
|
|
import LoadScript from "@/utils/global";
|
|
import { type ReactNode } from "react";
|
|
import LoadTawk from "@/components/ui/tawkto/load-tawk";
|
|
import Script from "next/script";
|
|
import dynamic from "next/dynamic";
|
|
const inter = Inter({ subsets: ["latin"] });
|
|
|
|
// const Tawkto = dynamic(
|
|
// () => {
|
|
// return import("@/components/ui/tawkto/tawkto");
|
|
// },
|
|
// { ssr: true }
|
|
// );
|
|
|
|
export const metadata: Metadata = {
|
|
title: {
|
|
default: siteConfig.name,
|
|
template: `%s - ${siteConfig.name}`,
|
|
},
|
|
description: siteConfig.description,
|
|
themeColor: [
|
|
{ media: "(prefers-color-scheme: light)", color: "white" },
|
|
{ media: "(prefers-color-scheme: dark)", color: "black" },
|
|
],
|
|
icons: {
|
|
icon: "/logohumas.ico",
|
|
shortcut: "/favicon-16x16.png",
|
|
apple: "/apple-touch-icon.png",
|
|
},
|
|
};
|
|
|
|
export default function RootLayout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html suppressHydrationWarning className="scroll-smooth">
|
|
<head>
|
|
<meta
|
|
name="theme-color"
|
|
content="white"
|
|
media="(prefers-color-scheme: light)"
|
|
/>
|
|
<link rel="icon" href="/logohumas.png" />
|
|
<meta
|
|
name="theme-color"
|
|
content="black"
|
|
media="(prefers-color-scheme: dark)"
|
|
/>
|
|
<meta property="og:image" content="/logohumas.png" />
|
|
<link rel="manifest" href="/manifest.json" />
|
|
<link rel="apple-touch-icon" href="divhumas.png" />
|
|
<meta name="theme-color" content="#000000" />
|
|
|
|
<LoadScript />
|
|
</head>
|
|
<body
|
|
className={clsx("bg-background font-sans antialiased", inter.className)}
|
|
>
|
|
<Providers themeProps={{ attribute: "class", defaultTheme: "light" }}>
|
|
<main className="">{children}</main>
|
|
</Providers>
|
|
{/* <LoadTawk /> */}
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|