Download client-verification.html from Meech888/malipo: direct link, hf CLI and curl.
- Browser
- Download file 19.6 kB
-
https://huggingface.co/spaces/Meech888/malipo/resolve/main/client-verification.html
- Command line
-
hf download hf://spaces/Meech888/malipo/client-verification.html
-
curl -L -o client-verification.html https://huggingface.co/spaces/Meech888/malipo/resolve/main/client-verification.html
19.6 kB
| <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> |