Skip to content

armgit / kanzo

Public Imported from GitHub
0

Self-hosted, sharable kanban for humans and agents. One 4.7 MB binary, 5 MB of RAM, 10 to 60 tokens per agent reply, starts in 3 ms, zero setup.

Add the Kanzo logo

emanuele-em341ee649c9e1
diff --git a/src/index.html b/src/index.html
index b4020d1..13af2da 100644
--- a/src/index.html
+++ b/src/index.html
@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Kanzo</title>
-<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1' y='2' width='4' height='12' rx='1' fill='%233b5bdb'/%3E%3Crect x='6' y='2' width='4' height='8' rx='1' fill='%233b5bdb' opacity='.7'/%3E%3Crect x='11' y='2' width='4' height='5' rx='1' fill='%233b5bdb' opacity='.4'/%3E%3C/svg%3E">
+<link rel="icon" href="/logo.png">
<style>
:root {
--bg: #f7f7f5; --sidebar: #efefeb; --col: #ededea; --card: #ffffff; --panel: #ffffff;
@@ -38,7 +38,7 @@ aside {
display: flex; flex-direction: column; min-height: 0; padding: 14px 8px;
}
.brand { font-weight: 650; font-size: 15px; padding: 2px 10px 14px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
-.brand svg { width: 16px; height: 16px; }
+.brand img { width: 30px; height: 30px; margin: -6px 0; }
.nav { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.nav a {
display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px;
@@ -195,7 +195,7 @@ header .sub a { color: inherit; }
<body>
<aside>
<div class="brand">
- <svg viewBox="0 0 16 16" aria-hidden="true"><rect x="1" y="2" width="4" height="12" rx="1" fill="var(--accent)"/><rect x="6" y="2" width="4" height="8" rx="1" fill="var(--accent)" opacity=".7"/><rect x="11" y="2" width="4" height="5" rx="1" fill="var(--accent)" opacity=".4"/></svg>
+ <img src="/logo.png" alt="">
Kanzo
</div>
<nav class="nav" id="nav"></nav>
diff --git a/src/logo.png b/src/logo.png
new file mode 100644
index 0000000..7718fbf
Binary files /dev/null and b/src/logo.png differ
diff --git a/src/web.rs b/src/web.rs
index 989a330..45a6557 100644
--- a/src/web.rs
+++ b/src/web.rs
@@ -20,6 +20,7 @@ use crate::store::{self, Error, Store, TaskPatch};
const INDEX: &str = include_str!("index.html");
const APP_JS: &str = include_str!("app.js");
+const LOGO: &[u8] = include_bytes!("logo.png");
pub async fn serve(home: Home, port: Option<u16>, open: bool) -> Result<()> {
let port = port.unwrap_or(home.config.port);
@@ -111,6 +112,7 @@ fn router(home: Home, guard: Guard, shutdown: CancellationToken) -> Router {
}
app.route("/", get(|| async { Html(INDEX) }))
.route("/app.js", get(|| async { ([(header::CONTENT_TYPE, "text/javascript; charset=utf-8")], APP_JS) }))
+ .route("/logo.png", get(|| async { ([(header::CONTENT_TYPE, "image/png")], LOGO) }))
.route("/api/ping", get(|| async { "kanzo" }))
.route("/api/changes", get(changes))
.route("/api/board", get(board))