Files
1c0fd545-eccc-4593-88d6-29a…/src/components/Layout.tsx
2026-06-21 12:05:30 +00:00

82 lines
1.8 KiB
TypeScript

import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
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": "Home",
"href": "#"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Guides",
"href": "#guides"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "Features",
"href": "#features"
},
{
"name": "Metrics",
"href": "#metrics"
},
{
"name": "Team",
"href": "#team"
}
];
return (
<StyleProvider buttonVariant="shift" siteBackground="noise" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloating
logo="Lithos"
ctaButton={{
text: "Sign Up",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleMedia
brand="Lithos"
columns={[
{
title: "Links",
items: [
{
label: "About",
href: "#about",
},
],
},
]}
copyright="© 2024 Lithos"
imageSrc="http://img.b2bpic.net/free-photo/beautiful-slopes-zion-canyon-utah-usa_268835-2957.jpg"
links={[
{
label: "Terms",
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}