Co-created favicon
This commit is contained in:
@@ -55,6 +55,7 @@ func BuildRouter(listenAddress string) {
|
|||||||
mainRouter.HandleFunc("/", serveStaticFile("index.html"))
|
mainRouter.HandleFunc("/", serveStaticFile("index.html"))
|
||||||
mainRouter.HandleFunc("/index.js", serveStaticFile("index.js"))
|
mainRouter.HandleFunc("/index.js", serveStaticFile("index.js"))
|
||||||
mainRouter.HandleFunc("/index.css", serveStaticFile("index.css"))
|
mainRouter.HandleFunc("/index.css", serveStaticFile("index.css"))
|
||||||
|
mainRouter.HandleFunc("/favicon.svg", serveStaticFile("favicon.svg"))
|
||||||
|
|
||||||
api_router := mainRouter.PathPrefix("/api").Subrouter()
|
api_router := mainRouter.PathPrefix("/api").Subrouter()
|
||||||
api_router.HandleFunc("/session", createSession).Methods("POST")
|
api_router.HandleFunc("/session", createSession).Methods("POST")
|
||||||
|
|||||||
4
front_files/favicon.svg
Normal file
4
front_files/favicon.svg
Normal 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 |
@@ -6,6 +6,8 @@
|
|||||||
<title>Echo: True Peer-to-Peer file and text transfers</title>
|
<title>Echo: True Peer-to-Peer file and text transfers</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<link rel="stylesheet" href="index.css" />
|
<link rel="stylesheet" href="index.css" />
|
||||||
|
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
Reference in New Issue
Block a user