Update src/components/Layout.tsx

This commit is contained in:
2026-06-16 12:57:43 +00:00
parent 7077f5d74e
commit f3597838ef

View File

@@ -8,34 +8,13 @@ import { StyleProvider } from "@/components/ui/StyleProvider";
export default function Layout() {
const navItems = [
{
"name": "Home",
"href": "#hero"
},
{
"name": "About",
"href": "#about"
},
{
"name": "Services",
"href": "#services"
},
{
"name": "Testimonials",
"href": "#testimonials"
},
{
"name": "Maintenance",
"href": "#maintenance"
},
{
"name": "Faq",
"href": "#faq"
},
{
"name": "Contact",
"href": "#contact"
}
{ name: "Home", href: "#hero" },
{ name: "About", href: "#about" },
{ name: "Services", href: "#services" },
{ name: "Testimonials", href: "#testimonials" },
{ name: "Maintenance", href: "#maintenance" },
{ name: "Faq", href: "#faq" },
{ name: "Contact", href: "#contact" }
];
return (
@@ -44,11 +23,9 @@ export default function Layout() {
<SectionErrorBoundary name="navbar">
<NavbarFloatingLogo
logo="Crystal Gardens"
logoImageSrc="https://images.unsplash.com/photo-1585320806297-9794b3e4ce88?w=150&h=150&fit=crop&q=80"
logoImageSrc="https://storage.googleapis.com/webild/default/no-image.jpg?id=355dv0"
ctaButton={{
text: "Contact Us",
href: "#contact",
}}
text: "Contact Us", href: "#contact"}}
navItems={navItems} />
</SectionErrorBoundary>
<main className="flex-grow">
@@ -59,21 +36,12 @@ export default function Layout() {
brand="Crystal Gardens Landscape & Gardening Services"
copyright="© 2024 Crystal Gardens. All rights reserved."
socialLinks={[
{
icon: Facebook,
href: "https://facebook.com",
},
{
icon: Instagram,
href: "https://instagram.com",
},
{
icon: Twitter,
href: "https://twitter.com",
},
{ icon: "Facebook", href: "https://facebook.com" },
{ icon: "Instagram", href: "https://instagram.com" },
{ icon: "Twitter", href: "https://twitter.com" },
]}
/>
</SectionErrorBoundary>
</StyleProvider>
);
}
}