Mackin7 commited on
Commit
09825af
·
verified ·
1 Parent(s): 0dbccb5

Creat a login password that can be access with code 1234, and has fake menu - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +6 -4
  2. index.html +360 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Secured Interface
3
- emoji: 📊
4
- colorFrom: gray
5
  colorTo: yellow
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: secured-interface
3
+ emoji: 🐳
4
+ colorFrom: blue
5
  colorTo: yellow
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,360 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>Secure Access Portal</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ .gradient-bg {
11
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
12
+ }
13
+ .card-shadow {
14
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
15
+ }
16
+ .shake {
17
+ animation: shake 0.5s;
18
+ }
19
+ @keyframes shake {
20
+ 0%, 100% { transform: translateX(0); }
21
+ 10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
22
+ 20%, 40%, 60%, 80% { transform: translateX(5px); }
23
+ }
24
+ .fade-in {
25
+ animation: fadeIn 0.5s ease-in-out;
26
+ }
27
+ @keyframes fadeIn {
28
+ from { opacity: 0; transform: translateY(10px); }
29
+ to { opacity: 1; transform: translateY(0); }
30
+ }
31
+ .menu-item:hover .menu-icon {
32
+ transform: scale(1.1);
33
+ color: #667eea;
34
+ }
35
+ </style>
36
+ </head>
37
+ <body class="gradient-bg min-h-screen flex items-center justify-center p-4">
38
+ <div id="login-container" class="bg-white rounded-xl p-8 w-full max-w-md card-shadow fade-in">
39
+ <div class="text-center mb-8">
40
+ <div class="w-20 h-20 bg-indigo-100 rounded-full flex items-center justify-center mx-auto mb-4">
41
+ <i class="fas fa-lock text-indigo-500 text-3xl"></i>
42
+ </div>
43
+ <h1 class="text-2xl font-bold text-gray-800">Secure Access Portal</h1>
44
+ <p class="text-gray-600 mt-2">Enter your access code to continue</p>
45
+ </div>
46
+
47
+ <div class="mb-6">
48
+ <div class="relative">
49
+ <input type="password" id="access-code" placeholder="Enter access code"
50
+ class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent transition duration-300">
51
+ <button id="toggle-password" class="absolute right-3 top-3 text-gray-500 hover:text-indigo-500">
52
+ <i class="fas fa-eye"></i>
53
+ </button>
54
+ </div>
55
+ <p id="error-message" class="text-red-500 text-sm mt-2 hidden">Invalid access code. Please try again.</p>
56
+ </div>
57
+
58
+ <button id="login-btn" class="w-full bg-indigo-600 hover:bg-indigo-700 text-white font-medium py-3 px-4 rounded-lg transition duration-300 flex items-center justify-center">
59
+ <span>Continue</span>
60
+ <i class="fas fa-arrow-right ml-2"></i>
61
+ </button>
62
+
63
+ <div class="mt-6 text-center text-sm text-gray-500">
64
+ <p>Forgot your code? Contact system administrator</p>
65
+ </div>
66
+ </div>
67
+
68
+ <div id="dashboard-container" class="hidden w-full max-w-6xl mx-auto bg-white rounded-xl overflow-hidden card-shadow fade-in">
69
+ <div class="flex flex-col md:flex-row h-full">
70
+ <!-- Sidebar -->
71
+ <div class="w-full md:w-64 bg-gray-800 text-white p-4">
72
+ <div class="flex items-center mb-8">
73
+ <div class="w-10 h-10 bg-indigo-500 rounded-full flex items-center justify-center mr-3">
74
+ <i class="fas fa-user text-white"></i>
75
+ </div>
76
+ <div>
77
+ <p class="font-medium">Admin User</p>
78
+ <p class="text-xs text-gray-400">System Administrator</p>
79
+ </div>
80
+ </div>
81
+
82
+ <nav>
83
+ <div class="mb-6">
84
+ <p class="text-xs uppercase text-gray-400 mb-2">Main Menu</p>
85
+ <a href="#" class="menu-item flex items-center py-2 px-3 rounded-lg bg-indigo-700 text-white mb-2">
86
+ <i class="fas fa-tachometer-alt menu-icon mr-3 transition duration-300"></i>
87
+ <span>Dashboard</span>
88
+ </a>
89
+ <a href="#" class="menu-item flex items-center py-2 px-3 rounded-lg hover:bg-gray-700 text-gray-300 mb-2">
90
+ <i class="fas fa-users menu-icon mr-3 transition duration-300"></i>
91
+ <span>Users</span>
92
+ </a>
93
+ <a href="#" class="menu-item flex items-center py-2 px-3 rounded-lg hover:bg-gray-700 text-gray-300 mb-2">
94
+ <i class="fas fa-cog menu-icon mr-3 transition duration-300"></i>
95
+ <span>Settings</span>
96
+ </a>
97
+ </div>
98
+
99
+ <div class="mb-6">
100
+ <p class="text-xs uppercase text-gray-400 mb-2">Reports</p>
101
+ <a href="#" class="menu-item flex items-center py-2 px-3 rounded-lg hover:bg-gray-700 text-gray-300 mb-2">
102
+ <i class="fas fa-chart-line menu-icon mr-3 transition duration-300"></i>
103
+ <span>Analytics</span>
104
+ </a>
105
+ <a href="#" class="menu-item flex items-center py-2 px-3 rounded-lg hover:bg-gray-700 text-gray-300 mb-2">
106
+ <i class="fas fa-file-alt menu-icon mr-3 transition duration-300"></i>
107
+ <span>Reports</span>
108
+ </a>
109
+ </div>
110
+
111
+ <div class="pt-4 border-t border-gray-700">
112
+ <a href="#" id="logout-btn" class="menu-item flex items-center py-2 px-3 rounded-lg hover:bg-gray-700 text-gray-300">
113
+ <i class="fas fa-sign-out-alt menu-icon mr-3 transition duration-300"></i>
114
+ <span>Logout</span>
115
+ </a>
116
+ </div>
117
+ </nav>
118
+ </div>
119
+
120
+ <!-- Main Content -->
121
+ <div class="flex-1 p-6">
122
+ <div class="flex justify-between items-center mb-8">
123
+ <h2 class="text-2xl font-bold text-gray-800">Dashboard</h2>
124
+ <div class="flex items-center">
125
+ <div class="relative mr-4">
126
+ <input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
127
+ <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
128
+ </div>
129
+ <button class="w-10 h-10 rounded-full bg-gray-200 flex items-center justify-center text-gray-600 hover:bg-gray-300">
130
+ <i class="fas fa-bell"></i>
131
+ </button>
132
+ </div>
133
+ </div>
134
+
135
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
136
+ <div class="bg-indigo-50 rounded-xl p-6">
137
+ <div class="flex justify-between">
138
+ <div>
139
+ <p class="text-gray-500">Total Users</p>
140
+ <p class="text-2xl font-bold mt-2">1,248</p>
141
+ </div>
142
+ <div class="w-12 h-12 bg-indigo-100 rounded-full flex items-center justify-center">
143
+ <i class="fas fa-users text-indigo-500"></i>
144
+ </div>
145
+ </div>
146
+ <p class="text-sm text-green-500 mt-4"><i class="fas fa-arrow-up mr-1"></i> 12% from last month</p>
147
+ </div>
148
+
149
+ <div class="bg-blue-50 rounded-xl p-6">
150
+ <div class="flex justify-between">
151
+ <div>
152
+ <p class="text-gray-500">Revenue</p>
153
+ <p class="text-2xl font-bold mt-2">$24,780</p>
154
+ </div>
155
+ <div class="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center">
156
+ <i class="fas fa-dollar-sign text-blue-500"></i>
157
+ </div>
158
+ </div>
159
+ <p class="text-sm text-green-500 mt-4"><i class="fas fa-arrow-up mr-1"></i> 8% from last month</p>
160
+ </div>
161
+
162
+ <div class="bg-green-50 rounded-xl p-6">
163
+ <div class="flex justify-between">
164
+ <div>
165
+ <p class="text-gray-500">Active Sessions</p>
166
+ <p class="text-2xl font-bold mt-2">326</p>
167
+ </div>
168
+ <div class="w-12 h-12 bg-green-100 rounded-full flex items-center justify-center">
169
+ <i class="fas fa-desktop text-green-500"></i>
170
+ </div>
171
+ </div>
172
+ <p class="text-sm text-red-500 mt-4"><i class="fas fa-arrow-down mr-1"></i> 3% from last month</p>
173
+ </div>
174
+
175
+ <div class="bg-purple-50 rounded-xl p-6">
176
+ <div class="flex justify-between">
177
+ <div>
178
+ <p class="text-gray-500">Tasks Completed</p>
179
+ <p class="text-2xl font-bold mt-2">89%</p>
180
+ </div>
181
+ <div class="w-12 h-12 bg-purple-100 rounded-full flex items-center justify-center">
182
+ <i class="fas fa-check-circle text-purple-500"></i>
183
+ </div>
184
+ </div>
185
+ <p class="text-sm text-green-500 mt-4"><i class="fas fa-arrow-up mr-1"></i> 5% from last month</p>
186
+ </div>
187
+ </div>
188
+
189
+ <div class="bg-white border border-gray-200 rounded-xl p-6 mb-8">
190
+ <div class="flex justify-between items-center mb-6">
191
+ <h3 class="text-lg font-semibold text-gray-800">Recent Activity</h3>
192
+ <button class="text-indigo-500 hover:text-indigo-700 text-sm font-medium">View All</button>
193
+ </div>
194
+
195
+ <div class="space-y-4">
196
+ <div class="flex items-start">
197
+ <div class="w-10 h-10 bg-indigo-100 rounded-full flex items-center justify-center mr-4 mt-1">
198
+ <i class="fas fa-user-plus text-indigo-500"></i>
199
+ </div>
200
+ <div>
201
+ <p class="font-medium">New user registered</p>
202
+ <p class="text-sm text-gray-500">John Doe created an account - 2 hours ago</p>
203
+ </div>
204
+ </div>
205
+
206
+ <div class="flex items-start">
207
+ <div class="w-10 h-10 bg-green-100 rounded-full flex items-center justify-center mr-4 mt-1">
208
+ <i class="fas fa-file-invoice-dollar text-green-500"></i>
209
+ </div>
210
+ <div>
211
+ <p class="font-medium">New invoice generated</p>
212
+ <p class="text-sm text-gray-500">Invoice #INV-2023-056 - 5 hours ago</p>
213
+ </div>
214
+ </div>
215
+
216
+ <div class="flex items-start">
217
+ <div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mr-4 mt-1">
218
+ <i class="fas fa-tasks text-blue-500"></i>
219
+ </div>
220
+ <div>
221
+ <p class="font-medium">Task completed</p>
222
+ <p class="text-sm text-gray-500">"Update security policies" marked as done - 1 day ago</p>
223
+ </div>
224
+ </div>
225
+ </div>
226
+ </div>
227
+
228
+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
229
+ <div class="bg-white border border-gray-200 rounded-xl p-6">
230
+ <h3 class="text-lg font-semibold text-gray-800 mb-4">System Status</h3>
231
+ <div class="space-y-4">
232
+ <div>
233
+ <div class="flex justify-between mb-1">
234
+ <span class="text-sm font-medium text-gray-700">CPU Usage</span>
235
+ <span class="text-sm font-medium text-gray-700">42%</span>
236
+ </div>
237
+ <div class="w-full bg-gray-200 rounded-full h-2">
238
+ <div class="bg-indigo-500 h-2 rounded-full" style="width: 42%"></div>
239
+ </div>
240
+ </div>
241
+
242
+ <div>
243
+ <div class="flex justify-between mb-1">
244
+ <span class="text-sm font-medium text-gray-700">Memory</span>
245
+ <span class="text-sm font-medium text-gray-700">65%</span>
246
+ </div>
247
+ <div class="w-full bg-gray-200 rounded-full h-2">
248
+ <div class="bg-blue-500 h-2 rounded-full" style="width: 65%"></div>
249
+ </div>
250
+ </div>
251
+
252
+ <div>
253
+ <div class="flex justify-between mb-1">
254
+ <span class="text-sm font-medium text-gray-700">Disk Space</span>
255
+ <span class="text-sm font-medium text-gray-700">78%</span>
256
+ </div>
257
+ <div class="w-full bg-gray-200 rounded-full h-2">
258
+ <div class="bg-green-500 h-2 rounded-full" style="width: 78%"></div>
259
+ </div>
260
+ </div>
261
+ </div>
262
+ </div>
263
+
264
+ <div class="bg-white border border-gray-200 rounded-xl p-6">
265
+ <h3 class="text-lg font-semibold text-gray-800 mb-4">Quick Actions</h3>
266
+ <div class="grid grid-cols-2 gap-4">
267
+ <button class="flex flex-col items-center justify-center p-4 bg-indigo-50 rounded-lg hover:bg-indigo-100 transition duration-300">
268
+ <div class="w-10 h-10 bg-indigo-100 rounded-full flex items-center justify-center mb-2">
269
+ <i class="fas fa-plus text-indigo-500"></i>
270
+ </div>
271
+ <span class="text-sm font-medium">Add User</span>
272
+ </button>
273
+
274
+ <button class="flex flex-col items-center justify-center p-4 bg-blue-50 rounded-lg hover:bg-blue-100 transition duration-300">
275
+ <div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mb-2">
276
+ <i class="fas fa-file-export text-blue-500"></i>
277
+ </div>
278
+ <span class="text-sm font-medium">Export Data</span>
279
+ </button>
280
+
281
+ <button class="flex flex-col items-center justify-center p-4 bg-green-50 rounded-lg hover:bg-green-100 transition duration-300">
282
+ <div class="w-10 h-10 bg-green-100 rounded-full flex items-center justify-center mb-2">
283
+ <i class="fas fa-cog text-green-500"></i>
284
+ </div>
285
+ <span class="text-sm font-medium">Settings</span>
286
+ </button>
287
+
288
+ <button class="flex flex-col items-center justify-center p-4 bg-purple-50 rounded-lg hover:bg-purple-100 transition duration-300">
289
+ <div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mb-2">
290
+ <i class="fas fa-question-circle text-purple-500"></i>
291
+ </div>
292
+ <span class="text-sm font-medium">Help</span>
293
+ </button>
294
+ </div>
295
+ </div>
296
+ </div>
297
+ </div>
298
+ </div>
299
+ </div>
300
+
301
+ <script>
302
+ document.addEventListener('DOMContentLoaded', function() {
303
+ const loginContainer = document.getElementById('login-container');
304
+ const dashboardContainer = document.getElementById('dashboard-container');
305
+ const accessCodeInput = document.getElementById('access-code');
306
+ const loginBtn = document.getElementById('login-btn');
307
+ const togglePassword = document.getElementById('toggle-password');
308
+ const errorMessage = document.getElementById('error-message');
309
+ const logoutBtn = document.getElementById('logout-btn');
310
+
311
+ let passwordVisible = false;
312
+
313
+ // Toggle password visibility
314
+ togglePassword.addEventListener('click', function() {
315
+ passwordVisible = !passwordVisible;
316
+ if (passwordVisible) {
317
+ accessCodeInput.type = 'text';
318
+ togglePassword.innerHTML = '<i class="fas fa-eye-slash"></i>';
319
+ } else {
320
+ accessCodeInput.type = 'password';
321
+ togglePassword.innerHTML = '<i class="fas fa-eye"></i>';
322
+ }
323
+ });
324
+
325
+ // Login functionality
326
+ loginBtn.addEventListener('click', function() {
327
+ const code = accessCodeInput.value.trim();
328
+
329
+ if (code === '1234') {
330
+ // Successful login
331
+ loginContainer.classList.add('hidden');
332
+ dashboardContainer.classList.remove('hidden');
333
+ } else {
334
+ // Failed login
335
+ errorMessage.classList.remove('hidden');
336
+ loginContainer.classList.add('shake');
337
+ setTimeout(() => {
338
+ loginContainer.classList.remove('shake');
339
+ }, 500);
340
+ }
341
+ });
342
+
343
+ // Allow pressing Enter to login
344
+ accessCodeInput.addEventListener('keypress', function(e) {
345
+ if (e.key === 'Enter') {
346
+ loginBtn.click();
347
+ }
348
+ });
349
+
350
+ // Logout functionality
351
+ logoutBtn.addEventListener('click', function() {
352
+ dashboardContainer.classList.add('hidden');
353
+ loginContainer.classList.remove('hidden');
354
+ accessCodeInput.value = '';
355
+ errorMessage.classList.add('hidden');
356
+ });
357
+ });
358
+ </script>
359
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Mackin7/secured-interface" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
360
+ </html>