Skip to content

Commit 491b54c

Browse files
committed
feat(ui): add MakerMatrix favicon
- Create custom SVG favicon with CPU + binary design - Match purple-blue gradient from header logo - Add explicit route for serving favicon.svg - Replace default Vite favicon 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: ril3y <ril3y@users.noreply.github.com>
1 parent 6bbbe01 commit 491b54c

3 files changed

Lines changed: 36 additions & 1 deletion

File tree

MakerMatrix/frontend/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en" class="dark">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
5+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>MakerMatrix - Smart Inventory System</title>
88
<meta name="description" content="Advanced inventory management system with smart shelf integration" />
Lines changed: 26 additions & 0 deletions
Loading

MakerMatrix/main.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,15 @@ def custom_openapi():
610610
async def serve_frontend():
611611
return FileResponse(os.path.join(frontend_dist_path, "index.html"))
612612

613+
# Serve favicon and other root static files
614+
@app.get("/favicon.svg")
615+
async def serve_favicon():
616+
return FileResponse(os.path.join(frontend_dist_path, "favicon.svg"), media_type="image/svg+xml")
617+
618+
@app.get("/vite.svg")
619+
async def serve_vite_svg():
620+
return FileResponse(os.path.join(frontend_dist_path, "vite.svg"), media_type="image/svg+xml")
621+
613622
# Catch-all route for React Router (SPA routing) - but exclude API routes entirely
614623
@app.get("/{full_path:path}")
615624
async def serve_frontend_routes(full_path: str):

0 commit comments

Comments
 (0)