|
| 1 | +<!doctype html> |
| 2 | +<html lang="zh-CN"> |
| 3 | + <head> |
| 4 | + <meta charset="UTF-8" /> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 6 | + <meta name="theme-color" content="#f4f7f6" /> |
| 7 | + <link rel="icon" type="image/svg+xml" href="./netproxy/favicon.svg" /> |
| 8 | + <link rel="stylesheet" href="https://mui.kernelsu.org/internal/insets.css" /> |
| 9 | + <title>NetProxy</title> |
| 10 | + <style> |
| 11 | + :root { |
| 12 | + color-scheme: light dark; |
| 13 | + font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; |
| 14 | + background: #f4f7f6; |
| 15 | + color: #17201d; |
| 16 | + } |
| 17 | + |
| 18 | + * { |
| 19 | + box-sizing: border-box; |
| 20 | + letter-spacing: 0; |
| 21 | + } |
| 22 | + |
| 23 | + body { |
| 24 | + min-width: 280px; |
| 25 | + min-height: 100vh; |
| 26 | + margin: 0; |
| 27 | + background: #f4f7f6; |
| 28 | + } |
| 29 | + |
| 30 | + main { |
| 31 | + width: min(100%, 720px); |
| 32 | + margin: 0 auto; |
| 33 | + padding: |
| 34 | + max(28px, var(--safe-area-inset-top, env(safe-area-inset-top))) |
| 35 | + max(20px, var(--safe-area-inset-right, env(safe-area-inset-right))) |
| 36 | + max(28px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom))) |
| 37 | + max(20px, var(--safe-area-inset-left, env(safe-area-inset-left))); |
| 38 | + } |
| 39 | + |
| 40 | + header { |
| 41 | + display: flex; |
| 42 | + align-items: center; |
| 43 | + gap: 14px; |
| 44 | + margin-bottom: 30px; |
| 45 | + } |
| 46 | + |
| 47 | + .brand-icon { |
| 48 | + width: 54px; |
| 49 | + height: 54px; |
| 50 | + flex: 0 0 54px; |
| 51 | + } |
| 52 | + |
| 53 | + h1 { |
| 54 | + margin: 0; |
| 55 | + font-size: 28px; |
| 56 | + line-height: 1.2; |
| 57 | + font-weight: 720; |
| 58 | + } |
| 59 | + |
| 60 | + .subtitle { |
| 61 | + margin: 5px 0 0; |
| 62 | + color: #52615c; |
| 63 | + font-size: 14px; |
| 64 | + line-height: 1.45; |
| 65 | + } |
| 66 | + |
| 67 | + .entries { |
| 68 | + display: grid; |
| 69 | + gap: 12px; |
| 70 | + } |
| 71 | + |
| 72 | + .entry { |
| 73 | + display: grid; |
| 74 | + grid-template-columns: 48px minmax(0, 1fr) auto; |
| 75 | + align-items: center; |
| 76 | + gap: 14px; |
| 77 | + min-height: 88px; |
| 78 | + padding: 16px; |
| 79 | + color: inherit; |
| 80 | + text-decoration: none; |
| 81 | + background: #ffffff; |
| 82 | + border: 1px solid #d8e0dd; |
| 83 | + border-radius: 8px; |
| 84 | + transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease; |
| 85 | + } |
| 86 | + |
| 87 | + .entry:hover, |
| 88 | + .entry:focus-visible { |
| 89 | + background: #f9fffc; |
| 90 | + border-color: #168a66; |
| 91 | + outline: none; |
| 92 | + transform: translateY(-1px); |
| 93 | + } |
| 94 | + |
| 95 | + .entry:active { |
| 96 | + transform: translateY(0); |
| 97 | + } |
| 98 | + |
| 99 | + .entry-icon { |
| 100 | + width: 48px; |
| 101 | + height: 48px; |
| 102 | + object-fit: contain; |
| 103 | + border-radius: 8px; |
| 104 | + } |
| 105 | + |
| 106 | + .entry-title { |
| 107 | + display: block; |
| 108 | + margin-bottom: 4px; |
| 109 | + font-size: 17px; |
| 110 | + line-height: 1.3; |
| 111 | + font-weight: 680; |
| 112 | + } |
| 113 | + |
| 114 | + .entry-description { |
| 115 | + display: block; |
| 116 | + color: #5c6965; |
| 117 | + font-size: 13px; |
| 118 | + line-height: 1.5; |
| 119 | + } |
| 120 | + |
| 121 | + .entry-action { |
| 122 | + min-width: 54px; |
| 123 | + color: #087a58; |
| 124 | + font-size: 14px; |
| 125 | + font-weight: 650; |
| 126 | + text-align: right; |
| 127 | + } |
| 128 | + |
| 129 | + footer { |
| 130 | + margin-top: 22px; |
| 131 | + color: #687570; |
| 132 | + font-size: 12px; |
| 133 | + line-height: 1.5; |
| 134 | + text-align: center; |
| 135 | + } |
| 136 | + |
| 137 | + @media (max-width: 440px) { |
| 138 | + main { |
| 139 | + padding-right: max(14px, var(--safe-area-inset-right, env(safe-area-inset-right))); |
| 140 | + padding-left: max(14px, var(--safe-area-inset-left, env(safe-area-inset-left))); |
| 141 | + } |
| 142 | + |
| 143 | + .entry { |
| 144 | + grid-template-columns: 42px minmax(0, 1fr); |
| 145 | + gap: 12px; |
| 146 | + padding: 14px; |
| 147 | + } |
| 148 | + |
| 149 | + .entry-icon { |
| 150 | + width: 42px; |
| 151 | + height: 42px; |
| 152 | + } |
| 153 | + |
| 154 | + .entry-action { |
| 155 | + display: none; |
| 156 | + } |
| 157 | + } |
| 158 | + |
| 159 | + @media (prefers-color-scheme: dark) { |
| 160 | + :root, |
| 161 | + body { |
| 162 | + background: #151a18; |
| 163 | + color: #edf4f1; |
| 164 | + } |
| 165 | + |
| 166 | + .subtitle, |
| 167 | + .entry-description, |
| 168 | + footer { |
| 169 | + color: #aab6b1; |
| 170 | + } |
| 171 | + |
| 172 | + .entry { |
| 173 | + background: #202724; |
| 174 | + border-color: #39443f; |
| 175 | + } |
| 176 | + |
| 177 | + .entry:hover, |
| 178 | + .entry:focus-visible { |
| 179 | + background: #25302c; |
| 180 | + border-color: #4ec9a0; |
| 181 | + } |
| 182 | + |
| 183 | + .entry-action { |
| 184 | + color: #72dbb6; |
| 185 | + } |
| 186 | + } |
| 187 | + </style> |
| 188 | + </head> |
| 189 | + <body> |
| 190 | + <main> |
| 191 | + <header> |
| 192 | + <img class="brand-icon" src="./netproxy/favicon.svg" alt="" /> |
| 193 | + <div> |
| 194 | + <h1>NetProxy</h1> |
| 195 | + <p class="subtitle">选择管理界面</p> |
| 196 | + </div> |
| 197 | + </header> |
| 198 | + |
| 199 | + <nav class="entries" aria-label="管理界面"> |
| 200 | + <a class="entry" href="./netproxy/index.html#/dashboard"> |
| 201 | + <img class="entry-icon" src="./netproxy/favicon.svg" alt="" /> |
| 202 | + <span> |
| 203 | + <span class="entry-title">NetProxy WebUI</span> |
| 204 | + <span class="entry-description">管理服务、节点、应用与模块设置</span> |
| 205 | + </span> |
| 206 | + <span class="entry-action">打开</span> |
| 207 | + </a> |
| 208 | + |
| 209 | + <a class="entry" href="http://127.0.0.1:9999/ui/"> |
| 210 | + <picture> |
| 211 | + <source media="(prefers-color-scheme: dark)" srcset="./zashboard/favicon-dark.svg" /> |
| 212 | + <img class="entry-icon" src="./zashboard/favicon.svg" alt="" /> |
| 213 | + </picture> |
| 214 | + <span> |
| 215 | + <span class="entry-title">zashboard</span> |
| 216 | + <span class="entry-description">查看代理组、连接、规则与实时流量</span> |
| 217 | + </span> |
| 218 | + <span class="entry-action">打开</span> |
| 219 | + </a> |
| 220 | + |
| 221 | + <a class="entry" href="http://127.0.0.1:9090/dashboard/"> |
| 222 | + <img class="entry-icon" src="./sing-box-dashboard/favicon.svg" alt="" /> |
| 223 | + <span> |
| 224 | + <span class="entry-title">sing-box Dashboard</span> |
| 225 | + <span class="entry-description">查看内核状态、日志、连接与网络测试</span> |
| 226 | + </span> |
| 227 | + <span class="entry-action">打开</span> |
| 228 | + </a> |
| 229 | + </nav> |
| 230 | + |
| 231 | + <footer>控制面板需要 sing-box 服务运行</footer> |
| 232 | + </main> |
| 233 | + </body> |
| 234 | +</html> |
0 commit comments