Update src/app/layout.tsx

This commit is contained in:
2026-03-09 06:44:17 +00:00
parent 8670447a4c
commit bd084fc9de

View File

@@ -1,47 +1,36 @@
import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import "./globals.css";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
import "./styles/variables.css";
import "./styles/base.css";
const halant = Halant({
variable: "--font-halant", subsets: ["latin"],
weight: ["300", "400", "500", "600", "700"],
});
const inter = Inter({
variable: "--font-inter", subsets: ["latin"],
});
const inter = Inter({ subsets: ["latin"] });
export const metadata: Metadata = {
title: "DistroHub - Distribution & Logistics Solutions", description: "Trusted distribution and fulfillment services for wholesale, retail, and ecommerce businesses worldwide. Real-time tracking and scalable solutions.", keywords: "distribution, logistics, fulfillment, wholesale, ecommerce, supply chain management", metadataBase: new URL("https://distrolab.com"),
alternates: {
canonical: "https://distrolab.com"},
robots: {
index: true,
follow: true,
},
openGraph: {
title: "DistroHub - Distribution & Logistics Solutions", description: "Trusted distribution and fulfillment services for wholesale, retail, and ecommerce businesses worldwide.", type: "website", siteName: "DistroHub"},
twitter: {
card: "summary_large_image", title: "DistroHub - Distribution & Logistics Solutions", description: "Trusted distribution and fulfillment services for wholesale, retail, and ecommerce businesses worldwide."},
};
title: "Distro Broz - Distribution Solutions", description: "Trusted distribution solutions for your business"};
export default function RootLayout({
children,
}: Readonly<{
}: {
children: React.ReactNode;
}>) {
}) {
return (
<html lang="en" suppressHydrationWarning>
<ServiceWrapper>
<body
className={`${halant.variable} ${inter.variable} antialiased`}
>
<Tag />
{children}
<body className={inter.className}>
{children}
<script
dangerouslySetInnerHTML={{
__html: `
(function() {
if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
document.documentElement.classList.add('dark');
} else {
document.documentElement.classList.remove('dark');
}
})();
`,
}}
/>
<script
dangerouslySetInnerHTML={{
__html: `
@@ -1409,7 +1398,6 @@ export default function RootLayout({
}}
/>
</body>
</ServiceWrapper>
</html>
);
}