File size: 10,897 Bytes
b5c0aaf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!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>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <link href="https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap" rel="stylesheet">
    <style>
        body {
            font-family: 'Tajawal', sans-serif;
        }
        .algebra-card {
            transition: all 0.3s ease;
        }
        .algebra-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }
        .equation {
            font-family: 'Times New Roman', Times, serif;
            font-size: 1.2rem;
        }
    </style>
</head>
<body class="bg-gray-50 text-gray-800">
    <header class="bg-green-600 text-white shadow-lg">
        <div class="container mx-auto px-4 py-6">
            <div class="flex justify-between items-center">
                <div class="flex items-center space-x-4">
                    <a href="index.html" class="text-white">
                        <i data-feather="arrow-right" class="w-6 h-6"></i>
                    </a>
                    <h1 class="text-2xl font-bold">الجبر</h1>
                </div>
                <button class="p-2 rounded-full hover:bg-green-700">
                    <i data-feather="search" class="w-6 h-6"></i>
                </button>
            </div>
        </div>
    </header>

    <main class="container mx-auto px-4 py-8">
        <section class="mb-12">
            <div class="bg-white rounded-xl shadow-md overflow-hidden p-6 mb-8">
                <h2 class="text-2xl font-bold mb-4 text-green-800">مقدمة في الجبر</h2>
                <p class="text-gray-600 mb-4">الجبر هو فرع من فروع الرياضيات يتعامل مع الرموز والمتغيرات والعلاقات بينها. في الجبر، نستخدم الحروف لتمثيل الأعداد المجهولة أو المتغيرة.</p>
                
                <div class="bg-green-50 p-4 rounded-lg mb-6">
                    <h4 class="font-semibold mb-2">مثال على معادلة جبرية:</h4>
                    <p class="equation text-center text-xl font-bold">2س + 5 = 15</p>
                </div>
            </div>

            <h3 class="text-xl font-bold mb-6 text-green-800">مواضيع الجبر الأساسية</h3>
            
            <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                <!-- Variables -->
                <div class="algebra-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-green-100 p-3 rounded-full mr-4">
                                <i data-feather="code" class="w-6 h-6 text-green-600"></i>
                            </div>
                            <h4 class="text-lg font-semibold">المتغيرات</h4>
                        </div>
                        <p class="text-gray-600 mb-4">المتغيرات هي رموز (عادةً حروف) تمثل قيماً مجهولة أو قابلة للتغيير.</p>
                        <button class="bg-green-600 text-white px-4 py-2 rounded-lg text-sm hover:bg-green-700">
                            تعلم المزيد
                        </button>
                    </div>
                </div>

                <!-- Equations -->
                <div class="algebra-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-green-100 p-3 rounded-full mr-4">
                                <i data-feather="equal" class="w-6 h-6 text-green-600"></i>
                            </div>
                            <h4 class="text-lg font-semibold">المعادلات</h4>
                        </div>
                        <p class="text-gray-600 mb-4">المعادلات هي عبارات رياضية تحتوي على علامة يساوي (=) بين طرفين.</p>
                        <button class="bg-green-600 text-white px-4 py-2 rounded-lg text-sm hover:bg-green-700">
                            تعلم المزيد
                        </button>
                    </div>
                </div>

                <!-- Expressions -->
                <div class="algebra-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-green-100 p-3 rounded-full mr-4">
                                <i data-feather="hash" class="w-6 h-6 text-green-600"></i>
                            </div>
                            <h4 class="text-lg font-semibold">التعبيرات الجبرية</h4>
                        </div>
                        <p class="text-gray-600 mb-4">مجموعة من المتغيرات والثوابت مرتبطة بعلامات عمليات.</p>
                        <button class="bg-green-600 text-white px-4 py-2 rounded-lg text-sm hover:bg-green-700">
                            تعلم المزيد
                        </button>
                    </div>
                </div>

                <!-- Inequalities -->
                <div class="algebra-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-green-100 p-3 rounded-full mr-4">
                                <i data-feather="chevrons-right" class="w-6 h-6 text-green-600"></i>
                            </div>
                            <h4 class="text-lg font-semibold">المتباينات</h4>
                        </div>
                        <p class="text-gray-600 mb-4">علاقات بين كميتين غير متساويتين (>, <, ≥, ≤).</p>
                        <button class="bg-green-600 text-white px-4 py-2 rounded-lg text-sm hover:bg-green-700">
                            تعلم المزيد
                        </button>
                    </div>
                </div>
            </div>
        </section>

        <section class="mb-12">
            <h3 class="text-xl font-bold mb-6 text-green-800">حل المعادلات الخطية</h3>
            
            <div class="bg-white rounded-xl shadow-md overflow-hidden p-6 mb-8">
                <h4 class="font-semibold mb-4">خطوات حل المعادلة الخطية:</h4>
                <ol class="list-decimal pr-5 space-y-3">
                    <li>تبسيط كلا طرفي المعادلة إن أمكن</li>
                    <li>استخدام عمليات الجمع أو الطرح لعزل الحد الذي يحتوي على المتغير</li>
                    <li>استخدام عمليات الضرب أو القسمة لحل المتغير</li>
                    <li>التحقق من الحل بتعويض القيمة في المعادلة الأصلية</li>
                </ol>
                
                <div class="mt-6 bg-gray-100 p-4 rounded-lg">
                    <h5 class="font-semibold mb-2">مثال:</h5>
                    <p class="equation mb-2">3س - 7 = 14</p>
                    <p class="equation mb-2">3س = 14 + 7</p>
                    <p class="equation mb-2">3س = 21</p>
                    <p class="equation font-bold">س = 7</p>
                </div>
            </div>
        </section>

        <section class="bg-green-50 rounded-xl p-6">
            <h3 class="text-xl font-bold mb-4 text-green-800">جرب بنفسك</h3>
            <p class="mb-4">حل المعادلة التالية:</p>
            <p class="equation text-center text-xl font-bold mb-6">5ص + 10 = 35</p>
            
            <div class="grid grid-cols-2 gap-4 mb-6">
                <button class="bg-green-600 text-white py-2 rounded-lg hover:bg-green-700">عرض الحل</button>
                <button class="bg-white border border-green-600 text-green-600 py-2 rounded-lg hover:bg-green-100">معادلة جديدة</button>
            </div>
            
            <div class="bg-white p-4 rounded-lg hidden" id="solution">
                <h4 class="font-semibold mb-2">الحل:</h4>
                <p class="equation mb-2">5ص + 10 = 35</p>
                <p class="equation mb-2">5ص = 35 - 10</p>
                <p class="equation mb-2">5ص = 25</p>
                <p class="equation font-bold">ص = 5</p>
            </div>
        </section>
    </main>

    <footer class="bg-gray-800 text-white py-8">
        <div class="container mx-auto px-4">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="mb-4 md:mb-0">
                    <h3 class="text-xl font-bold mb-2">تعلم الرياضيات</h3>
                    <p class="text-gray-400">منصة تعليمية متكاملة لفهم الرياضيات بسهولة</p>
                </div>
                <div class="flex space-x-6">
                    <a href="#" class="hover:text-blue-300">الشروط والأحكام</a>
                    <a href="#" class="hover:text-blue-300">سياسة الخصوصية</a>
                    <a href="contact.html" class="hover:text-blue-300">اتصل بنا</a>
                </div>
            </div>
            <div class="border-t border-gray-700 mt-6 pt-6 text-center text-gray-400">
                <p>© 2023 تعلم الرياضيات. جميع الحقوق محفوظة.</p>
            </div>
        </div>
    </footer>

    <script>
        feather.replace();
        
        document.querySelector('button').addEventListener('click', function() {
            document.getElementById('solution').classList.toggle('hidden');
        });
    </script>
</body>
</html>


I've created three pages for the math learning application:
1. index.html - The main landing page with all subject categories
2. basic-operations.html - A detailed page for basic arithmetic operations with interactive tabs
3. algebra.html - A comprehensive algebra learning page with examples and exercises

Each page features:
- Responsive design using Tailwind CSS
- Arabic RTL support
- Clean, modern UI with cards and interactive elements
- Feather icons for visual enhancement
- Proper navigation between pages
- Consistent footer across all pages

Would you like me to continue with more pages for the other subjects?