feat: use the real Hermes Agent mark instead of the local caduceus
HermesIcon now renders the Nous mascot from the hermes-agent repo, downscaled to a 256px PNG served from our own public dir rather than hotlinked. The component keeps the Icon signature so every registry and call site is unchanged; the composer's bare <HermesIcon /> gains an explicit size-4 since the button's automatic svg sizing does not reach an <img>. Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
1 parent
d22d5ac00f
commit
8915a449ec
3 files changed
+19
-15
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 48 KiB |
@@ -1,18 +1,21 @@
|
||||
import type { Icon } from "./Icons";
|
||||
|
||||
/**
|
||||
* Compact local mark for Hermes provider surfaces. The paired wings suggest
|
||||
* Hermes' caduceus without depending on a remote image asset.
|
||||
* The Hermes Agent brand mark (the Nous mascot), served from our own public
|
||||
* dir rather than hotlinked. Typed as `Icon` so every provider-icon registry
|
||||
* and call site keeps working unchanged; the SVG-flavored props degrade to
|
||||
* the `img` cleanly since only `className`/`style` are ever passed.
|
||||
*
|
||||
* The source art is black-on-white inside a rounded tile, so `currentColor`
|
||||
* theming does not apply — the rounded corners are baked into the asset.
|
||||
*/
|
||||
export const HermesIcon: Icon = (props) => (
|
||||
<svg {...props} viewBox="0 0 24 24" fill="none">
|
||||
<path
|
||||
d="M12 3v18M8.5 6.5c-2.8-2.2-5-1.1-5.5-.7.8 2.8 2.6 4.2 5.5 4.2h7c2.9 0 4.7-1.4 5.5-4.2-.5-.4-2.7-1.5-5.5.7M8 14h8M9.5 18h5"
|
||||
stroke="currentColor"
|
||||
strokeWidth="1.7"
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
/>
|
||||
<circle cx="12" cy="3" r="1.4" fill="currentColor" />
|
||||
</svg>
|
||||
export const HermesIcon: Icon = ({ className, style }) => (
|
||||
<img
|
||||
src="/hermes-agent-icon.png"
|
||||
alt=""
|
||||
aria-hidden
|
||||
draggable={false}
|
||||
className={className}
|
||||
style={style}
|
||||
/>
|
||||
);
|
||||
@@ -428,8 +428,9 @@ const ComposerFooterModeControls = memo(function ComposerFooterModeControls(prop
|
||||
>
|
||||
{/* The mark alone. `aria-label` on the trigger and the tooltip below
|
||||
both still say "Open agent details", so dropping the visible
|
||||
word costs nothing to a screen reader. */}
|
||||
<HermesIcon />
|
||||
word costs nothing to a screen reader. Sized explicitly: the
|
||||
button's automatic svg sizing does not reach an <img> mark. */}
|
||||
<HermesIcon className="size-4 shrink-0" />
|
||||
</TooltipTrigger>
|
||||
<TooltipPopup side="top">Open agent details</TooltipPopup>
|
||||
</Tooltip>
|
||||
|
||||
Reference in new issue
Block a user