Sidebar brand mark: hummingbird-key artwork replaces the shield icon

This commit is contained in:
Avi 2026-08-24 11:56:16 -05:00
commit a00c7c9897
4 changed files with 18 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View file

@ -4,6 +4,7 @@ import { shortenNpub } from '../lib/format';
import { Avatar } from './Avatar';
import { CopyButton } from './CopyButton';
import { Icon, type IconName } from './Icon';
import logoUrl from '../assets/logo.png';
const NAV_ITEMS: { id: Screen; label: string; icon: IconName }[] = [
{ id: 'home', label: 'Home', icon: 'home' },
@ -29,7 +30,7 @@ export function Sidebar({ screen, onNavigate }: SidebarProps) {
<aside className="sidebar">
<div className="sidebar-brand">
<span className="sidebar-logo" aria-hidden="true">
<Icon name="shield" size={22} />
<img src={logoUrl} alt="" draggable={false} />
</span>
<div>
<strong>Keynectr</strong>

View file

@ -299,8 +299,21 @@ a {
border-radius: 11px;
display: grid;
place-items: center;
background: var(--primary);
color: var(--on-primary);
background: #fff;
overflow: hidden;
}
.sidebar-logo img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
/* The artwork is black-on-white; flip it in dark themes so it stays black
bird on dark tile instead of a glaring white square. */
html[data-theme='dark'] .sidebar-logo img {
filter: invert(1);
}
.sidebar-brand strong {

1
frontend/src/vite-env.d.ts vendored Normal file
View file

@ -0,0 +1 @@
/// <reference types="vite/client" />