diff --git a/app/components/ContinueLearning.tsx b/app/components/ContinueLearning.tsx
new file mode 100644
index 0000000..adc66e3
--- /dev/null
+++ b/app/components/ContinueLearning.tsx
@@ -0,0 +1,45 @@
+let courseData = [
+ {
+ id : "1",
+ title : "Life History of Dr. Maria Montessori",
+ chapter : "1",
+ Program : "Graduate Program",
+ img : "../../assets/course1.jpg"
+ },
+ {
+ id : "2",
+ title : "Introduction to Montessori Methods",
+ chapter : "2",
+ Program : "Graduate Program",
+ img : "../../assets/course2.jpg"
+ },
+ {
+ id : "3",
+ title : "Exercises on Practical Life",
+ chapter : "3",
+ Program : "Graduate Program",
+ img : "../../assets/course3.jpg"
+ }
+];
+
+export default function Index() {
+ return (
+
+ Chapter {data.chapter} •
+ {data.Program}
+ Continue Learning
+
+
{data.title}
+
{secondHighestRank.name}
@@ -707,7 +707,7 @@ const App: React.FC = () => {{highestRank.name}
@@ -715,7 +715,7 @@ const App: React.FC = () => {{thirdHighestRank.name}
@@ -726,7 +726,7 @@ const App: React.FC = () => { {sortedData.slice(3).map(data => (# {data.rank}
-{data.name}
{data.program}
diff --git a/app/components/KnowledgeQuests.tsx b/app/components/KnowledgeQuests.tsx new file mode 100644 index 0000000..990141f --- /dev/null +++ b/app/components/KnowledgeQuests.tsx @@ -0,0 +1,169 @@ +let knowledgeData = [ + { + id: "1", + status: "1", + title: "Assessment on Special Education", + challenge: "Challenge yourself & climb the leaderboard.", + question: "Subjective Question", + img: "../../assets/knowledge1.jpg" + }, + { + id: "2", + status: "1", + title: "Quiz on Children Psychology", + challenge: "Challenge yourself & climb the leaderboard.", + question: "MCQ", + img: "../../assets/knowledge2.jpg" + }, + { + id: "3", + status: "1", + title: "Quiz on Montessori Methods", + challenge: "Challenge yourself & climb the leaderboard.", + question: "MCQ", + img: "../../assets/knowledge3.jpg" + } +]; + +let performersData = [ + { + id: "1", + name: "Eiden", + score: "48/50", + points: "999", + rank: "1", + program: "Graduate Program", + avatar: "avatar1.png" + }, + { + id: "2", + name: "Jackson", + score: "45/50", + points: "997", + rank: "2", + program: "Graduate Program", + avatar: "avatar2.png" + }, + { + id: "3", + name: "Emma Aria", + score: "43/50", + points: "994", + rank: "3", + program: "Graduate Program", + avatar: "avatar3.png" + }, + { + id: "4", + name: "John Doe", + score: "40/50", + points: "990", + rank: "4", + program: "Graduate Program", + avatar: "avatar4.png" + }, + { + id: "5", + name: "Jane Cooper", + score: "37/50", + points: "987", + rank: "5", + program: "Graduate Program", + avatar: "avatar5.png" + }, + { + id: "6", + name: "John Doe", + score: "35/50", + points: "982", + rank: "6", + program: "Graduate Program", + avatar: "avatar6.png" + } +]; + +const sortedData = performersData.sort((a, b) => parseInt(a.rank) - parseInt(b.rank)); + +const highestRank = sortedData[0]; +const secondHighestRank = sortedData[1]; +const thirdHighestRank = sortedData[2]; + +console.log('The highest rank is:', highestRank); +console.log('The second highest rank is:', secondHighestRank); +console.log('The Third highest rank is:', thirdHighestRank); + + + +export default function(){ + return( +{data.challenge}
+{data.question}
+Knowledge Quest
+{secondHighestRank.name}
+{secondHighestRank.score}
+{highestRank.name}
+{highestRank.score}
+{thirdHighestRank.name}
+{thirdHighestRank.score}
+# {data.rank}
+{data.name}
+{data.program}
+{data.points} Points
+{data.challenge}
+{data.question}
+{data.challenge}
+{data.question} | 200 people have taken this quiz
+Score: 9/10
+Earned: 9
Review
+Knowledge Quest
+{secondHighestRank.name}
+{secondHighestRank.score}
+{highestRank.name}
+{highestRank.score}
+{thirdHighestRank.name}
+{thirdHighestRank.score}
+# {data.rank}
+{data.name}
+{data.program}
+{data.points} Points
+{moduleData.type}
+{moduleData.moduleName}
+3/8 Quizzes Completed
++ Internal Marks: {quizData.internalMarks} • + Attendance: {quizData.attendance} +
++ {quizData.attendQuestion}/ + {quizData.totalQuestion} +
+18/10
+Attendance
+12 Questions
+Attempted
+12 Correct
+Attempts
+Q{questionData.questionId}: {questionData.questionText}
+Your Answer
+{questionData.correctAnswer}
+ Correct
Correct Answer: {questionData.correctAnswer}
+70%
+Average Attendance
+02
+Total Certificates
+12
+Tests Taken
+0
+Modules Completed
+{data.quizType}
+{data.quizName}
+Administration
), - children: [ - { - key: '1sd', - label: (Class Schedules), - }, - { - key: '2sd', - label: (Classmate Directory), - }, - { - key: '3sd', - label: (Qualifications), - }, - ], - }, - { - key: 'subsd2', - icon:My Courses
), - children: [ - { - key: '4sd', - label: (Graduate Program), - }, - { - key: '5sd', - label: (Post-Graduate Program), - }, - ], - }, - { - key: 'subsd3', - icon:Examinations
), - children: [ - { - key: '6sd', - label: (Exam Scheduled), - }, - { - key: '7sd', - label: (Upcoming Exam), - }, - { - key: '8sd', - label: (Passed Exam), - }, - ], - }, - { - key: 'subsd4', - icon:Community
), - children: [ - { - key: '9sd', - label: (Exam Scheduled), - }, - { - key: '10sd', - label: (Upcoming Exam), - }, - { - key: '11sd', - label: (Passed Exam), - }, - ], - }, - { - key: 'subsd5', - icon:Notifications
), - children: [ - { - key: '12sd', - label: (Exam Scheduled), - }, - { - key: '13sd', - label: (Upcoming Exam), - }, - { - key: '14sd', - label: (Passed Exam), - }, - ], - }, - // getItem('Files', '9',Some contents...
-Some contents...
-Some contents...
-Student Dashboard
-- Chapter {data.chapter} • - {data.Program} -
-{data.challenge}
-{data.question}
-Knowledge Quest
-{secondHighestRank.name}
-{secondHighestRank.score}
-{highestRank.name}
-{highestRank.score}
-{thirdHighestRank.name}
-{thirdHighestRank.score}
-# {data.rank}
-{data.name}
-{data.program}
-{data.points} Points
-Administration
), + children: [ + { + key: '1sd', + label: (Class Schedules), + }, + { + key: '2sd', + label: (Classmate Directory), + }, + { + key: '3sd', + label: (Qualifications), + }, + ], + }, + { + key: 'subsd2', + icon:My Courses
), + children: [ + { + key: '4sd', + label: (Graduate Program), + }, + { + key: '5sd', + label: (Post-Graduate Program), + }, + ], + }, + { + key: 'subsd3', + icon:Examinations
), + children: [ + { + key: '6sd', + label: (Exam Scheduled), + }, + { + key: '7sd', + label: (Upcoming Exam), + }, + { + key: '8sd', + label: (Passed Exam), + }, + ], + }, + { + key: 'subsd4', + icon:Community
), + children: [ + { + key: '9sd', + label: (Exam Scheduled), + }, + { + key: '10sd', + label: (Upcoming Exam), + }, + { + key: '11sd', + label: (Passed Exam), + }, + ], + }, + { + key: 'subsd5', + icon:Notifications
), + children: [ + { + key: '12sd', + label: (Exam Scheduled), + }, + { + key: '13sd', + label: (Upcoming Exam), + }, + { + key: '14sd', + label: (Passed Exam), + }, + ], + }, + // getItem('Files', '9',Student Dashboard
+Administration
), + children: [ + { + key: '1sd', + label: (Class Schedules), + }, + { + key: '2sd', + label: (Classmate Directory), + }, + { + key: '3sd', + label: (Qualifications), + }, + ], + }, + { + key: 'subsd2', + icon:My Courses
), + children: [ + { + key: '4sd', + label: (Graduate Program), + }, + { + key: '5sd', + label: (Post-Graduate Program), + }, + ], + }, + { + key: 'subsd3', + icon:Examinations
), + children: [ + { + key: '6sd', + label: (Exam Scheduled), + }, + { + key: '7sd', + label: (Upcoming Exam), + }, + { + key: '8sd', + label: (Passed Exam), + }, + ], + }, + { + key: 'subsd4', + icon:Community
), + children: [ + { + key: '9sd', + label: (Exam Scheduled), + }, + { + key: '10sd', + label: (Upcoming Exam), + }, + { + key: '11sd', + label: (Passed Exam), + }, + ], + }, + { + key: 'subsd5', + icon:Notifications
), + children: [ + { + key: '12sd', + label: (Exam Scheduled), + }, + { + key: '13sd', + label: (Upcoming Exam), + }, + { + key: '14sd', + label: (Passed Exam), + }, + ], + }, + // getItem('Files', '9',Student Dashboard
+Administration
), + children: [ + { + key: '1sd', + label: (Class Schedules), + }, + { + key: '2sd', + label: (Classmate Directory), + }, + { + key: '3sd', + label: (Qualifications), + }, + ], + }, + { + key: 'subsd2', + icon:My Courses
), + children: [ + { + key: '4sd', + label: (Graduate Program), + }, + { + key: '5sd', + label: (Post-Graduate Program), + }, + ], + }, + { + key: 'subsd3', + icon:Examinations
), + children: [ + { + key: '6sd', + label: (Exam Scheduled), + }, + { + key: '7sd', + label: (Upcoming Exam), + }, + { + key: '8sd', + label: (Passed Exam), + }, + ], + }, + { + key: 'subsd4', + icon:Community
), + children: [ + { + key: '9sd', + label: (Exam Scheduled), + }, + { + key: '10sd', + label: (Upcoming Exam), + }, + { + key: '11sd', + label: (Passed Exam), + }, + ], + }, + { + key: 'subsd5', + icon:Notifications
), + children: [ + { + key: '12sd', + label: (Exam Scheduled), + }, + { + key: '13sd', + label: (Upcoming Exam), + }, + { + key: '14sd', + label: (Passed Exam), + }, + ], + }, + // getItem('Files', '9',Student Dashboard
+Administration
), + children: [ + { + key: '1sd', + label: (Class Schedules), + }, + { + key: '2sd', + label: (Classmate Directory), + }, + { + key: '3sd', + label: (Qualifications), + }, + ], + }, + { + key: 'subsd2', + icon:My Courses
), + children: [ + { + key: '4sd', + label: (Graduate Program), + }, + { + key: '5sd', + label: (Post-Graduate Program), + }, + ], + }, + { + key: 'subsd3', + icon:Examinations
), + children: [ + { + key: '6sd', + label: (Exam Scheduled), + }, + { + key: '7sd', + label: (Upcoming Exam), + }, + { + key: '8sd', + label: (Passed Exam), + }, + ], + }, + { + key: 'subsd4', + icon:Community
), + children: [ + { + key: '9sd', + label: (Exam Scheduled), + }, + { + key: '10sd', + label: (Upcoming Exam), + }, + { + key: '11sd', + label: (Passed Exam), + }, + ], + }, + { + key: 'subsd5', + icon:Notifications
), + children: [ + { + key: '12sd', + label: (Exam Scheduled), + }, + { + key: '13sd', + label: (Upcoming Exam), + }, + { + key: '14sd', + label: (Passed Exam), + }, + ], + }, + // getItem('Files', '9',Student Dashboard
+