Files
0dde7859-eb9a-4164-8f02-9ab…/src/components/Layout.tsx
2026-06-21 17:33:13 +00:00

135 lines
2.8 KiB
TypeScript

import FooterSimpleCard from '@/components/sections/footer/FooterSimpleCard';
import NavbarCentered from '@/components/ui/NavbarCentered';
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": "Trade",
"href": "#hero"
},
{
"name": "Pools",
"href": "#features"
},
{
"name": "Portfolio",
"href": "#metrics"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Testimonials",
"href": "#testimonials"
},
{
"name": "Social Proof",
"href": "#social-proof"
},
{
"name": "Faq",
"href": "#faq"
},
{ name: "Portfolio", href: "/portfolio" },
{ name: "About", href: "/about" },
{ name: "Products", href: "/products" },
{ name: "Contact", href: "/contact" },
];
return (
<StyleProvider buttonVariant="shift" siteBackground="floatingGradient" heroBackground="lightRaysCenter">
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarCentered
logo="Orca"
ctaButton={{
text: "Launch App",
href: "https://app.orca.so",
}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleCard
brand="Orca"
columns={[
{
title: "Platform",
items: [
{
label: "Trade",
href: "#",
},
{
label: "Pools",
href: "#",
},
{
label: "Portfolio",
href: "#",
},
],
},
{
title: "Developers",
items: [
{
label: "Documentation",
href: "#",
},
{
label: "SDK",
href: "#",
},
{
label: "GitHub",
href: "#",
},
],
},
{
title: "Community",
items: [
{
label: "Discord",
href: "#",
},
{
label: "Twitter",
href: "#",
},
{
label: "Medium",
href: "#",
},
],
},
]}
copyright="© 2024 Orca. All rights reserved."
links={[
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Service",
href: "#",
},
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}