undefined / projects.html
bipamoh984's picture
این صفحه پروفایل فریلنسر ناقص تولید شد، کاملش کن و ادامه صفحات رو هم بساز
6acef22 verified
Raw History Blame Contribute Delete
18.3 kB
<!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; }
</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-blue-600 font-semibold">پروژه‌ها</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>
<!-- Hero Section -->
<section class="bg-gradient-to-l from-blue-600 to-blue-800 text-white py-16">
<div class="max-w-7xl mx-auto px-4">
<h1 class="text-4xl font-bold text-center mb-6">پیدا کردن پروژه‌های عالی</h1>
<div class="max-w-3xl mx-auto">
<div class="bg-white rounded-lg p-2 flex">
<input type="text" id="searchInput" placeholder="جستجوی پروژه..." class="flex-1 px-4 py-3 text-gray-700 outline-none">
<button onclick="searchProjects()" class="bg-blue-600 text-white px-6 py-3 rounded-lg hover:bg-blue-700 transition">
<i data-feather="search" class="w-5 h-5"></i>
</button>
</div>
</div>
</div>
</section>
<!-- Filters Section -->
<section class="py-8 bg-white shadow-sm">
<div class="max-w-7xl mx-auto px-4">
<div class="flex flex-wrap gap-4 items-center">
<div>
<label class="text-gray-700 font-semibold">دسته‌بندی:</label>
<select class="mr-2 px-4 py-2 border rounded-lg focus:outline-none focus:border-blue-500">
<option>همه دسته‌ها</option>
<option>برنامه نویسی وب</option>
<option>موبایل اپ</option>
<option>طراحی گرافیک</option>
<option>دیجیتال مارکتینگ</option>
<option>نوشتن و محتوا</option>
</select>
</div>
<div>
<label class="text-gray-700 font-semibold">بودجه:</label>
<select class="mr-2 px-4 py-2 border rounded-lg focus:outline-none focus:border-blue-500">
<option>همه بازه‌ها</option>
<option>زیر 500 هزار</option>
<option>500 هزار - 1 میلیون</option>
<option>1 - 3 میلیون</option>
<option>3 - 5 میلیون</option>
<option>بیش از 5 میلیون</option>
</select>
</div>
<div>
<label class="text-gray-700 font-semibold">مهارت:</label>
<select class="mr-2 px-4 py-2 border rounded-lg focus:outline-none focus:border-blue-500">
<option>همه مهارت‌ها</option>
<option>JavaScript</option>
<option>Python</option>
<option>React</option>
<option>Node.js</option>
<option>PHP</option>
</select>
</div>
<div>
<label class="text-gray-700 font-semibold">مرتب‌سازی:</label>
<select class="mr-2 px-4 py-2 border rounded-lg focus:outline-none focus:border-blue-500">
<option>جدیدترین</option>
<option>پیشنهادهای بیشتر</option>
<option>بودجه بیشتر</option>
<option>زمان باقی‌مانده کمتر</option>
</select>
</div>
</div>
</div>
</section>
<!-- Projects Tabs -->
<section class="py-8">
<div class="max-w-7xl mx-auto px-4">
<div class="flex space-x-reverse space-x-4 border-b">
<button onclick="filterProjects('all')" class="tab-btn pb-4 px-2 border-b-2 border-blue-600 text-blue-600 font-semibold">همه پروژه‌ها</button>
<button onclick="filterProjects('ongoing')" class="tab-btn pb-4 px-2 border-b-2 border-transparent hover:border-gray-300 transition">در حال انجام</button>
<button onclick="filterProjects('completed')" class="tab-btn pb-4 px-2 border-b-2 border-transparent hover:border-gray-300 transition">انجام شده</button>
</div>
</div>
</section>
<!-- Projects List -->
<section class="py-8">
<div class="max-w-7xl mx-auto px-4">
<div id="projectsList" class="space-y-6">
<!-- Projects will be loaded here -->
</div>
<!-- Pagination -->
<div class="flex justify-center mt-12">
<nav class="flex space-x-reverse space-x-2">
<button class="px-4 py-2 bg-white border rounded-lg hover:bg-gray-50 transition">
<i data-feather="chevron-right" class="w-5 h-5"></i>
</button>
<button class="px-4 py-2 bg-blue-600 text-white rounded-lg">1</button>
<button class="px-4 py-2 bg-white border rounded-lg hover:bg-gray-50 transition">2</button>
<button class="px-4 py-2 bg-white border rounded-lg hover:bg-gray-50 transition">3</button>
<button class="px-4 py-2 bg-white border rounded-lg hover:bg-gray-50 transition">
<i data-feather="chevron-left" class="w-5 h-5"></i>
</button>
</nav>
</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>&copy; 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();
// Projects data
const projectsData = {
all: [
{
title: "طراحی سایت فروشگاهی با ووکامرس",
description: "نیاز به طراحی یک سایت فروشگاهی کامل با وردپرس و ووکامرس برای فروش محصولات دیجیتال",
budget: "3,000,000 تومان",
category: "وب",
skills: ["WordPress", "WooCommerce", "PHP"],
bids: 15,
timeLeft: "3 روز",
status: "open",
client: "شرکت تجارت الکترونیک"
},
{
title: "اپلیکیشن مدیریت وظایف اندروید",
description: "توسعه اپلیکیشن مدیریت وظایف و یادآور برای اندروید با طراحی مدرن",
budget: "5,000,000 تومان",
category: "موبایل",
skills: ["Android", "Java", "Kotlin"],
bids: 8,
timeLeft: "5 روز",
status: "open",
client: "استارتاپ تکنو"
},
{
title: "طراحی لوگو و هویت بصری برند",
description: "طراحی لوگو و هویت بصری کامل برای یک برند جدید در حوزه غذایی",
budget: "1,500,000 تومان",
category: "طراحی",
skills: ["Photoshop", "Illustrator", "Branding"],
bids: 23,
timeLeft: "2 روز",
status: "open",
client: "رستوران سنتی"
},
{
title: "بهینه‌سازی سئو سایت",
description: "بهینه‌سازی کامل سئو سایت شرکت برای رسیدن به رتبه برتر گوگل",
budget: "2,500,000 تومان ماهانه",
category: "دیجیتال مارکتینگ",
skills: ["SEO", "Google Analytics", "Content"],
bids: 12,
timeLeft: "7 روز",
status: "open",
client: "شرکت خدماتی"
}
],
ongoing: [
{
title: "سایت خبری آنلاین",
description: "توسعه پلتفرم خبری با مدیریت محتوا",
budget: "4,000,000 تومان",
category: "وب",
skills: ["React", "Node.js"],
bids: 10,
timeLeft: "10 روز",
status: "ongoing",
client: "رسانه آنلاین"
}
],
completed: [
{
title: "پورتال آموزشی",
description: "طراحی پورتال آموزشی برای دانشگاه",
budget: "6,000,000 تومان",
category: "وب",
skills: ["Laravel", "Vue.js"],
bids: 18,
timeLeft: "اتمام یافته",
status: "completed",
client: "دانشگاه فنی"
}
]
};
// Load projects
function loadProjects(type = 'all') {
const container = document.getElementById('projectsList');
const projects = projectsData[type];
container.innerHTML = projects.map(project => `
<div class="bg-white rounded-lg shadow-lg hover:shadow-xl transition p-6">
<div class="flex justify-between items-start mb-4">
<div>
<h3 class="font-bold text-xl mb-2 cursor-pointer hover:text-blue-600 transition" onclick="window.location.href='project-detail.html'">
${project.title}
</h3>
<p class="text-gray-600">${project.description}</p>
</div>
<div class="text-left">
<span class="bg-green-100 text-green-600 px-3 py-1 rounded-full text-sm font-semibold">
${project.budget}
</span>
</div>
</div>
<div class="flex flex-wrap gap-2 mb-4">
${project.skills.map(skill => `
<span class="bg-blue-100 text-blue-600 px-2 py-1 rounded text-xs">${skill}</span>
`).join('')}
</div>
<div class="flex justify-between items-center text-sm text-gray-600">
<div class="flex items-center space-x-reverse space-x-4">
<span>
<i data-feather="briefcase" class="w-4 h-4 inline ml-1"></i>
${project.bids} پیشنهاد
</span>
<span>
<i data-feather="clock" class="w-4 h-4 inline ml-1"></i>
${project.timeLeft}
</span>
<span>
<i data-feather="user" class="w-4 h-4 inline ml-1"></i>
${project.client}
</span>
</div>
<button onclick="window.location.href='bid-project.html'" class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition">
ارسال پیشنهاد
</button>
</div>
</div>
`).join('');
feather.replace();
}
// Filter projects
function filterProjects(type) {
// Update tab styles
document.querySelectorAll('.tab-btn').forEach(btn => {
btn.classList.remove('border-blue-600', 'text-blue-600', 'font-semibold');
btn.classList.add('border-transparent');
});
event.target.classList.add('border-blue-600', 'text-blue-600', 'font-semibold');
event.target.classList.remove('border-transparent');
// Load projects
loadProjects(type);
}
// Search projects
function searchProjects() {
const query = document.getElementById('searchInput').value;
if (query) {
showToast(`جستجو برای: ${query}`);
// In real app, this would filter the list
}
}
// 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);
}
// Initialize page
document.addEventListener('DOMContentLoaded', function() {
loadProjects();
});
// Handle Enter key in search
document.getElementById('searchInput').addEventListener('keypress', function(e) {
if (e.key === 'Enter') {
searchProjects();
}
});
</script>
</body>
</html>