Files
e291f20a-faec-4ba3-bc0a-315…/src/components/Layout.tsx
2026-06-17 13:55:28 +00:00

97 lines
2.1 KiB
TypeScript

import FooterBrand from '@/components/sections/footer/FooterBrand';
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": "Products",
"href": "products"
},
{
"name": "Quality",
"href": "features"
},
{
"name": "Compliance",
"href": "faq"
},
{
"name": "Contact",
"href": "contact"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Metrics",
"href": "#metrics"
}
];
return (
<StyleProvider buttonVariant="expand" siteBackground="noise" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloating
logo="PrecisionBearings"
ctaButton={{
text: "Get Quote",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBrand
brand="PrecisionBearings"
columns={[
{
items: [
{
label: "About Us",
href: "#about",
},
{
label: "Product Catalog",
href: "#products",
},
{
label: "Quality Control",
href: "#features",
},
],
},
{
items: [
{
label: "Export Support",
href: "#faq",
},
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
],
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}