From af94b7277789deb6e30f848dd3f2924b5d8e0fe8 Mon Sep 17 00:00:00 2001 From: Josh Date: Sun, 17 May 2026 16:36:46 -0700 Subject: [PATCH] feat(brand): use real AnHonestHost wordmark + chevron logo - Pulled the real inline SVG from anhonesthost.com (chevrons + wordmark with 'Host' in teal #00d4aa) - Override Starlight's SiteTitle component so the SVG is inlined rather than loaded as , letting currentColor follow the active theme - Hub page header uses the same wordmark - 'Knowledge Base' label sits to the right of the brand mark, hidden on narrow viewports --- astro.config.mjs | 11 ++++---- src/assets/logo.svg | 8 +++--- src/components/SiteTitle.astro | 49 ++++++++++++++++++++++++++++++++++ src/pages/index.astro | 33 ++++++++++++++++++++--- 4 files changed, 89 insertions(+), 12 deletions(-) create mode 100644 src/components/SiteTitle.astro diff --git a/astro.config.mjs b/astro.config.mjs index e2a5704..9942161 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -18,11 +18,12 @@ export default defineConfig({ }, integrations: [ starlight({ - title: 'An Honest Host KB', - description: 'Customer documentation for WHP and other An Honest Host services.', - logo: { - src: './src/assets/logo.svg', - replacesTitle: false, + title: 'AnHonestHost KB', + description: 'Customer documentation for WHP and other AnHonestHost services.', + components: { + // Inline-SVG brand mark + "Knowledge Base" label. + // Inlining lets the SVG's currentColor follow the active theme. + SiteTitle: './src/components/SiteTitle.astro', }, customCss: [ '@fontsource-variable/inter', diff --git a/src/assets/logo.svg b/src/assets/logo.svg index 40942e5..7414aee 100644 --- a/src/assets/logo.svg +++ b/src/assets/logo.svg @@ -1,4 +1,6 @@ - - AHH - KB + + + + + AnHonestHost diff --git a/src/components/SiteTitle.astro b/src/components/SiteTitle.astro new file mode 100644 index 0000000..07dee1e --- /dev/null +++ b/src/components/SiteTitle.astro @@ -0,0 +1,49 @@ +--- +const { siteTitleHref } = Astro.locals.starlightRoute; +--- + + + + Knowledge Base + + + diff --git a/src/pages/index.astro b/src/pages/index.astro index aa9f667..9a6b0e0 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -56,10 +56,10 @@ const visibleProducts: Product[] = Array.from(byProduct.entries()) - An Honest Host Knowledge Base + AnHonestHost Knowledge Base @@ -75,11 +75,26 @@ const visibleProducts: Product[] = Array.from(byProduct.entries()) } header, footer { - padding: 1.5rem 2rem; + padding: 1.25rem 2rem; } header { border-bottom: 1px solid var(--anhh-border-color, #334155); } + a.brand { + display: inline-flex; + align-items: center; + gap: 0.75rem; + color: inherit; + text-decoration: none; + } + .kb-label { + font-size: 0.875rem; + font-weight: 500; + color: var(--anhh-text-secondary, #94a3b8); + padding-left: 0.75rem; + border-left: 1px solid var(--anhh-border-color, #334155); + line-height: 1; + } footer { border-top: 1px solid var(--anhh-border-color, #334155); font-size: 0.875rem; @@ -152,7 +167,17 @@ const visibleProducts: Product[] = Array.from(byProduct.entries()) -
An Honest Host ยท Knowledge Base
+
+ + + + + + AnHonestHost + + Knowledge Base + +

Knowledge Base

Pick a product to get started.