summaryrefslogtreecommitdiffstats
path: root/internal
diff options
context:
space:
mode:
authorbndw <ben@bdw.to>2026-02-14 08:26:16 -0800
committerbndw <ben@bdw.to>2026-02-14 08:26:16 -0800
commit5c2d8411a67147a1589f107cf1bfc2fd549d9a41 (patch)
tree444e8f6e79ef85eca392563097cc18ded553bf95 /internal
parent0406e24e1259e1a9adcd739da388dcca9ec8feba (diff)
feat: add muxstr SVG logo to index page
Replace ASCII art banner with SVG logo featuring the muxstr branding. Update page title and background color to match brand identity.
Diffstat (limited to 'internal')
-rw-r--r--internal/handler/websocket/index.go27
1 files changed, 16 insertions, 11 deletions
diff --git a/internal/handler/websocket/index.go b/internal/handler/websocket/index.go
index bbd6583..6289446 100644
--- a/internal/handler/websocket/index.go
+++ b/internal/handler/websocket/index.go
@@ -10,11 +10,11 @@ var indexTemplate = template.Must(template.New("index").Parse(`<!DOCTYPE html>
10<head> 10<head>
11 <meta charset="UTF-8"> 11 <meta charset="UTF-8">
12 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 12 <meta name="viewport" content="width=device-width, initial-scale=1.0">
13 <title>Nostr Relay</title> 13 <title>muxstr</title>
14 <style> 14 <style>
15 body { 15 body {
16 font-family: 'Courier New', Courier, monospace; 16 font-family: 'Courier New', Courier, monospace;
17 background: #fff; 17 background: #f5f0e8;
18 color: #000; 18 color: #000;
19 max-width: 720px; 19 max-width: 720px;
20 margin: 40px auto; 20 margin: 40px auto;
@@ -73,19 +73,24 @@ var indexTemplate = template.Must(template.New("index").Parse(`<!DOCTYPE html>
73 border: 1px solid #ccc; 73 border: 1px solid #ccc;
74 background: #f5f5f5; 74 background: #f5f5f5;
75 } 75 }
76 .logo-container {
77 margin: 20px 0 30px 0;
78 }
79 .logo-container svg {
80 width: 100%;
81 height: auto;
82 display: block;
83 }
76 </style> 84 </style>
77</head> 85</head>
78<body> 86<body>
79 87
80<pre> 88<div class="logo-container">
81-----BEGIN NOSTR RELAY INFO----- 89 <svg viewBox="0 0 1120 300" xmlns="http://www.w3.org/2000/svg">
82Hash: SHA256 90 <rect width="1120" height="300" fill="#c97556"/>
83 91 <text x="560" y="200" font-family="Arial, Helvetica, sans-serif" font-size="180" font-weight="bold" fill="#f5f0e8" text-anchor="middle">muxstr</text>
84relay_id: nostr-grpc-relay 92 </svg>
85version: 1.0.0 93</div>
86status: online
87-----END NOSTR RELAY INFO-----
88</pre>
89 94
90<h1>Nostr Relay</h1> 95<h1>Nostr Relay</h1>
91 96