Update src/components/Layout.tsx
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import FooterBasic from '@/components/sections/footer/FooterBasic';
|
||||
import NavbarDropdown from '@/components/ui/NavbarDropdown';
|
||||
import { Outlet } from 'react-router-dom';
|
||||
import React from 'react';
|
||||
|
||||
export default function Layout() {
|
||||
const navItems = [{ name: "Home", href: "#hero" }, { name: "Menu", href: "#features" }];
|
||||
interface LayoutProps {
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
||||
export default function Layout({ children }: LayoutProps) {
|
||||
return (
|
||||
<div className="min-h-screen">
|
||||
<NavbarDropdown logo="Bean & Bloom" ctaButton={{ text: "Visit Us", href: "#contact" }} navItems={navItems} />
|
||||
<main><Outlet /></main>
|
||||
<div className="min-h-screen bg-background">
|
||||
<main>{children}</main>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user