Files
62187463-dfa3-46a0-b6b5-e3a…/src/components/Layout.tsx
2026-06-14 05:06:35 +00:00

79 lines
1.7 KiB
TypeScript

import FooterMinimal from '@/components/sections/footer/FooterMinimal';
import NavbarDropdown from '@/components/ui/NavbarDropdown';
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot";
import { Facebook, Instagram, Twitter } from "lucide-react";
import { Outlet } from 'react-router-dom';
import { StyleProvider } from "@/components/ui/StyleProvider";
export default function Layout() {
const navItems = [
{
"name": "Menu",
"href": "#menu"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Reviews",
"href": "#reviews"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "Metrics",
"href": "#metrics"
},
{
"name": "Faq",
"href": "#faq"
}
];
return (
<StyleProvider buttonVariant="arrow" siteBackground="floatingGradient" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarDropdown
logo="Scivicque's"
ctaButton={{
text: "Visit Us",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterMinimal
brand="Scivicque's Cafe"
copyright="© 2024 Scivicque's Cafe. All rights reserved."
socialLinks={[
{
icon: Instagram,
href: "#",
},
{
icon: Facebook,
href: "#",
},
{
icon: Twitter,
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}