Files
46f75429-2540-4f6d-8dbc-7a2…/src/components/Layout.tsx

87 lines
2.3 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": "Product", "href": "#product"
},
{
"name": "Pricing", "href": "#pricing"
},
{
"name": "Contact", "href": "#contact"
},
{
"name": "Hero", "href": "#hero"
},
{
"name": "Metrics", "href": "#metrics"
},
{
"name": "Testimonial", "href": "#testimonial"
}
];
return (
<StyleProvider buttonVariant="default" siteBackground="gridDots" heroBackground="gradientBars">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="TechCore"
logoImageSrc="http://img.b2bpic.net/free-vector/monoline-logo-collection-nine_23-2147685356.jpg"
ctaButton={{
text: "Get Started", href: "#contact"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBrand
brand="TechCore"
columns={[
{
items: [
{
label: "Product", href: "#product"},
{
label: "Features", href: "#product"},
{
label: "Security", href: "#"},
],
},
{
items: [
{
label: "Company", href: "#about"},
{
label: "Careers", href: "#"},
{
label: "Press", href: "#"},
],
},
{
items: [
{
label: "Privacy Policy", href: "#"},
{
label: "Terms of Service", href: "#"},
{
label: "Contact", href: "#contact"},
],
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}