feat(ui): add custom NORA logo to sidebar

This commit is contained in:
2026-01-26 08:09:24 +00:00
parent 9a8728454b
commit 4c6348dac7
4 changed files with 4 additions and 1 deletions

View File

@@ -117,7 +117,7 @@ fn sidebar(active_page: Option<&str>) -> String {
<!-- Logo --> <!-- Logo -->
<div class="h-16 flex items-center justify-between px-6 border-b border-slate-700"> <div class="h-16 flex items-center justify-between px-6 border-b border-slate-700">
<div class="flex items-center"> <div class="flex items-center">
<span class="text-xl font-bold tracking-tight">N<span class="inline-block w-5 h-5 rounded-full border-2 border-current align-middle mx-px"></span>RA</span> <img src="{}" alt="NORA" class="h-8" />
</div> </div>
<!-- Close button (mobile only) --> <!-- Close button (mobile only) -->
<button onclick="toggleSidebar()" class="md:hidden p-1 rounded-lg hover:bg-slate-700"> <button onclick="toggleSidebar()" class="md:hidden p-1 rounded-lg hover:bg-slate-700">
@@ -147,6 +147,7 @@ fn sidebar(active_page: Option<&str>) -> String {
</div> </div>
</div> </div>
"#, "#,
super::logo::LOGO_BASE64,
nav_html nav_html
) )
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,6 @@
mod api; mod api;
mod components; mod components;
mod logo;
mod templates; mod templates;
use crate::AppState; use crate::AppState;