diff --git a/app.css b/app.css index 83ae921..3264430 100644 --- a/app.css +++ b/app.css @@ -41,6 +41,7 @@ a:hover { color: var(--link-hover); } .side { flex: 1 1 230px; background: var(--ink); color: #c9c9c3; padding: 20px 12px; display: flex; flex-direction: column; gap: 2px; } .brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 18px; color: #fff; } .brand svg { flex: none; } +a.brand, a.brand:hover { color: #fff; text-decoration: none; } .brand .wm { font-family: var(--mono); font-weight: 600; font-size: 16px; letter-spacing: 0.06em; line-height: 1.2; } .brand .kana { font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif; font-size: 10px; letter-spacing: 0.3em; color: #8d8e93; margin-top: 2px; } .srv { display: flex; align-items: center; gap: 8px; margin: 0 6px 16px; padding: 10px; border: 1px solid #2c2d32; border-radius: 8px; font-size: 12px; color: #c9c9c3; } diff --git a/app.js b/app.js index 8bd8df0..593da03 100644 --- a/app.js +++ b/app.js @@ -63,7 +63,8 @@ } // brand is the logo lockup: mark, wordmark and the katakana reading. - const brand = (size) => h('div', { class: 'brand' }, logo(size), + // With href it is a link (the sidebar's goes to the start page). + const brand = (size, href) => h(href ? 'a' : 'div', href ? { class: 'brand', href } : { class: 'brand' }, logo(size), h('div', null, h('div', { class: 'wm' }, APP), h('div', { class: 'kana', lang: 'ja' }, 'ゴーストワイヤー'))); // Icons are constant markup from ICONS, never data. @@ -356,7 +357,7 @@ peerCount = h('span', { class: 'count' }); navLinks = {}; const nav = h('nav', { class: 'side', 'aria-label': 'Main' }, - brand(34), + brand(34, '#/'), srvBox, NAV.map(([href, ic, label]) => (navLinks[href] = h('a', { class: 'nav', href }, icon(ic), label, ic === 'peers' ? peerCount : null))), h('div', { class: 'foot' },