Files
bd25898a-33e7-4c77-8769-63f…/src/components/Layout.tsx

77 lines
2.1 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": "Overview", "href": "#hero"
},
{
"name": "Architecture", "href": "#about"
},
{
"name": "Capabilities", "href": "#features"
},
{
"name": "Metrics", "href": "#metrics"
},
{
"name": "Faq", "href": "#faq"
},
{
"name": "Contact", "href": "#contact"
}
];
return (
<StyleProvider buttonVariant="elastic" siteBackground="noise" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="NetSecure"
logoImageSrc="http://img.b2bpic.net/free-photo/cybersecurity-concept-shield-protecting-data_23-2152001124.jpg"
ctaButton={{
text: "Deploy Now", href: "#contact"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleCard
brand="NetSecure"
columns={[
{
title: "Platform", items: [
{
label: "Engine", href: "#"},
{
label: "Dashboard", href: "#"},
],
},
{
title: "Legal", items: [
{
label: "Privacy", href: "#"},
{
label: "Terms", href: "#"},
],
},
]}
copyright="© 2024 NetSecure Audit Engine. All rights reserved."
links={[
{
label: "Security", href: "#"},
{
label: "Audit", href: "#"},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}