Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 860a503bc9 | |||
| b7ca382d53 | |||
| b7f15f5f81 | |||
| 6fd32cdf47 | |||
| 45685d87f3 | |||
| e5f0a7681c |
@@ -1,49 +1,31 @@
|
|||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
import { Libre_Baskerville } from "next/font/google";
|
import "./styles/variables.css";
|
||||||
import { Inter } from "next/font/google";
|
import "./styles/base.css";
|
||||||
import "./globals.css";
|
|
||||||
import { ServiceWrapper } from "@/components/ServiceWrapper";
|
|
||||||
import Tag from "@/tag/Tag";
|
|
||||||
|
|
||||||
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 = {
|
export const metadata: Metadata = {
|
||||||
title: "Residence Real Estate Agency - Buy, Sell & Rent Homes", description: "Find your dream home with Residence. Expert real estate agents offering buying, selling, and rental services. Personalized service for every client.", keywords: "real estate, homes for sale, rental properties, real estate agency, buy home, sell property", metadataBase: new URL("https://residence.com"),
|
title: "Residence - Premium Real Estate", description: "Discover premium residences and find your perfect home with expert guidance."
|
||||||
alternates: {
|
|
||||||
canonical: "https://residence.com"
|
|
||||||
},
|
|
||||||
openGraph: {
|
|
||||||
title: "Residence - Your Trusted Real Estate Partner", description: "Discover homes and work with expert agents. Buy, sell, or rent with confidence.", type: "website", siteName: "Residence", url: "https://residence.com"
|
|
||||||
},
|
|
||||||
twitter: {
|
|
||||||
card: "summary_large_image", title: "Residence Real Estate Agency", description: "Find your perfect home with trusted agents"
|
|
||||||
},
|
|
||||||
robots: {
|
|
||||||
index: true,
|
|
||||||
follow: true
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
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>
|
||||||
<body
|
{children}
|
||||||
className={`${libreBaskerville.variable} ${inter.variable} antialiased`}
|
<script
|
||||||
>
|
dangerouslySetInnerHTML={{
|
||||||
<Tag />
|
__html: `
|
||||||
{children}
|
(function() {
|
||||||
|
const theme = localStorage.getItem('theme') || 'system';
|
||||||
|
const isDark = theme === 'dark' || (theme === 'system' && window.matchMedia('(prefers-color-scheme: dark)').matches);
|
||||||
|
if (isDark) document.documentElement.classList.add('dark');
|
||||||
|
})();
|
||||||
|
`,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
<script
|
<script
|
||||||
dangerouslySetInnerHTML={{
|
dangerouslySetInnerHTML={{
|
||||||
@@ -1412,7 +1394,6 @@ export default function RootLayout({
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</body>
|
</body>
|
||||||
</ServiceWrapper>
|
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user