Files
fb67ab8e-aa53-4124-99b5-5b8…/src/components/Layout.tsx

82 lines
2.2 KiB
TypeScript

import FooterBasic from '@/components/sections/footer/FooterBasic';
import NavbarFloatingLogo from '@/components/ui/NavbarFloatingLogo';
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot";
import { Outlet } from 'react-router-dom';
import { StyleProvider } from "@/components/ui/StyleProvider";
export default function Layout() {
const navItems = [
{
"name": "Home", "href": "#hero"
},
{
"name": "About", "href": "#about"
},
{
"name": "Collection", "href": "#products"
},
{
"name": "FAQ", "href": "#faq"
},
{
"name": "Features", "href": "#features"
},
{
"name": "Metrics", "href": "#metrics"
},
{
"name": "Testimonials", "href": "#testimonials"
}
];
return (
<StyleProvider buttonVariant="shift" siteBackground="floatingGradient" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="NG Decor"
logoImageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=kfqnwc"
ctaButton={{
text: "Contact Us", href: "#contact"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBasic
columns={[
{
title: "Company", items: [
{
label: "About Us", href: "#about"},
{
label: "Portfolio", href: "#products"},
],
},
{
title: "Support", items: [
{
label: "FAQ", href: "#faq"},
{
label: "Contact", href: "#contact"},
],
},
{
title: "Legal", items: [
{
label: "Privacy Policy", href: "#"},
{
label: "Terms of Service", href: "#"},
],
},
]}
leftText="© 2024 NG Decor. All rights reserved."
rightText="Designed with care."
/>
</SectionErrorBoundary>
</StyleProvider>
);
}