From 1bf8f325258b93f57baea77dd93f72f80d76490d Mon Sep 17 00:00:00 2001 From: default Date: Tue, 2 Jun 2026 16:22:37 +0000 Subject: [PATCH] feat: simplify SiteHeader and add glass effect - Matching landing page design aesthetic (warm cream) - Added glass/blur backdrop effect to header - Removed Cart button (not needed for this B2B platform) - Links now use uppercase + letter-spacing for refined look - Shows brand name when on brand routes - Uses Route Commerce logo + font styling --- src/components/layout/SiteHeader.tsx | 106 ++++++++++++++++++++------- 1 file changed, 79 insertions(+), 27 deletions(-) diff --git a/src/components/layout/SiteHeader.tsx b/src/components/layout/SiteHeader.tsx index 7d197a1..856bae3 100644 --- a/src/components/layout/SiteHeader.tsx +++ b/src/components/layout/SiteHeader.tsx @@ -2,7 +2,6 @@ import Link from "next/link"; import { usePathname } from "next/navigation"; -import { useCart } from "@/context/CartContext"; import ThemeToggle from "@/components/shared/ThemeToggle"; const BRAND_NAMES: Record = { @@ -11,44 +10,97 @@ const BRAND_NAMES: Record = { }; export default function SiteHeader() { - const { cart } = useCart(); const pathname = usePathname(); const showBrandName = pathname?.startsWith("/tuxedo") || pathname?.startsWith("/indian-river-direct"); const brandKey = pathname?.split("/")[1]; const brandName = brandKey ? BRAND_NAMES[brandKey] : null; + const isAdminRoute = pathname?.startsWith("/admin"); + const isStorefrontRoute = pathname?.startsWith("/tuxedo") || pathname?.startsWith("/indian-river-direct") || pathname?.startsWith("/cart") || pathname?.startsWith("/wholesale"); + return ( -
-
- {showBrandName && brandName ? ( - - {brandName} - - ) : ( - - Route Commerce - - )} +
+ {/* Google Fonts */} + -