Files
95c973c4-672c-4567-a4e0-e30…/src/app/layout.tsx
2026-03-21 02:30:42 +00:00

81 lines
2.6 KiB
TypeScript

import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import { Figtree } 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 figtree = Figtree({
variable: "--font-figtree",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Ed Chapman - Luxury Real Estate Agent Winchester VA | ERA Oakcrest",
description: "Discover luxury homes in Winchester, VA with Ed Chapman of ERA Oakcrest Realty. Expert real estate services, 5-star rated agent with 10+ years experience.",
keywords: "real estate agent Winchester VA, luxury homes Winchester, ERA Oakcrest Realty, property sales, real estate broker",
metadataBase: new URL("https://edchapman-realtor.com"),
alternates: {
canonical: "https://edchapman-realtor.com",
},
openGraph: {
title: "Ed Chapman - Luxury Real Estate Winchester VA",
description: "Expert luxury real estate services in Winchester, VA. Find your dream home with Ed Chapman of ERA Oakcrest Realty.",
url: "https://edchapman-realtor.com",
siteName: "Ed Chapman - ERA Oakcrest Realty",
type: "website",
images: [
{
url: "http://img.b2bpic.net/free-photo/vertical-low-angle-shot-stone-metal-building-blue-sky_181624-7605.jpg",
alt: "Luxury property showcase",
},
],
},
twitter: {
card: "summary_large_image",
title: "Ed Chapman - Luxury Real Estate Winchester VA",
description: "Discover luxury homes in Winchester, VA with ERA Oakcrest Realty's top-rated agent.",
images: ["http://img.b2bpic.net/free-photo/vertical-low-angle-shot-stone-metal-building-blue-sky_181624-7605.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} ${figtree.variable} antialiased`}
>
<Tag />
{children}
<script
dangerouslySetInnerHTML={{
__html: `${getVisualEditScript()}`
}}
/>
</body>
</ServiceWrapper>
</html>
);
}