Spaces:
Running
Running
Download login.html from bipamoh984/undefined: direct link, hf CLI and curl.
- Browser
- Download file 11 kB
-
https://huggingface.co/spaces/bipamoh984/undefined/resolve/main/login.html
- Command line
-
hf download hf://spaces/bipamoh984/undefined/login.html
-
curl -L -o login.html https://huggingface.co/spaces/bipamoh984/undefined/resolve/main/login.html
11 kB
| <html lang="fa" dir="rtl"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>ورود - کاریاب پیشرو</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <link href="https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;900&display=swap" rel="stylesheet"> | |
| <style> | |
| * { font-family: 'Vazirmatn', sans-serif; } | |
| .loader { | |
| border: 3px solid #f3f3f3; | |
| border-top: 3px solid #3498db; | |
| border-radius: 50%; | |
| width: 40px; | |
| height: 40px; | |
| animation: spin 1s linear infinite; | |
| } | |
| @keyframes spin { | |
| 0% { transform: rotate(0deg); } | |
| 100% { transform: rotate(360deg); } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <!-- Navigation --> | |
| <nav class="bg-white shadow-lg sticky top-0 z-50"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="flex justify-between h-16"> | |
| <div class="flex items-center"> | |
| <a href="index.html" class="flex items-center space-x-reverse space-x-2"> | |
| <i data-feather="briefcase" class="w-8 h-8 text-blue-600"></i> | |
| <span class="font-bold text-xl text-gray-800">کاریاب پیشرو</span> | |
| </a> | |
| </div> | |
| <div class="hidden md:flex items-center space-x-reverse space-x-6"> | |
| <a href="index.html" class="text-gray-700 hover:text-blue-600 transition">خانه</a> | |
| <a href="freelancers.html" class="text-gray-700 hover:text-blue-600 transition">فریلنسرها</a> | |
| <a href="projects.html" class="text-gray-700 hover:text-blue-600 transition">پروژهها</a> | |
| <a href="blog.html" class="text-gray-700 hover:text-blue-600 transition">وبلاگ</a> | |
| <a href="about.html" class="text-gray-700 hover:text-blue-600 transition">درباره ما</a> | |
| </div> | |
| <div class="flex items-center space-x-reverse space-x-3"> | |
| <a href="register.html" class="bg-gray-200 text-gray-700 px-4 py-2 rounded-lg hover:bg-gray-300 transition">ثبت نام</a> | |
| <a href="login.html" class="bg-blue-600 text-white px-4 py-2 rounded-lg">ورود</a> | |
| </div> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Login Section --> | |
| <section class="py-20"> | |
| <div class="max-w-md mx-auto bg-white rounded-lg shadow-xl p-8"> | |
| <h2 class="text-3xl font-bold text-center mb-8">ورود</h2> | |
| <form id="loginForm" onsubmit="handleLogin(event)"> | |
| <!-- Email/Phone --> | |
| <div class="mb-6"> | |
| <label class="block text-gray-700 font-semibold mb-2">ایمیل یا شماره موبایل</label> | |
| <input type="text" required class="w-full px-4 py-3 border rounded-lg focus:outline-none focus:border-blue-500" placeholder="ایمیل یا شماره موبایل خود را وارد کنید"> | |
| </div> | |
| <!-- Password --> | |
| <div class="mb-6"> | |
| <label class="block text-gray-700 font-semibold mb-2">رمز عبور</label> | |
| <div class="relative"> | |
| <input type="password" id="password" required class="w-full px-4 py-3 border rounded-lg focus:outline-none focus:border-blue-500" placeholder="رمز عبور خود را وارد کنید"> | |
| <button type="button" onclick="togglePassword()" class="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-600"> | |
| <i data-feather="eye" id="eyeIcon" class="w-5 h-5"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Remember Me & Forgot Password --> | |
| <div class="flex justify-between items-center mb-6"> | |
| <label class="flex items-center"> | |
| <input type="checkbox" class="ml-2"> | |
| <span class="text-sm text-gray-600">مرا به خاطر بسپار</span> | |
| </label> | |
| <a href="#" class="text-sm text-blue-600 hover:underline">رمز عبور را فراموش کردهام</a> | |
| </div> | |
| <!-- Submit Button --> | |
| <button type="submit" class="w-full bg-blue-600 text-white py-3 rounded-lg hover:bg-blue-700 transition font-semibold"> | |
| ورود | |
| </button> | |
| <!-- Register Link --> | |
| <div class="text-center mt-6"> | |
| <span class="text-gray-600">حساب کاربری ندارید؟</span> | |
| <a href="register.html" class="text-blue-600 hover:underline font-semibold">ثبت نام</a> | |
| </div> | |
| <!-- Social Login --> | |
| <div class="mt-8"> | |
| <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">یا ورود با</span> | |
| </div> | |
| </div> | |
| <div class="mt-6 grid grid-cols-2 gap-3"> | |
| <button type="button" class="flex justify-center items-center px-4 py-2 border border-gray-300 rounded-lg hover:bg-gray-50 transition"> | |
| <i data-feather="mail" class="w-5 h-5 ml-2"></i> | |
| </button> | |
| <button type="button" class="flex justify-center items-center px-4 py-2 border border-gray-300 rounded-lg hover:bg-gray-50 transition"> | |
| <i data-feather="github" class="w-5 h-5 ml-2"></i> | |
| GitHub | |
| </button> | |
| </div> | |
| </div> | |
| </form> | |
| </div> | |
| </section> | |
| <!-- Footer --> | |
| <footer class="bg-gray-800 text-white py-12 mt-20"> | |
| <div class="max-w-7xl mx-auto px-4"> | |
| <div class="grid md:grid-cols-4 gap-8"> | |
| <div> | |
| <h3 class="font-bold text-lg mb-4">کاریاب پیشرو</h3> | |
| <p class="text-gray-400">پلتفرم ارتباط پروژهدهندگان با فریلنسرهای حرفهای</p> | |
| </div> | |
| <div> | |
| <h4 class="font-semibold mb-4">لینکهای سریع</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="about.html" class="text-gray-400 hover:text-white transition">درباره ما</a></li> | |
| <li><a href="rules.html" class="text-gray-400 hover:text-white transition">قوانین سایت</a></li> | |
| <li><a href="blog.html" class="text-gray-400 hover:text-white transition">وبلاگ</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="font-semibold mb-4">خدمات</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="create-project.html" class="text-gray-400 hover:text-white transition">ثبت پروژه</a></li> | |
| <li><a href="freelancers.html" class="text-gray-400 hover:text-white transition">پیدا کردن فریلنسر</a></li> | |
| <li><a href="top-freelancers.html" class="text-gray-400 hover:text-white transition">فریلنسرهای برتر</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="font-semibold mb-4">تماس با ما</h4> | |
| <p class="text-gray-400">info@karyab-pishro.ir</p> | |
| <p class="text-gray-400">021-12345678</p> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400"> | |
| <p>© 2024 کاریاب پیشرو. تمامی حقوق محفوظ است.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| <!-- Notification Toast --> | |
| <div id="toast" class="fixed bottom-4 right-4 bg-green-600 text-white px-6 py-3 rounded-lg shadow-lg hidden transition-all transform translate-y-full"> | |
| <span id="toastMessage"></span> | |
| </div> | |
| <script> | |
| feather.replace(); | |
| // Toggle password visibility | |
| function togglePassword() { | |
| const passwordInput = document.getElementById('password'); | |
| const eyeIcon = document.getElementById('eyeIcon'); | |
| if (passwordInput.type === 'password') { | |
| passwordInput.type = 'text'; | |
| eyeIcon.setAttribute('data-feather', 'eye-off'); | |
| } else { | |
| passwordInput.type = 'password'; | |
| eyeIcon.setAttribute('data-feather', 'eye'); | |
| } | |
| feather.replace(); | |
| } | |
| // Handle login | |
| function handleLogin(event) { | |
| event.preventDefault(); | |
| // Show loading | |
| const submitBtn = event.target.querySelector('button[type="submit"]'); | |
| const originalText = submitBtn.textContent; | |
| submitBtn.innerHTML = '<div class="loader mx-auto" style="width: 24px; height: 24px;"></div>'; | |
| submitBtn.disabled = true; | |
| // Simulate API call | |
| setTimeout(() => { | |
| submitBtn.textContent = originalText; | |
| submitBtn.disabled = false; | |
| showToast('ورود با موفقیت انجام شد!'); | |
| // Redirect to dashboard after 2 seconds | |
| setTimeout(() => { | |
| window.location.href = 'client-dashboard.html'; | |
| }, 2000); | |
| }, 2000); | |
| } | |
| // Show toast notification | |
| function showToast(message) { | |
| const toast = document.getElementById('toast'); | |
| const toastMessage = document.getElementById('toastMessage'); | |
| toastMessage.textContent = message; | |
| toast.classList.remove('hidden', 'translate-y-full'); | |
| setTimeout(() => { | |
| toast.classList.add('translate-y-full'); | |
| setTimeout(() => { | |
| toast.classList.add('hidden'); | |
| }, 300); | |
| }, 3000); | |
| } | |
| </script> | |
| </body> | |
| </html> | |