File size: 19,645 Bytes
43226c9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Client Verification | MALiPo</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <style>
        .verification-bg {
            background: linear-gradient(135deg, #6e00ff 0%, #00d1ff 100%);
        }
        .verification-card {
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .verification-step {
            transition: all 0.3s ease;
        }
        .verification-step.active {
            border-left: 4px solid #6e00ff;
            background-color: #f9fafb;
        }
        #camera-preview {
            width: 100%;
            height: 300px;
            background-color: #f3f4f6;
            border-radius: 8px;
        }
        .upload-preview {
            width: 100%;
            height: 200px;
            border: 2px dashed #d1d5db;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        .upload-preview img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }
    </style>
</head>
<body class="font-sans antialiased text-gray-900">
    <!-- Navigation -->
    <nav class="bg-white shadow-sm fixed w-full z-50">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg极速8">
            <div class="flex justify-between h-16">
                <div class="flex items-center">
                    <div class="flex-shrink-0 flex items-center">
                        <i data-feather="zap" class="h-8 w-8 text-indigo-600"></i>
                        <span class="ml-2 text-xl font-bold text-gray-900">MALiPo</span>
                    </div>
                </div>
                <div class="flex items-center">
                    <a href="#" class="text-gray-500 hover:text-indigo-600 px-4 py-2 text-sm font-medium">Sign Out</a>
                </div>
            </div>
        </div>
    </nav>

    <!-- Main Content -->
    <div class="min-h-screen flex items-center justify-center verification-bg py-20 px-4 sm:px-6 lg:px-8">
        <div class="max-w-4xl w-full bg-white p-10 rounded-xl verification-card">
            <div class="text-center mb-8">
                <i data-feather="shield" class="mx-auto h-12 w-12 text-indigo-600"></i>
                <h2 class="mt-6 text-3xl font-extrabold text-gray-900">
                    Complete Your Verification
                </h2>
                <p class="mt-2 text-sm text-gray-600">
                    To ensure the security of your account and enable full platform access, please complete the verification process.
                </p>
            </div>

            <!-- Progress Steps -->
            <div class="mb-8">
                <div class="flex items-center justify-between mb-4">
                    <div class="verification-step active p-4 rounded-lg w-full mr-4">
                        <div class="flex items-center">
                            <div class="flex-shrink-0 h-8 w-8 rounded-full bg-indigo-600 flex items-center justify-center text-white">
                                <span>1</span>
                            </div>
                            <div class="ml-4">
                                <h3 class="text-sm font-medium text-gray-900">Personal Information</h3>
                                <p class="text-xs text-gray-500">Verify your identity details</p>
                            </div>
                        </div>
                    </div>
                    <div class="verification-step p-4 rounded-lg w-full mr-4">
                        <div class="flex items-center">
                            <div class="flex-shrink-0 h-8 w-8 rounded-full bg-gray-300 flex items-center justify-center text-gray-600">
                                <span>2</span>
                            </div>
                            <div class="ml-4">
                                <h3 class="text-sm font-medium text-gray-500">ID Verification</h3>
                                <p class="text-xs text-gray-400">Upload government ID</p>
                            </div>
                        </div>
                    </div>
                    <div class="verification-step p-4 rounded-lg w-full">
                        <极速 class="flex items-center">
                            <div class="flex-shrink-0 h-8 w-8 rounded-full bg-gray-300 flex items-center justify-center text-gray-600">
                                <span>3</span>
                            </div>
                            <div class="ml-4">
                                <h3 class="text-sm font-medium text-gray-500">Facial Recognition</h3>
                                <p class="text-xs text-gray-400">Complete biometric verification</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Personal Information Form -->
            <div id="personal-info-step">
                <h3 class="text-lg font-medium text-gray-900 mb-6">Personal Information</h3>
                <form class="space-y-6">
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                        <div>
                            <label for="first-name" class="block text-sm font-medium text-gray-700 mb-1">First Name</label>
                            <input id="first-name" name="first-name" type="text" required class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500" placeholder="John">
                        </div>
                        <div>
                            <label for="last-name" class="block text-sm font-medium text-gray-700 mb-1">Last Name</label>
                            <input id="last-name" name="last-name" type="text" required class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus极速ring-2 focus:ring-indigo-500" placeholder="Doe">
                        </div>
                    </div>

                    <div>
                        <label for="date-of-birth" class="block text-sm font-medium text-gray-700 mb-1">Date of Birth</label>
                        <input id="date-of-birth" name="date-of-birth" type="date" required class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
                    </div>

                    <div>
                        <label for="address" class="block text-sm font-medium text-gray-700 mb-1">Address</label>
                        <input id="address" name="address" type="text" required class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500" placeholder="123 Main St">
                    </div>

                    <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                        <div>
                            <label for="city" class="block text-sm font-medium text-gray-700 mb-1">City</label>
                            <input id="city" name="city" type="text" required class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500" placeholder="New York">
                        </div>
                        <div>
                            <label for="state" class="block text-sm font-medium text-gray-700 mb-1">State/Province</label>
                            <input id="state" name="state" type="text" required class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500" placeholder="NY">
                        </div>
                        <div>
                            <label for="postal-code" class="block text-sm font-medium text-gray-700 mb-1">Postal Code</label>
                            <input id="postal-code" name="postal-code" type="text" required class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500" placeholder="10001">
                        </div>
                    </div>

                    <div>
                        <label for="country" class="block text-sm font-medium text-gray-700 mb-1">Country</label>
                        <select id="country" name="country" required class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
                            <option value="">Select Country</option>
                            <option value="US">United States</option>
                            <option value="CA">Canada</option>
                            <option value="UK">United Kingdom</option>
                            <option value="AU">Australia</option>
                            <!-- Add more countries as needed -->
                        </select>
                    </div>

                    <div class="flex justify-end">
                        <button type="button" onclick="nextStep('id-verification-step')" class="px-6 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700">
                            Continue to ID Verification
                        </button>
                    </div>
                </form>
            </div>

            <!-- ID Verification Step -->
            <div id="id-verification-step" class="hidden">
                <h3 class="text-lg font-medium text-gray-900 mb-6">ID Verification</h3>
                <p class="text-sm text-gray-600 mb-6">Please upload a clear photo of your government-issued ID (passport, driver's license, or national ID card).</p>

                <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
                    <div>
                        <label class="block text-sm font-medium text-gray-700 mb-2">Front of ID</label>
                        <div class="upload-preview" onclick="document.getElementById('front-id-upload').click()" id="front-id-preview">
                            <div class="text-center">
                                <i data-feather="upload" class="h-8 w-8 text-gray-400 mx-auto mb-2"></i>
                                <p class="text-sm text-gray-500">Click to upload front of ID</p>
                            </div>
                        </div>
                        <input type="file" id="front-id-upload" class="hidden" accept="image/*" onchange="previewImage(this, 'front-id-preview')">
                    </div>
                    <div>
                        <label class="block text-sm font-medium text-gray-700 mb-2">Back of ID</label>
                        <div class="upload-preview" onclick="document.getElementById('back-id-upload').click()" id="back-id-preview">
                            <div class="text-center">
                                <i data-feather="upload" class="h-8 w-8 text-gray-400 mx-auto mb-2"></i>
                                <p class="text-sm text-gray-500">Click to upload back of ID</p>
                            </div>
                        </div>
                        <input type="file" id="back-id-upload" class="hidden" accept="image/*" onchange="previewImage(this, 'back-id-preview')">
                    </div>
                </div>

                <div class="flex justify-between">
                    <button type="button" onclick="prevStep('personal-info-step')" class="px-6 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">
                        Back
                    </button>
                    <button type="button" onclick="nextStep('facial-recognition-step')" class="px-6 py-2 border border-transparent text-sm font-medium极速md text-white bg-indigo-600 hover:bg-indigo-700">
                        Continue to Facial Recognition
                    </button>
                </div>
            </div>

            <!-- Facial Recognition Step -->
            <div id="facial-recognition-step" class="hidden">
                <h3 class="text-lg font-medium text-gray-900 mb-6">Facial Recognition</h3>
                <p class="text-sm text-gray-600 mb-6">Please allow camera access and follow the instructions to complete facial verification.</p>

                <div class="mb-6" id="camera-preview">
                    <div class="h-full flex items-center justify-center">
                        <div class="text-center">
                            <i data-feather="camera" class="h-12 w-12 text-gray-400 mx-auto mb-2"></i>
                            <p class="text-sm text-gray-500">Camera access required for facial verification</p>
                            <button type="button" onclick="startCamera()" class="mt-4 px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700">
                                Start Camera
                            </button>
                        </div>
                    </div>
                </div>

                <div class="bg-yellow-50 border-l-4 border-yellow-400 p-4 mb-6">
                    <div class="flex">
                        <div class="flex-shrink-0">
                            <i data-feather="alert-triangle" class="h-5 w-5 text-yellow-400"></i>
                        </div>
                        <div class="ml-3">
                            <p class="text-sm text-yellow-700">
                                <strong>Instructions:</strong> Ensure good lighting, remove glasses/hats, and look directly at the camera.
                            </p>
                        </div>
                    </div>
                </div>

                <div class="flex justify-between">
                    <button type="button" onclick="prevStep('id-verification-step')" class="px-6 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">
                        Back
                    </button>
                    <button type="button" onclick="completeVerification()" class="px-6 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-green-600 hover:bg-green-700">
                        Complete Verification
                    </button>
                </div>
            </div>

            <!-- Success Message -->
            <div id="success-message" class="hidden text-center py-8">
                <i data-feather="check-circle" class="mx-auto h-16 w-16 text-green-500 mb-4"></i>
                <h3 class="text-xl font-medium text-gray-900 mb-2">Verification Submitted Successfully!</h3>
                <p class="text-sm text-gray-600 mb-6">Your verification documents have been submitted for review. This process typically takes 1-2 business days.</p>
                <a href="dashboard.html" class="px-6 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700">
                    Go to Dashboard
                </a>
            </div>
        </div>
    </div>

    <script>
        feather.replace();
        
        function nextStep(nextStepId) {
            // Hide all steps
            document.querySelectorAll('[id$="-step"]').forEach(step => {
                step.classList.add('hidden');
            });
            // Show the next step
            document.getElementById(nextStepId).classList.remove('hidden');
            
            // Update progress indicators
            updateProgressIndicator(nextStepId);
        }
        
        function prevStep(prevStepId) {
            // Hide all steps
            document.querySelectorAll('[id$="-step"]').forEach(step => {
                step.classList.add('hidden');
            });
            // Show the previous step
            document.getElementById(prevStepId).classList.remove('hidden');
            
            // Update progress indicators
            updateProgressIndicator(prevStepId);
        }
        
        function updateProgressIndicator(stepId) {
            const steps = document.querySelectorAll('.verification-step');
            steps.forEach((step, index) => {
                step.classList.remove('active');
                const numberDiv = step.querySelector('div:first-child');
                if (stepId === 'personal-info-step' && index === 0) {
                    step.classList.add('active');
                    numberDiv.classList.replace('bg-gray-300', 'bg-indigo-600');
                    numberDiv.classList.replace('text-gray-600', 'text-white');
                } else if (stepId === 'id-verification-step' && index <= 1) {
                    if (index === 1) step.classList.add('active');
                    numberDiv.classList.replace('bg-gray-300', 'bg-indigo-600');
                    numberDiv.classList.replace('text-gray-600', 'text-white');
                } else if (stepId === 'facial-recognition-step') {
                    step.classList.add('active');
                    numberDiv.classList.replace('bg-gray-300', 'bg-indigo-600');
                    numberDiv.classList.replace('text-gray-600', 'text-white');
                }
            });
        }
        
        function previewImage(input, previewId) {
            const preview = document.getElementById(previewId);
            if (input.files && input.files[0]) {
                const reader = new FileReader();
                reader.onload = function(e) {
                    preview.innerHTML = `<img src="${e.target.result}" alt="ID preview">`;
                }
                reader.readAsDataURL(input.files[0]);
            }
        }
        
        function startCamera() {
            // This would integrate with a facial recognition API in a real implementation
            alert("Camera started. This would integrate with facial recognition software in a production environment.");
            document.getElementById('camera-preview').innerHTML = `
                <div class="h-full flex items-center justify-center bg-black">
                    <div class="text-center text-white">
                        <p class="text-sm mb-4">Camera active - Please look directly at the camera</p>
                        <div class="w-32 h-32 border-2 border-white rounded-full mx-auto mb-4"></div>
                        <p class="text-xs">Facial recognition in progress...</p>
                    </div>
                </div>
            `;
        }
        
        function completeVerification() {
            // Hide all steps
            document.querySelectorAll('[id$="-step"]').forEach(step => {
                step.classList.add('hidden');
            });
            // Show success message
            document.getElementById('success-message').classList.remove('hidden');
            
            // Update all progress indicators to completed
            const steps = document.querySelectorAll('.verification-step');
            steps.forEach(step => {
                step.classList.add('active');
                const numberDiv = step.querySelector('div:first-child');
                numberDiv.classList.replace('bg-gray-300', 'bg-green-500');
                numberDiv.classList.replace('text-gray-600', 'text-white');
            });
        }
    </script>
</body>
</html>