File size: 12,698 Bytes
8eab354
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>InklyAI - Signature Verification Demo</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 800px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            overflow: hidden;
        }

        .header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 40px;
            text-align: center;
        }

        .header h1 {
            font-size: 3em;
            margin-bottom: 10px;
            font-weight: 300;
        }

        .header p {
            font-size: 1.3em;
            opacity: 0.9;
        }

        .main-content {
            padding: 40px;
        }

        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }

        .feature-card {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 30px;
            text-align: center;
            transition: transform 0.3s ease;
        }

        .feature-card:hover {
            transform: translateY(-5px);
        }

        .feature-icon {
            font-size: 3em;
            margin-bottom: 20px;
        }

        .feature-title {
            font-size: 1.3em;
            font-weight: bold;
            margin-bottom: 15px;
            color: #333;
        }

        .feature-description {
            color: #666;
            line-height: 1.6;
        }

        .demo-section {
            background: #e8f2ff;
            border-radius: 15px;
            padding: 30px;
            margin-bottom: 30px;
        }

        .demo-title {
            font-size: 1.5em;
            margin-bottom: 20px;
            color: #333;
            text-align: center;
        }

        .demo-steps {
            list-style: none;
            counter-reset: step-counter;
        }

        .demo-steps li {
            counter-increment: step-counter;
            margin-bottom: 15px;
            padding: 15px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: relative;
            padding-left: 60px;
        }

        .demo-steps li::before {
            content: counter(step-counter);
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            background: #667eea;
            color: white;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }

        .tech-stack {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 30px;
            margin-bottom: 30px;
        }

        .tech-title {
            font-size: 1.3em;
            margin-bottom: 20px;
            color: #333;
            text-align: center;
        }

        .tech-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
        }

        .tech-item {
            background: white;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .tech-name {
            font-weight: bold;
            color: #667eea;
            margin-bottom: 10px;
        }

        .cta-section {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 15px;
            padding: 40px;
            text-align: center;
        }

        .cta-title {
            font-size: 2em;
            margin-bottom: 20px;
        }

        .cta-description {
            font-size: 1.2em;
            margin-bottom: 30px;
            opacity: 0.9;
        }

        .cta-buttons {
            display: flex;
            gap: 20px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .cta-btn {
            background: white;
            color: #667eea;
            border: none;
            padding: 15px 30px;
            border-radius: 25px;
            font-size: 1.1em;
            font-weight: bold;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            transition: transform 0.2s ease;
        }

        .cta-btn:hover {
            transform: translateY(-2px);
        }

        .status-indicator {
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-right: 8px;
        }

        .status-online {
            background: #28a745;
        }

        .status-offline {
            background: #dc3545;
        }

        @media (max-width: 768px) {
            .cta-buttons {
                flex-direction: column;
                align-items: center;
            }
            
            .main-content {
                padding: 20px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>InklyAI</h1>
            <p>Advanced E-Signature Verification System</p>
            <div style="margin-top: 20px;">
                <span class="status-indicator status-offline" id="statusIndicator"></span>
                <span id="statusText">Web Server Offline</span>
            </div>
        </div>

        <div class="main-content">
            <!-- Features Section -->
            <div class="feature-grid">
                <div class="feature-card">
                    <div class="feature-icon">๐Ÿ”</div>
                    <div class="feature-title">Biometric Authentication</div>
                    <div class="feature-description">
                        Advanced signature verification using Siamese neural networks for secure AI agent authentication.
                    </div>
                </div>

                <div class="feature-card">
                    <div class="feature-icon">๐Ÿค–</div>
                    <div class="feature-title">AgentAI Integration</div>
                    <div class="feature-description">
                        Seamless integration with AgentAI systems for multi-agent authentication and secure communication.
                    </div>
                </div>

                <div class="feature-card">
                    <div class="feature-icon">๐Ÿ“Š</div>
                    <div class="feature-title">Real-time Analytics</div>
                    <div class="feature-description">
                        Comprehensive monitoring, statistics, and audit trails for compliance and performance tracking.
                    </div>
                </div>

                <div class="feature-card">
                    <div class="feature-icon">๐Ÿš€</div>
                    <div class="feature-title">Production Ready</div>
                    <div class="feature-description">
                        Scalable architecture with REST API, web UI, and enterprise-grade security features.
                    </div>
                </div>
            </div>

            <!-- Demo Section -->
            <div class="demo-section">
                <h2 class="demo-title">How to Use InklyAI</h2>
                <ol class="demo-steps">
                    <li>Start the web server by running <code>python web_app.py</code></li>
                    <li>Open your browser and go to <code>http://localhost:5000</code></li>
                    <li>Select an agent from the dropdown menu</li>
                    <li>Upload a reference signature template</li>
                    <li>Upload a signature to verify</li>
                    <li>Click "Verify Signatures" to get results</li>
                    <li>View verification results with similarity scores</li>
                    <li>Manage agents and view statistics</li>
                </ol>
            </div>

            <!-- Tech Stack -->
            <div class="tech-stack">
                <h2 class="tech-title">Technology Stack</h2>
                <div class="tech-grid">
                    <div class="tech-item">
                        <div class="tech-name">PyTorch</div>
                        <div>Deep Learning Framework</div>
                    </div>
                    <div class="tech-item">
                        <div class="tech-name">Flask</div>
                        <div>Web Application Framework</div>
                    </div>
                    <div class="tech-item">
                        <div class="tech-name">OpenCV</div>
                        <div>Image Processing</div>
                    </div>
                    <div class="tech-item">
                        <div class="tech-name">ResNet</div>
                        <div>CNN Architecture</div>
                    </div>
                    <div class="tech-item">
                        <div class="tech-name">Siamese Networks</div>
                        <div>Signature Verification</div>
                    </div>
                    <div class="tech-item">
                        <div class="tech-name">REST API</div>
                        <div>Integration Interface</div>
                    </div>
                </div>
            </div>

            <!-- CTA Section -->
            <div class="cta-section">
                <h2 class="cta-title">Ready to Get Started?</h2>
                <p class="cta-description">
                    Experience the power of AI-driven signature verification with our interactive web interface.
                </p>
                <div class="cta-buttons">
                    <a href="http://localhost:8080" class="cta-btn" id="openAppBtn" onclick="checkServer()">
                        Open Web Application
                    </a>
                    <a href="http://localhost:8080/agents" class="cta-btn" id="manageAgentsBtn" onclick="checkServer()">
                        Manage Agents
                    </a>
                    <button class="cta-btn" onclick="startServer()">
                        Start Server
                    </button>
                </div>
            </div>
        </div>
    </div>

    <script>
        // Check server status
        async function checkServer() {
            try {
                const response = await fetch('http://localhost:8080/api/health');
                if (response.ok) {
                    updateStatus(true);
                } else {
                    updateStatus(false);
                }
            } catch (error) {
                updateStatus(false);
            }
        }

        function updateStatus(isOnline) {
            const indicator = document.getElementById('statusIndicator');
            const text = document.getElementById('statusText');
            const openAppBtn = document.getElementById('openAppBtn');
            const manageAgentsBtn = document.getElementById('manageAgentsBtn');

            if (isOnline) {
                indicator.className = 'status-indicator status-online';
                text.textContent = 'Web Server Online';
                openAppBtn.style.display = 'inline-block';
                manageAgentsBtn.style.display = 'inline-block';
            } else {
                indicator.className = 'status-indicator status-offline';
                text.textContent = 'Web Server Offline';
                openAppBtn.style.display = 'none';
                manageAgentsBtn.style.display = 'none';
            }
        }

        function startServer() {
            alert('To start the server, run the following command in your terminal:\n\npython web_app.py\n\nThen refresh this page.');
        }

        // Check server status on page load
        document.addEventListener('DOMContentLoaded', function() {
            checkServer();
            // Check every 5 seconds
            setInterval(checkServer, 5000);
        });
    </script>
</body>
</html>