pacman1337 commited on
Commit
b93c99f
·
verified ·
1 Parent(s): c711ae3

Create index.html

Browse files
Files changed (1) hide show
  1. index.html +94 -0
index.html ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>GPU Workspace</title>
7
+ <style>
8
+ :root {
9
+ --bg: #0b1220;
10
+ --panel: #121c31;
11
+ --text: #e8efff;
12
+ --muted: #9fb2d9;
13
+ --acc1: #33d1ff;
14
+ --acc2: #8bff8a;
15
+ --border: #2b3d63;
16
+ }
17
+ * { box-sizing: border-box; }
18
+ body {
19
+ margin: 0;
20
+ font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
21
+ background: radial-gradient(circle at 10% 10%, #17335f 0%, var(--bg) 60%);
22
+ color: var(--text);
23
+ min-height: 100vh;
24
+ display: grid;
25
+ place-items: center;
26
+ padding: 24px;
27
+ }
28
+ .card {
29
+ width: min(900px, 100%);
30
+ background: linear-gradient(180deg, rgba(18,28,49,.95), rgba(11,18,32,.95));
31
+ border: 1px solid var(--border);
32
+ border-radius: 18px;
33
+ padding: 28px;
34
+ box-shadow: 0 20px 50px rgba(0,0,0,.35);
35
+ }
36
+ h1 {
37
+ margin: 0 0 10px;
38
+ font-size: 32px;
39
+ line-height: 1.1;
40
+ }
41
+ p { margin: 0 0 14px; color: var(--muted); }
42
+ .grid {
43
+ display: grid;
44
+ grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
45
+ gap: 12px;
46
+ margin: 20px 0;
47
+ }
48
+ a.btn {
49
+ display: block;
50
+ text-decoration: none;
51
+ color: var(--text);
52
+ background: #172747;
53
+ border: 1px solid #2f4a78;
54
+ border-radius: 12px;
55
+ padding: 14px;
56
+ font-weight: 600;
57
+ text-align: center;
58
+ }
59
+ a.btn:hover { border-color: var(--acc1); }
60
+ code {
61
+ display: inline-block;
62
+ padding: 2px 8px;
63
+ border-radius: 8px;
64
+ background: #0e1930;
65
+ border: 1px solid #2a3f66;
66
+ color: var(--acc2);
67
+ margin: 0 4px;
68
+ }
69
+ ul { margin: 12px 0 0; color: var(--muted); }
70
+ </style>
71
+ </head>
72
+ <body>
73
+ <main class="card">
74
+ <h1>GPU Workspace Control Panel</h1>
75
+ <p>Semua service lewat satu port HF. Pilih mode kerja lu di bawah ini.</p>
76
+
77
+ <div class="grid">
78
+ <a class="btn" href="/desktop/" target="_blank" rel="noopener noreferrer">Desktop (noVNC)</a>
79
+ <a class="btn" href="/vscode/" target="_blank" rel="noopener noreferrer">VS Code Server</a>
80
+ <a class="btn" href="/jupyter/" target="_blank" rel="noopener noreferrer">JupyterLab</a>
81
+ <a class="btn" href="/api/gpu" target="_blank" rel="noopener noreferrer">Check GPU API</a>
82
+ <a class="btn" href="/api/health" target="_blank" rel="noopener noreferrer">API Health</a>
83
+ <a class="btn" href="/healthz" target="_blank" rel="noopener noreferrer">Nginx Health</a>
84
+ </div>
85
+
86
+ <p>Security:</p>
87
+ <ul>
88
+ <li>Ubah variable <code>VSCODE_PASSWORD</code> di Settings - Variables.</li>
89
+ <li>Ubah variable <code>JUPYTER_TOKEN</code> di Settings - Variables.</li>
90
+ <li>Kalau mau private total, set Space visibility ke <code>Private</code>.</li>
91
+ </ul>
92
+ </main>
93
+ </body>
94
+ </html>