Files
9129f200-ba6d-494a-ad03-04e…/src/components/Layout.tsx

73 lines
2.0 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": "About", "href": "#about"
},
{
"name": "Products", "href": "#products"
},
{
"name": "Contact", "href": "#contact"
},
{
"name": "Hero", "href": "#hero"
},
{
"name": "Features", "href": "#features"
},
{
"name": "Metrics", "href": "#metrics"
},
{
"name": "Testimonials", "href": "#testimonials"
}
];
return (
<StyleProvider buttonVariant="default" siteBackground="aurora" heroBackground="radialGradient">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Drink Coffee Do Stuff"
logoImageSrc="http://img.b2bpic.net/free-vector/minimal-logo-collection-with-pastel-colors_23-2148379335.jpg"
ctaButton={{
text: "Shop Coffee", href: "#products"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBrand
brand="Drink Coffee Do Stuff"
columns={[
{
items: [
{
label: "About", href: "#about"},
{
label: "Products", href: "#products"},
],
},
{
items: [
{
label: "Privacy Policy", href: "#"},
{
label: "Contact", href: "#contact"},
],
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}