|
|
|
|
@@ -1,50 +1,37 @@
|
|
|
|
|
import type { Metadata } from "next";
|
|
|
|
|
import { Halant } from "next/font/google";
|
|
|
|
|
import { Inter } from "next/font/google";
|
|
|
|
|
import { Inter_Tight } 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"],
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const inter = Inter({
|
|
|
|
|
variable: "--font-inter", subsets: ["latin"],
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const interTight = Inter_Tight({
|
|
|
|
|
variable: "--font-inter-tight", subsets: ["latin"],
|
|
|
|
|
weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export const metadata: Metadata = {
|
|
|
|
|
title: "BG Plumbing - 24/7 Emergency Plumbing Services in Redwood City", description: "Licensed, insured plumbing company in Redwood City, CA. 4.9★ rated. Emergency services 24/7. Leak detection, water heaters, drain cleaning & more. Call (650) 481-5943.", keywords: "plumbing redwood city, emergency plumber, 24 hour plumbing, water heater repair, leak detection, drain cleaning, licensed plumber", robots: {
|
|
|
|
|
index: true,
|
|
|
|
|
follow: true,
|
|
|
|
|
},
|
|
|
|
|
openGraph: {
|
|
|
|
|
title: "BG Plumbing - Professional 24/7 Emergency Services", description: "Expert licensed plumbing company serving Redwood City. 4.9★ rated with 200+ reviews. Fast, clean, professional service.", url: "https://bgplumbing.com", siteName: "BG Plumbing", type: "website"},
|
|
|
|
|
twitter: {
|
|
|
|
|
card: "summary_large_image", title: "BG Plumbing - 24/7 Emergency Plumbing Services", description: "Licensed plumbers in Redwood City. Emergency repairs, installations & maintenance. Call (650) 481-5943."},
|
|
|
|
|
title: "BG Plumbing - Professional Plumbing Services 24/7", description: "Licensed, insured, and bonded plumbing experts serving Redwood City. Fast, clean, and reliable solutions for all your residential and commercial plumbing needs. Emergency services available 24/7.", keywords: "plumbing, plumber, Redwood City, emergency plumbing, water heater, drain cleaning, leak repair", openGraph: {
|
|
|
|
|
title: "BG Plumbing - Professional Plumbing Services 24/7", description: "Licensed, insured, and bonded plumbing experts serving Redwood City. Fast, clean, and reliable solutions.", type: "website"},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default function RootLayout({
|
|
|
|
|
children,
|
|
|
|
|
}: Readonly<{
|
|
|
|
|
}: {
|
|
|
|
|
children: React.ReactNode;
|
|
|
|
|
}>) {
|
|
|
|
|
}) {
|
|
|
|
|
return (
|
|
|
|
|
<html lang="en" suppressHydrationWarning>
|
|
|
|
|
<ServiceWrapper>
|
|
|
|
|
<body
|
|
|
|
|
className={`${halant.variable} ${inter.variable} ${interTight.variable} antialiased`}
|
|
|
|
|
>
|
|
|
|
|
<Tag />
|
|
|
|
|
{children}
|
|
|
|
|
|
|
|
|
|
<body className={`${inter.variable}`}>
|
|
|
|
|
{children}
|
|
|
|
|
<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: `
|
|
|
|
|
@@ -1412,7 +1399,6 @@ export default function RootLayout({
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</body>
|
|
|
|
|
</ServiceWrapper>
|
|
|
|
|
</html>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|