Switch to version 2: modified src/app/layout.tsx

This commit is contained in:
2026-03-03 06:12:06 +00:00
parent aae5db5899
commit ad11bf09fe

View File

@@ -1,26 +1,59 @@
import type { Metadata } from "next"; import type { Metadata } from "next";
import localFont from "next/font/local"; import { Halant } from "next/font/google";
import "./styles/variables.css"; import { Inter } from "next/font/google";
import { Raleway } from "next/font/google";
import "./globals.css"; import "./globals.css";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
const geistSans = localFont({ const halant = Halant({
src: "./fonts/GeistVF.woff2", variable: "--font-geist-sans", weight: "100 900"}); variable: "--font-halant", subsets: ["latin"],
const geistMono = localFont({ weight: ["300", "400", "500", "600", "700"],
src: "./fonts/GeistMonoVF.woff2", variable: "--font-geist-mono", weight: "100 900"}); });
const inter = Inter({
variable: "--font-inter", subsets: ["latin"],
});
const raleway = Raleway({
variable: "--font-raleway", subsets: ["latin"],
});
export const metadata: Metadata = { export const metadata: Metadata = {
title: "Mini Market Moras - Local Market in Kersey, CO", description: "Your friendly neighborhood market in Kersey, Colorado. Well-stocked with quality products and friendly service."}; title: "Mini Market Moras | Convenience Store in Kersey, CO", description: "Your friendly neighborhood convenience store in Kersey, CO. Well-stocked with snacks, groceries, and essentials. ⭐ 5.0 rated. Call (970) 503-5033 or visit 202 1st St today.", keywords: "convenience store Kersey, mini market Colorado, grocery store near me, local market Kersey CO", metadataBase: new URL("https://minimarketmoras.com"),
alternates: {
canonical: "https://minimarketmoras.com"
},
openGraph: {
title: "Mini Market Moras - Kersey's Trusted Convenience Store", description: "Visit Mini Market Moras for your everyday essentials. Friendly service, great selection, and community focus. ⭐ 5.0 rated.", url: "https://minimarketmoras.com", siteName: "Mini Market Moras", type: "website", images: [
{
url: "http://img.b2bpic.net/free-photo/hipster-buying-fresh-vegetables-store_482257-76243.jpg", alt: "Mini Market Moras storefront"
}
]
},
twitter: {
card: "summary_large_image", title: "Mini Market Moras - Kersey, CO", description: "Your friendly neighborhood market. Call (970) 503-5033", images: ["http://img.b2bpic.net/free-photo/hipster-buying-fresh-vegetables-store_482257-76243.jpg"]
},
robots: {
index: true,
follow: true
}
};
export default function RootLayout({ export default function RootLayout({
children, children,
}: { }: Readonly<{
children: React.ReactNode; children: React.ReactNode;
}) { }>) {
return ( return (
<html lang="en"> <html lang="en" suppressHydrationWarning>
<body className={`${geistSans.variable} ${geistMono.variable}`}> <ServiceWrapper>
{children} <body
className={`${halant.variable} ${inter.variable} ${raleway.variable} antialiased`}
>
<Tag />
{children}
<script <script
dangerouslySetInnerHTML={{ dangerouslySetInnerHTML={{
__html: ` __html: `
@@ -1388,6 +1421,7 @@ export default function RootLayout({
}} }}
/> />
</body> </body>
</ServiceWrapper>
</html> </html>
); );
} }