Update src/components/Layout.tsx
This commit is contained in:
@@ -2,63 +2,45 @@ 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"
|
||||
}
|
||||
];
|
||||
{ "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} />
|
||||
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: "#"},
|
||||
]}
|
||||
/>
|
||||
brand="Studio Art"
|
||||
copyright="© 2024 Elena Rossi. All rights reserved."
|
||||
socialLinks={[
|
||||
{ icon: "Instagram", href: "#" },
|
||||
{ icon: "Twitter", href: "#" },
|
||||
{ icon: "Image", href: "#" },
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</StyleProvider>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user