File size: 6,810 Bytes
0ff5e3d
 
 
 
aa0d35c
0ff5e3d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
aa0d35c
0ff5e3d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
aa0d35c
0ff5e3d
 
 
 
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
<!DOCTYPE html>
<html lang="he" dir="rtl">
<head>
    <meta charset="UTF-8">
    <title>דוח התקדמות שבועי - המורה למתמטיקה</title>
    <style>
        /* CSS Inline for PDF Compatibility */
        @import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;600;800&display=swap');
        
        body {
            font-family: 'Assistant', sans-serif;
            background-color: #f8fafc;
            color: #1e293b;
            margin: 0;
            padding: 40px;
            direction: rtl;
        }

        .container {
            max-width: 800px;
            margin: 0 auto;
            background: white;
            border-radius: 24px;
            padding: 40px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.05);
        }

        .header {
            text-align: center;
            margin-bottom: 40px;
            border-bottom: 2px solid #e2e8f0;
            padding-bottom: 20px;
        }

        .header h1 {
            color: #4f46e5;
            font-size: 32px;
            margin: 0 0 10px 0;
            font-weight: 800;
        }

        .header p {
            color: #64748b;
            font-size: 18px;
            margin: 0;
        }

        .stats-grid {
            display: flex;
            justify-content: space-between;
            margin-bottom: 40px;
            gap: 20px;
        }

        .stat-card {
            flex: 1;
            background: #eff6ff;
            border-radius: 16px;
            padding: 24px;
            text-align: center;
            border: 1px solid #bfdbfe;
        }

        .stat-card h3 {
            margin: 0 0 10px 0;
            color: #3b82f6;
            font-size: 16px;
        }

        .stat-card .value {
            font-size: 36px;
            font-weight: 800;
            color: #1d4ed8;
            margin: 0;
        }

        .content-flex {
            display: flex;
            gap: 40px;
            margin-bottom: 40px;
        }

        .chart-section {
            flex: 1;
            text-align: center;
            background: #ffffff;
            border-radius: 20px;
            padding: 20px;
            border: 1px solid #e2e8f0;
        }

        .chart-section h2 {
            color: #334155;
            font-size: 20px;
            margin-top: 0;
        }

        .chart-img {
            max-width: 100%;
            height: auto;
        }

        .skills-list {
            flex: 1;
        }

        .skill-item {
            margin-bottom: 20px;
        }

        .skill-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .skill-name {
            font-weight: 600;
            color: #334155;
        }

        .skill-score {
            font-weight: 800;
            color: #4f46e5;
        }

        .progress-bar {
            height: 12px;
            background: #e2e8f0;
            border-radius: 10px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #6366f1, #3b82f6);
            border-radius: 10px;
        }

        .sub-skills {
            margin-top: 8px;
            font-size: 14px;
            color: #64748b;
        }

        .notes-section {
            background: #fdf2f8;
            border-radius: 20px;
            padding: 30px;
            border: 1px solid #fbcfe8;
        }

        .notes-section h2 {
            color: #be185d;
            margin-top: 0;
            font-size: 20px;
        }

        .note-item {
            position: relative;
            padding-right: 24px;
            margin-bottom: 12px;
            color: #831843;
            font-size: 16px;
            line-height: 1.5;
        }

        .note-item::before {
            content: "•";
            position: absolute;
            right: 0;
            color: #ec4899;
            font-size: 24px;
            line-height: 1;
        }

        .footer {
            margin-top: 40px;
            text-align: center;
            color: #94a3b8;
            font-size: 14px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>דוח התקדמות שבועי</h1>
            <p>המורה למתמטיקה | שבוע {{ week_label }} | {{ student_name }}</p>
        </div>

        <div class="stats-grid">
            <div class="stat-card">
                <h3>סה"כ תרגילים שנפתרו</h3>
                <p class="value">{{ total_exercises }}</p>
            </div>
            <div class="stat-card">
                <h3>ממוצע שליטה כללי</h3>
                <p class="value">{{ overall_mastery }}%</p>
            </div>
        </div>

        <div class="content-flex">
            <!-- Radar Chart via QuickChart.io -->
            <div class="chart-section">
                <h2>מפת מיומנויות</h2>
                <img class="chart-img" src="{{ chart_url }}" alt="Radar Chart">
            </div>

            <div class="skills-list">
                <h2>פירוט נושאים</h2>
                {% for skill in skills %}
                <div class="skill-item">
                    <div class="skill-header">
                        <span class="skill-name">{{ skill.name }}</span>
                        <span class="skill-score">{{ skill.score }}%</span>
                    </div>
                    <div class="progress-bar">
                        <div class="progress-fill" style="width: {{ skill.score }}%;"></div>
                    </div>
                    <div class="sub-skills">
                        <strong>תתי-נושאים שטופלו:</strong> {{ skill.sub_skills | join(", ") }}
                    </div>
                </div>
                {% endfor %}
            </div>
        </div>

        {% if parent_notes and parent_notes|length > 0 %}
        <div class="notes-section" style="margin-bottom: 30px;">
            <h2>נקודות לשימור ולחיזוק 💡</h2>
            {% for note in parent_notes %}
            <div class="note-item">{{ note }}</div>
            {% endfor %}
        </div>
        {% endif %}

        {% if focus_for_next_week %}
        <div class="notes-section" style="background: #f0fdfa; border-color: #ccfbf1;">
            <h2 style="color: #0d9488;">מטרה לשבוע הבא 🎯</h2>
            <div class="note-item" style="color: #115e59;">{{ focus_for_next_week }}</div>
        </div>
        {% endif %}

        <div class="footer">
            <p>הופק על ידי מערכת הבינה המלאכותית של המורה למתמטיקה</p>
        </div>
    </div>
</body>
</html>