Files
d45e4b72-2a2f-4c51-94af-35c…/src/components/Layout.tsx
2026-06-13 16:37:43 +00:00

92 lines
2.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import FooterBasic from '@/components/sections/footer/FooterBasic';
import NavbarFloating from '@/components/ui/NavbarFloating';
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": "Главная",
"href": "#hero"
},
{
"name": "Костюмы",
"href": "#products"
},
{
"name": "Контакты",
"href": "#contact"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Features",
"href": "#features"
},
{
"name": "Metrics",
"href": "#metrics"
},
{
"name": "Testimonials",
"href": "#testimonials"
}
];
return (
<StyleProvider buttonVariant="bounce" siteBackground="floatingGradient" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloating
logo="Kvalitelli"
ctaButton={{
text: "Записаться",
href: "#contact",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterBasic
columns={[
{
title: "Контакты",
items: [
{
label: "пр. Красный, 66, Новосибирск",
href: "#",
},
{
label: "+7(922) 399-90-07",
href: "tel:+79223999007",
},
],
},
{
title: "Информация",
items: [
{
label: "Политика конфиденциальности",
href: "#",
},
{
label: "Персональные данные",
href: "#",
},
],
},
]}
leftText="© 2026 Kvalitelli. Все права защищены."
rightText="Создаем безупречный стиль."
/>
</SectionErrorBoundary>
</StyleProvider>
);
}