From 2f80b96a95689eaa291eeed3579d2de01283307b Mon Sep 17 00:00:00 2001 From: Darian Date: Fri, 16 Oct 2026 17:20:48 +0330 Subject: [PATCH] Keep horizontal header logo; fix oversized stretch scaling. Replace the 235% zoom hack with header-slot height and object-contain so aspect ratio stays correct. Co-authored-by: Cursor --- src/components/atoms/BrandLogo.tsx | 44 +++++++++++++++++++++++-- src/components/organisms/SiteHeader.tsx | 2 ++ 2 files changed, 44 insertions(+), 2 deletions(-) diff --git a/src/components/atoms/BrandLogo.tsx b/src/components/atoms/BrandLogo.tsx index 6b69848..cc3e6dd 100644 --- a/src/components/atoms/BrandLogo.tsx +++ b/src/components/atoms/BrandLogo.tsx @@ -4,6 +4,8 @@ import { cn } from "@/lib/utils"; /** Faculty seal mark (transparent). Source: MST icon with side text removed. */ const MARK_SRC = "/brand/mst-faculty.png"; +/** Horizontal wordmark with faculty + university name baked in. */ +const HORIZONTAL_SRC = "/MstAutIcon_horizontal.png"; type BrandLogoProps = { href?: string; @@ -12,9 +14,14 @@ type BrandLogoProps = { onDark?: boolean; className?: string; compact?: boolean; + /** + * Header wordmark: uses the horizontal logo (text is in the image). + * Title/subtitle are not rendered — only used for aria-label. + */ + horizontal?: boolean; }; -/** AUT seal — mark + title/subtitle text (agreed header size). */ +/** AUT brand mark / horizontal wordmark. */ export function BrandLogo({ href = "/", title, @@ -22,7 +29,40 @@ export function BrandLogo({ onDark = false, className, compact = false, + horizontal = false, }: BrandLogoProps) { + const ariaLabel = [title, subtitle].filter(Boolean).join(" — "); + + if (horizontal) { + return ( + + {ariaLabel} + + ); + } + return ( @@ -213,6 +214,7 @@ export function SiteHeader({ title={brandTitle} subtitle={brandSubtitle} onDark + horizontal compact className="shrink-0" />