Merge version_3 into main #6

Merged
bender merged 2 commits from version_3 into main 2026-03-09 09:11:54 +00:00
2 changed files with 22 additions and 39 deletions

View File

@@ -1,50 +1,34 @@
import type { Metadata } from "next";
import { Libre_Baskerville } from "next/font/google";
import { Inter } from "next/font/google";
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"],
});
import "./styles/variables.css";
import "./styles/base.css";
import { ServiceWrapper } from "@/providers/serviceWrapper/ServiceWrapper";
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"),
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
}
};
title: "Residence - Premium Real Estate", description: "Discover premium residences and find your perfect home with expert guidance."};
export default function RootLayout({
children,
}: Readonly<{
}: {
children: React.ReactNode;
}>) {
}) {
return (
<html lang="en" suppressHydrationWarning>
<ServiceWrapper>
<body
className={`${libreBaskerville.variable} ${inter.variable} antialiased`}
>
<Tag />
<body>
<ServiceWrapper>
{children}
</ServiceWrapper>
<script
dangerouslySetInnerHTML={{
__html: `
(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
dangerouslySetInnerHTML={{
__html: `
@@ -1412,7 +1396,6 @@ export default function RootLayout({
}}
/>
</body>
</ServiceWrapper>
</html>
);
}

View File

@@ -212,4 +212,4 @@ export default function ResidencePage() {
</div>
</ThemeProvider>
);
}
}