Files
2d260eda-ca24-44fb-b8c2-341…/src/components/Layout.tsx

65 lines
1.8 KiB
TypeScript

import FooterMinimal from '@/components/sections/footer/FooterMinimal';
import NavbarFloatingLogo from '@/components/ui/NavbarFloatingLogo';
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot";
import { Image, Instagram, Twitter } from "lucide-react";
import { Outlet } from 'react-router-dom';
import { StyleProvider } from "@/components/ui/StyleProvider";
export default function Layout() {
const navItems = [
{
"name": "Home", "href": "#hero"
},
{
"name": "Gallery", "href": "#gallery"
},
{
"name": "Artist", "href": "#about"
},
{
"name": "Contact", "href": "#contact"
},
{
"name": "Features", "href": "#features"
},
{
"name": "Testimonials", "href": "#testimonials"
},
{
"name": "Faq", "href": "#faq"
}
];
return (
<StyleProvider buttonVariant="elastic" siteBackground="gridDots" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Studio Art"
logoImageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=g9ad9w"
ctaButton={{
text: "Shop Now", href: "#gallery"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterMinimal
brand="Studio Art"
copyright="© 2024 Elena Rossi. All rights reserved."
socialLinks={[
{
icon: "Instagram", href: "#"},
{
icon: "Twitter", href: "#"},
{
icon: "Image", href: "#"},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}