undefined / courses.html
Ali-1983-div's picture
<!DOCTYPE html>
88517c5 verified
Raw History Blame Contribute Delete
15.8 kB
<!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>