Update src/components/Layout.tsx
This commit is contained in:
@@ -7,109 +7,40 @@ import { StyleProvider } from "@/components/ui/StyleProvider";
|
||||
|
||||
export default function Layout() {
|
||||
const navItems = [
|
||||
{
|
||||
"name": "Home",
|
||||
"href": "#hero"
|
||||
},
|
||||
{
|
||||
"name": "Services",
|
||||
"href": "#services"
|
||||
},
|
||||
{
|
||||
"name": "About",
|
||||
"href": "#about"
|
||||
},
|
||||
{
|
||||
"name": "Projects",
|
||||
"href": "#projects"
|
||||
},
|
||||
{
|
||||
"name": "Reviews",
|
||||
"href": "#testimonials"
|
||||
},
|
||||
{
|
||||
"name": "Contact",
|
||||
"href": "#contact"
|
||||
},
|
||||
{
|
||||
"name": "Metrics",
|
||||
"href": "#metrics"
|
||||
}
|
||||
];
|
||||
{ name: "Home", href: "#hero" },
|
||||
{ name: "Services", href: "#services" },
|
||||
{ name: "About", href: "#about" },
|
||||
{ name: "Projects", href: "#projects" },
|
||||
{ name: "Reviews", href: "#testimonials" },
|
||||
{ name: "Contact", href: "#contact" },
|
||||
{ name: "Metrics", href: "#metrics" }
|
||||
];
|
||||
|
||||
return (
|
||||
<StyleProvider buttonVariant="bounce" siteBackground="floatingGradient" heroBackground="gradientBars">
|
||||
<SiteBackgroundSlot />
|
||||
<SectionErrorBoundary name="navbar">
|
||||
<NavbarFloatingLogo
|
||||
logo="Portela Electrical"
|
||||
ctaButton={{
|
||||
text: "Call Now",
|
||||
href: "tel:5551234567",
|
||||
}}
|
||||
navItems={navItems} />
|
||||
logo="Portela Electrical"
|
||||
logoImageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=k7nugy"
|
||||
ctaButton={{ text: "Call Now", href: "tel:5551234567" }}
|
||||
navItems={navItems}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
<main className="flex-grow">
|
||||
<Outlet />
|
||||
</main>
|
||||
<SectionErrorBoundary name="footer">
|
||||
<FooterSimpleCard
|
||||
brand="Portela Electrical Services"
|
||||
columns={[
|
||||
{
|
||||
title: "Services",
|
||||
items: [
|
||||
{
|
||||
label: "Repairs",
|
||||
href: "#services",
|
||||
},
|
||||
{
|
||||
label: "Panel Upgrades",
|
||||
href: "#services",
|
||||
},
|
||||
{
|
||||
label: "EV Chargers",
|
||||
href: "#services",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Contact",
|
||||
items: [
|
||||
{
|
||||
label: "555-123-4567",
|
||||
href: "tel:5551234567",
|
||||
},
|
||||
{
|
||||
label: "info@portela.com",
|
||||
href: "mailto:info@portela.com",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Hours",
|
||||
items: [
|
||||
{
|
||||
label: "Mon-Fri: 8am-6pm",
|
||||
},
|
||||
{
|
||||
label: "Emergency: 24/7",
|
||||
},
|
||||
],
|
||||
},
|
||||
]}
|
||||
copyright="© 2026 Portela Electrical Services. All rights reserved."
|
||||
links={[
|
||||
{
|
||||
label: "Privacy Policy",
|
||||
href: "#",
|
||||
},
|
||||
{
|
||||
label: "Terms of Service",
|
||||
href: "#",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
brand="Portela Electrical Services"
|
||||
columns={[
|
||||
{ title: "Services", items: [{ label: "Repairs", href: "#services" }, { label: "Panel Upgrades", href: "#services" }, { label: "EV Chargers", href: "#services" }] },
|
||||
{ title: "Contact", items: [{ label: "555-123-4567", href: "tel:5551234567" }, { label: "info@portela.com", href: "mailto:info@portela.com" }] },
|
||||
{ title: "Hours", items: [{ label: "Mon-Fri: 8am-6pm" }, { label: "Emergency: 24/7" }] }
|
||||
]}
|
||||
copyright="© 2026 Portela Electrical Services. All rights reserved."
|
||||
links={[{ label: "Privacy Policy", href: "#" }, { label: "Terms of Service", href: "#" }]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</StyleProvider>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user