From 8ed94a3a4d34f3bd3dabdcace68c587a897e55f7 Mon Sep 17 00:00:00 2001 From: RizqiSyahrendra Date: Thu, 13 Mar 2025 15:39:23 +0700 Subject: [PATCH] fix: header styling and nav prefetch --- src/components/Header.tsx | 10 +++++----- src/components/HeaderNav.tsx | 5 +++++ src/components/Hero.tsx | 6 +++--- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 81098f7..999dc8f 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -13,7 +13,7 @@ const shareIcons: Record = { dom: ( Phone - (520) 803-6644 + (520) 803-6644 ), }, @@ -21,7 +21,7 @@ const shareIcons: Record = { link: "https://www.facebook.com/p/Cochise-Oncology-61556262839823", dom: ( - + Facebook ), @@ -30,7 +30,7 @@ const shareIcons: Record = { link: "https://linkedin.com/company/cochise-oncology", dom: ( - + Linkedin ), @@ -65,8 +65,8 @@ export default function Header({ links }: { links: typeof navMenuData }) { Company Logo diff --git a/src/components/HeaderNav.tsx b/src/components/HeaderNav.tsx index c5e0bff..2298e7b 100644 --- a/src/components/HeaderNav.tsx +++ b/src/components/HeaderNav.tsx @@ -45,6 +45,7 @@ export default function HeaderNav({ links, animateY = false }: { links: typeof n
  • {!Array.isArray(link?.child) && ( @@ -64,6 +65,7 @@ export default function HeaderNav({ links, animateY = false }: { links: typeof n {Array.isArray(link?.child) && (
    setHoveredNavItem(`${index}`)} onMouseLeave={() => setHoveredNavItem("")}> toggleDropdown([link.text])} @@ -82,6 +84,7 @@ export default function HeaderNav({ links, animateY = false }: { links: typeof n > {!Array.isArray(subLink?.child) && ( toggleMobileMenu()} className="!text-[14px] !text-white hover:!bg-extColorPrimary5 hover:!text-extColorPrimary3 !transition-all !duration-500" @@ -92,6 +95,7 @@ export default function HeaderNav({ links, animateY = false }: { links: typeof n {Array.isArray(subLink?.child) && ( <> setIsSubDropdownOpen(`${index}-${subLinkIdx}`)} @@ -106,6 +110,7 @@ export default function HeaderNav({ links, animateY = false }: { links: typeof n {subLink.child.map((subLink2: any, subLinkIdx2: number) => (
  • toggleMobileMenu()} diff --git a/src/components/Hero.tsx b/src/components/Hero.tsx index 65ccb96..2239704 100644 --- a/src/components/Hero.tsx +++ b/src/components/Hero.tsx @@ -22,10 +22,10 @@ export default function Hero() {

    Healing Begins Here

    Cochise Oncology

    Southern Arizona’s Only Complete Cancer Treatment Center in Sierra Vista.

    - - Request Consultation - + + Request Consultation + {/* End Home Section Content */}