87 lines
2.6 KiB
TypeScript
87 lines
2.6 KiB
TypeScript
import FooterBrand from '@/components/sections/footer/FooterBrand';
|
|
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": "Menu", "href": "#products"
|
|
},
|
|
{
|
|
"name": "About", "href": "#about"
|
|
},
|
|
{
|
|
"name": "Contact", "href": "#contact"
|
|
},
|
|
{
|
|
"name": "Features", "href": "#features"
|
|
},
|
|
{
|
|
"name": "Pricing", "href": "#pricing"
|
|
},
|
|
{
|
|
"name": "Metrics", "href": "#metrics"
|
|
}
|
|
];
|
|
|
|
return (
|
|
<StyleProvider buttonVariant="elastic" siteBackground="floatingGradient" heroBackground="cornerGlow">
|
|
<SiteBackgroundSlot />
|
|
<SectionErrorBoundary name="navbar">
|
|
<NavbarFloatingLogo
|
|
logo="It's Boba Time"
|
|
logoImageSrc="http://img.b2bpic.net/free-vector/boba-ice-illustration-mascot-logo-design_779267-934.jpg"
|
|
ctaButton={{
|
|
text: "Order Online", href: "#"}}
|
|
navItems={navItems} />
|
|
</SectionErrorBoundary>
|
|
<main className="flex-grow">
|
|
<Outlet />
|
|
</main>
|
|
<SectionErrorBoundary name="footer">
|
|
<FooterBrand
|
|
brand="It's Boba Time - Vermont"
|
|
columns={[
|
|
{
|
|
items: [
|
|
{
|
|
label: "Order Pickup", href: "#"},
|
|
{
|
|
label: "Order Delivery", href: "#"},
|
|
{
|
|
label: "Directions", href: "#"},
|
|
],
|
|
},
|
|
{
|
|
items: [
|
|
{
|
|
label: "Menu", href: "#products"},
|
|
{
|
|
label: "Rewards", href: "#"},
|
|
{
|
|
label: "Franchise", href: "#"},
|
|
],
|
|
},
|
|
{
|
|
items: [
|
|
{
|
|
label: "Instagram", href: "https://instagram.com"},
|
|
{
|
|
label: "Facebook", href: "https://facebook.com"},
|
|
{
|
|
label: "Twitter", href: "https://twitter.com"},
|
|
],
|
|
},
|
|
]}
|
|
/>
|
|
</SectionErrorBoundary>
|
|
</StyleProvider>
|
|
);
|
|
}
|