Update src/app/layout.tsx

This commit is contained in:
2026-03-08 22:25:39 +00:00
parent ae644bc71f
commit 9a8996d072

View File

@@ -1,54 +1,40 @@
import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import { Open_Sans } from "next/font/google";
import "./globals.css";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
const halant = Halant({
variable: "--font-halant", subsets: ["latin"],
weight: ["300", "400", "500", "600", "700"],
});
import { ServiceWrapper } from "@/providers/serviceWrapper/ServiceWrapper";
import { Tag } from "@/components/common/Tag";
const inter = Inter({
variable: "--font-inter", subsets: ["latin"],
});
const openSans = Open_Sans({
variable: "--font-open-sans", subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Ahmaam Sports - Premium Athletic Wear", description: "Discover premium sportswear designed for champions. High-performance athletic wear with style and comfort.", keywords: "sportswear, athletic wear, sports apparel, performance clothing, athletic brands", robots: {
index: true,
follow: true,
},
openGraph: {
title: "Ahmaam Sports - Premium Athletic Wear", description: "Discover premium sportswear designed for champions. High-performance athletic wear with style and comfort.", type: "website", siteName: "Ahmaam Sports", images: [
{
url: "http://img.b2bpic.net/free-photo/midsection-view-teenage-boy-with-basketball_23-2147888355.jpg", alt: "Ahmaam Sports - Premium Athletic Wear"},
],
},
twitter: {
card: "summary_large_image", title: "Ahmaam Sports - Premium Athletic Wear", description: "Discover premium sportswear designed for champions. High-performance athletic wear with style and comfort.", images: ["http://img.b2bpic.net/free-photo/midsection-view-teenage-boy-with-basketball_23-2147888355.jpg"],
},
};
title: "Ahmaam Sports - Premium Athletic Wear", description: "Premium athletic wear designed for champions. Performance, style, and comfort in every piece."};
export default function RootLayout({
children,
}: Readonly<{
}: {
children: React.ReactNode;
}>) {
}) {
return (
<html lang="en" suppressHydrationWarning>
<ServiceWrapper>
<body
className={`${halant.variable} ${inter.variable} ${openSans.variable} antialiased`}
>
<body className={`${inter.variable} antialiased`}>
<ServiceWrapper>
<Tag />
{children}
</ServiceWrapper>
<script
dangerouslySetInnerHTML={{
__html: `
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: `
@@ -1416,7 +1402,6 @@ export default function RootLayout({
}}
/>
</body>
</ServiceWrapper>
</html>
);
}