File size: 18,285 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
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
<!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>