Spaces:
Running
Running
Download create-project.html from bipamoh984/undefined: direct link, hf CLI and curl.
- Browser
- Download file 16 kB
-
https://huggingface.co/spaces/bipamoh984/undefined/resolve/main/create-project.html
- Command line
-
hf download hf://spaces/bipamoh984/undefined/create-project.html
-
curl -L -o create-project.html https://huggingface.co/spaces/bipamoh984/undefined/resolve/main/create-project.html
16 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 hover:bg-blue-700 transition">ورود</a> | |
| </div> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Create Project Section --> | |
| <section class="py-20"> | |
| <div class="max-w-4xl mx-auto"> | |
| <div class="bg-white rounded-lg shadow-xl p-8"> | |
| <h2 class="text-3xl font-bold text-center mb-8">ثبت پروژه جدید</h2> | |
| <form id="createProjectForm" onsubmit="handleCreateProject(event)"> | |
| <!-- Project Title --> | |
| <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> | |
| <!-- Category --> | |
| <div class="mb-6"> | |
| <label class="block text-gray-700 font-semibold mb-2">دستهبندی *</label> | |
| <select required class="w-full px-4 py-3 border rounded-lg focus:outline-none focus:border-blue-500"> | |
| <option value="">انتخاب کنید</option> | |
| <option>برنامه نویسی وب</option> | |
| <option>موبایل اپلیکیشن</option> | |
| <option>طراحی گرافیک</option> | |
| <option>دیجیتال مارکتینگ</option> | |
| <option>نوشتن و محتوا</option> | |
| <option>داده و علم</option> | |
| <option>مهندسی و معماری</option> | |
| <option>ترجمه</option> | |
| <option>موسیقی و صدا</option> | |
| <option>ویدیو و انیمیشن</option> | |
| </select> | |
| </div> | |
| <!-- Description --> | |
| <div class="mb-6"> | |
| <label class="block text-gray-700 font-semibold mb-2">توضیحات کامل پروژه *</label> | |
| <textarea required rows="6" class="w-full px-4 py-3 border rounded-lg focus:outline-none focus:border-blue-500" placeholder="جزئیات کامل پروژه خود را توضیح دهید..."></textarea> | |
| <p class="text-sm text-gray-500 mt-1">حداقل 100 کاراکتر</p> | |
| </div> | |
| <!-- Skills Required --> | |
| <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="مهارتها را با ویرگول جدا کنید (مثال: React, Node.js, MongoDB)"> | |
| </div> | |
| <!-- Budget --> | |
| <div class="grid md:grid-cols-2 gap-6 mb-6"> | |
| <div> | |
| <label class="block text-gray-700 font-semibold mb-2">بودجه پروژه (تومان) *</label> | |
| <input type="number" required class="w-full px-4 py-3 border rounded-lg focus:outline-none focus:border-blue-500" placeholder="مبلغ مورد نظر"> | |
| </div> | |
| <div> | |
| <label class="block text-gray-700 font-semibold mb-2">نوع بودجه</label> | |
| <select class="w-full px-4 py-3 border rounded-lg focus:outline-none focus:border-blue-500"> | |
| <option>ثابت</option> | |
| <option>ساعتی</option> | |
| </select> | |
| </div> | |
| </div> | |
| <!-- Duration --> | |
| <div class="mb-6"> | |
| <label class="block text-gray-700 font-semibold mb-2">زمان انجام پروژه *</label> | |
| <select required class="w-full px-4 py-3 border rounded-lg focus:outline-none focus:border-blue-500"> | |
| <option value="">انتخاب کنید</option> | |
| <option>کمتر از 1 هفته</option> | |
| <option>1 تا 2 هفته</option> | |
| <option>2 تا 4 هفته</option> | |
| <option>1 تا 3 ماه</option> | |
| <option>3 تا 6 ماه</option> | |
| <option>بیش از 6 ماه</option> | |
| </select> | |
| </div> | |
| <!-- Project Type --> | |
| <div class="mb-6"> | |
| <label class="block text-gray-700 font-semibold mb-2">نوع پروژه</label> | |
| <div class="space-y-2"> | |
| <label class="flex items-center"> | |
| <input type="radio" name="projectType" value="one-time" class="ml-2" checked> | |
| <span>یکباره</span> | |
| </label> | |
| <label class="flex items-center"> | |
| <input type="radio" name="projectType" value="ongoing" class="ml-2"> | |
| <span>پروژه بلندمدت</span> | |
| </label> | |
| </div> | |
| </div> | |
| <!-- Attachments --> | |
| <div class="mb-6"> | |
| <label class="block text-gray-700 font-semibold mb-2">فایلهای پیوست (اختیاری)</label> | |
| <div class="border-2 border-dashed border-gray-300 rounded-lg p-6 text-center"> | |
| <i data-feather="upload-cloud" class="w-12 h-12 text-gray-400 mx-auto mb-2"></i> | |
| <p class="text-gray-600">فایلها را اینجا بکشید یا کلیک کنید</p> | |
| <p class="text-sm text-gray-500">حداکثر حجم: 10MB - فرمتهای مجاز: PDF, DOC, ZIP, JPG, PNG</p> | |
| <input type="file" multiple class="hidden" id="fileInput"> | |
| </div> | |
| </div> | |
| <!-- Visibility --> | |
| <div class="mb-6"> | |
| <label class="flex items-center"> | |
| <input type="checkbox" class="ml-2"> | |
| <span class="text-gray-700">فقط فریلنسرهای verified بتوانند پیشنهاد دهند</span> | |
| </label> | |
| </div> | |
| <!-- Terms --> | |
| <div class="mb-8"> | |
| <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 --> | |
| <div class="flex space-x-reverse space-x-4"> | |
| <button type="submit" class="flex-1 bg-blue-600 text-white py-3 rounded-lg hover:bg-blue-700 transition font-semibold"> | |
| ثبت پروژه | |
| </button> | |
| <button type="button" onclick="window.location.href='projects.html'" class="flex-1 bg-gray-200 text-gray-700 py-3 rounded-lg hover:bg-gray-300 transition font-semibold"> | |
| انصراف | |
| </button> | |
| </div> | |
| </form> | |
| </div> | |
| </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(); | |
| // Handle file upload area click | |
| document.querySelector('.border-dashed').addEventListener('click', function() { | |
| document.getElementById('fileInput').click(); | |
| }); | |
| // Handle drag and drop | |
| const dropZone = document.querySelector('.border-dashed'); | |
| dropZone.addEventListener('dragover', function(e) { | |
| e.preventDefault(); | |
| this.classList.add('border-blue-500', 'bg-blue-50'); | |
| }); | |
| dropZone.addEventListener('dragleave', function(e) { | |
| e.preventDefault(); | |
| this.classList.remove('border-blue-500', 'bg-blue-50'); | |
| }); | |
| dropZone.addEventListener('drop', function(e) { | |
| e.preventDefault(); | |
| this.classList.remove('border-blue-500', 'bg-blue-50'); | |
| const files = e.dataTransfer.files; | |
| handleFiles(files); | |
| }); | |
| document.getElementById('fileInput').addEventListener('change', function(e) { | |
| handleFiles(e.target.files); | |
| }); | |
| function handleFiles(files) { | |
| // In a real app, handle file upload | |
| console.log('Files uploaded:', files); | |
| showToast(`${files.length} فایل آپلود شد`); | |
| } | |
| // Handle project creation | |
| function handleCreateProject(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 projects page after 2 seconds | |
| setTimeout(() => { | |
| window.location.href = 'projects.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> | |