Files
888e9674-67e2-44a4-9cd6-052…/src/components/Layout.tsx

80 lines
2.2 KiB
TypeScript

import FooterSimple from '@/components/sections/footer/FooterSimple';
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": "Collections", "href": "#products"
},
{
"name": "Reviews", "href": "#testimonials"
},
{
"name": "Contact", "href": "#contact"
},
{
"name": "Features", "href": "#features"
},
{
"name": "Social Proof", "href": "#social-proof"
},
{
"name": "Faq", "href": "#faq"
}
];
return (
<StyleProvider buttonVariant="bubble" siteBackground="gridDots" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="HAYAH"
logoImageSrc="https://storage.googleapis.com/webild/users/user_3FUoQlS8rNKMD1j6YZ1ptMD3M0E/uploaded-1782139974686-ucrl75y9.jpg"
ctaButton={{
text: "Shop Now", href: "#products"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimple
brand="HAYAH"
columns={[
{
title: "Company", items: [
{
label: "About Us", href: "#"},
{
label: "Collections", href: "#products"},
],
},
{
title: "Support", items: [
{
label: "Shipping Policy", href: "#"},
{
label: "Contact", href: "#contact"},
],
},
]}
copyright="© 2024 HAYAH. All rights reserved."
links={[
{
label: "Privacy Policy", href: "#"},
{
label: "Terms of Service", href: "#"},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}