77 lines
2.1 KiB
TypeScript
77 lines
2.1 KiB
TypeScript
import FooterBrand from '@/components/sections/footer/FooterBrand';
|
|
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": "About", "href": "#about"
|
|
},
|
|
{
|
|
"name": "Services", "href": "#services"
|
|
},
|
|
{
|
|
"name": "Fleet", "href": "#fleet"
|
|
},
|
|
{
|
|
"name": "Careers", "href": "#careers"
|
|
},
|
|
{
|
|
"name": "Hero", "href": "#hero"
|
|
},
|
|
{
|
|
"name": "Features", "href": "#features"
|
|
},
|
|
{
|
|
"name": "Metrics", "href": "#metrics"
|
|
}
|
|
];
|
|
|
|
return (
|
|
<StyleProvider buttonVariant="arrow" siteBackground="noise" heroBackground="cornerGlow">
|
|
<SiteBackgroundSlot />
|
|
<SectionErrorBoundary name="navbar">
|
|
<NavbarFloatingLogo
|
|
logo="CARRERA TRANSPORT LLC"
|
|
logoImageSrc="http://img.b2bpic.net/free-photo/train-station-city-life-with-car-icon_53876-120988.jpg"
|
|
ctaButton={{
|
|
text: "Get a Quote", href: "#contact"}}
|
|
navItems={navItems} />
|
|
</SectionErrorBoundary>
|
|
<main className="flex-grow">
|
|
<Outlet />
|
|
</main>
|
|
<SectionErrorBoundary name="footer">
|
|
<FooterBrand
|
|
brand="CARRERA TRANSPORT LLC"
|
|
columns={[
|
|
{
|
|
items: [
|
|
{
|
|
label: "Services", href: "#services"},
|
|
{
|
|
label: "Careers", href: "#careers"},
|
|
{
|
|
label: "About Us", href: "#about"},
|
|
],
|
|
},
|
|
{
|
|
items: [
|
|
{
|
|
label: "Privacy Policy", href: "#"},
|
|
{
|
|
label: "Terms of Service", href: "#"},
|
|
{
|
|
label: "Contact", href: "#contact"},
|
|
],
|
|
},
|
|
]}
|
|
/>
|
|
</SectionErrorBoundary>
|
|
</StyleProvider>
|
|
);
|
|
}
|