feat: custom SVG logo in sidebar and topbar

This commit is contained in:
2026-07-26 20:35:31 +08:00
parent e7e93d9664
commit 8da69b5ef8
2 changed files with 8 additions and 9 deletions
+2 -9
View File
@@ -13,11 +13,7 @@
<aside id="sidebar" class="sidebar expanded">
<div class="sidebar-header">
<div class="sidebar-logo">
<svg viewBox="0 0 48 48" width="40" height="40">
<circle cx="24" cy="24" r="22" fill="none" stroke="var(--accent)" stroke-width="2.5"/>
<path d="M24 6 L30 20 L44 24 L30 28 L24 42 L18 28 L4 24 L18 20 Z" fill="var(--accent)"/>
<text x="24" y="30" text-anchor="middle" fill="#fff" font-size="16" font-weight="bold">S</text>
</svg>
<img src="/static/img/logo.svg" alt="TurboSu" width="40" height="40">
</div>
<div class="sidebar-title">TurboSu</div>
<button id="sidebar-toggle" class="sidebar-toggle-btn" title="折叠侧边栏">
@@ -72,10 +68,7 @@
<header id="topbar" class="topbar">
<div class="topbar-left">
<div id="topbar-logo-title" class="topbar-logo-title hidden">
<svg viewBox="0 0 48 48" width="28" height="28">
<circle cx="24" cy="24" r="22" fill="none" stroke="var(--accent)" stroke-width="2.5"/>
<path d="M24 6 L30 20 L44 24 L30 28 L24 42 L18 28 L4 24 L18 20 Z" fill="var(--accent)"/>
</svg>
<img src="/static/img/logo.svg" alt="TurboSu" width="28" height="28">
<span class="topbar-title-text">TurboSu</span>
</div>
</div>