Files
e76d4d62-3878-439a-bac3-dcf…/src/components/Layout.tsx

82 lines
2.5 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": "Shop", "href": "#products"
},
{
"name": "The Garage", "href": "#garage"
},
{
"name": "Community", "href": "#community"
},
{
"name": "Hero", "href": "#hero"
},
{
"name": "Manifesto", "href": "#manifesto"
},
{
"name": "Categories", "href": "#categories"
},
{
"name": "Social", "href": "#social"
}
];
return (
<StyleProvider buttonVariant="elastic" siteBackground="floatingGradient" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Backdoor Shop & Garage"
logoImageSrc="http://img.b2bpic.net/free-vector/retro-color-skateboarding-labels-logos-stickers-set-emblem-badge-print-extreme-urban-vector-illustration_1284-46314.jpg"
ctaButton={{
text: "Visit Store", href: "#garage"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleCard
brand="Backdoor Shop & Garage"
columns={[
{
title: "Navigation", items: [
{
label: "Shop", href: "#products"},
{
label: "The Garage", href: "#garage"},
{
label: "Community", href: "#community"},
],
},
{
title: "Legal", items: [
{
label: "Privacy Policy", href: "#"},
{
label: "Terms of Service", href: "#"},
],
},
]}
copyright="© 2024 Backdoor Shop. All rights reserved."
links={[
{
label: "Instagram", href: "#"},
{
label: "Google Maps", href: "#"},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}