Files
98c2fbcb-01d1-4bb5-86cf-9a6…/src/components/Layout.tsx
2026-06-21 15:29:17 +00:00

101 lines
2.3 KiB
TypeScript

import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia';
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": "Objectifs",
"href": "#goals"
},
{
"name": "Parcours",
"href": "#parcours"
},
{
"name": "Ressources",
"href": "#ressources"
},
{
"name": "Hero",
"href": "#hero"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Metrics",
"href": "#metrics"
},
{
"name": "Testimonials",
"href": "#testimonials"
},
{ name: "Dashboard", href: "/dashboard" },
];
return (
<StyleProvider buttonVariant="elastic" siteBackground="gridDots" heroBackground="cornerGlow">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloating
logo="Entrepreneur Path"
ctaButton={{
text: "Commencer",
href: "#start",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleMedia
brand="Entrepreneur Path"
columns={[
{
title: "Produit",
items: [
{
label: "Objectifs",
href: "#goals",
},
{
label: "Parcours",
href: "#parcours",
},
],
},
{
title: "Légal",
items: [
{
label: "Confidentialité",
href: "#",
},
{
label: "CGU",
href: "#",
},
],
},
]}
copyright="© 2024 Entrepreneur Path. Tous droits réservés."
imageSrc="http://img.b2bpic.net/free-photo/futuristic-ai-data-visualization_23-2151977857.jpg?_wi=3"
links={[
{
label: "Contact",
href: "#contact",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}