Update src/components/Layout.tsx

This commit is contained in:
2026-06-13 19:58:12 +00:00
parent 330d70769e
commit de9e60d924

View File

@@ -1,101 +1,31 @@
import FooterSimpleCard from '@/components/sections/footer/FooterSimpleCard';
import { Outlet } from 'react-router-dom';
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": "Úvod",
"href": "#hero"
},
{
"name": "Služby",
"href": "#features"
},
{
"name": "O mně",
"href": "#about"
},
{
"name": "Prodejna",
"href": "#prodejna"
},
{
"name": "Kontakt",
"href": "#contact"
},
{
"name": "Metrics",
"href": "#metrics"
},
{
"name": "Faq",
"href": "#faq"
}
];
return (
<StyleProvider buttonVariant="elastic" siteBackground="noise" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Zahradnictví ALEX"
ctaButton={{
text: "Kontaktujte nás",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<div className="min-h-screen">
<div id="nav" data-section="nav" className="fixed top-0 left-0 right-0 z-50">
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Zahradnictví ALEX"
logoImageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=0hf0ns"
navItems={[
{ name: "Úvod", href: "#hero" },
{ name: "O nás", href: "#about" },
{ name: "Prodejna", href: "#prodejna" },
{ name: "Služby", href: "#features" },
{ name: "Kontakt", href: "#contact" }
]}
ctaButton={{
text: "Rezervovat", href: "#contact"
}}
/>
</SectionErrorBoundary>
</div>
<main className="pt-20">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleCard
brand="Zahradnictví ALEX"
columns={[
{
title: "Navigace",
items: [
{
label: "Úvod",
href: "#hero",
},
{
label: "Služby",
href: "#features",
},
{
label: "Kontakt",
href: "#contact",
},
],
},
{
title: "Informace",
items: [
{
label: "Obchodní podmínky",
href: "#",
},
{
label: "Ochrana soukromí",
href: "#",
},
],
},
]}
copyright="© 2020 Zahradnictví ALEX. Všechna práva vyhrazena."
links={[
{
label: "Cookies",
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
</div>
);
}