Download index.html from Quantez/met-space: direct link, hf CLI and curl.
- Browser
- Download file 20.1 kB
-
https://huggingface.co/spaces/Quantez/met-space/resolve/main/index.html
- Command line
-
hf download hf://spaces/Quantez/met-space/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Quantez/met-space/resolve/main/index.html
20.1 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Family Empowerment Portal | Login</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap'); | |
| body { | |
| font-family: 'Poppins', sans-serif; | |
| background-color: #f8fafc; | |
| } | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%); | |
| } | |
| .input-focus:focus { | |
| box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3); | |
| } | |
| .shake { | |
| animation: shake 0.5s; | |
| } | |
| @keyframes shake { | |
| 0%, 100% { transform: translateX(0); } | |
| 10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); } | |
| 20%, 40%, 60%, 80% { transform: translateX(5px); } | |
| } | |
| .floating-label { | |
| position: absolute; | |
| pointer-events: none; | |
| left: 12px; | |
| top: 11px; | |
| transition: 0.2s ease all; | |
| color: #9ca3af; | |
| font-size: 14px; | |
| } | |
| input:focus ~ .floating-label, | |
| input:not(:placeholder-shown) ~ .floating-label { | |
| top: -8px; | |
| left: 10px; | |
| font-size: 12px; | |
| background-color: white; | |
| padding: 0 4px; | |
| color: #3b82f6; | |
| } | |
| .toggle-password { | |
| right: 10px; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| cursor: pointer; | |
| } | |
| .google-btn { | |
| background-color: #4285F4; | |
| color: white; | |
| transition: all 0.3s; | |
| } | |
| .google-btn:hover { | |
| background-color: #357ae8; | |
| box-shadow: 0 0 3px rgba(0,0,0,0.3); | |
| } | |
| .google-btn i { | |
| background-color: white; | |
| padding: 8px; | |
| border-radius: 50%; | |
| margin-right: 10px; | |
| color: #4285F4; | |
| } | |
| </style> | |
| </head> | |
| <body class="min-h-screen flex items-center justify-center p-4"> | |
| <div class="w-full max-w-md"> | |
| <!-- Logo and Title --> | |
| <div class="text-center mb-8"> | |
| <div class="w-20 h-20 gradient-bg rounded-full flex items-center justify-center mx-auto mb-4 shadow-lg"> | |
| <i class="fas fa-hands-helping text-white text-3xl"></i> | |
| </div> | |
| <h1 class="text-3xl font-bold text-gray-800">Family Empowerment Portal</h1> | |
| <p class="text-gray-600 mt-2">Building stronger families together</p> | |
| </div> | |
| <!-- Login Card --> | |
| <div class="bg-white rounded-xl shadow-lg overflow-hidden"> | |
| <!-- Tab Navigation --> | |
| <div class="flex border-b"> | |
| <button id="staff-tab" class="flex-1 py-4 px-6 text-center font-medium text-blue-600 border-b-2 border-blue-600 bg-blue-50"> | |
| <i class="fas fa-user-shield mr-2"></i> Staff Login | |
| </button> | |
| <button id="participant-tab" class="flex-1 py-4 px-6 text-center font-medium text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-users mr-2"></i> Participant Login | |
| </button> | |
| </div> | |
| <!-- Staff Login Form --> | |
| <div id="staff-form" class="p-6"> | |
| <form id="loginForm" class="space-y-6"> | |
| <div class="relative"> | |
| <input | |
| type="email" | |
| id="staff-email" | |
| class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none input-focus transition duration-200" | |
| placeholder=" " | |
| required | |
| > | |
| <label for="staff-email" class="floating-label">Organization Email</label> | |
| </div> | |
| <div class="relative"> | |
| <input | |
| type="password" | |
| id="staff-password" | |
| class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none input-focus transition duration-200 pr-10" | |
| placeholder=" " | |
| required | |
| > | |
| <label for="staff-password" class="floating-label">Password</label> | |
| <span class="toggle-password absolute text-gray-400 hover:text-gray-600" onclick="togglePassword('staff-password', this)"> | |
| <i class="far fa-eye"></i> | |
| </span> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <div class="flex items-center"> | |
| <input | |
| id="remember-me" | |
| type="checkbox" | |
| class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded" | |
| > | |
| <label for="remember-me" class="ml-2 block text-sm text-gray-700"> | |
| Remember me | |
| </label> | |
| </div> | |
| <div> | |
| <a href="#" class="text-sm text-blue-600 hover:text-blue-500 font-medium"> | |
| Forgot password? | |
| </a> | |
| </div> | |
| </div> | |
| <div> | |
| <button type="submit" class="w-full gradient-bg text-white py-3 px-4 rounded-lg font-medium hover:opacity-90 transition duration-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50 flex items-center justify-center"> | |
| <i class="fas fa-sign-in-alt mr-2"></i> Sign In | |
| </button> | |
| </div> | |
| </form> | |
| <div class="mt-6"> | |
| <div class="relative"> | |
| <div class="absolute inset-0 flex items-center"> | |
| <div class="w-full border-t border-gray-300"></div> | |
| </div> | |
| <div class="relative flex justify-center text-sm"> | |
| <span class="px-2 bg-white text-gray-500"> | |
| Secure login with | |
| </span> | |
| </div> | |
| </div> | |
| <div class="mt-6 grid grid-cols-2 gap-3"> | |
| <div> | |
| <button class="w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-md shadow-sm bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"> | |
| <i class="fab fa-microsoft text-blue-500 mr-2"></i> Microsoft | |
| </button> | |
| </div> | |
| <div> | |
| <button id="google-staff-btn" class="w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-md shadow-sm bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"> | |
| <i class="fab fa-google text-red-500 mr-2"></i> Google | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Participant Login Form (Hidden by default) --> | |
| <div id="participant-form" class="p-6 hidden"> | |
| <form id="participantLoginForm" class="space-y-6"> | |
| <div class="relative"> | |
| <input | |
| type="email" | |
| id="participant-email" | |
| class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none input-focus transition duration-200" | |
| placeholder=" " | |
| required | |
| > | |
| <label for="participant-email" class="floating-label">Email or Participant ID</label> | |
| </div> | |
| <div class="relative"> | |
| <input | |
| type="password" | |
| id="participant-password" | |
| class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none input-focus transition duration-200 pr-10" | |
| placeholder=" " | |
| required | |
| > | |
| <label for="participant-password" class="floating-label">Password</label> | |
| <span class="toggle-password absolute text-gray-400 hover:text-gray-600" onclick="togglePassword('participant-password', this)"> | |
| <i class="far fa-eye"></i> | |
| </span> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <div class="flex items-center"> | |
| <input | |
| id="remember-me-participant" | |
| type="checkbox" | |
| class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded" | |
| > | |
| <label for="remember-me-participant" class="ml-2 block text-sm text-gray-700"> | |
| Remember me | |
| </label> | |
| </div> | |
| <div> | |
| <a href="#" class="text-sm text-blue-600 hover:text-blue-500 font-medium"> | |
| Forgot password? | |
| </a> | |
| </div> | |
| </div> | |
| <div> | |
| <button type="submit" class="w-full gradient-bg text-white py-3 px-4 rounded-lg font-medium hover:opacity-90 transition duration-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50 flex items-center justify-center"> | |
| <i class="fas fa-sign-in-alt mr-2"></i> Sign In | |
| </button> | |
| </div> | |
| </form> | |
| <div class="mt-6 text-center"> | |
| <p class="text-sm text-gray-600"> | |
| New to the program? | |
| <a href="#" class="font-medium text-blue-600 hover:text-blue-500"> | |
| Register here | |
| </a> | |
| </p> | |
| </div> | |
| <div class="mt-6"> | |
| <div class="relative"> | |
| <div class="absolute inset-0 flex items-center"> | |
| <div class="w-full border-t border-gray-300"></div> | |
| </div> | |
| <div class="relative flex justify-center text-sm"> | |
| <span class="px-2 bg-white text-gray-500"> | |
| Or login with | |
| </span> | |
| </div> | |
| </div> | |
| <div class="mt-6 grid grid-cols-2 gap-3"> | |
| <div> | |
| <button id="google-participant-btn" class="w-full google-btn py-2 px-4 rounded-md shadow-sm text-sm font-medium text-white hover:text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 flex items-center justify-center"> | |
| <i class="fab fa-google"></i> | |
| <span>Google</span> | |
| </button> | |
| </div> | |
| <div> | |
| <button class="w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-md shadow-sm bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"> | |
| <i class="fab fa-apple text-gray-700 mr-2"></i> Apple | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Footer --> | |
| <div class="mt-8 text-center text-sm text-gray-500"> | |
| <p>© 2023 Family Empowerment Program. All rights reserved.</p> | |
| <div class="mt-2 flex justify-center space-x-4"> | |
| <a href="#" class="text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-shield-alt"></i> Privacy | |
| </a> | |
| <a href="#" class="text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-file-alt"></i> Terms | |
| </a> | |
| <a href="#" class="text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-question-circle"></i> Help | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Toggle between staff and participant login forms | |
| document.getElementById('staff-tab').addEventListener('click', function() { | |
| this.classList.add('text-blue-600', 'border-blue-600', 'bg-blue-50'); | |
| this.classList.remove('text-gray-500', 'hover:text-gray-700'); | |
| document.getElementById('participant-tab').classList.remove('text-blue-600', 'border-blue-600', 'bg-blue-50'); | |
| document.getElementById('participant-tab').classList.add('text-gray-500', 'hover:text-gray-700'); | |
| document.getElementById('staff-form').classList.remove('hidden'); | |
| document.getElementById('participant-form').classList.add('hidden'); | |
| }); | |
| document.getElementById('participant-tab').addEventListener('click', function() { | |
| this.classList.add('text-blue-600', 'border-blue-600', 'bg-blue-50'); | |
| this.classList.remove('text-gray-500', 'hover:text-gray-700'); | |
| document.getElementById('staff-tab').classList.remove('text-blue-600', 'border-blue-600', 'bg-blue-50'); | |
| document.getElementById('staff-tab').classList.add('text-gray-500', 'hover:text-gray-700'); | |
| document.getElementById('participant-form').classList.remove('hidden'); | |
| document.getElementById('staff-form').classList.add('hidden'); | |
| }); | |
| // Toggle password visibility | |
| function togglePassword(inputId, icon) { | |
| const input = document.getElementById(inputId); | |
| const iconElement = icon.querySelector('i'); | |
| if (input.type === 'password') { | |
| input.type = 'text'; | |
| iconElement.classList.remove('fa-eye'); | |
| iconElement.classList.add('fa-eye-slash'); | |
| } else { | |
| input.type = 'password'; | |
| iconElement.classList.remove('fa-eye-slash'); | |
| iconElement.classList.add('fa-eye'); | |
| } | |
| } | |
| // Form submission with validation | |
| document.getElementById('loginForm').addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| const email = document.getElementById('staff-email').value; | |
| const password = document.getElementById('staff-password').value; | |
| // Simple validation | |
| if (!email || !password) { | |
| showError('Please fill in all fields'); | |
| return; | |
| } | |
| // Here you would typically make an API call to authenticate | |
| console.log('Staff login attempt with:', email, password); | |
| // Simulate successful login (for demo purposes) | |
| setTimeout(() => { | |
| // Redirect to dashboard (in a real app, this would be after successful auth) | |
| window.location.href = 'dashboard.html'; | |
| }, 1000); | |
| }); | |
| document.getElementById('participantLoginForm').addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| const email = document.getElementById('participant-email').value; | |
| const password = document.getElementById('participant-password').value; | |
| // Simple validation | |
| if (!email || !password) { | |
| showError('Please fill in all fields'); | |
| return; | |
| } | |
| // Here you would typically make an API call to authenticate | |
| console.log('Participant login attempt with:', email, password); | |
| // Simulate successful login (for demo purposes) | |
| setTimeout(() => { | |
| // Redirect to participant portal (in a real app, this would be after successful auth) | |
| window.location.href = 'portal.html'; | |
| }, 1000); | |
| }); | |
| // Google login functionality | |
| document.getElementById('google-staff-btn').addEventListener('click', function() { | |
| console.log('Staff Google login initiated'); | |
| // In a real implementation, this would trigger Google OAuth flow | |
| // For demo purposes, we'll simulate a successful login | |
| setTimeout(() => { | |
| window.location.href = 'dashboard.html'; | |
| }, 1000); | |
| }); | |
| document.getElementById('google-participant-btn').addEventListener('click', function() { | |
| console.log('Participant Google login initiated'); | |
| // In a real implementation, this would trigger Google OAuth flow | |
| // For demo purposes, we'll simulate a successful login | |
| setTimeout(() => { | |
| window.location.href = 'portal.html'; | |
| }, 1000); | |
| }); | |
| function showError(message) { | |
| // In a real app, you would show this error more elegantly | |
| alert(message); | |
| } | |
| // Load Google API (this would be needed for actual implementation) | |
| function loadGoogleAPI() { | |
| const script = document.createElement('script'); | |
| script.src = 'https://accounts.google.com/gsi/client'; | |
| script.async = true; | |
| script.defer = true; | |
| document.body.appendChild(script); | |
| } | |
| // Initialize Google login when page loads | |
| window.addEventListener('DOMContentLoaded', function() { | |
| loadGoogleAPI(); | |
| }); | |
| </script> | |
| <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=Quantez/met-space" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |