Add admin favicon

This commit is contained in:
2026-08-03 00:27:56 +03:30
parent e6ee587bf0
commit 9f986255b3
3 changed files with 13 additions and 0 deletions
+5
View File
@@ -51,3 +51,8 @@ def on_shutdown() -> None:
@app.get("/") @app.get("/")
def dashboard() -> FileResponse: def dashboard() -> FileResponse:
return FileResponse(str(_STATIC / "dashboard.html")) return FileResponse(str(_STATIC / "dashboard.html"))
@app.get("/favicon.ico", include_in_schema=False)
def favicon() -> FileResponse:
return FileResponse(str(_STATIC / "favicon.svg"), media_type="image/svg+xml")
+1
View File
@@ -4,6 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Seed — Admin</title> <title>Seed — Admin</title>
<link rel="icon" href="/static/favicon.svg" type="image/svg+xml" />
<link rel="preconnect" href="https://fonts.googleapis.com" /> <link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap" rel="stylesheet" /> <link href="https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap" rel="stylesheet" />
+7
View File
@@ -0,0 +1,7 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
<rect width="64" height="64" rx="14" fill="#6366f1"/>
<path d="M32 49V27" fill="none" stroke="#fff" stroke-width="5" stroke-linecap="round"/>
<path d="M31 30C19 30 12 23 13 13c11-1 19 5 18 17Z" fill="#a7f3d0"/>
<path d="M33 35c12 0 19-7 18-17-11-1-19 5-18 17Z" fill="#d1fae5"/>
<path d="M22 50h20" fill="none" stroke="#fff" stroke-width="5" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 444 B