3 Commits

Author SHA1 Message Date
cd5a8a39e2 Update src/app/layout.tsx 2026-03-07 20:48:02 +00:00
94a8f8a6b3 Update src/app/page.tsx 2026-03-07 20:47:10 +00:00
275c6a4b3d Update src/app/layout.tsx 2026-03-07 20:47:09 +00:00
2 changed files with 20 additions and 35 deletions

View File

@@ -1,50 +1,37 @@
import type { Metadata } from "next"; import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google"; import { Inter } from "next/font/google";
import { Inter_Tight } from "next/font/google";
import "./globals.css"; 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({ const inter = Inter({
variable: "--font-inter", subsets: ["latin"], 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 = { 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: { 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: {
index: true, 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"},
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."},
}; };
export default function RootLayout({ export default function RootLayout({
children, children,
}: Readonly<{ }: {
children: React.ReactNode; children: React.ReactNode;
}>) { }) {
return ( return (
<html lang="en" suppressHydrationWarning> <html lang="en" suppressHydrationWarning>
<ServiceWrapper> <body className={`${inter.variable}`}>
<body {children}
className={`${halant.variable} ${inter.variable} ${interTight.variable} antialiased`} <script
> dangerouslySetInnerHTML={{
<Tag /> __html: `
{children} 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 <script
dangerouslySetInnerHTML={{ dangerouslySetInnerHTML={{
__html: ` __html: `
@@ -1412,7 +1399,6 @@ export default function RootLayout({
}} }}
/> />
</body> </body>
</ServiceWrapper>
</html> </html>
); );
} }

View File

@@ -65,7 +65,6 @@ export default function LandingPage() {
ratingText="4.9 Stars - 200+ Reviews" ratingText="4.9 Stars - 200+ Reviews"
background={{ variant: "plain" }} background={{ variant: "plain" }}
ariaLabel="BG Plumbing hero section with emergency contact" ariaLabel="BG Plumbing hero section with emergency contact"
useInvertedBackground={false}
/> />
</div> </div>
@@ -258,4 +257,4 @@ export default function LandingPage() {
</div> </div>
</ThemeProvider> </ThemeProvider>
); );
} }