Files
5f853474-244c-48d1-9ae4-d1a…/src/components/Layout.tsx

107 lines
2.4 KiB
TypeScript

import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
import NavbarFloating from '@/components/ui/NavbarFloating';
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": "#"
},
{
"name": "History",
"href": "#history"
},
{
"name": "Gallery",
"href": "#gallery"
},
{
"name": "Visit",
"href": "#visit"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "Features",
"href": "#features"
},
{
"name": "Experience",
"href": "#experience"
}
];
return (
<StyleProvider buttonVariant="stagger" siteBackground="gridDots" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloating
logo="Citadel of Homs"
ctaButton={{
text: "Plan Your Visit",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleMedia
brand="Citadel of Homs"
columns={[
{
title: "Navigation",
items: [
{
label: "Home",
href: "#",
},
{
label: "History",
href: "#history",
},
{
label: "Visit",
href: "#visit",
},
],
},
{
title: "Contact",
items: [
{
label: "Tourism Info",
href: "#",
},
{
label: "City of Homs",
href: "#",
},
],
},
]}
copyright="© Citadel of Homs. All Rights Reserved."
links={[
{
label: "Instagram",
href: "#",
},
{
label: "Facebook",
href: "#",
},
]}
imageSrc="http://img.b2bpic.net/free-photo/high-angle-view-chateau-gaillard-france_181624-18884.jpg?_wi=2"
/>
</SectionErrorBoundary>
</StyleProvider>
);
}