undefined / index.html
bipamoh984's picture
این صفحه پروفایل فریلنسر ناقص تولید شد، کاملش کن و ادامه صفحات رو هم بساز
6acef22 verified
Raw History Blame Contribute Delete
14.6 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 rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<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); }
}
.fade-in {
animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
</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>
<!-- Hero Section -->
<section class="bg-gradient-to-l from-blue-600 to-blue-800 text-white py-20">
<div class="max-w-7xl mx-auto px-4">
<div class="text-center">
<h1 class="text-4xl md:text-6xl font-bold mb-6 fade-in">به پلتفرم فریلنسری مدرن خوش آمدید</h1>
<p class="text-xl mb-8 fade-in">بهترین پروژه‌ها را از بهترین فریلنسرها دریافت کنید</p>
<div class="max-w-2xl 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>
</div>
</section>
<!-- Categories Section -->
<section class="py-16">
<div class="max-w-7xl mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12">دسته‌بندی خدمات</h2>
<div class="grid grid-cols-2 md:grid-cols-4 gap-6">
<div class="bg-white p-6 rounded-lg shadow-lg hover:shadow-xl transition cursor-pointer">
<i data-feather="code" class="w-12 h-12 text-blue-600 mb-4"></i>
<h3 class="font-semibold text-lg">برنامه نویسی</h3>
<p class="text-gray-600 mt-2">245 پروژه فعال</p>
</div>
<div class="bg-white p-6 rounded-lg shadow-lg hover:shadow-xl transition cursor-pointer">
<i data-feather="pen-tool" class="w-12 h-12 text-purple-600 mb-4"></i>
<h3 class="font-semibold text-lg">طراحی گرافیک</h3>
<p class="text-gray-600 mt-2">189 پروژه فعال</p>
</div>
<div class="bg-white p-6 rounded-lg shadow-lg hover:shadow-xl transition cursor-pointer">
<i data-feather="smartphone" class="w-12 h-12 text-green-600 mb-4"></i>
<h3 class="font-semibold text-lg">موبایل اپ</h3>
<p class="text-gray-600 mt-2">156 پروژه فعال</p>
</div>
<div class="bg-white p-6 rounded-lg shadow-lg hover:shadow-xl transition cursor-pointer">
<i data-feather="trending-up" class="w-12 h-12 text-orange-600 mb-4"></i>
<h3 class="font-semibold text-lg">دیجیتال مارکتینگ</h3>
<p class="text-gray-600 mt-2">203 پروژه فعال</p>
</div>
</div>
</div>
</section>
<!-- Latest Projects -->
<section class="py-16 bg-gray-100">
<div class="max-w-7xl mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12">جدیدترین پروژه‌ها</h2>
<div id="latestProjects" class="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Projects will be loaded here -->
</div>
<div class="text-center mt-8">
<a href="projects.html" class="inline-block bg-blue-600 text-white px-8 py-3 rounded-lg hover:bg-blue-700 transition">
مشاهده همه پروژه‌ها
</a>
</div>
</div>
</section>
<!-- Top Freelancers -->
<section class="py-16">
<div class="max-w-7xl mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12">بهترین برنامه‌نویسان</h2>
<div id="topFreelancers" class="grid md:grid-cols-2 lg:grid-cols-4 gap-6">
<!-- Freelancers will be loaded here -->
</div>
<div class="text-center mt-8">
<a href="top-freelancers.html" class="inline-block bg-blue-600 text-white px-8 py-3 rounded-lg hover:bg-blue-700 transition">
مشاهده همه فریلنسرها
</a>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-12">
<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();
// Load latest projects
function loadLatestProjects() {
const projects = [
{ title: "سایت فروشگاهی با ووکامرس", budget: "2,000,000 تومان", category: "وب", bids: 12 },
{ title: "اپلیکیشن موبایل اندروید", budget: "5,000,000 تومان", category: "موبایل", bids: 8 },
{ title: "طراحی لوگو و هویت بصری", budget: "500,000 تومان", category: "طراحی", bids: 15 }
];
const container = document.getElementById('latestProjects');
container.innerHTML = projects.map(project => `
<div class="bg-white p-6 rounded-lg shadow-lg hover:shadow-xl transition cursor-pointer" onclick="window.location.href='project-detail.html'">
<h3 class="font-semibold text-lg mb-2">${project.title}</h3>
<div class="flex justify-between items-center text-gray-600">
<span class="text-sm">${project.category}</span>
<span class="font-bold text-blue-600">${project.budget}</span>
</div>
<div class="mt-4 flex items-center justify-between">
<span class="text-sm text-gray-500">${project.bids} پیشنهاد</span>
<span class="text-xs bg-green-100 text-green-600 px-2 py-1 rounded">جدید</span>
</div>
</div>
`).join('');
}
// Load top freelancers
function loadTopFreelancers() {
const freelancers = [
{ name: "علی رضایی", skill: "React Developer", rate: "500,000 تومان/ساعت", rating: 4.9 },
{ name: "سارا محمدی", skill: "UI/UX Designer", rate: "400,000 تومان/ساعت", rating: 4.8 },
{ name: "رضا اکبری", skill: "Full Stack Developer", rate: "600,000 تومان/ساعت", rating: 5.0 },
{ name: "مریم حسینی", skill: "Mobile Developer", rate: "450,000 تومان/ساعت", rating: 4.7 }
];
const container = document.getElementById('topFreelancers');
container.innerHTML = freelancers.map(freelancer => `
<div class="bg-white p-6 rounded-lg shadow-lg hover:shadow-xl transition cursor-pointer text-center" onclick="window.location.href='freelancer-profile.html'">
<img src="http://static.photos/people/200x200/${Math.floor(Math.random() * 100)}" alt="${freelancer.name}" class="w-20 h-20 rounded-full mx-auto mb-4">
<h3 class="font-semibold text-lg">${freelancer.name}</h3>
<p class="text-gray-600 text-sm mt-1">${freelancer.skill}</p>
<div class="mt-3">
<div class="flex items-center justify-center text-yellow-500">
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<span class="mr-1 text-gray-700">${freelancer.rating}</span>
</div>
<p class="text-blue-600 font-semibold mt-2">${freelancer.rate}</p>
</div>
</div>
`).join('');
feather.replace();
}
// Search projects
function searchProjects() {
const query = document.getElementById('searchInput').value;
if (query) {
showToast(`جستجو برای: ${query}`);
setTimeout(() => {
window.location.href = `projects.html?search=${encodeURIComponent(query)}`;
}, 1000);
}
}
// 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() {
loadLatestProjects();
loadTopFreelancers();
});
// Handle Enter key in search
document.getElementById('searchInput').addEventListener('keypress', function(e) {
if (e.key === 'Enter') {
searchProjects();
}
});
</script>
</body>
</html>