Files
d28995e3-4e9f-49b8-b67b-942…/src/components/Layout.tsx

87 lines
2.5 KiB
TypeScript

import FooterBrand from '@/components/sections/footer/FooterBrand';
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": "Tours", "href": "#products"
},
{
"name": "About", "href": "#about"
},
{
"name": "Services", "href": "#features"
},
{
"name": "Contact", "href": "#contact"
},
{
"name": "Hero", "href": "#hero"
},
{
"name": "Team", "href": "#team"
},
{
"name": "Testimonials", "href": "#testimonials"
}
];
return (
<StyleProvider buttonVariant="elastic" siteBackground="noise" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Kenya Wild Explorer"
logoImageSrc="http://img.b2bpic.net/free-vector/flat-design-ibiza-label-collection_23-2149404376.jpg"
ctaButton={{
text: "Book Now", href: "#contact"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBrand
brand="Kenya Wild Explorer"
columns={[
{
items: [
{
label: "About Us", href: "#about"},
{
label: "Services", href: "#features"},
{
label: "Tours", href: "#products"},
],
},
{
items: [
{
label: "Safety Policy", href: "#"},
{
label: "Terms of Service", href: "#"},
{
label: "Privacy Policy", href: "#"},
],
},
{
items: [
{
label: "Support", href: "#contact"},
{
label: "FAQ", href: "#faq"},
{
label: "Careers", href: "#"},
],
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}