📚 Your Learning Journey Starts Here

Discover expert-led courses with interactive quizzes, progress tracking, and verified certificates.

120+
Courses
45k
Active Students
92%
Completion Rate
▶

Course Video

Select a lesson to begin

📝 Quiz

Complete all lessons to unlock
📋 Course Content

📊 Your Learning Dashboard

3
Enrolled Courses
2 in progress
14
Lessons Completed
Across all courses
68
Avg Progress %
+12% this week
84
Avg Quiz Score
Top 15% of learners
🔥 12
Day Streak
Keep it going!
🏆 4
Badges Earned
2 more to next level

My Enrolled Courses

🎓 Certificates & Achievements

``` Wait, I need to add the forum to the course page. Let me revise the course detail layout to include a forum section. Let me also improve the quiz rendering to handle 2 questions properly. Let me also add a "Discussion Forum" tab within the course view. Let me restructure the course view to have tabs: Course Content | Discussion Forum Let me fix the quiz rendering - I had a bug with the layout. Let me redo it properly. Let me also make sure the forum is integrated. Let me rewrite the file completely, making it cleaner. The course page should have tabs for Lessons/Quiz and Forum. Actually, let me be more efficient - I'll include the forum section below the course content in the course detail view. Let me revise the course detail to include: 1. Video area 2. Lessons sidebar with modules and quizzes 3. Forum section below Let me also fix the quiz to handle all questions dynamically. Let me redo the quiz section properly: ```js function renderQuiz() { // Find the quiz for the current module or first uncompleted const course = coursesData.find(c=>c.id===currentCourseId); const enrollment = state.enrollments[currentCourseId]; // Find first module quiz that hasn't been passed let quizToShow = null; for(let m of course.modules){ const score = enrollment?.quizScores[m.quiz.id]; if(!score || score < 70){ quizToShow = m.quiz; break; } } if(!quizToShow) quizToShow = course.modules[0].quiz; quizState = {selected:{}, submitted:false, quiz:quizToShow}; let html = ''; quizToShow.questions.forEach((q, qi) => { html += `
${qi+1}. ${q.q}
${q.opts.map((opt, oi)=>`
${opt}
`).join('')}
`; }); document.getElementById('quizContent').innerHTML = html; document.getElementById('quizMeta').textContent = `${quizToShow.title} • ${quizToShow.questions.length} questions`; document.getElementById('quizResult').style.display = 'none'; document.getElementById('quizSubmitBtn').disabled = false; } ``` This way it handles any number of questions. OK let me write the complete files now. I need to be careful about the length but make it comprehensive. Let me create both files: 1. `learnsphere_learning_platform.html` - Complete student platform 2. `learnsphere_instructor_analytics.html` - Analytics dashboard I'll write them now in full. For the analytics dashboard, I'll create: - KPI cards at top - Charts using Canvas for enrollment trends, completion rates, quiz difficulty, engagement, revenue - SQL query displays with results tables - Filters for date range Let me make the analytics file really polished with simulated SQL queries shown and their results. OK let me write both files completely now. I realize I should keep the code concise but complete. Let me write the final files. For the learning platform, I need to be careful about the quiz handling - let me use a clean approach. Let me write the complete files now. I'll combine everything into two comprehensive HTML files.I'll create a comprehensive e-learning platform with instructor analytics. Let me build both files. ## FILE 1: Learning Platform Frontend ```html LearnSphere - E-Learning Platform

📚 Your Learning Journey Starts Here

Discover expert-led courses with interactive quizzes, progress tracking, and verified certificates.

120+
Courses
45k
Active Students
92%
Completion Rate
▶

Course Video

Select a lesson to begin

📝 Quiz

📋 Course Content

💬 Discussion Forum

📊 Your Learning Dashboard

3
Enrolled Courses
2 in progress
14
Lessons Completed
Across all courses
68
Avg Progress %
+12% this week
84
Avg Quiz Score
Top 15% of learners
🔥 12
Day Streak
Keep it going!
🏆 4
Badges Earned
2 more to next level

My Enrolled Courses

🎓 Certificates & Achievements

``` --- ## FILE 2: Instructor Analytics Dashboard ```html LearnSphere - Instructor Analytics
📈 Course Analytics Dashboard
Live insights from 120+ courses • Updated 5 minutes ago • Data from Jan 2025 - Mar 2025
2,847
Total Enrollments
▲ 12.4% vs last month
68.3%
Avg Completion Rate
▲ 3.1% vs industry avg
74.2%
Avg Quiz Pass Rate
▼ 2.3% vs last month
4.2h
Avg Weekly Study Time
▲ 0.8h vs last month
$48.2k
Monthly Revenue
▲ 18.2% vs last month
📊 1. Course Enrollment Trends
SELECT DATE_TRUNC('week', enrolled_at) AS week, COUNT(*) AS enrollments
FROM enrollments
WHERE enrolled_at BETWEEN '2025-01-01' AND '2025-03-31'
GROUP BY week ORDER BY week;
📌 Insight: Enrollment peaked in mid-February (+38% WoW), driven by the "ML with Python" course launch. Recommendation: Schedule new course launches for mid-month to maximize enrollment velocity.
🏁 2. Completion Rate by Course
SELECT c.title, ROUND(AVG(le.completed) * 100, 1) AS completion_pct
FROM courses c
LEFT JOIN (SELECT course_id, COUNT(DISTINCT lesson_id) / total_lessons AS completed
  FROM lesson_completions GROUP BY course_id) le ON le.course_id = c.id
ORDER BY completion_pct DESC;
📌 Insight: Beginner courses (Web Dev, UX) have 2.3× higher completion than advanced (ML). Recommendation: Add more intermediate-level scaffolding in advanced courses — consider module-based milestones with mini-certificates.
🧩 3. Quiz Difficulty Analysis
SELECT qq.question_text, ROUND(AVG(qa.score) * 100, 0) AS avg_score
FROM quiz_questions qq
JOIN quiz_attempts qa ON qa.quiz_id = qq.quiz_id
GROUP BY qq.question_text
ORDER BY avg_score ASC LIMIT 10;
📌 Insight: Question 3 in "ML Basics Quiz" ("Which algorithm for classification?") has a 43% pass rate — the lowest in the system. Recommendation: Rewrite this question or add a prerequisite lesson about classification algorithms before this quiz.
⚡ 4. Student Engagement
SELECT DATE_TRUNC('week', activity_date) AS week,
  AVG(lessons_completed) AS lessons_week,
  AVG(study_minutes) AS time_week
FROM student_activity
GROUP BY week ORDER BY week;
💡 Engagement dips on weekends (-28%) — consider weekend challenges or live sessions.
💰 5. Revenue Breakdown
SELECT c.topic, SUM(e.price_paid) AS revenue
FROM enrollments e
JOIN courses c ON c.id = e.course_id
WHERE e.status = 'paid'
GROUP BY c.topic ORDER BY revenue DESC;
💡 AI courses generate 41% of revenue — consider premium pricing or advanced tiers.
📋 Detailed Enrollment Data
CourseTopicEnrollmentsCompletion %Avg Quiz ScoreRevenueStatus
Intro to Web DevelopmentProgramming84282%88%$42,100Healthy
Data Science FundamentalsData Science69471%74%$55,500Healthy
Machine Learning with PythonAI52154%61%$52,100Needs Attention
UX Design PrinciplesDesign39878%85%$23,900Healthy
Digital Marketing StrategyMarketing39265%70%$27,400Needs Attention
Advanced React & Next.jsProgramming28447%58%$28,400Critical
NLP with TransformersAI19639%52%$19,600Critical