Files
e9e228f7-9f45-4350-ae43-a65…/src/components/Layout.tsx

79 lines
2.2 KiB
TypeScript

import AuroraBackground from "@/components/ui/AuroraBackground";
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": "Home", "href": "#hero"
},
{
"name": "About", "href": "#about"
},
{
"name": "Gallery", "href": "#gallery"
},
{
"name": "Contact", "href": "#contact"
},
{
"name": "Features", "href": "#features"
},
{
"name": "Metrics", "href": "#metrics"
},
{
"name": "Testimonial", "href": "#testimonial"
}
];
return (
<StyleProvider buttonVariant="flip" siteBackground="aurora" heroBackground="cornerGlow">
<AuroraBackground position="fixed" />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Imperial Majesty"
logoImageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=2op9ee"
ctaButton={{
text: "Reserve Now", href: "#contact"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleCard
brand="Imperial Majesty"
columns={[
{
title: "Location", items: [
{
label: "123 Royale St, London"},
],
},
{
title: "Experience", items: [
{
label: "Chef's Table", href: "#"},
{
label: "Private Events", href: "#"},
],
},
]}
copyright="© 2024 Imperial Majesty. All rights reserved."
links={[
{
label: "Privacy Policy", href: "#"},
{
label: "Terms of Service", href: "#"},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}