Download index.html from Galladka/test: direct link, hf CLI and curl.
- Browser
- Download file 26.8 kB
-
https://huggingface.co/spaces/Galladka/test/resolve/main/index.html
- Command line
-
hf download hf://spaces/Galladka/test/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Galladka/test/resolve/main/index.html
26.8 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Professional 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> | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| } | |
| .input-focus:focus { | |
| box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3); | |
| } | |
| .shake { | |
| animation: shake 0.5s; | |
| } | |
| @keyframes shake { | |
| 0%, 100% { transform: translateX(0); } | |
| 20%, 60% { transform: translateX(-5px); } | |
| 40%, 80% { transform: translateX(5px); } | |
| } | |
| </style> | |
| </head> | |
| <body class="min-h-screen bg-gray-100 flex items-center justify-center p-4"> | |
| <!-- Login Container (initially shown) --> | |
| <div id="loginContainer" class="max-w-md w-full mx-auto"> | |
| <div class="bg-white rounded-xl shadow-xl overflow-hidden"> | |
| <!-- Header --> | |
| <div class="gradient-bg py-6 px-8 text-center"> | |
| <h1 class="text-2xl font-bold text-white">Welcome Back</h1> | |
| <p class="text-white opacity-90 mt-1">Sign in to your account</p> | |
| </div> | |
| <!-- Auth Forms --> | |
| <div class="px-8 py-6"> | |
| <div class="flex justify-center mb-6"> | |
| <button id="toggleAuth" class="px-4 py-2 rounded-lg bg-indigo-100 text-indigo-700 font-medium"> | |
| Switch to Sign Up | |
| </button> | |
| </div> | |
| <!-- Login Form --> | |
| <form id="loginForm" class="space-y-5"> | |
| <div> | |
| <label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email Address</label> | |
| <div class="relative"> | |
| <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> | |
| <i class="fas fa-envelope text-gray-400"></i> | |
| </div> | |
| <input type="email" id="email" name="email" required | |
| class="pl-10 w-full px-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:border-indigo-500 input-focus transition duration-200" | |
| placeholder="you@example.com"> | |
| </div> | |
| </div> | |
| <div> | |
| <label for="password" class="block text-sm font-medium text-gray-700 mb-1">Password</label> | |
| <div class="relative"> | |
| <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> | |
| <i class="fas fa-lock text-gray-400"></i> | |
| </div> | |
| <input type="password" id="password" name="password" required | |
| class="pl-10 w-full px-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:border-indigo-500 input-focus transition duration-200" | |
| placeholder="••••••••"> | |
| <button type="button" id="togglePassword" class="absolute inset-y-0 right-0 pr-3 flex items-center"> | |
| <i class="fas fa-eye text-gray-400 hover:text-gray-600 cursor-pointer"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <div class="flex items-center"> | |
| <input id="remember-me" name="remember-me" type="checkbox" | |
| class="h-4 w-4 text-indigo-600 focus:ring-indigo-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-indigo-600 hover:text-indigo-500">Forgot password?</a> | |
| </div> | |
| </div> | |
| <div> | |
| <button type="submit" id="submitBtn" | |
| class="w-full gradient-bg text-white py-2 px-4 rounded-lg hover:opacity-90 transition duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"> | |
| 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">Or continue with</span> | |
| </div> | |
| </div> | |
| <div class="mt-6 grid grid-cols-2 gap-3"> | |
| <button type="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-indigo-500"> | |
| <i class="fab fa-google text-red-500 mr-2"></i> Google | |
| </button> | |
| <button type="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-indigo-500"> | |
| <i class="fab fa-microsoft text-blue-500 mr-2"></i> Microsoft | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Signup Form --> | |
| <form id="signupForm" class="space-y-5 hidden"> | |
| <div> | |
| <label for="signupName" class="block text-sm font-medium text-gray-700 mb-1">Full Name</label> | |
| <div class="relative"> | |
| <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> | |
| <i class="fas fa-user text-gray-400"></i> | |
| </div> | |
| <input type="text" id="signupName" name="name" required | |
| class="pl-10 w-full px-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:border-indigo-500 input-focus transition duration-200" | |
| placeholder="John Doe"> | |
| </div> | |
| </div> | |
| <div> | |
| <label for="signupEmail" class="block text-sm font-medium text-gray-700 mb-1">Email Address</label> | |
| <div class="relative"> | |
| <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> | |
| <i class="fas fa-envelope text-gray-400"></i> | |
| </div> | |
| <input type="email" id="signupEmail" name="email" required | |
| class="pl-10 w-full px-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:border-indigo-500 input-focus transition duration-200" | |
| placeholder="you@example.com"> | |
| </div> | |
| </div> | |
| <div> | |
| <label for="signupPassword" class="block text-sm font-medium text-gray-700 mb-1">Password</label> | |
| <div class="relative"> | |
| <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> | |
| <i class="fas fa-lock text-gray-400"></i> | |
| </div> | |
| <input type="password" id="signupPassword" name="password" required | |
| class="pl-10 w-full px-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:border-indigo-500 input-focus transition duration-200" | |
| placeholder="••••••••"> | |
| <button type="button" id="toggleSignupPassword" class="absolute inset-y-0 right-0 pr-3 flex items-center"> | |
| <i class="fas fa-eye text-gray-400 hover:text-gray-600 cursor-pointer"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div> | |
| <label for="confirmPassword" class="block text-sm font-medium text-gray-700 mb-1">Confirm Password</label> | |
| <div class="relative"> | |
| <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> | |
| <i class="fas fa-lock text-gray-400"></i> | |
| </div> | |
| <input type="password" id="confirmPassword" name="confirmPassword" required | |
| class="pl-10 w-full px-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:border-indigo-500 input-focus transition duration-200" | |
| placeholder="••••••••"> | |
| </div> | |
| </div> | |
| <div> | |
| <button type="submit" id="signupBtn" | |
| class="w-full gradient-bg text-white py-2 px-4 rounded-lg hover:opacity-90 transition duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"> | |
| Create Account | |
| </button> | |
| </div> | |
| </form> | |
| <div class="mt-6 text-center"> | |
| <p id="authToggleText" class="text-sm text-gray-600"> | |
| Don't have an account? | |
| <a href="#" class="text-indigo-600 hover:text-indigo-500 font-medium">Sign up</a> | |
| </p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-6 text-center text-sm text-gray-500"> | |
| © 2023 Your Company. All rights reserved. | |
| </div> | |
| </div> | |
| <!-- Dashboard Container (initially hidden) --> | |
| <div id="dashboardContainer" class="hidden min-h-screen w-full bg-gray-50"> | |
| <!-- Sidebar --> | |
| <div class="fixed inset-y-0 left-0 w-64 bg-white shadow-lg"> | |
| <div class="flex items-center justify-center h-16 px-4 bg-indigo-600"> | |
| <h1 class="text-white font-bold text-xl">Dashboard</h1> | |
| </div> | |
| <nav class="mt-6"> | |
| <a href="#" class="flex items-center px-6 py-3 text-gray-700 bg-gray-100 border-l-4 border-indigo-500"> | |
| <i class="fas fa-tachometer-alt mr-3 text-indigo-600"></i> | |
| Dashboard | |
| </a> | |
| <a href="#" class="flex items-center px-6 py-3 text-gray-600 hover:bg-gray-50"> | |
| <i class="fas fa-users mr-3"></i> | |
| Users | |
| </a> | |
| <a href="#" class="flex items-center px-6 py-3 text-gray-600 hover:bg-gray-50"> | |
| <i class="fas fa-chart-bar mr-3"></i> | |
| Analytics | |
| </a> | |
| <a href="#" class="flex items-center px-6 py-3 text-gray-600 hover:bg-gray-50"> | |
| <i class="fas fa-cog mr-3"></i> | |
| Settings | |
| </a> | |
| </nav> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="ml-64"> | |
| <!-- Header --> | |
| <header class="bg-white shadow-sm"> | |
| <div class="flex justify-between items-center h-16 px-6"> | |
| <div class="flex items-center"> | |
| <button class="text-gray-500 focus:outline-none"> | |
| <i class="fas fa-bars"></i> | |
| </button> | |
| <div class="ml-4 relative"> | |
| <input type="text" class="pl-10 pr-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:border-indigo-500" placeholder="Search..."> | |
| <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i> | |
| </div> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <button class="text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-bell"></i> | |
| </button> | |
| <div class="flex items-center"> | |
| <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User" class="h-8 w-8 rounded-full"> | |
| <span class="ml-2 text-sm font-medium">Jane Doe</span> | |
| <button id="logoutBtn" class="ml-4 text-sm text-indigo-600 hover:text-indigo-800"> | |
| <i class="fas fa-sign-out-alt mr-1"></i> Logout | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Content Area --> | |
| <main class="p-6"> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6"> | |
| <!-- Stats Cards --> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex items-center"> | |
| <div class="p-3 rounded-full bg-indigo-100 text-indigo-600"> | |
| <i class="fas fa-users text-lg"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <p class="text-sm font-medium text-gray-500">Total Users</p> | |
| <p class="text-2xl font-semibold text-gray-800">1,254</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex items-center"> | |
| <div class="p-3 rounded-full bg-green-100 text-green-600"> | |
| <i class="fas fa-chart-line text-lg"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <p class="text-sm font-medium text-gray-500">Revenue</p> | |
| <p class="text-2xl font-semibold text-gray-800">$12,345</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex items-center"> | |
| <div class="p-3 rounded-full bg-blue-100 text-blue-600"> | |
| <i class="fas fa-tasks text-lg"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <p class="text-sm font-medium text-gray-500">Tasks</p> | |
| <p class="text-2xl font-semibold text-gray-800">24/50</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Recent Activity --> | |
| <div class="bg-white rounded-lg shadow p-6 mb-6"> | |
| <h2 class="text-lg font-semibold text-gray-800 mb-4">Recent Activity</h2> | |
| <div class="space-y-4"> | |
| <div class="flex items-start"> | |
| <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User" class="h-10 w-10 rounded-full mr-3"> | |
| <div> | |
| <p class="font-medium">John Smith completed task</p> | |
| <p class="text-sm text-gray-500">2 hours ago</p> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <img src="https://randomuser.me/api/portraits/women/68.jpg" alt="User" class="h-10 w-10 rounded-full mr-3"> | |
| <div> | |
| <p class="font-medium">Sarah Johnson uploaded file</p> | |
| <p class="text-sm text-gray-500">5 hours ago</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Charts Section --> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-6"> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <h2 class="text-lg font-semibold text-gray-800 mb-4">Monthly Sales</h2> | |
| <div class="h-64 bg-gray-100 rounded flex items-center justify-center"> | |
| <p class="text-gray-500">Chart will appear here</p> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <h2 class="text-lg font-semibold text-gray-800 mb-4">User Growth</h2> | |
| <div class="h-64 bg-gray-100 rounded flex items-center justify-center"> | |
| <p class="text-gray-500">Chart will appear here</p> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| </div> | |
| <script> | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const loginForm = document.getElementById('loginForm'); | |
| const signupForm = document.getElementById('signupForm'); | |
| const togglePassword = document.getElementById('togglePassword'); | |
| const toggleSignupPassword = document.getElementById('toggleSignupPassword'); | |
| const passwordInput = document.getElementById('password'); | |
| const signupPassword = document.getElementById('signupPassword'); | |
| const submitBtn = document.getElementById('submitBtn'); | |
| const signupBtn = document.getElementById('signupBtn'); | |
| const toggleAuth = document.getElementById('toggleAuth'); | |
| const authToggleText = document.getElementById('authToggleText'); | |
| let isLogin = true; | |
| // Toggle password visibility | |
| togglePassword.addEventListener('click', function() { | |
| const type = passwordInput.getAttribute('type') === 'password' ? 'text' : 'password'; | |
| passwordInput.setAttribute('type', type); | |
| this.innerHTML = type === 'password' ? '<i class="fas fa-eye text-gray-400 hover:text-gray-600 cursor-pointer"></i>' : | |
| '<i class="fas fa-eye-slash text-gray-400 hover:text-gray-600 cursor-pointer"></i>'; | |
| }); | |
| // Form submission | |
| loginForm.addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| // Simulate loading | |
| submitBtn.innerHTML = '<i class="fas fa-spinner fa-spin mr-2"></i> Signing in...'; | |
| submitBtn.disabled = true; | |
| // Simulate API call | |
| setTimeout(function() { | |
| // Reset button | |
| submitBtn.innerHTML = 'Sign In'; | |
| submitBtn.disabled = false; | |
| // Get form values | |
| const email = document.getElementById('email').value; | |
| const password = document.getElementById('password').value; | |
| // Simple validation | |
| if (!email || !password) { | |
| loginForm.classList.add('shake'); | |
| setTimeout(() => loginForm.classList.remove('shake'), 500); | |
| return; | |
| } | |
| // Show dashboard after successful login | |
| document.getElementById('loginContainer').classList.add('hidden'); | |
| document.getElementById('dashboardContainer').classList.remove('hidden'); | |
| // In a real app, you would make an API call here | |
| // fetch('/api/login', { | |
| // method: 'POST', | |
| // headers: { 'Content-Type': 'application/json' }, | |
| // body: JSON.stringify({ email, password }) | |
| // }) | |
| // .then(response => response.json()) | |
| // .then(data => { | |
| // // Handle response | |
| // }) | |
| // .catch(error => { | |
| // console.error('Error:', error); | |
| // }); | |
| }, 1500); | |
| }); | |
| // Toggle between login and signup forms | |
| toggleAuth.addEventListener('click', function() { | |
| isLogin = !isLogin; | |
| if (isLogin) { | |
| loginForm.classList.remove('hidden'); | |
| signupForm.classList.add('hidden'); | |
| toggleAuth.textContent = 'Switch to Sign Up'; | |
| authToggleText.innerHTML = 'Don\'t have an account? <a href="#" class="text-indigo-600 hover:text-indigo-500 font-medium">Sign up</a>'; | |
| } else { | |
| loginForm.classList.add('hidden'); | |
| signupForm.classList.remove('hidden'); | |
| toggleAuth.textContent = 'Switch to Login'; | |
| authToggleText.innerHTML = 'Already have an account? <a href="#" class="text-indigo-600 hover:text-indigo-500 font-medium">Login</a>'; | |
| } | |
| }); | |
| // Toggle signup password visibility | |
| toggleSignupPassword.addEventListener('click', function() { | |
| const type = signupPassword.getAttribute('type') === 'password' ? 'text' : 'password'; | |
| signupPassword.setAttribute('type', type); | |
| this.innerHTML = type === 'password' ? '<i class="fas fa-eye text-gray-400 hover:text-gray-600 cursor-pointer"></i>' : | |
| '<i class="fas fa-eye-slash text-gray-400 hover:text-gray-600 cursor-pointer"></i>'; | |
| }); | |
| // Signup form submission | |
| signupForm.addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| // Simulate loading | |
| signupBtn.innerHTML = '<i class="fas fa-spinner fa-spin mr-2"></i> Creating account...'; | |
| signupBtn.disabled = true; | |
| // Simulate API call | |
| setTimeout(function() { | |
| // Reset button | |
| signupBtn.innerHTML = 'Create Account'; | |
| signupBtn.disabled = false; | |
| // Get form values | |
| const name = document.getElementById('signupName').value; | |
| const email = document.getElementById('signupEmail').value; | |
| const password = document.getElementById('signupPassword').value; | |
| const confirmPassword = document.getElementById('confirmPassword').value; | |
| // Simple validation | |
| if (!name || !email || !password || !confirmPassword) { | |
| signupForm.classList.add('shake'); | |
| setTimeout(() => signupForm.classList.remove('shake'), 500); | |
| return; | |
| } | |
| if (password !== confirmPassword) { | |
| alert('Passwords do not match!'); | |
| return; | |
| } | |
| // For demo purposes, just show an alert | |
| alert(`Account created for:\nName: ${name}\nEmail: ${email}`); | |
| // Switch back to login form | |
| isLogin = true; | |
| loginForm.classList.remove('hidden'); | |
| signupForm.classList.add('hidden'); | |
| toggleAuth.textContent = 'Switch to Sign Up'; | |
| authToggleText.innerHTML = 'Don\'t have an account? <a href="#" class="text-indigo-600 hover:text-indigo-500 font-medium">Sign up</a>'; | |
| }, 1500); | |
| }); | |
| // Make the toggle text clickable | |
| authToggleText.addEventListener('click', function(e) { | |
| if (e.target.tagName === 'A') { | |
| e.preventDefault(); | |
| toggleAuth.click(); | |
| } | |
| }); | |
| // Logout functionality | |
| document.getElementById('logoutBtn')?.addEventListener('click', function() { | |
| document.getElementById('dashboardContainer').classList.add('hidden'); | |
| document.getElementById('loginContainer').classList.remove('hidden'); | |
| }); | |
| }); | |
| </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=Galladka/test" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |