81 lines
2.5 KiB
TypeScript
81 lines
2.5 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Halant } from "next/font/google";
|
|
import { Inter } from "next/font/google";
|
|
import { Montserrat } from "next/font/google";
|
|
import "./globals.css";
|
|
import { ServiceWrapper } from "@/components/ServiceWrapper";
|
|
import Tag from "@/tag/Tag";
|
|
import { getVisualEditScript } from "@/utils/visual-edit-script";
|
|
|
|
const halant = Halant({
|
|
variable: "--font-halant",
|
|
subsets: ["latin"],
|
|
weight: ["300", "400", "500", "600", "700"],
|
|
});
|
|
|
|
const inter = Inter({
|
|
variable: "--font-inter",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
const montserrat = Montserrat({
|
|
variable: "--font-montserrat",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Dickerson Plumbing & Electrical - Licensed Professionals",
|
|
description: "Fast, reliable plumbing and electrical services. Licensed technicians available 24/7. Emergency response under 20 minutes. Trusted by local homeowners and businesses.",
|
|
keywords: "plumber near me, emergency plumber, water heater repair, drain cleaning, electrical repair, licensed plumber, plumbing services, electrical services",
|
|
metadataBase: new URL("https://dickersonplumbing.com"),
|
|
alternates: {
|
|
canonical: "https://dickersonplumbing.com",
|
|
},
|
|
openGraph: {
|
|
title: "Dickerson Plumbing & Electrical - Licensed Professionals",
|
|
description: "Fast, reliable plumbing and electrical services. Licensed technicians available 24/7.",
|
|
url: "https://dickersonplumbing.com",
|
|
siteName: "Dickerson Plumbing & Electrical",
|
|
type: "website",
|
|
images: [
|
|
{
|
|
url: "http://img.b2bpic.net/free-photo/plumbing-professional-doing-his-job_23-2150721517.jpg",
|
|
alt: "Professional plumber technician",
|
|
},
|
|
],
|
|
},
|
|
twitter: {
|
|
card: "summary_large_image",
|
|
title: "Dickerson Plumbing & Electrical",
|
|
description: "Fast, reliable plumbing and electrical services. 24/7 emergency response.",
|
|
images: ["http://img.b2bpic.net/free-photo/plumbing-professional-doing-his-job_23-2150721517.jpg"],
|
|
},
|
|
robots: {
|
|
index: true,
|
|
follow: true,
|
|
},
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<ServiceWrapper>
|
|
<body
|
|
className={`${halant.variable} ${inter.variable} ${montserrat.variable} antialiased`}
|
|
>
|
|
<Tag />
|
|
{children}
|
|
<script
|
|
dangerouslySetInnerHTML={{
|
|
__html: `${getVisualEditScript()}`
|
|
}}
|
|
/>
|
|
</body>
|
|
</ServiceWrapper>
|
|
</html>
|
|
);
|
|
} |