73 lines
2.0 KiB
TypeScript
73 lines
2.0 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": "Work", "href": "#work"
|
|
},
|
|
{
|
|
"name": "Skills", "href": "#skills"
|
|
},
|
|
{
|
|
"name": "Contact", "href": "#contact"
|
|
},
|
|
{
|
|
"name": "Hero", "href": "#hero"
|
|
},
|
|
{
|
|
"name": "Identity", "href": "#identity"
|
|
},
|
|
{
|
|
"name": "Social", "href": "#social"
|
|
}
|
|
];
|
|
|
|
return (
|
|
<StyleProvider buttonVariant="elastic" siteBackground="floatingGradient" heroBackground="cornerGlow">
|
|
<SiteBackgroundSlot />
|
|
<SectionErrorBoundary name="navbar">
|
|
<NavbarFloatingLogo
|
|
logo="Gayathri"
|
|
logoImageSrc="http://img.b2bpic.net/free-vector/minimal-poster-template-black-white_53876-117865.jpg"
|
|
ctaButton={{
|
|
text: "Hire Me", href: "#contact"}}
|
|
navItems={navItems} />
|
|
</SectionErrorBoundary>
|
|
<main className="flex-grow">
|
|
<Outlet />
|
|
</main>
|
|
<SectionErrorBoundary name="footer">
|
|
<FooterSimple
|
|
brand="Gayathri"
|
|
columns={[
|
|
{
|
|
title: "Social", items: [
|
|
{
|
|
label: "Instagram", href: "#"},
|
|
{
|
|
label: "LinkedIn", href: "#"},
|
|
],
|
|
},
|
|
{
|
|
title: "Connect", items: [
|
|
{
|
|
label: "Email", href: "mailto:hello@example.com"},
|
|
],
|
|
},
|
|
]}
|
|
copyright="© 2024 Gayathri. All rights reserved."
|
|
links={[
|
|
{
|
|
label: "Privacy", href: "#"},
|
|
]}
|
|
/>
|
|
</SectionErrorBoundary>
|
|
</StyleProvider>
|
|
);
|
|
}
|