mirror of
https://github.com/getnora-io/nora.git
synced 2026-04-12 10:20:32 +00:00
feat(ui): add custom NORA logo to sidebar
This commit is contained in:
@@ -117,7 +117,7 @@ fn sidebar(active_page: Option<&str>) -> String {
|
||||
<!-- Logo -->
|
||||
<div class="h-16 flex items-center justify-between px-6 border-b border-slate-700">
|
||||
<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>
|
||||
<!-- Close button (mobile only) -->
|
||||
<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>
|
||||
"#,
|
||||
super::logo::LOGO_BASE64,
|
||||
nav_html
|
||||
)
|
||||
}
|
||||
|
||||
BIN
nora-registry/src/ui/logo.jpg
Normal file
BIN
nora-registry/src/ui/logo.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.9 KiB |
1
nora-registry/src/ui/logo.rs
Normal file
1
nora-registry/src/ui/logo.rs
Normal file
File diff suppressed because one or more lines are too long
@@ -1,5 +1,6 @@
|
||||
mod api;
|
||||
mod components;
|
||||
mod logo;
|
||||
mod templates;
|
||||
|
||||
use crate::AppState;
|
||||
|
||||
Reference in New Issue
Block a user