File size: 15,784 Bytes
88517c5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>الكورسات والكتب | فقيه أكاديمي</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#FFC107',
                        secondary: '#1E3A8A',
                        accent: '#3B82F6'
                    }
                }
            }
        }
    </script>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');
        body {
            font-family: 'Tajawal', sans-serif;
        }
        .hero-pattern {
            background-image: radial-gradient(circle, rgba(255,193,7,0.1) 1px, transparent 1px);
            background-size: 20px 20px;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Navigation -->
    <nav class="bg-secondary text-white shadow-lg">
        <div class="container mx-auto px-4 py-3 flex justify-between items-center">
        <div class="flex flex-col items-center space-y-2">
            <a href="../pages/الرئيسية.html"><button class="lang-toggle" id="language-toggle"><img src="../images/شعار.png" style="width:130px;"></button></a>
            <span class="text-xl font-bold">فقيه أكاديمي</span>
        </div>
        
        <div class="hidden md:flex space-x-reverse space-x-8 text-xl">
            <a href="../index.html" class="hover:text-primary transition">الرئيسية</a>
            <a href="courses.html" class="hover:text-primary transition text-primary">الكورسات</a>
            <a href="#" class="hover:text-primary transition">المدرسون</a>
            <a href="#" class="hover:text-primary transition">طلابنا</a>
            <a href="#" class="hover:text-primary transition">عن الأكاديمية</a>
        </div>

        <div class="flex items-center space-x-4">
            <a href="../pages/تسجيل.html" class="bg-primary text-secondary px-4 py-2 rounded-lg font-medium hover:bg-yellow-600 transition">تسجيل الدخول</a>
            <button class="md:hidden">
                <i data-feather="menu"></i>
            </button>
        </div>
    </nav>

    <!-- Courses Hero Section -->
    <section class="hero-pattern py-16">
        <div class="container mx-auto px-4 text-center">
            <h1 class="text-4xl md:text-5xl font-bold text-secondary mb-6">الكورسات والكتب التعليمية</h1>
            <p class="text-gray-700 text-lg mb-8">اكتشف مجموعتنا الشاملة من الكورسات والكتب المصممة خصيصاً لتحقيق التفوق الأكاديمي</p>
        </div>
    </section>

    <!-- Filters Section -->
    <section class="py-8 bg-white shadow-sm">
        <div class="container mx-auto px-4">
            <div class="bg-gray-50 p-6 rounded-xl">
                <h3 class="text-xl font-bold text-secondary mb-4">فلتر الكتب والكورسات</h3>
                <div class="grid md:grid-cols-4 gap-4">
                    <!-- Grade Filter -->
                    <div>
                        <label class="block text-gray-700 mb-2 font-medium">الصف</label>
                        <select id="gradeFilter" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent">
                            <option value="">جميع الصفوف</option>
                            <option value="1">الصف الأول</option>
                            <option value="2">الصف الثاني</option>
                            <option value="3">الصف الثالث</option>
                            <option value="4">الصف الرابع</option>
                            <option value="5">الصف الخامس</option>
                            <option value="6">الصف السادس</option>
                            <option value="7">الصف السابع</option>
                            <option value="8">الصف الثامن</option>
                            <option value="9">الصف التاسع</option>
                            <option value="10">الصف العاشر</option>
                </select>
            </div>

            <!-- Subject Filter -->
            <div>
                <label class="block text-gray-700 mb-2 font-medium">المادة</label>
                <select id="subjectFilter" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent">
                    <option value="">جميع المواد</option>
                    <option value="arabic">اللغة العربية</option>
                    <option value="english">اللغة الإنجليزية</option>
                    <option value="math">الرياضيات</option>
                    <option value="social">الاجتماعيات</option>
                    <option value="religion">الدين</option>
                    <option value="professional">المهني</option>
                </select>
            </div>

            <!-- Semester Filter -->
            <div>
                <label class="block text-gray-700 mb-2 font-medium">الفصل</label>
                <select id="semesterFilter" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent">
                    <option value="">جميع الفصول</option>
                    <option value="1">الفصل الأول</option>
                    <option value="2">الفصل الثاني</option>
                </select>
            </div>

            <!-- Action Buttons -->
            <div class="flex items-end">
                <button onclick="filterCourses()" class="bg-primary text-secondary px-6 py-3 rounded-lg font-bold hover:bg-yellow-600 transition">تطبيق الفلتر</button>
            </div>
        </div>
    </div>
</section>

<!-- Courses Grid -->
<section class="py-16 bg-gray-50">
    <div class="container mx-auto px-4">
        <div id="coursesGrid" class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
            <!-- Course cards will be dynamically generated here -->
        </div>
    </div>
</section>

<!-- Footer -->
<footer class="bg-gray-900 text-white py-12">
    <div class="container mx-auto px-4">
        <div class="grid md:grid-cols-4 gap-8">
            <div>
                <div class="flex items-center space-x-2 mb-4">
                    <i data-feather="book-open" class="text-primary"></i>
                    <span class="text-xl font-bold">فقيه أكاديمي</span>
                </div>
                <p class="text-gray-400">منصة تعليمية متكاملة تقدم كورسات في العلوم الشرعية واللغة العربية بجودة عالية</p>
            </div>
            <div>
                <h4 class="text-lg font-bold mb-4">روابط سريعة</h4>
                <ul class="space-y-2">
                    <li><a href="../index.html" class="text-gray-400 hover:text-primary transition">الرئيسية</a></li>
                    <li><a href="courses.html" class="text-gray-400 hover:text-primary transition">الكورسات</a></li>
                    <li><a href="#" class="text-gray-400 hover:text-primary transition">المدرسون</a></li>
                    <li><a href="#" class="text-gray-400 hover:text-primary transition">عن الأكاديمية</a></li>
                </ul>
            </div>
            <div>
                <h4 class="text-lg font-bold mb-4">تواصل معنا</h4>
                <ul class="space-y-2">
                    <li class="flex items-center space-x-2">
                        <i data-feather="mail" class="w-4 h-4"></i>
                        <span class="text-gray-400">info@faqih.edu</span>
                    </li>
                    <li class="flex items-center space-x-2">
                        <i data-feather="phone" class="w-4 h-4"></i>
                        <span class="text-gray-400">+966 12 345 6789</span>
                    </li>
                    <li class="flex items-center space-x-2">
                            <i data-feather="map-pin" class="w-4 h-4"></i>
                            <span class="text-gray-400">المملكة العربية السعودية</span>
                        </li>
                    </ul>
                </div>
                <div>
                    <h4 class="text-lg font-bold mb-4">تابعنا</h4>
                    <div class="flex space-x-4">
                        <a href="#" class="bg-gray-800 w-10 h-10 rounded-full flex items-center justify-center hover:bg-primary transition">
                            <i data-feather="twitter" class="w-5 h-5"></i>
                        </a>
                        <a href="#" class="bg-gray-800 w-10 h-10 rounded-full flex items-center justify-center hover:bg-primary transition">
                            <i data-feather="instagram" class="w-5 h-5"></i>
                        </a>
                        <a href="#" class="bg-gray-800 w-10 h-10 rounded-full flex items-center justify-center hover:bg-primary transition">
                            <i data-feather="youtube" class="w-5 h-5"></i>
                        </a>
                    </div>
                </div>
            </div>
            <div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-500">
                <p>© 2023 فقيه أكاديمي. جميع الحقوق محفوظة</p>
            </div>
        </div>
    </footer>

    <script>
        // Sample courses data
        const coursesData = [
            {
                id: 1,
                title: "اللغة العربية - الصف الأول",
                description: "دروس متكاملة في اللغة العربية للصف الأول مع تمارين تفاعلية",
                grade: "1",
                subject: "arabic",
                semester: "1",
                price: "25 دينار",
                image: "http://static.photos/education/640x360/1",
                lessons: "30 درساً"
            },
            {
                id: 2,
                title: "الرياضيات - الصف الثاني",
                description: "شرح شامل لمادة الرياضيات مع أمثلة تطبيقية",
                grade: "2",
                subject: "math",
                semester: "1",
                price: "28 دينار",
                image: "http://static.photos/education/640x360/2",
                lessons: "35 درساً"
            },
            {
                id: 3,
                title: "اللغة الإنجليزية - الصف الثالث",
                description: "تعلم الإنجليزية من الصفر مع ناطقين أصليين",
                grade: "3",
                subject: "english",
                semester: "2",
                price: "30 دينار",
                image: "http://static.photos/education/640x360/3",
                lessons: "40 درساً"
            },
            {
                id: 4,
                title: "الاجتماعيات - الصف الرابع",
                description: "دراسة شاملة للتاريخ والجغرافيا والتربية الوطنية",
                grade: "4",
                subject: "social",
                semester: "1",
                price: "22 دينار",
                image: "http://static.photos/education/640x360/4",
                lessons: "25 درساً"
            },
            {
                id: 5,
                title: "الدين - الصف الخامس",
                description: "تعلم أحكام الفقه والعقيدة الإسلامية",
                grade: "5",
                subject: "religion",
                semester: "2",
                price: "20 دينار",
                image: "http://static.photos/education/640x360/5",
                lessons: "28 درساً"
            },
            {
                id: 6,
                title: "المهني - الصف السادس",
                description: "مهارات عملية وتقنية للمستقبل المهني",
                grade: "6",
                subject: "professional",
                semester: "1",
                price: "32 دينار",
                image: "http://static.photos/education/640x360/6",
                lessons: "30 درساً"
            }
        ];

        function renderCourses(courses) {
            const grid = document.getElementById('coursesGrid');
            grid.innerHTML = '';

            courses.forEach(course => {
                const courseCard = `
                    <div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl transition">
                        <img src="${course.image}" alt="${course.title}" class="w-full h-48 object-cover">
                        <div class="p-6">
                            <div class="flex justify-between items-center mb-2">
                                <span class="bg-primary bg-opacity-20 text-primary px-3 py-1 rounded-full text-sm font-medium">${getSubjectName(course.subject)}</span>
                                <span class="text-gray-500">${course.lessons}</span>
                            </div>
                            <h3 class="text-xl font-bold text-secondary mb-2">${course.title}</h3>
                            <p class="text-gray-600 mb-4">${course.description}</p>
                            <div class="flex justify-between items-center">
                                <span class="font-bold text-secondary">${course.price}</span>
                                <a href="../pages/تسجيل.html" class="bg-primary text-secondary px-4 py-2 rounded-lg font-medium hover:bg-yellow-600 transition">احجز الآن</a>
                            </div>
                        </div>
                    </div>
                `;
                grid.innerHTML += courseCard;
            });
        }

        function getSubjectName(subject) {
            const subjects = {
                'arabic': 'عربي',
                'english': 'انجليزي',
                'math': 'رياضيات',
                'social': 'اجتماعيات',
                'religion': 'دين',
                'professional': 'مهني'
            };
            return subjects[subject] || subject;
        }

        function filterCourses() {
            const grade = document.getElementById('gradeFilter').value;
            const subject = document.getElementById('subjectFilter').value;
            const semester = document.getElementById('semesterFilter').value;

            let filteredCourses = coursesData;

            if (grade) {
                filteredCourses = filteredCourses.filter(course => course.grade === grade);
            }

            if (subject) {
                filteredCourses = filteredCourses.filter(course => course.subject === subject);
            }

            if (semester) {
                filteredCourses = filteredCourses.filter(course => course.semester === semester);
            }

            renderCourses(filteredCourses);
        }

        // Initial render
        renderCourses(coursesData);
        feather.replace();
    </script>
</body>
</html>