mirror of
https://github.com/getnora-io/nora.git
synced 2026-04-12 13:50:31 +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 -->
|
<!-- 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
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
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 api;
|
||||||
mod components;
|
mod components;
|
||||||
|
mod logo;
|
||||||
mod templates;
|
mod templates;
|
||||||
|
|
||||||
use crate::AppState;
|
use crate::AppState;
|
||||||
|
|||||||
Reference in New Issue
Block a user