2024-12-11 10:13:02 +00:00
|
|
|
// RootLayout.tsx
|
2024-02-05 09:37:05 +00:00
|
|
|
import { fontSans } from "@/config/fonts";
|
|
|
|
|
import { siteConfig } from "@/config/site";
|
2025-02-05 11:23:03 +00:00
|
|
|
import { Inter } from "next/font/google";
|
|
|
|
|
|
2024-01-05 06:57:30 +00:00
|
|
|
import "@/styles/globals.css";
|
2024-02-05 09:37:05 +00:00
|
|
|
import clsx from "clsx";
|
2024-01-05 06:57:30 +00:00
|
|
|
import { Metadata } from "next";
|
|
|
|
|
import { Providers } from "./providers";
|
2025-03-14 08:45:40 +00:00
|
|
|
import { type ReactNode } from "react";
|
2025-06-16 04:19:51 +00:00
|
|
|
import LoadTawk from "@/components/ui/tawkto/load-tawk";
|
2025-08-29 13:15:24 +00:00
|
|
|
import LoadScript from "@/utils/loadsripct";
|
2025-02-05 11:23:03 +00:00
|
|
|
const inter = Inter({ subsets: ["latin"] });
|
2024-01-05 06:57:30 +00:00
|
|
|
|
2025-06-17 03:01:19 +00:00
|
|
|
// const Tawkto = dynamic(
|
|
|
|
|
// () => {
|
|
|
|
|
// return import("@/components/ui/tawkto/tawkto");
|
|
|
|
|
// },
|
|
|
|
|
// { ssr: true }
|
|
|
|
|
// );
|
|
|
|
|
|
2025-03-14 08:54:37 +00:00
|
|
|
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",
|
|
|
|
|
},
|
|
|
|
|
};
|
2024-01-05 06:57:30 +00:00
|
|
|
|
2024-12-12 09:48:17 +00:00
|
|
|
export default function RootLayout({ children }: { children: ReactNode }) {
|
2024-11-06 08:44:56 +00:00
|
|
|
return (
|
2025-03-14 08:54:37 +00:00
|
|
|
<html suppressHydrationWarning className="scroll-smooth">
|
2024-11-06 08:44:56 +00:00
|
|
|
<head>
|
|
|
|
|
<meta
|
|
|
|
|
name="theme-color"
|
|
|
|
|
content="white"
|
|
|
|
|
media="(prefers-color-scheme: light)"
|
|
|
|
|
/>
|
2025-02-13 03:05:04 +00:00
|
|
|
<link rel="icon" href="/logohumas.png" />
|
2024-11-06 08:44:56 +00:00
|
|
|
<meta
|
|
|
|
|
name="theme-color"
|
|
|
|
|
content="black"
|
|
|
|
|
media="(prefers-color-scheme: dark)"
|
|
|
|
|
/>
|
2025-03-11 10:19:37 +00:00
|
|
|
<meta property="og:image" content="/logohumas.png" />
|
2025-04-16 08:51:12 +00:00
|
|
|
<link rel="manifest" href="/manifest.json" />
|
|
|
|
|
<link rel="apple-touch-icon" href="divhumas.png" />
|
|
|
|
|
<meta name="theme-color" content="#000000" />
|
2025-03-11 10:19:37 +00:00
|
|
|
|
2024-11-06 08:44:56 +00:00
|
|
|
<LoadScript />
|
|
|
|
|
</head>
|
|
|
|
|
<body
|
2025-02-05 11:23:03 +00:00
|
|
|
className={clsx("bg-background font-sans antialiased", inter.className)}
|
2024-11-06 08:44:56 +00:00
|
|
|
>
|
2025-03-14 08:45:40 +00:00
|
|
|
<Providers themeProps={{ attribute: "class", defaultTheme: "light" }}>
|
|
|
|
|
<main className="">{children}</main>
|
|
|
|
|
</Providers>
|
2025-07-11 06:17:36 +00:00
|
|
|
<LoadTawk />
|
2024-11-06 08:44:56 +00:00
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
);
|
2024-01-05 06:57:30 +00:00
|
|
|
}
|