Files
cfdee0d1-a30b-40e0-962b-c90…/src/components/Layout.tsx

84 lines
2.3 KiB
TypeScript

import FooterSimpleCard from '@/components/sections/footer/FooterSimpleCard';
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": "About", "href": "#about"
},
{
"name": "Exhibitions", "href": "#gallery"
},
{
"name": "Visit", "href": "#contact"
},
{
"name": "Hero", "href": "#hero"
},
{
"name": "Metrics", "href": "#metrics"
},
{
"name": "Testimonials", "href": "#testimonials"
},
{
"name": "Social Proof", "href": "#social-proof"
}
];
return (
<StyleProvider buttonVariant="expand" siteBackground="noise" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="DMH"
logoImageSrc="http://img.b2bpic.net/free-vector/abstract-logo-business-made-with-colorful_341269-908.jpg"
ctaButton={{
text: "Get Tickets", href: "#contact"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleCard
brand="Design Museum Holon"
columns={[
{
title: "Museum", items: [
{
label: "About Us", href: "#about"},
{
label: "Careers", href: "#"},
{
label: "Press", href: "#"},
],
},
{
title: "Resources", items: [
{
label: "Blog", href: "#"},
{
label: "Archives", href: "#"},
{
label: "Membership", href: "#"},
],
},
]}
copyright="© 2024 Design Museum Holon. All rights reserved."
links={[
{
label: "Privacy Policy", href: "#"},
{
label: "Terms of Service", href: "#"},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}