Sidebar brand mark: hummingbird-key artwork replaces the shield icon
This commit is contained in:
parent
5f27c4585b
commit
a00c7c9897
4 changed files with 18 additions and 3 deletions
BIN
frontend/src/assets/logo.png
Normal file
BIN
frontend/src/assets/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
|
|
@ -4,6 +4,7 @@ import { shortenNpub } from '../lib/format';
|
||||||
import { Avatar } from './Avatar';
|
import { Avatar } from './Avatar';
|
||||||
import { CopyButton } from './CopyButton';
|
import { CopyButton } from './CopyButton';
|
||||||
import { Icon, type IconName } from './Icon';
|
import { Icon, type IconName } from './Icon';
|
||||||
|
import logoUrl from '../assets/logo.png';
|
||||||
|
|
||||||
const NAV_ITEMS: { id: Screen; label: string; icon: IconName }[] = [
|
const NAV_ITEMS: { id: Screen; label: string; icon: IconName }[] = [
|
||||||
{ id: 'home', label: 'Home', icon: 'home' },
|
{ id: 'home', label: 'Home', icon: 'home' },
|
||||||
|
|
@ -29,7 +30,7 @@ export function Sidebar({ screen, onNavigate }: SidebarProps) {
|
||||||
<aside className="sidebar">
|
<aside className="sidebar">
|
||||||
<div className="sidebar-brand">
|
<div className="sidebar-brand">
|
||||||
<span className="sidebar-logo" aria-hidden="true">
|
<span className="sidebar-logo" aria-hidden="true">
|
||||||
<Icon name="shield" size={22} />
|
<img src={logoUrl} alt="" draggable={false} />
|
||||||
</span>
|
</span>
|
||||||
<div>
|
<div>
|
||||||
<strong>Keynectr</strong>
|
<strong>Keynectr</strong>
|
||||||
|
|
|
||||||
|
|
@ -299,8 +299,21 @@ a {
|
||||||
border-radius: 11px;
|
border-radius: 11px;
|
||||||
display: grid;
|
display: grid;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
background: var(--primary);
|
background: #fff;
|
||||||
color: var(--on-primary);
|
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 {
|
.sidebar-brand strong {
|
||||||
|
|
|
||||||
1
frontend/src/vite-env.d.ts
vendored
Normal file
1
frontend/src/vite-env.d.ts
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
/// <reference types="vite/client" />
|
||||||
Loading…
Add table
Add a link
Reference in a new issue