Update src/components/Layout.tsx

This commit is contained in:
2026-06-17 12:35:34 +00:00
parent 953be98a0c
commit e3d757d17a

View File

@@ -8,32 +8,25 @@ import { StyleProvider } from "@/components/ui/StyleProvider";
export default function Layout() {
const navItems = [
{
"name": "Properties",
"href": "#products"
"name": "Properties", "href": "#products"
},
{
"name": "About",
"href": "#about"
"name": "About", "href": "#about"
},
{
"name": "Services",
"href": "#metrics"
"name": "Services", "href": "#metrics"
},
{
"name": "Contact",
"href": "#contact"
"name": "Contact", "href": "#contact"
},
{
"name": "Hero",
"href": "#hero"
"name": "Hero", "href": "#hero"
},
{
"name": "Testimonials",
"href": "#testimonials"
"name": "Testimonials", "href": "#testimonials"
},
{
"name": "Faq",
"href": "#faq"
"name": "Faq", "href": "#faq"
}
];
@@ -42,63 +35,47 @@ export default function Layout() {
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Twino Estate"
logoImageSrc="https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=800&q=80"
ctaButton={{
text: "Book Viewing",
href: "#contact",
}}
navItems={navItems} />
logo="Twino Estate"
logoImageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=yu44zm"
ctaButton={{
text: "Book Viewing", href: "#contact"}}
navItems={navItems}
/>
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBasic
columns={[
{
title: "Company",
items: [
columns={[
{
label: "About Us",
href: "#about",
title: "Company", items: [
{
label: "About Us", href: "#about"},
{
label: "Careers", href: "#"},
],
},
{
label: "Careers",
href: "#",
},
],
},
{
title: "Resources",
items: [
{
label: "Market News",
href: "#",
title: "Resources", items: [
{
label: "Market News", href: "#"},
{
label: "Buying Guide", href: "#"},
],
},
{
label: "Buying Guide",
href: "#",
title: "Legal", items: [
{
label: "Privacy Policy", href: "#"},
{
label: "Terms of Service", href: "#"},
],
},
],
},
{
title: "Legal",
items: [
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
],
},
]}
leftText="© 2024 Twino Estate. All rights reserved."
rightText="Professional real estate agency."
/>
]}
leftText="© 2024 Twino Estate. All rights reserved."
rightText="Professional real estate agency."
/>
</SectionErrorBoundary>
</StyleProvider>
);