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

This commit is contained in:
2026-03-03 23:54:10 +00:00
parent e7e1ea2353
commit 97152b8f3d

View File

@@ -1,22 +1,46 @@
import type { Metadata } from "next";
import { Libre_Baskerville } from "next/font/google";
import { Inter } from "next/font/google";
import "./globals.css";
import "./styles/variables.css";
import "./styles/base.css";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
const inter = Inter({ subsets: ["latin"] });
const libreBaskerville = Libre_Baskerville({
variable: "--font-libre-baskerville", subsets: ["latin"],
weight: ["400", "700"],
});
const inter = Inter({
variable: "--font-inter", subsets: ["latin"],
});
export const metadata: Metadata = {
title: "MJ Airconditioning", description: "Expert Air Conditioning & Heating Solutions"};
title: "MJ Airconditioning | HVAC Services Melbourne | 5-Star Rated", description: "Expert air conditioning & heating services in Eastern & South Eastern Melbourne. 15+ years experience. Same-day repairs. Licensed & ARC certified. Call 0411 966 361 for free quote.", keywords: "air conditioning, heating, HVAC, Melbourne, repairs, installation, split system, ducted heating", openGraph: {
title: "MJ Airconditioning | HVAC Services Melbourne", description: "Trusted HVAC specialists serving Eastern & South Eastern Melbourne with 15+ years experience and 5-star customer ratings.", siteName: "MJ Airconditioning", type: "website"
},
twitter: {
card: "summary_large_image", title: "MJ Airconditioning | HVAC Services Melbourne", description: "Expert air conditioning & heating repairs and installation. Same-day service available."
},
robots: {
index: true,
follow: true,
},
};
export default function RootLayout({
children,
}: {
}: Readonly<{
children: React.ReactNode;
}) {
}>) {
return (
<html lang="en">
<body className={inter.className}>{children}
<html lang="en" suppressHydrationWarning>
<ServiceWrapper>
<body
className={`${libreBaskerville.variable} ${inter.variable} antialiased`}
>
<Tag />
{children}
<script
dangerouslySetInnerHTML={{
__html: `
@@ -1384,6 +1408,7 @@ export default function RootLayout({
}}
/>
</body>
</ServiceWrapper>
</html>
);
}