nicolaydef commited on
Commit
dceedb1
·
verified ·
1 Parent(s): db370a0

Update static/index.html

Browse files
Files changed (1) hide show
  1. static/index.html +73 -107
static/index.html CHANGED
@@ -3,159 +3,125 @@
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Zenith Platform | Beta</title>
7
-
8
  <script src="https://cdn.tailwindcss.com"></script>
9
-
10
  <script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
11
-
12
  <script src="https://cdnjs.cloudflare.com/ajax/libs/bcryptjs/2.4.3/bcrypt.min.js"></script>
13
-
14
  <link rel="stylesheet" href="/static/styles.css">
15
-
16
- <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
17
  </head>
18
  <body>
19
-
20
  <div class="blob blob-1"></div>
21
  <div class="blob blob-2"></div>
22
 
23
  <div id="login-modal" class="modal-overlay open">
24
  <div class="modal-box text-center">
25
- <h1 class="text-3xl font-bold mb-2 tracking-[0.2em] text-cyan-400">ZENITH</h1>
26
- <p class="text-white/50 mb-8 text-xs uppercase tracking-widest">Secure Access Terminal</p>
27
-
28
  <form id="login-form" class="space-y-4">
29
- <input type="text" id="login-user" placeholder="Username" autocomplete="off"
30
- class="w-full bg-white/5 border border-white/10 p-3 rounded text-white focus:outline-none focus:border-cyan-400 transition-colors placeholder-white/30">
31
-
32
- <input type="password" id="login-pass" placeholder="Password"
33
- class="w-full bg-white/5 border border-white/10 p-3 rounded text-white focus:outline-none focus:border-cyan-400 transition-colors placeholder-white/30">
34
-
35
- <button type="submit"
36
- class="w-full bg-cyan-500/10 hover:bg-cyan-500/30 text-cyan-400 border border-cyan-500/50 p-3 rounded font-bold tracking-wider transition-all hover:shadow-[0_0_15px_rgba(0,242,234,0.3)]">
37
- INITIALIZE LINK
38
- </button>
39
  </form>
40
- <p id="login-error" class="text-red-500 text-xs mt-4 font-mono hidden"></p>
41
  </div>
42
  </div>
43
 
44
- <div id="admin-modal" class="modal-overlay">
45
- <div class="modal-box relative overflow-hidden border-red-500/30">
46
- <div class="absolute inset-0 border-2 border-red-500/20 pointer-events-none animate-pulse rounded-2xl"></div>
47
-
48
- <h2 class="text-red-500 font-mono font-bold mb-6 tracking-widest text-center">/// ADMIN OVERRIDE ///</h2>
49
 
50
- <div id="admin-step-1">
51
- <p class="text-xs text-center text-red-500/50 mb-2 font-mono">ENTER SECURITY CLEARANCE CODE</p>
52
- <input type="text" id="admin-code" placeholder="____" maxlength="4"
53
- class="w-full bg-black/50 border border-red-500/50 text-red-500 font-mono p-4 text-center tracking-[15px] text-2xl uppercase focus:outline-none focus:bg-red-900/10 focus:shadow-[0_0_20px_rgba(255,0,0,0.2)]">
 
 
 
 
 
54
  </div>
55
 
56
- <form id="admin-create-form" class="hidden space-y-4 mt-2">
57
- <div class="text-xs text-green-400 font-mono mb-2 text-center">> ACCESS GRANTED. CREATE ENTITY.</div>
58
-
59
- <input type="text" id="new-user" placeholder="New Username"
60
- class="w-full bg-white/5 border border-white/10 p-2 text-white focus:border-red-500 focus:outline-none">
61
-
62
- <input type="text" id="new-pass" placeholder="New Password"
63
- class="w-full bg-white/5 border border-white/10 p-2 text-white focus:border-red-500 focus:outline-none">
64
-
65
- <button type="submit"
66
- class="w-full bg-red-500/20 text-red-500 border border-red-500/50 p-2 font-mono hover:bg-red-500/40 transition-all">
67
- EXECUTE CREATION
68
- </button>
69
  </form>
70
  </div>
71
  </div>
72
 
73
  <div class="app-grid hidden" id="app-interface">
74
 
75
- <aside class="sidebar">
76
- <div class="p-4 border-b border-white/5 flex items-center justify-between">
77
- <h2 class="font-bold tracking-widest text-white/80 text-sm">ZENITH</h2>
78
- <div class="w-2 h-2 rounded-full bg-green-500 shadow-[0_0_5px_#22c55e]"></div>
79
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
80
 
81
- <div class="channel-list custom-scrollbar" id="channel-list">
82
- <div class="text-xs font-bold text-white/30 uppercase px-2 mb-2 mt-2">Text Channels</div>
83
  <div class="channel-item active" onclick="switchChannel('general')">
84
- <span class="text-cyan-400 text-lg">#</span>
85
- <span class="text-sm">general</span>
86
  </div>
87
-
88
- <div class="mt-8 mb-2 text-xs font-bold text-white/30 uppercase px-2">Sector Users</div>
89
- <div id="users-list" class="space-y-1">
 
90
  </div>
91
  </div>
92
 
93
- <div class="user-panel">
94
- <div class="avatar relative shrink-0">
95
- <div class="w-10 h-10 rounded-full bg-gradient-to-br from-cyan-500 to-blue-600 flex items-center justify-center font-bold text-lg">
96
- </div>
97
- <div class="absolute bottom-0 right-0 w-3 h-3 bg-green-500 rounded-full border-2 border-[#1a1a2e]"></div>
98
- </div>
99
-
100
- <div class="user-info flex flex-col overflow-hidden">
101
- <div id="current-username" class="username truncate">Loading...</div>
102
- <div class="user-tag" id="admin-trigger">⚡ ADMIN ACCESS</div>
103
  </div>
104
-
105
- <button id="voice-toggle" class="p-2 rounded-lg bg-white/5 hover:bg-white/10 transition border border-white/5 group">
106
- <svg id="mic-icon" xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-white/50 group-hover:text-white transition" fill="none" viewBox="0 0 24 24" stroke="currentColor">
107
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z" />
108
- </svg>
109
- </button>
110
  </div>
111
  </aside>
112
 
113
- <main class="chat-area">
114
-
115
  <header class="chat-header">
116
- <div class="flex items-center gap-4">
117
- <div class="flex items-center gap-2 text-lg font-bold text-white/90">
118
- <span class="text-cyan-400 text-2xl">#</span> general
119
- </div>
120
-
121
- <div id="voice-ui" class="hidden flex items-center gap-3 px-3 py-1.5 rounded-full bg-black/40 border border-white/10 backdrop-blur-md">
122
- <div id="voice-dot" class="status-dot"></div>
123
- <span id="voice-text" class="text-xs font-bold uppercase tracking-wider text-white/80">Connecting</span>
124
- <div class="h-3 w-[1px] bg-white/20"></div>
125
- <span id="voice-ping" class="font-mono text-xs text-cyan-400">--- ms</span>
126
  </div>
127
  </div>
128
-
129
- <div id="mood-indicator" class="text-2xl animate-bounce cursor-help" title="Current Atmosphere"></div>
 
130
  </header>
131
 
132
- <div id="messages-container" class="messages-container custom-scrollbar">
133
- </div>
134
 
135
  <form id="chat-form" class="p-4 bg-transparent shrink-0">
136
- <div class="relative group">
137
- <div class="absolute left-4 top-1/2 -translate-y-1/2 p-1 rounded-full hover:bg-white/10 cursor-pointer transition">
138
- <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-white/50" fill="none" viewBox="0 0 24 24" stroke="currentColor">
139
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4" />
140
- </svg>
141
- </div>
142
-
143
- <input type="text" id="msg-input" autocomplete="off"
144
- placeholder="Message #general"
145
- class="w-full bg-[#252535] border border-white/5 rounded-xl py-3.5 pl-14 pr-12 text-white placeholder-white/30 focus:outline-none focus:bg-[#2a2a3d] focus:border-white/10 transition-all shadow-inner">
146
-
147
- <button type="submit" class="absolute right-3 top-1/2 -translate-y-1/2 p-2 rounded-lg text-white/40 hover:text-cyan-400 hover:bg-white/5 transition">
148
- <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 rotate-90" fill="none" viewBox="0 0 24 24" stroke="currentColor">
149
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 19l9 2-9-18-9 18 9-2zm0 0v-8" />
150
- </svg>
151
- </button>
152
- </div>
153
  </form>
154
  </main>
155
  </div>
156
 
157
- <audio id="pop-sound" src="/static/pop.mp3"></audio>
158
-
159
  <script src="/static/script.js"></script>
160
  </body>
161
  </html>
 
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Zenith | Social</title>
 
7
  <script src="https://cdn.tailwindcss.com"></script>
 
8
  <script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
 
9
  <script src="https://cdnjs.cloudflare.com/ajax/libs/bcryptjs/2.4.3/bcrypt.min.js"></script>
 
10
  <link rel="stylesheet" href="/static/styles.css">
11
+ <script type="module" src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.esm.js"></script>
 
12
  </head>
13
  <body>
 
14
  <div class="blob blob-1"></div>
15
  <div class="blob blob-2"></div>
16
 
17
  <div id="login-modal" class="modal-overlay open">
18
  <div class="modal-box text-center">
19
+ <h1 class="text-3xl font-bold mb-8 tracking-[0.2em] text-cyan-400">ZENITH</h1>
 
 
20
  <form id="login-form" class="space-y-4">
21
+ <input type="text" id="login-user" placeholder="Username" class="w-full bg-white/5 border border-white/10 p-3 rounded text-white focus:border-cyan-400 focus:outline-none">
22
+ <input type="password" id="login-pass" placeholder="Password" class="w-full bg-white/5 border border-white/10 p-3 rounded text-white focus:border-cyan-400 focus:outline-none">
23
+ <button type="submit" class="w-full bg-cyan-500/10 hover:bg-cyan-500/30 text-cyan-400 border border-cyan-500/50 p-3 rounded font-bold transition-all">ENTER SYSTEM</button>
 
 
 
 
 
 
 
24
  </form>
25
+ <p id="login-error" class="text-red-500 text-xs mt-4 hidden"></p>
26
  </div>
27
  </div>
28
 
29
+ <div id="settings-modal" class="modal-overlay">
30
+ <div class="modal-box">
31
+ <h2 class="text-xl font-bold mb-4 border-b border-white/10 pb-2">Profile Settings</h2>
 
 
32
 
33
+ <div class="flex items-center justify-between mb-6">
34
+ <div>
35
+ <div class="font-bold">Discovery Mode</div>
36
+ <div class="text-xs text-white/50">Allow others to find me in "Find Friends"</div>
37
+ </div>
38
+ <label class="relative inline-flex items-center cursor-pointer">
39
+ <input type="checkbox" id="setting-discovery" class="sr-only peer">
40
+ <div class="w-11 h-6 bg-white/10 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-cyan-500"></div>
41
+ </label>
42
  </div>
43
 
44
+ <button id="save-settings" class="w-full bg-white/10 hover:bg-white/20 p-2 rounded">Save & Close</button>
45
+ </div>
46
+ </div>
47
+
48
+ <div id="admin-modal" class="modal-overlay">
49
+ <div class="modal-box relative border-red-500/30">
50
+ <h2 class="text-red-500 font-mono font-bold mb-6 text-center">/// ADMIN ///</h2>
51
+ <input type="text" id="admin-code" placeholder="CODE" class="w-full bg-black/50 border border-red-500/50 text-red-500 p-3 text-center tracking-[5px] uppercase mb-4 focus:outline-none">
52
+
53
+ <form id="admin-create-form" class="hidden space-y-3">
54
+ <input type="text" id="new-user" placeholder="New User" class="w-full bg-white/5 border border-white/10 p-2 text-white">
55
+ <input type="text" id="new-pass" placeholder="New Pass" class="w-full bg-white/5 border border-white/10 p-2 text-white">
56
+ <button type="submit" class="w-full bg-red-500/20 text-red-500 border border-red-500/50 p-2">CREATE</button>
57
  </form>
58
  </div>
59
  </div>
60
 
61
  <div class="app-grid hidden" id="app-interface">
62
 
63
+ <nav class="w-[70px] bg-black/40 border-r border-white/5 flex flex-col items-center py-4 gap-4 z-20 backdrop-blur-xl">
64
+ <button class="nav-btn active" data-tab="chats" title="My Chats">
65
+ <ion-icon name="chatbubbles-outline" class="text-2xl"></ion-icon>
66
+ </button>
67
+ <button class="nav-btn" data-tab="discovery" title="Find Friends">
68
+ <ion-icon name="planet-outline" class="text-2xl"></ion-icon>
69
+ </button>
70
+
71
+ <div class="flex-1"></div>
72
+
73
+ <button id="open-settings" class="nav-btn" title="Settings">
74
+ <ion-icon name="settings-outline" class="text-2xl"></ion-icon>
75
+ </button>
76
+ </nav>
77
+
78
+ <aside class="sidebar" style="width: 240px;">
79
+ <div class="p-4 border-b border-white/5 font-bold tracking-widest text-xs" id="sidebar-title">CHANNELS</div>
80
 
81
+ <div id="view-chats" class="channel-list p-2">
 
82
  <div class="channel-item active" onclick="switchChannel('general')">
83
+ <span class="text-cyan-400">#</span> general
84
+ </div>
85
  </div>
86
+
87
+ <div id="view-discovery" class="channel-list p-2 hidden">
88
+ <div class="text-xs text-white/30 mb-2 uppercase px-2">Looking for friends</div>
89
+ <div id="discovery-list" class="space-y-2">
90
  </div>
91
  </div>
92
 
93
+ <div class="user-panel mt-auto">
94
+ <div class="w-8 h-8 rounded-full bg-gradient-to-br from-cyan-500 to-blue-600"></div>
95
+ <div class="user-info ml-2 overflow-hidden">
96
+ <div id="current-username" class="text-sm font-bold truncate">...</div>
97
+ <div class="user-tag" id="admin-trigger">⚡ ADMIN</div>
 
 
 
 
 
98
  </div>
 
 
 
 
 
 
99
  </div>
100
  </aside>
101
 
102
+ <main class="chat-area flex-1 flex flex-col relative bg-black/20">
 
103
  <header class="chat-header">
104
+ <div class="flex items-center gap-2">
105
+ <h3 class="font-bold text-lg" id="chat-title"># general</h3>
106
+ <div id="voice-ui" class="hidden flex items-center gap-2 bg-black/40 px-2 py-1 rounded text-xs">
107
+ <div class="w-2 h-2 rounded-full bg-green-500 animate-pulse"></div>
108
+ <span id="voice-ping" class="font-mono text-cyan-400">0ms</span>
 
 
 
 
 
109
  </div>
110
  </div>
111
+ <button id="voice-toggle" class="p-2 bg-white/5 rounded-full hover:bg-white/10">
112
+ <ion-icon name="mic-outline"></ion-icon>
113
+ </button>
114
  </header>
115
 
116
+ <div id="messages-container" class="messages-container custom-scrollbar"></div>
 
117
 
118
  <form id="chat-form" class="p-4 bg-transparent shrink-0">
119
+ <input type="text" id="msg-input" autocomplete="off" placeholder="Message..."
120
+ class="w-full bg-[#252535] border border-white/5 rounded-xl p-3 text-white focus:outline-none focus:border-white/20 transition-all">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
  </form>
122
  </main>
123
  </div>
124
 
 
 
125
  <script src="/static/script.js"></script>
126
  </body>
127
  </html>