From 7880de7b0255cf3867ff557fcee5dc17ac2a1ad0 Mon Sep 17 00:00:00 2001 From: bender Date: Sat, 9 May 2026 11:30:27 +0000 Subject: [PATCH] Update src/components/Layout.tsx --- src/components/Layout.tsx | 135 ++++++++++++++++++++++++++++---------- 1 file changed, 99 insertions(+), 36 deletions(-) diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 35b776a..274ace9 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -1,48 +1,111 @@ +import FooterBasic from '@/components/sections/footer/FooterBasic'; +import NavbarDropdown from '@/components/ui/NavbarDropdown'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; +import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot"; import { Outlet } from 'react-router-dom'; -import NavbarCentered from '@/components/ui/NavbarCentered'; -import FooterSimple from '@/components/sections/footer/FooterSimple'; -import { StyleProvider } from '@/components/ui/StyleProvider'; -import SiteBackgroundSlot from '@/components/ui/SiteBackgroundSlot'; +import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; -/** - * Shared site chrome — navbar + footer rendered ONCE around every page via . - * Navbar renders exactly one source of truth; pages render only their own content. - * - * navItems is an EXPLICIT list — not derived from routes.ts — because it must support - * BOTH types of links: - * - page links: href: "/products", href: "/about" - * - anchor links: href: "#features", href: "#pricing", href: "#contact" - * When the initial site has everything on one page, anchors are the right thing. - * When pages are split, both coexist. - * - * Generator & page-create handler edit THIS array when user requests nav changes. - * - * StyleProvider props (buttonVariant / siteBackground / heroBackground) are the single - * source of truth for Button look and decorative backgrounds across the whole site. - * Backend writes them at generation time; Bob-AI's style handler edits them on demand. - */ export default function Layout() { const navItems = [ - { name: 'Home', href: '/' }, - ]; + { + "name": "Home", "href": "#hero" + }, + { + "name": "About", "href": "#about" + }, + { + "name": "Rooms", "href": "#rooms" + }, + { + "name": "Amenities", "href": "#amenities" + }, + { + "name": "Testimonials", "href": "#testimonials" + }, + { + "name": "FAQ", "href": "#faq" + }, + { + "name": "Contact", "href": "#contact" + } +]; return ( - + - + + +
- -
+ + + + ); } -- 2.49.1