Spaces:
Running
Running
Download register.html from bipamoh984/undefined: direct link, hf CLI and curl.
- Browser
- Download file 11.8 kB
-
https://huggingface.co/spaces/bipamoh984/undefined/resolve/main/register.html
- Command line
-
hf download hf://spaces/bipamoh984/undefined/register.html
-
curl -L -o register.html https://huggingface.co/spaces/bipamoh984/undefined/resolve/main/register.html
11.8 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-blue-600 text-white px-4 py-2 rounded-lg">ثبت نام</a> | |
| <a href="login.html" class="bg-gray-200 text-gray-700 px-4 py-2 rounded-lg hover:bg-gray-300 transition">ورود</a> | |
| </div> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Register 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="registerForm" onsubmit="handleRegister(event)"> | |
| <!-- User Type Selection --> | |
| <div class="mb-6"> | |
| <label class="block text-gray-700 font-semibold mb-2">نوع کاربری</label> | |
| <div class="grid grid-cols-2 gap-4"> | |
| <label class="flex items-center justify-center p-4 border-2 rounded-lg cursor-pointer hover:bg-blue-50 transition"> | |
| <input type="radio" name="userType" value="client" class="ml-2" checked> | |
| <span>کارفرما</span> | |
| </label> | |
| <label class="flex items-center justify-center p-4 border-2 rounded-lg cursor-pointer hover:bg-blue-50 transition"> | |
| <input type="radio" name="userType" value="freelancer" class="ml-2"> | |
| <span>فریلنسر</span> | |
| </label> | |
| </div> | |
| </div> | |
| <!-- Full Name --> | |
| <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> | |
| <!-- Email --> | |
| <div class="mb-6"> | |
| <label class="block text-gray-700 font-semibold mb-2">ایمیل</label> | |
| <input type="email" required class="w-full px-4 py-3 border rounded-lg focus:outline-none focus:border-blue-500" placeholder="example@email.com"> | |
| </div> | |
| <!-- Phone --> | |
| <div class="mb-6"> | |
| <label class="block text-gray-700 font-semibold mb-2">شماره موبایل</label> | |
| <input type="tel" required class="w-full px-4 py-3 border rounded-lg focus:outline-none focus:border-blue-500" placeholder="09123456789"> | |
| </div> | |
| <!-- Password --> | |
| <div class="mb-6"> | |
| <label class="block text-gray-700 font-semibold mb-2">رمز عبور</label> | |
| <input type="password" required class="w-full px-4 py-3 border rounded-lg focus:outline-none focus:border-blue-500" placeholder="حداقل 8 کاراکتر"> | |
| </div> | |
| <!-- Confirm Password --> | |
| <div class="mb-6"> | |
| <label class="block text-gray-700 font-semibold mb-2">تکرار رمز عبور</label> | |
| <input type="password" required class="w-full px-4 py-3 border rounded-lg focus:outline-none focus:border-blue-500" placeholder="رمز عبور را تکرار کنید"> | |
| </div> | |
| <!-- Skills (for freelancers) --> | |
| <div id="skillsSection" class="mb-6 hidden"> | |
| <label class="block text-gray-700 font-semibold mb-2">مهارتها</label> | |
| <textarea class="w-full px-4 py-3 border rounded-lg focus:outline-none focus:border-blue-500" rows="3" placeholder="مهارتهای خود را با ویرگول جدا کنید"></textarea> | |
| </div> | |
| <!-- Terms --> | |
| <div class="mb-6"> | |
| <label class="flex items-center"> | |
| <input type="checkbox" required class="ml-2"> | |
| <span class="text-sm text-gray-600"> | |
| با ثبت نام، <a href="rules.html" class="text-blue-600 hover:underline">قوانین و مقررات</a> سایت را میپذیرم | |
| </span> | |
| </label> | |
| </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> | |
| <!-- Login Link --> | |
| <div class="text-center mt-6"> | |
| <span class="text-gray-600">قبلاً ثبت نام کردهاید؟</span> | |
| <a href="login.html" class="text-blue-600 hover:underline font-semibold">ورود</a> | |
| </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(); | |
| // Show/hide skills section based on user type | |
| document.querySelectorAll('input[name="userType"]').forEach(radio => { | |
| radio.addEventListener('change', function() { | |
| const skillsSection = document.getElementById('skillsSection'); | |
| if (this.value === 'freelancer') { | |
| skillsSection.classList.remove('hidden'); | |
| } else { | |
| skillsSection.classList.add('hidden'); | |
| } | |
| }); | |
| }); | |
| // Handle registration | |
| function handleRegister(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 login after 2 seconds | |
| setTimeout(() => { | |
| window.location.href = 'login.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> | |