125 lines
2.9 KiB
TypeScript
125 lines
2.9 KiB
TypeScript
import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
|
|
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": "About",
|
|
"href": "#about"
|
|
},
|
|
{
|
|
"name": "Services",
|
|
"href": "#services"
|
|
},
|
|
{
|
|
"name": "Contact",
|
|
"href": "#contact"
|
|
},
|
|
{
|
|
"name": "Hero",
|
|
"href": "#hero"
|
|
},
|
|
{
|
|
"name": "Pricing",
|
|
"href": "#pricing"
|
|
},
|
|
{
|
|
"name": "Testimonials",
|
|
"href": "#testimonials"
|
|
}
|
|
];
|
|
|
|
return (
|
|
<StyleProvider buttonVariant="bounce" siteBackground="gridDots" heroBackground="cornerGlow">
|
|
<SiteBackgroundSlot />
|
|
<SectionErrorBoundary name="navbar">
|
|
<NavbarFloatingLogo
|
|
logo="Broadway Freeway Store"
|
|
logoImageSrc="https://images.unsplash.com/photo-1599305445671-ac291c95aaa9?w=128&h=128&q=80&fit=crop"
|
|
ctaButton={{
|
|
text: "Shop Now",
|
|
href: "#products",
|
|
}}
|
|
navItems={navItems} />
|
|
</SectionErrorBoundary>
|
|
<main className="flex-grow">
|
|
<Outlet />
|
|
</main>
|
|
<SectionErrorBoundary name="footer">
|
|
<FooterSimpleMedia
|
|
brand="Broadway Freeway Store"
|
|
columns={[
|
|
{
|
|
title: "Store",
|
|
items: [
|
|
{
|
|
label: "About Us",
|
|
href: "#about",
|
|
},
|
|
{
|
|
label: "Services",
|
|
href: "#services",
|
|
},
|
|
{
|
|
label: "Contact",
|
|
href: "#contact",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: "Shop",
|
|
items: [
|
|
{
|
|
label: "Browse Catalog",
|
|
href: "#products",
|
|
},
|
|
{
|
|
label: "Wholesale Plans",
|
|
href: "#pricing",
|
|
},
|
|
{
|
|
label: "Fleet Services",
|
|
href: "#pricing",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: "Legal",
|
|
items: [
|
|
{
|
|
label: "Privacy Policy",
|
|
href: "#",
|
|
},
|
|
{
|
|
label: "Terms of Use",
|
|
href: "#",
|
|
},
|
|
],
|
|
},
|
|
]}
|
|
copyright="© 2024 Broadway Freeway Store. All rights reserved."
|
|
links={[
|
|
{
|
|
label: "Twitter",
|
|
href: "#",
|
|
},
|
|
{
|
|
label: "Instagram",
|
|
href: "#",
|
|
},
|
|
]}
|
|
imageSrc="http://img.b2bpic.net/free-vector/gradient-shop-local-logo-design_23-2149613174.jpg"
|
|
/>
|
|
</SectionErrorBoundary>
|
|
</StyleProvider>
|
|
);
|
|
}
|