82 lines
2.2 KiB
TypeScript
82 lines
2.2 KiB
TypeScript
import FooterSimple from '@/components/sections/footer/FooterSimple';
|
|
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": "Home", "href": "#hero"
|
|
},
|
|
{
|
|
"name": "About", "href": "#about"
|
|
},
|
|
{
|
|
"name": "Classes", "href": "#features"
|
|
},
|
|
{
|
|
"name": "Plans", "href": "#pricing"
|
|
},
|
|
{
|
|
"name": "Contact", "href": "#contact"
|
|
},
|
|
{
|
|
"name": "Metrics", "href": "#metrics"
|
|
},
|
|
{
|
|
"name": "Team", "href": "#team"
|
|
}
|
|
];
|
|
|
|
return (
|
|
<StyleProvider buttonVariant="stagger" siteBackground="floatingGradient" heroBackground="gradientBars">
|
|
<SiteBackgroundSlot />
|
|
<SectionErrorBoundary name="navbar">
|
|
<NavbarFloatingLogo
|
|
logo="Optimum Fitness"
|
|
logoImageSrc="https://images.pexels.com/photos/863993/pexels-photo-863993.jpeg?auto=compress&cs=tinysrgb&h=650&w=940"
|
|
ctaButton={{
|
|
text: "Join Now", href: "#contact"}}
|
|
navItems={navItems} />
|
|
</SectionErrorBoundary>
|
|
<main className="flex-grow">
|
|
<Outlet />
|
|
</main>
|
|
<SectionErrorBoundary name="footer">
|
|
<FooterSimple
|
|
brand="Optimum Fitness"
|
|
columns={[
|
|
{
|
|
title: "Location", items: [
|
|
{
|
|
label: "B-69, North Nazimabad, Karachi"},
|
|
{
|
|
label: "Open Daily 6 AM - 11 PM"},
|
|
],
|
|
},
|
|
{
|
|
title: "Services", items: [
|
|
{
|
|
label: "Personal Training", href: "#"},
|
|
{
|
|
label: "Kickboxing", href: "#"},
|
|
{
|
|
label: "Zumba", href: "#"},
|
|
],
|
|
},
|
|
]}
|
|
copyright="© 2024 Optimum Fitness. All rights reserved."
|
|
links={[
|
|
{
|
|
label: "Privacy", href: "#"},
|
|
{
|
|
label: "Terms", href: "#"},
|
|
]}
|
|
/>
|
|
</SectionErrorBoundary>
|
|
</StyleProvider>
|
|
);
|
|
}
|