-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathallai-html-version.html
More file actions
407 lines (386 loc) · 24.8 KB
/
allai-html-version.html
File metadata and controls
407 lines (386 loc) · 24.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AllAI - Business Process Portal</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/18.2.0/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/18.2.0/umd/react-dom.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/7.23.5/babel.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lucide/0.263.0/umd/lucide.js"></script>
<script src="https://cdn.tailwindcss.com"></script>
<style>
body {
margin: 0;
padding: 0;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="text/babel">
const { useState } = React;
const { User, Lock, FileText, Shield, Users, BarChart3, Settings, ExternalLink, CheckCircle } = lucide;
const AllAIPortal = () => {
const [isLoggedIn, setIsLoggedIn] = useState(false);
const [username, setUsername] = useState('');
const [password, setPassword] = useState('');
const [isLoading, setIsLoading] = useState(false);
const [error, setError] = useState('');
const handleLogin = async (e) => {
e.preventDefault();
setIsLoading(true);
setError('');
setTimeout(() => {
if (username && password) {
setIsLoggedIn(true);
} else {
setError('Please enter both username and password');
}
setIsLoading(false);
}, 1500);
};
const handleLogout = () => {
setIsLoggedIn(false);
setUsername('');
setPassword('');
};
if (!isLoggedIn) {
return (
<div className="min-h-screen bg-gradient-to-br from-slate-50 to-blue-50 flex items-center justify-center p-4">
<div className="bg-white rounded-2xl shadow-2xl p-8 w-full max-w-md">
<div className="text-center mb-8">
<div className="mb-4">
<h1 className="text-4xl font-bold bg-gradient-to-r from-blue-600 to-indigo-600 bg-clip-text text-transparent">
AllAI
</h1>
<div className="w-12 h-0.5 bg-gradient-to-r from-blue-600 to-indigo-600 mx-auto mt-2"></div>
</div>
<p className="text-gray-600 text-sm">Business Process Solutions</p>
</div>
<div className="space-y-6">
<div>
<label className="block text-sm font-medium text-gray-700 mb-2">
Username
</label>
<div className="relative">
<User className="absolute left-3 top-3 h-5 w-5 text-gray-400" />
<input
type="text"
value={username}
onChange={(e) => setUsername(e.target.value)}
className="w-full pl-10 pr-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent outline-none transition-all"
placeholder="Enter your username"
/>
</div>
</div>
<div>
<label className="block text-sm font-medium text-gray-700 mb-2">
Password
</label>
<div className="relative">
<Lock className="absolute left-3 top-3 h-5 w-5 text-gray-400" />
<input
type="password"
value={password}
onChange={(e) => setPassword(e.target.value)}
className="w-full pl-10 pr-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent outline-none transition-all"
placeholder="Enter your password"
/>
</div>
</div>
{error && (
<div className="text-red-500 text-sm text-center">
{error}
</div>
)}
<button
onClick={handleLogin}
disabled={isLoading}
className="w-full bg-gradient-to-r from-blue-600 to-indigo-600 text-white py-3 px-4 rounded-lg font-medium hover:from-blue-700 hover:to-indigo-700 focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-all disabled:opacity-50 disabled:cursor-not-allowed"
>
{isLoading ? (
<div className="flex items-center justify-center">
<div className="animate-spin rounded-full h-5 w-5 border-b-2 border-white mr-2"></div>
Signing in...
</div>
) : (
'Sign In'
)}
</button>
</div>
<div className="mt-6 text-center">
<p className="text-xs text-gray-500">
Demo credentials: Any username and password will work
</p>
</div>
</div>
</div>
);
}
return (
<div className="min-h-screen bg-gray-50">
<header className="bg-white shadow-sm border-b">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex justify-between items-center h-16">
<div className="flex items-center">
<h1 className="text-2xl font-bold bg-gradient-to-r from-blue-600 to-indigo-600 bg-clip-text text-transparent">
AllAI
</h1>
<span className="ml-3 text-gray-500 text-sm">Business Portal</span>
</div>
<div className="flex items-center space-x-4">
<span className="text-sm text-gray-600">Welcome, {username}</span>
<button
onClick={handleLogout}
className="bg-gray-100 hover:bg-gray-200 px-4 py-2 rounded-lg text-sm font-medium text-gray-700 transition-colors"
>
Sign Out
</button>
</div>
</div>
</div>
</header>
<main className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div className="mb-8">
<h2 className="text-3xl font-bold text-gray-900 mb-2">Dashboard</h2>
<p className="text-gray-600">Access your business process management tools</p>
</div>
<div className="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
<div className="bg-white rounded-xl shadow-sm p-6">
<div className="flex items-center">
<div className="p-3 bg-blue-100 rounded-lg">
<FileText className="h-6 w-6 text-blue-600" />
</div>
<div className="ml-4">
<p className="text-sm font-medium text-gray-600">Active Documents</p>
<p className="text-2xl font-bold text-gray-900">24</p>
</div>
</div>
</div>
<div className="bg-white rounded-xl shadow-sm p-6">
<div className="flex items-center">
<div className="p-3 bg-green-100 rounded-lg">
<CheckCircle className="h-6 w-6 text-green-600" />
</div>
<div className="ml-4">
<p className="text-sm font-medium text-gray-600">Compliance Rate</p>
<p className="text-2xl font-bold text-gray-900">94%</p>
</div>
</div>
</div>
<div className="bg-white rounded-xl shadow-sm p-6">
<div className="flex items-center">
<div className="p-3 bg-purple-100 rounded-lg">
<Users className="h-6 w-6 text-purple-600" />
</div>
<div className="ml-4">
<p className="text-sm font-medium text-gray-600">Staff Members</p>
<p className="text-2xl font-bold text-gray-900">12</p>
</div>
</div>
</div>
</div>
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<div className="bg-white rounded-xl shadow-sm p-6 hover:shadow-md transition-shadow">
<div className="flex items-center mb-4">
<div className="p-3 bg-blue-100 rounded-lg">
<FileText className="h-6 w-6 text-blue-600" />
</div>
<h3 className="ml-3 text-lg font-semibold text-gray-900">Staff Documents</h3>
</div>
<p className="text-gray-600 mb-4">Manage employee files, contracts, and HR documentation</p>
<div className="space-y-2">
<a
href="#"
className="flex items-center justify-between p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors"
>
<span className="text-sm font-medium">Employee Onboarding</span>
<ExternalLink className="h-4 w-4 text-gray-400" />
</a>
<a
href="#"
className="flex items-center justify-between p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors"
>
<span className="text-sm font-medium">Contract Management</span>
<ExternalLink className="h-4 w-4 text-gray-400" />
</a>
<a
href="#"
className="flex items-center justify-between p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors"
>
<span className="text-sm font-medium">Performance Reviews</span>
<ExternalLink className="h-4 w-4 text-gray-400" />
</a>
</div>
</div>
<div className="bg-white rounded-xl shadow-sm p-6 hover:shadow-md transition-shadow">
<div className="flex items-center mb-4">
<div className="p-3 bg-green-100 rounded-lg">
<Shield className="h-6 w-6 text-green-600" />
</div>
<h3 className="ml-3 text-lg font-semibold text-gray-900">Compliance Hub</h3>
</div>
<p className="text-gray-600 mb-4">Track regulatory requirements and audit preparations</p>
<div className="space-y-2">
<a
href="#"
className="flex items-center justify-between p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors"
>
<span className="text-sm font-medium">Regulatory Checklist</span>
<ExternalLink className="h-4 w-4 text-gray-400" />
</a>
<a
href="#"
className="flex items-center justify-between p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors"
>
<span className="text-sm font-medium">Audit Tracker</span>
<ExternalLink className="h-4 w-4 text-gray-400" />
</a>
<a
href="#"
className="flex items-center justify-between p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors"
>
<span className="text-sm font-medium">Risk Assessment</span>
<ExternalLink className="h-4 w-4 text-gray-400" />
</a>
</div>
</div>
<div className="bg-white rounded-xl shadow-sm p-6 hover:shadow-md transition-shadow">
<div className="flex items-center mb-4">
<div className="p-3 bg-purple-100 rounded-lg">
<BarChart3 className="h-6 w-6 text-purple-600" />
</div>
<h3 className="ml-3 text-lg font-semibold text-gray-900">Process Analytics</h3>
</div>
<p className="text-gray-600 mb-4">Monitor workflow efficiency and performance metrics</p>
<div className="space-y-2">
<a
href="#"
className="flex items-center justify-between p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors"
>
<span className="text-sm font-medium">Workflow Dashboard</span>
<ExternalLink className="h-4 w-4 text-gray-400" />
</a>
<a
href="#"
className="flex items-center justify-between p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors"
>
<span className="text-sm font-medium">Performance Reports</span>
<ExternalLink className="h-4 w-4 text-gray-400" />
</a>
<a
href="#"
className="flex items-center justify-between p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors"
>
<span className="text-sm font-medium">KPI Tracking</span>
<ExternalLink className="h-4 w-4 text-gray-400" />
</a>
</div>
</div>
<div className="bg-white rounded-xl shadow-sm p-6 hover:shadow-md transition-shadow">
<div className="flex items-center mb-4">
<div className="p-3 bg-orange-100 rounded-lg">
<Users className="h-6 w-6 text-orange-600" />
</div>
<h3 className="ml-3 text-lg font-semibold text-gray-900">Team Management</h3>
</div>
<p className="text-gray-600 mb-4">Coordinate staff assignments and project tracking</p>
<div className="space-y-2">
<a
href="#"
className="flex items-center justify-between p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors"
>
<span className="text-sm font-medium">Staff Directory</span>
<ExternalLink className="h-4 w-4 text-gray-400" />
</a>
<a
href="#"
className="flex items-center justify-between p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors"
>
<span className="text-sm font-medium">Project Assignments</span>
<ExternalLink className="h-4 w-4 text-gray-400" />
</a>
<a
href="#"
className="flex items-center justify-between p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors"
>
<span className="text-sm font-medium">Time Tracking</span>
<ExternalLink className="h-4 w-4 text-gray-400" />
</a>
</div>
</div>
<div className="bg-white rounded-xl shadow-sm p-6 hover:shadow-md transition-shadow">
<div className="flex items-center mb-4">
<div className="p-3 bg-teal-100 rounded-lg">
<Settings className="h-6 w-6 text-teal-600" />
</div>
<h3 className="ml-3 text-lg font-semibold text-gray-900">Client Portal</h3>
</div>
<p className="text-gray-600 mb-4">Manage client interactions and project deliverables</p>
<div className="space-y-2">
<a
href="#"
className="flex items-center justify-between p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors"
>
<span className="text-sm font-medium">Client Dashboard</span>
<ExternalLink className="h-4 w-4 text-gray-400" />
</a>
<a
href="#"
className="flex items-center justify-between p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors"
>
<span className="text-sm font-medium">Project Status</span>
<ExternalLink className="h-4 w-4 text-gray-400" />
</a>
<a
href="#"
className="flex items-center justify-between p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors"
>
<span className="text-sm font-medium">Resource Library</span>
<ExternalLink className="h-4 w-4 text-gray-400" />
</a>
</div>
</div>
<div className="bg-white rounded-xl shadow-sm p-6 hover:shadow-md transition-shadow">
<div className="flex items-center mb-4">
<div className="p-3 bg-gray-100 rounded-lg">
<Settings className="h-6 w-6 text-gray-600" />
</div>
<h3 className="ml-3 text-lg font-semibold text-gray-900">Admin Tools</h3>
</div>
<p className="text-gray-600 mb-4">System configuration and data management utilities</p>
<div className="space-y-2">
<a
href="#"
className="flex items-center justify-between p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors"
>
<span className="text-sm font-medium">Data Export</span>
<ExternalLink className="h-4 w-4 text-gray-400" />
</a>
<a
href="#"
className="flex items-center justify-between p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors"
>
<span className="text-sm font-medium">System Settings</span>
<ExternalLink className="h-4 w-4 text-gray-400" />
</a>
<a
href="#"
className="flex items-center justify-between p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors"
>
<span className="text-sm font-medium">User Management</span>
<ExternalLink className="h-4 w-4 text-gray-400" />
</a>
</div>
</div>
</div>
</main>
</div>
);
};
ReactDOM.render(<AllAIPortal />, document.getElementById('root'));
</script>
</body>
</html>