Files
2990bae7-29ee-461a-b144-76c…/src/components/Layout.tsx

79 lines
1.7 KiB
TypeScript

import FooterMinimal from '@/components/sections/footer/FooterMinimal';
import NavbarFloating from '@/components/ui/NavbarFloating';
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot";
import { Film, Instagram, Twitter } from "lucide-react";
import { Outlet } from 'react-router-dom';
import { StyleProvider } from "@/components/ui/StyleProvider";
export default function Layout() {
const navItems = [
{
"name": "Explore",
"href": "#features"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Team",
"href": "#team"
},
{
"name": "Testimonials",
"href": "#testimonials"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "Faq",
"href": "#faq"
},
{
"name": "Contact",
"href": "#contact"
}
];
return (
<StyleProvider buttonVariant="bubble" siteBackground="aurora" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloating
logo="GothNoir"
ctaButton={{
text: "Contact",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterMinimal
brand="GothNoir"
copyright="© 2024 GothNoir. Cinematic dark assets for the discerning."
socialLinks={[
{
icon: Twitter,
href: "#",
},
{
icon: Instagram,
href: "#",
},
{
icon: Film,
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}