From ccfe8bb649772caa8f61eed1f48ee08b2cd228f4 Mon Sep 17 00:00:00 2001 From: Josh Date: Sun, 17 May 2026 17:17:57 -0700 Subject: [PATCH] feat(nav): top-bar Hosting + Client Portal links Adds external links to anhonesthost.com (Hosting) and secure.anhonesthost.com (Client Portal) in both the Starlight header (via the SiteTitle override) and the custom hub page header. Hidden on narrow viewports so the search box, hamburger, and theme toggle keep room. --- src/components/SiteTitle.astro | 71 +++++++++++++++++++++++++--------- src/pages/index.astro | 31 +++++++++++++++ 2 files changed, 84 insertions(+), 18 deletions(-) diff --git a/src/components/SiteTitle.astro b/src/components/SiteTitle.astro index 07dee1e..8dd9857 100644 --- a/src/components/SiteTitle.astro +++ b/src/components/SiteTitle.astro @@ -2,25 +2,37 @@ const { siteTitleHref } = Astro.locals.starlightRoute; --- - - - Knowledge Base - +
+ + + Knowledge Base + + + +
diff --git a/src/pages/index.astro b/src/pages/index.astro index 9a6b0e0..61ce16c 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -79,6 +79,11 @@ const visibleProducts: Product[] = Array.from(byProduct.entries()) } header { border-bottom: 1px solid var(--anhh-border-color, #334155); + display: flex; + align-items: center; + justify-content: space-between; + gap: 1.5rem; + flex-wrap: wrap; } a.brand { display: inline-flex; @@ -87,6 +92,28 @@ const visibleProducts: Product[] = Array.from(byProduct.entries()) color: inherit; text-decoration: none; } + .ext-nav { + display: flex; + align-items: center; + gap: 1.25rem; + } + .ext-link { + font-size: 0.875rem; + font-weight: 500; + color: var(--anhh-text-secondary, #94a3b8); + text-decoration: none; + white-space: nowrap; + } + .ext-link:hover, + .ext-link:focus { + color: var(--anhh-accent, #00d4aa); + outline: none; + } + @media (max-width: 40em) { + .ext-nav { + display: none; + } + } .kb-label { font-size: 0.875rem; font-weight: 500; @@ -177,6 +204,10 @@ const visibleProducts: Product[] = Array.from(byProduct.entries()) Knowledge Base +

Knowledge Base