Merge version_2 into main #2
@@ -1,50 +1,42 @@
|
||||
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"],
|
||||
});
|
||||
import { ServiceWrapper } from "@/providers/serviceWrapper/ServiceWrapper";
|
||||
import { Tag } from "@/components/common/Tag";
|
||||
|
||||
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`}
|
||||
>
|
||||
<body className={`${inter.variable}`}>
|
||||
<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: `
|
||||
@@ -1412,7 +1404,6 @@ export default function RootLayout({
|
||||
}}
|
||||
/>
|
||||
</body>
|
||||
</ServiceWrapper>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,7 +65,6 @@ export default function LandingPage() {
|
||||
ratingText="4.9 Stars - 200+ Reviews"
|
||||
background={{ variant: "plain" }}
|
||||
ariaLabel="BG Plumbing hero section with emergency contact"
|
||||
useInvertedBackground={false}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -258,4 +257,4 @@ export default function LandingPage() {
|
||||
</div>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user