Update src/components/Layout.tsx

This commit is contained in:
2026-06-23 11:25:52 +00:00
parent 8d3773c342
commit 0775fe1a90

View File

@@ -8,32 +8,25 @@ import { StyleProvider } from "@/components/ui/StyleProvider";
export default function Layout() {
const navItems = [
{
"name": "Home",
"href": "#hero"
"name": "Home", "href": "#hero"
},
{
"name": "About",
"href": "#about"
"name": "About", "href": "#about"
},
{
"name": "Services",
"href": "#features"
"name": "Services", "href": "#features"
},
{
"name": "FAQ",
"href": "#faq"
"name": "FAQ", "href": "#faq"
},
{
"name": "Specialties",
"href": "#specialties"
"name": "Specialties", "href": "#specialties"
},
{
"name": "Metrics",
"href": "#metrics"
"name": "Metrics", "href": "#metrics"
},
{
"name": "Testimonials",
"href": "#testimonials"
"name": "Testimonials", "href": "#testimonials"
}
];
@@ -42,81 +35,58 @@ export default function Layout() {
<SiteBackgroundSlot />
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Suraksha Hospital"
ctaButton={{
text: "Book Appointment",
href: "#contact",
}}
navItems={navItems} />
logo="Suraksha Hospital"
logoImageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=lmj5y4"
ctaButton={{
text: "Book Appointment", href: "#contact"}}
navItems={navItems}
/>
</SectionErrorBoundary>
<main className="flex-grow">
<Outlet />
</main>
<SectionErrorBoundary name="footer">
<FooterSimpleMedia
brand="Suraksha Hospital"
columns={[
{
title: "Departments",
items: [
brand="Suraksha Hospital"
columns={[
{
label: "Cardiology",
href: "#",
title: "Departments", items: [
{
label: "Cardiology", href: "#"},
{
label: "Neurology", href: "#"},
{
label: "Surgery", href: "#"},
],
},
{
label: "Neurology",
href: "#",
title: "About", items: [
{
label: "Careers", href: "#"},
{
label: "Leadership", href: "#"},
{
label: "Contact Us", href: "#"},
],
},
{
label: "Surgery",
href: "#",
title: "Legal", items: [
{
label: "Privacy Policy", href: "#"},
{
label: "Terms of Use", href: "#"},
],
},
],
},
{
title: "About",
items: [
]}
copyright="© 2024 Suraksha Hospital. All rights reserved."
links={[
{
label: "Careers",
href: "#",
},
label: "Instagram", href: "#"},
{
label: "Leadership",
href: "#",
},
{
label: "Contact Us",
href: "#",
},
],
},
{
title: "Legal",
items: [
{
label: "Privacy Policy",
href: "#",
},
{
label: "Terms of Use",
href: "#",
},
],
},
]}
copyright="© 2024 Suraksha Hospital. All rights reserved."
links={[
{
label: "Instagram",
href: "#",
},
{
label: "LinkedIn",
href: "#",
},
]}
imageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=lmj5y4&_wi=2"
/>
label: "LinkedIn", href: "#"},
]}
imageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=lmj5y4"
/>
</SectionErrorBoundary>
</StyleProvider>
);