File size: 26,762 Bytes
34ee8af | 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 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 | <!DOCTYPE html>
<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> |