Co-created favicon

This commit is contained in:
2025-11-14 04:12:41 +03:00
parent a19f87c637
commit cc0c639e47
3 changed files with 7 additions and 0 deletions

View File

@@ -55,6 +55,7 @@ func BuildRouter(listenAddress string) {
mainRouter.HandleFunc("/", serveStaticFile("index.html"))
mainRouter.HandleFunc("/index.js", serveStaticFile("index.js"))
mainRouter.HandleFunc("/index.css", serveStaticFile("index.css"))
mainRouter.HandleFunc("/favicon.svg", serveStaticFile("favicon.svg"))
api_router := mainRouter.PathPrefix("/api").Subrouter()
api_router.HandleFunc("/session", createSession).Methods("POST")

4
front_files/favicon.svg Normal file
View File

@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256">
<rect width="256" height="256" rx="50" ry="50" fill="#0a3558"/>
<path d="M70 128c20-40 40-40 60 0s40 40 60 0" stroke="#42b4ff" stroke-width="16" fill="none" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 281 B

View File

@@ -6,6 +6,8 @@
<title>Echo: True Peer-to-Peer file and text transfers</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="index.css" />
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
</head>
<body>