web-humas-fe/app/layout.tsx

74 lines
2.1 KiB
TypeScript
Raw Normal View History

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";
import LoadScript from "@/utils/global";
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-06-17 03:01:19 +00:00
import Script from "next/script";
import dynamic from "next/dynamic";
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 }) {
return (
2025-03-14 08:54:37 +00:00
<html suppressHydrationWarning className="scroll-smooth">
<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" />
<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
<LoadScript />
</head>
<body
2025-02-05 11:23:03 +00:00
className={clsx("bg-background font-sans antialiased", inter.className)}
>
2025-03-14 08:45:40 +00:00
<Providers themeProps={{ attribute: "class", defaultTheme: "light" }}>
<main className="">{children}</main>
</Providers>
{/* <LoadTawk /> */}
</body>
</html>
);
2024-01-05 06:57:30 +00:00
}