76 lines
2.0 KiB
TypeScript
76 lines
2.0 KiB
TypeScript
import FooterBrand from '@/components/sections/footer/FooterBrand';
|
|
import NavbarDropdown from '@/components/ui/NavbarDropdown';
|
|
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": "Menu", "href": "#menu"
|
|
},
|
|
{
|
|
"name": "Testimonials", "href": "#testimonials"
|
|
},
|
|
{
|
|
"name": "Contact", "href": "#contact"
|
|
},
|
|
{
|
|
"name": "Hero", "href": "#hero"
|
|
},
|
|
{
|
|
"name": "Social Proof", "href": "#social-proof"
|
|
},
|
|
{
|
|
"name": "Faq", "href": "#faq"
|
|
}
|
|
];
|
|
|
|
return (
|
|
<StyleProvider buttonVariant="bounce" siteBackground="noise" heroBackground="cornerGlow">
|
|
<SiteBackgroundSlot />
|
|
<SectionErrorBoundary name="navbar">
|
|
<NavbarDropdown
|
|
logo="Princess Pancakes"
|
|
ctaButton={{
|
|
text: "Book Table", href: "#contact"}}
|
|
navItems={navItems} />
|
|
</SectionErrorBoundary>
|
|
<main className="flex-grow">
|
|
<Outlet />
|
|
</main>
|
|
<SectionErrorBoundary name="footer">
|
|
<FooterBrand
|
|
brand="Princess Pancakes Reno"
|
|
columns={[
|
|
{
|
|
items: [
|
|
{
|
|
label: "About Us", href: "#about"},
|
|
{
|
|
label: "Menu", href: "#menu"},
|
|
{
|
|
label: "Careers", href: "#"},
|
|
],
|
|
},
|
|
{
|
|
items: [
|
|
{
|
|
label: "Reservations", href: "#"},
|
|
{
|
|
label: "Contact", href: "mailto:hello@princesspancakes.com"},
|
|
{
|
|
label: "Privacy Policy", href: "#"},
|
|
],
|
|
},
|
|
]}
|
|
/>
|
|
</SectionErrorBoundary>
|
|
</StyleProvider>
|
|
);
|
|
}
|