Spaces:
Running
Running
File size: 16,004 Bytes
6acef22 | 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 | <!DOCTYPE html>
<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>
|