Spaces:
Running
Running
Add 2 files
Browse files- README.md +7 -5
- index.html +998 -19
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: course-creator
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: pink
|
5 |
+
colorTo: yellow
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,998 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Agentic RAG Course Creator</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<style>
|
10 |
+
.pdf-preview {
|
11 |
+
height: 500px;
|
12 |
+
overflow-y: auto;
|
13 |
+
border: 2px dashed #e5e7eb;
|
14 |
+
}
|
15 |
+
.progress-bar {
|
16 |
+
transition: width 0.3s ease;
|
17 |
+
}
|
18 |
+
.module-card {
|
19 |
+
transition: all 0.2s ease;
|
20 |
+
}
|
21 |
+
.module-card:hover {
|
22 |
+
transform: translateY(-2px);
|
23 |
+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
|
24 |
+
}
|
25 |
+
.lesson-item {
|
26 |
+
transition: all 0.2s ease;
|
27 |
+
}
|
28 |
+
.lesson-item:hover {
|
29 |
+
background-color: #f9fafb;
|
30 |
+
}
|
31 |
+
.slide-fade-enter-active, .slide-fade-leave-active {
|
32 |
+
transition: all 0.3s ease;
|
33 |
+
}
|
34 |
+
.slide-fade-enter-from, .slide-fade-leave-to {
|
35 |
+
opacity: 0;
|
36 |
+
transform: translateX(10px);
|
37 |
+
}
|
38 |
+
@keyframes pulse {
|
39 |
+
0%, 100% {
|
40 |
+
opacity: 1;
|
41 |
+
}
|
42 |
+
50% {
|
43 |
+
opacity: 0.5;
|
44 |
+
}
|
45 |
+
}
|
46 |
+
.animate-pulse {
|
47 |
+
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
48 |
+
}
|
49 |
+
</style>
|
50 |
+
</head>
|
51 |
+
<body class="bg-gray-50 min-h-screen">
|
52 |
+
<div class="container mx-auto px-4 py-8">
|
53 |
+
<!-- Header -->
|
54 |
+
<header class="mb-10 text-center">
|
55 |
+
<h1 class="text-4xl font-bold text-indigo-700 mb-2">Agentic RAG Course Creator</h1>
|
56 |
+
<p class="text-lg text-gray-600">Transform textbooks into comprehensive courses with AI-powered analysis</p>
|
57 |
+
</header>
|
58 |
+
|
59 |
+
<!-- Main Workflow -->
|
60 |
+
<div class="bg-white rounded-xl shadow-lg overflow-hidden mb-10">
|
61 |
+
<!-- Progress Steps -->
|
62 |
+
<div class="flex items-center justify-between px-8 py-4 bg-gray-100">
|
63 |
+
<div class="step flex flex-col items-center relative" data-step="1">
|
64 |
+
<div class="w-10 h-10 rounded-full bg-indigo-600 text-white flex items-center justify-center font-bold mb-1 z-10">1</div>
|
65 |
+
<span class="text-sm font-medium text-gray-700">Upload PDF</span>
|
66 |
+
<div class="absolute top-5 left-1/2 h-1 bg-gray-300 w-full -z-1"></div>
|
67 |
+
</div>
|
68 |
+
<div class="step flex flex-col items-center relative" data-step="2">
|
69 |
+
<div class="w-10 h-10 rounded-full bg-gray-300 text-gray-600 flex items-center justify-center font-bold mb-1 z-10">2</div>
|
70 |
+
<span class="text-sm font-medium text-gray-500">Analyze Content</span>
|
71 |
+
<div class="absolute top-5 left-1/2 h-1 bg-gray-300 w-full -z-1"></div>
|
72 |
+
</div>
|
73 |
+
<div class="step flex flex-col items-center relative" data-step="3">
|
74 |
+
<div class="w-10 h-10 rounded-full bg-gray-300 text-gray-600 flex items-center justify-center font-bold mb-1 z-10">3</div>
|
75 |
+
<span class="text-sm font-medium text-gray-500">Course Outline</span>
|
76 |
+
<div class="absolute top-5 left-1/2 h-1 bg-gray-300 w-full -z-1"></div>
|
77 |
+
</div>
|
78 |
+
<div class="step flex flex-col items-center relative" data-step="4">
|
79 |
+
<div class="w-10 h-10 rounded-full bg-gray-300 text-gray-600 flex items-center justify-center font-bold mb-1 z-10">4</div>
|
80 |
+
<span class="text-sm font-medium text-gray-500">Generate Lessons</span>
|
81 |
+
<div class="absolute top-5 left-1/2 h-1 bg-gray-300 w-full -z-1"></div>
|
82 |
+
</div>
|
83 |
+
<div class="step flex flex-col items-center" data-step="5">
|
84 |
+
<div class="w-10 h-10 rounded-full bg-gray-300 text-gray-600 flex items-center justify-center font-bold mb-1">5</div>
|
85 |
+
<span class="text-sm font-medium text-gray-500">Create MCQs</span>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
|
89 |
+
<!-- Step Content -->
|
90 |
+
<div class="p-8">
|
91 |
+
<!-- Step 1: Upload PDF -->
|
92 |
+
<div id="step-1" class="step-content active">
|
93 |
+
<div class="mb-6">
|
94 |
+
<h2 class="text-2xl font-semibold text-gray-800 mb-2">Upload Your Textbook</h2>
|
95 |
+
<p class="text-gray-600">Select a PDF file containing the textbook material you want to transform into a course.</p>
|
96 |
+
</div>
|
97 |
+
|
98 |
+
<div class="flex flex-col md:flex-row gap-8">
|
99 |
+
<div class="flex-1">
|
100 |
+
<div class="pdf-upload-container border-2 border-dashed border-gray-300 rounded-lg p-8 text-center cursor-pointer hover:border-indigo-500 transition-colors duration-200" id="dropzone">
|
101 |
+
<input type="file" id="pdf-upload" accept=".pdf" class="hidden">
|
102 |
+
<div class="flex flex-col items-center justify-center py-12">
|
103 |
+
<i class="fas fa-file-pdf text-5xl text-red-500 mb-4"></i>
|
104 |
+
<p class="text-lg font-medium text-gray-700 mb-2">Drag & drop your PDF here</p>
|
105 |
+
<p class="text-gray-500 mb-4">or</p>
|
106 |
+
<button id="browse-btn" class="bg-indigo-600 text-white px-6 py-2 rounded-lg hover:bg-indigo-700 transition-colors duration-200">
|
107 |
+
Browse Files
|
108 |
+
</button>
|
109 |
+
</div>
|
110 |
+
</div>
|
111 |
+
<div class="mt-4 flex items-center justify-between">
|
112 |
+
<div class="text-sm text-gray-500">Supported format: PDF</div>
|
113 |
+
<div class="text-sm text-gray-500">Max size: 50MB</div>
|
114 |
+
</div>
|
115 |
+
</div>
|
116 |
+
|
117 |
+
<div class="flex-1">
|
118 |
+
<h3 class="text-lg font-medium text-gray-800 mb-4">PDF Preview</h3>
|
119 |
+
<div class="pdf-preview rounded-lg bg-gray-50 p-4 flex items-center justify-center">
|
120 |
+
<div class="text-center text-gray-500">
|
121 |
+
<i class="fas fa-file-alt text-4xl mb-3"></i>
|
122 |
+
<p>No PDF selected</p>
|
123 |
+
</div>
|
124 |
+
</div>
|
125 |
+
</div>
|
126 |
+
</div>
|
127 |
+
|
128 |
+
<div class="mt-8 flex justify-end">
|
129 |
+
<button id="next-step-1" class="bg-indigo-600 text-white px-6 py-2 rounded-lg hover:bg-indigo-700 transition-colors duration-200 opacity-50 cursor-not-allowed" disabled>
|
130 |
+
Analyze PDF <i class="fas fa-arrow-right ml-2"></i>
|
131 |
+
</button>
|
132 |
+
</div>
|
133 |
+
</div>
|
134 |
+
|
135 |
+
<!-- Step 2: Analyze Content -->
|
136 |
+
<div id="step-2" class="step-content hidden">
|
137 |
+
<div class="mb-6">
|
138 |
+
<h2 class="text-2xl font-semibold text-gray-800 mb-2">Analyzing Textbook Content</h2>
|
139 |
+
<p class="text-gray-600">Our AI is processing your PDF to extract key concepts and structure.</p>
|
140 |
+
</div>
|
141 |
+
|
142 |
+
<div class="bg-gray-50 rounded-lg p-6 mb-8">
|
143 |
+
<div class="flex items-center justify-between mb-4">
|
144 |
+
<div>
|
145 |
+
<h3 class="font-medium text-gray-800">Analysis Progress</h3>
|
146 |
+
<p class="text-sm text-gray-500">This may take a few minutes depending on the file size</p>
|
147 |
+
</div>
|
148 |
+
<div class="text-indigo-600 font-medium" id="progress-percent">0%</div>
|
149 |
+
</div>
|
150 |
+
|
151 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
152 |
+
<div id="progress-bar" class="progress-bar bg-indigo-600 h-2.5 rounded-full" style="width: 0%"></div>
|
153 |
+
</div>
|
154 |
+
|
155 |
+
<div class="mt-6 grid grid-cols-1 md:grid-cols-3 gap-4">
|
156 |
+
<div class="bg-white p-4 rounded-lg shadow-sm">
|
157 |
+
<div class="flex items-center mb-2">
|
158 |
+
<div class="w-8 h-8 rounded-full bg-indigo-100 text-indigo-600 flex items-center justify-center mr-3">
|
159 |
+
<i class="fas fa-book"></i>
|
160 |
+
</div>
|
161 |
+
<h4 class="font-medium">Pages Analyzed</h4>
|
162 |
+
</div>
|
163 |
+
<div class="text-2xl font-bold text-gray-800 pl-11" id="pages-analyzed">0</div>
|
164 |
+
</div>
|
165 |
+
|
166 |
+
<div class="bg-white p-4 rounded-lg shadow-sm">
|
167 |
+
<div class="flex items-center mb-2">
|
168 |
+
<div class="w-8 h-8 rounded-full bg-green-100 text-green-600 flex items-center justify-center mr-3">
|
169 |
+
<i class="fas fa-lightbulb"></i>
|
170 |
+
</div>
|
171 |
+
<h4 class="font-medium">Key Concepts</h4>
|
172 |
+
</div>
|
173 |
+
<div class="text-2xl font-bold text-gray-800 pl-11" id="key-concepts">0</div>
|
174 |
+
</div>
|
175 |
+
|
176 |
+
<div class="bg-white p-4 rounded-lg shadow-sm">
|
177 |
+
<div class="flex items-center mb-2">
|
178 |
+
<div class="w-8 h-8 rounded-full bg-purple-100 text-purple-600 flex items-center justify-center mr-3">
|
179 |
+
<i class="fas fa-sitemap"></i>
|
180 |
+
</div>
|
181 |
+
<h4 class="font-medium">Topics Identified</h4>
|
182 |
+
</div>
|
183 |
+
<div class="text-2xl font-bold text-gray-800 pl-11" id="topics-identified">0</div>
|
184 |
+
</div>
|
185 |
+
</div>
|
186 |
+
</div>
|
187 |
+
|
188 |
+
<div class="bg-white border border-gray-200 rounded-lg p-6 mb-8">
|
189 |
+
<h3 class="text-lg font-medium text-gray-800 mb-4">Extracted Textbook Structure</h3>
|
190 |
+
<div class="overflow-x-auto">
|
191 |
+
<table class="min-w-full divide-y divide-gray-200">
|
192 |
+
<thead class="bg-gray-50">
|
193 |
+
<tr>
|
194 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Chapter</th>
|
195 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Title</th>
|
196 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Key Topics</th>
|
197 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Pages</th>
|
198 |
+
</tr>
|
199 |
+
</thead>
|
200 |
+
<tbody id="textbook-structure" class="bg-white divide-y divide-gray-200">
|
201 |
+
<tr>
|
202 |
+
<td colspan="4" class="px-6 py-4 text-center text-gray-500">Analysis in progress...</td>
|
203 |
+
</tr>
|
204 |
+
</tbody>
|
205 |
+
</table>
|
206 |
+
</div>
|
207 |
+
</div>
|
208 |
+
|
209 |
+
<div class="mt-8 flex justify-between">
|
210 |
+
<button class="text-gray-600 px-6 py-2 rounded-lg border border-gray-300 hover:bg-gray-50 transition-colors duration-200" id="prev-step-2">
|
211 |
+
<i class="fas fa-arrow-left mr-2"></i> Back
|
212 |
+
</button>
|
213 |
+
<button class="bg-indigo-600 text-white px-6 py-2 rounded-lg hover:bg-indigo-700 transition-colors duration-200" id="next-step-2">
|
214 |
+
Generate Course <i class="fas fa-arrow-right ml-2"></i>
|
215 |
+
</button>
|
216 |
+
</div>
|
217 |
+
</div>
|
218 |
+
|
219 |
+
<!-- Step 3: Course Outline -->
|
220 |
+
<div id="step-3" class="step-content hidden">
|
221 |
+
<div class="mb-6">
|
222 |
+
<h2 class="text-2xl font-semibold text-gray-800 mb-2">Course Outline</h2>
|
223 |
+
<p class="text-gray-600">Review and customize the generated course structure based on your textbook.</p>
|
224 |
+
</div>
|
225 |
+
|
226 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8">
|
227 |
+
<div class="lg:col-span-2">
|
228 |
+
<div class="bg-white border border-gray-200 rounded-lg p-6 mb-6">
|
229 |
+
<h3 class="text-lg font-medium text-gray-800 mb-4">Course Information</h3>
|
230 |
+
<div class="space-y-4">
|
231 |
+
<div>
|
232 |
+
<label for="course-title" class="block text-sm font-medium text-gray-700 mb-1">Course Title</label>
|
233 |
+
<input type="text" id="course-title" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-indigo-500 focus:border-indigo-500" value="Introduction to Computer Science">
|
234 |
+
</div>
|
235 |
+
<div>
|
236 |
+
<label for="course-description" class="block text-sm font-medium text-gray-700 mb-1">Course Description</label>
|
237 |
+
<textarea id="course-description" rows="4" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-indigo-500 focus:border-indigo-500">This course provides a comprehensive introduction to the fundamental concepts of computer science, including algorithms, data structures, programming paradigms, and computational thinking.</textarea>
|
238 |
+
</div>
|
239 |
+
<div class="flex items-center">
|
240 |
+
<input id="include-exercises" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded" checked>
|
241 |
+
<label for="include-exercises" class="ml-2 block text-sm text-gray-700">Include practice exercises in lessons</label>
|
242 |
+
</div>
|
243 |
+
<div class="flex items-center">
|
244 |
+
<input id="include-quizzes" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded" checked>
|
245 |
+
<label for="include-quizzes" class="ml-2 block text-sm text-gray-700">Include quizzes at the end of each module</label>
|
246 |
+
</div>
|
247 |
+
</div>
|
248 |
+
</div>
|
249 |
+
|
250 |
+
<div class="bg-white border border-gray-200 rounded-lg p-6">
|
251 |
+
<div class="flex items-center justify-between mb-4">
|
252 |
+
<h3 class="text-lg font-medium text-gray-800">Course Modules</h3>
|
253 |
+
<button id="add-module" class="text-sm text-indigo-600 hover:text-indigo-800 flex items-center">
|
254 |
+
<i class="fas fa-plus-circle mr-1"></i> Add Module
|
255 |
+
</button>
|
256 |
+
</div>
|
257 |
+
|
258 |
+
<div id="modules-container" class="space-y-4">
|
259 |
+
<!-- Module cards will be added here -->
|
260 |
+
<div class="module-card bg-gray-50 border border-gray-200 rounded-lg p-4">
|
261 |
+
<div class="flex items-start justify-between">
|
262 |
+
<div class="flex-1">
|
263 |
+
<input type="text" class="w-full font-medium text-gray-800 bg-transparent border-b border-transparent focus:border-gray-300 focus:outline-none mb-2" value="Module 1: Introduction to Computing">
|
264 |
+
<textarea class="w-full text-sm text-gray-600 bg-transparent border-b border-transparent focus:border-gray-300 focus:outline-none" rows="2">This module covers the basic concepts of computing, history of computers, and fundamental terminology.</textarea>
|
265 |
+
</div>
|
266 |
+
<button class="text-gray-400 hover:text-red-500 ml-2">
|
267 |
+
<i class="fas fa-trash-alt"></i>
|
268 |
+
</button>
|
269 |
+
</div>
|
270 |
+
</div>
|
271 |
+
|
272 |
+
<div class="module-card bg-gray-50 border border-gray-200 rounded-lg p-4">
|
273 |
+
<div class="flex items-start justify-between">
|
274 |
+
<div class="flex-1">
|
275 |
+
<input type="text" class="w-full font-medium text-gray-800 bg-transparent border-b border-transparent focus:border-gray-300 focus:outline-none mb-2" value="Module 2: Programming Fundamentals">
|
276 |
+
<textarea class="w-full text-sm text-gray-600 bg-transparent border-b border-transparent focus:border-gray-300 focus:outline-none" rows="2">Learn the basics of programming including variables, control structures, and simple algorithms.</textarea>
|
277 |
+
</div>
|
278 |
+
<button class="text-gray-400 hover:text-red-500 ml-2">
|
279 |
+
<i class="fas fa-trash-alt"></i>
|
280 |
+
</button>
|
281 |
+
</div>
|
282 |
+
</div>
|
283 |
+
|
284 |
+
<div class="module-card bg-gray-50 border border-gray-200 rounded-lg p-4">
|
285 |
+
<div class="flex items-start justify-between">
|
286 |
+
<div class="flex-1">
|
287 |
+
<input type="text" class="w-full font-medium text-gray-800 bg-transparent border-b border-transparent focus:border-gray-300 focus:outline-none mb-2" value="Module 3: Data Structures">
|
288 |
+
<textarea class="w-full text-sm text-gray-600 bg-transparent border-b border-transparent focus:border-gray-300 focus:outline-none" rows="2">Introduction to basic data structures like arrays, linked lists, stacks, and queues.</textarea>
|
289 |
+
</div>
|
290 |
+
<button class="text-gray-400 hover:text-red-500 ml-2">
|
291 |
+
<i class="fas fa-trash-alt"></i>
|
292 |
+
</button>
|
293 |
+
</div>
|
294 |
+
</div>
|
295 |
+
</div>
|
296 |
+
</div>
|
297 |
+
</div>
|
298 |
+
|
299 |
+
<div class="lg:col-span-1">
|
300 |
+
<div class="bg-white border border-gray-200 rounded-lg p-6 sticky top-4">
|
301 |
+
<h3 class="text-lg font-medium text-gray-800 mb-4">Course Preview</h3>
|
302 |
+
<div class="space-y-4">
|
303 |
+
<div class="p-4 bg-indigo-50 rounded-lg">
|
304 |
+
<h4 class="font-medium text-indigo-800 mb-1" id="preview-course-title">Introduction to Computer Science</h4>
|
305 |
+
<p class="text-sm text-indigo-600" id="preview-course-description">This course provides a comprehensive introduction to the fundamental concepts of computer science...</p>
|
306 |
+
</div>
|
307 |
+
|
308 |
+
<div class="border-l-2 border-indigo-200 pl-4">
|
309 |
+
<h4 class="text-sm font-medium text-gray-500 uppercase mb-2">Modules</h4>
|
310 |
+
<ul class="space-y-3" id="preview-modules-list">
|
311 |
+
<li class="flex items-start">
|
312 |
+
<span class="flex items-center justify-center w-6 h-6 bg-indigo-100 text-indigo-800 rounded-full text-xs font-medium mr-2 mt-0.5">1</span>
|
313 |
+
<span>Introduction to Computing</span>
|
314 |
+
</li>
|
315 |
+
<li class="flex items-start">
|
316 |
+
<span class="flex items-center justify-center w-6 h-6 bg-indigo-100 text-indigo-800 rounded-full text-xs font-medium mr-2 mt-0.5">2</span>
|
317 |
+
<span>Programming Fundamentals</span>
|
318 |
+
</li>
|
319 |
+
<li class="flex items-start">
|
320 |
+
<span class="flex items-center justify-center w-6 h-6 bg-indigo-100 text-indigo-800 rounded-full text-xs font-medium mr-2 mt-0.5">3</span>
|
321 |
+
<span>Data Structures</span>
|
322 |
+
</li>
|
323 |
+
</ul>
|
324 |
+
</div>
|
325 |
+
|
326 |
+
<div class="pt-4 border-t border-gray-200">
|
327 |
+
<h4 class="text-sm font-medium text-gray-500 uppercase mb-2">Estimated Metrics</h4>
|
328 |
+
<div class="grid grid-cols-2 gap-4">
|
329 |
+
<div>
|
330 |
+
<p class="text-xs text-gray-500">Total Lessons</p>
|
331 |
+
<p class="font-medium">9</p>
|
332 |
+
</div>
|
333 |
+
<div>
|
334 |
+
<p class="text-xs text-gray-500">Total Quizzes</p>
|
335 |
+
<p class="font-medium">3</p>
|
336 |
+
</div>
|
337 |
+
<div>
|
338 |
+
<p class="text-xs text-gray-500">Duration</p>
|
339 |
+
<p class="font-medium">6 weeks</p>
|
340 |
+
</div>
|
341 |
+
<div>
|
342 |
+
<p class="text-xs text-gray-500">Difficulty</p>
|
343 |
+
<p class="font-medium">Beginner</p>
|
344 |
+
</div>
|
345 |
+
</div>
|
346 |
+
</div>
|
347 |
+
</div>
|
348 |
+
</div>
|
349 |
+
</div>
|
350 |
+
</div>
|
351 |
+
|
352 |
+
<div class="mt-8 flex justify-between">
|
353 |
+
<button class="text-gray-600 px-6 py-2 rounded-lg border border-gray-300 hover:bg-gray-50 transition-colors duration-200" id="prev-step-3">
|
354 |
+
<i class="fas fa-arrow-left mr-2"></i> Back
|
355 |
+
</button>
|
356 |
+
<button class="bg-indigo-600 text-white px-6 py-2 rounded-lg hover:bg-indigo-700 transition-colors duration-200" id="next-step-3">
|
357 |
+
Generate Lessons <i class="fas fa-arrow-right ml-2"></i>
|
358 |
+
</button>
|
359 |
+
</div>
|
360 |
+
</div>
|
361 |
+
|
362 |
+
<!-- Step 4: Generate Lessons -->
|
363 |
+
<div id="step-4" class="step-content hidden">
|
364 |
+
<div class="mb-6">
|
365 |
+
<h2 class="text-2xl font-semibold text-gray-800 mb-2">Lesson Generation</h2>
|
366 |
+
<p class="text-gray-600">AI-generated lessons for each module based on your textbook content.</p>
|
367 |
+
</div>
|
368 |
+
|
369 |
+
<div class="grid grid-cols-1 lg:grid-cols-4 gap-6 mb-8">
|
370 |
+
<div class="lg:col-span-1">
|
371 |
+
<div class="bg-white border border-gray-200 rounded-lg p-4 sticky top-4">
|
372 |
+
<h3 class="text-lg font-medium text-gray-800 mb-4">Modules</h3>
|
373 |
+
<ul class="space-y-2" id="modules-sidebar">
|
374 |
+
<li class="module-tab active px-3 py-2 rounded-lg bg-indigo-50 text-indigo-700 font-medium cursor-pointer" data-module="1">
|
375 |
+
Module 1: Introduction to Computing
|
376 |
+
</li>
|
377 |
+
<li class="module-tab px-3 py-2 rounded-lg hover:bg-gray-100 cursor-pointer" data-module="2">
|
378 |
+
Module 2: Programming Fundamentals
|
379 |
+
</li>
|
380 |
+
<li class="module-tab px-3 py-2 rounded-lg hover:bg-gray-100 cursor-pointer" data-module="3">
|
381 |
+
Module 3: Data Structures
|
382 |
+
</li>
|
383 |
+
</ul>
|
384 |
+
</div>
|
385 |
+
</div>
|
386 |
+
|
387 |
+
<div class="lg:col-span-3">
|
388 |
+
<div class="module-content active" data-module="1">
|
389 |
+
<div class="bg-white border border-gray-200 rounded-lg p-6 mb-6">
|
390 |
+
<h3 class="text-xl font-medium text-gray-800 mb-2">Module 1: Introduction to Computing</h3>
|
391 |
+
<p class="text-gray-600 mb-4">This module covers the basic concepts of computing, history of computers, and fundamental terminology.</p>
|
392 |
+
|
393 |
+
<div class="space-y-4">
|
394 |
+
<div class="lesson-item bg-gray-50 border border-gray-200 rounded-lg p-4">
|
395 |
+
<div class="flex items-start justify-between">
|
396 |
+
<div class="flex-1">
|
397 |
+
<h4 class="font-medium text-gray-800 mb-1">Lesson 1: History of Computing</h4>
|
398 |
+
<p class="text-sm text-gray-600">Explore the evolution of computing devices from early mechanical calculators to modern computers.</p>
|
399 |
+
</div>
|
400 |
+
<div class="flex items-center ml-4">
|
401 |
+
<button class="text-gray-400 hover:text-indigo-600 mr-2">
|
402 |
+
<i class="fas fa-edit"></i>
|
403 |
+
</button>
|
404 |
+
<button class="text-gray-400 hover:text-red-500">
|
405 |
+
<i class="fas fa-trash-alt"></i>
|
406 |
+
</button>
|
407 |
+
</div>
|
408 |
+
</div>
|
409 |
+
</div>
|
410 |
+
|
411 |
+
<div class="lesson-item bg-gray-50 border border-gray-200 rounded-lg p-4">
|
412 |
+
<div class="flex items-start justify-between">
|
413 |
+
<div class="flex-1">
|
414 |
+
<h4 class="font-medium text-gray-800 mb-1">Lesson 2: Computer Hardware Basics</h4>
|
415 |
+
<p class="text-sm text-gray-600">Learn about the fundamental components of a computer system and how they work together.</p>
|
416 |
+
</div>
|
417 |
+
<div class="flex items-center ml-4">
|
418 |
+
<button class="text-gray-400 hover:text-indigo-600 mr-2">
|
419 |
+
<i class="fas fa-edit"></i>
|
420 |
+
</button>
|
421 |
+
<button class="text-gray-400 hover:text-red-500">
|
422 |
+
<i class="fas fa-trash-alt"></i>
|
423 |
+
</button>
|
424 |
+
</div>
|
425 |
+
</div>
|
426 |
+
</div>
|
427 |
+
|
428 |
+
<div class="lesson-item bg-gray-50 border border-gray-200 rounded-lg p-4">
|
429 |
+
<div class="flex items-start justify-between">
|
430 |
+
<div class="flex-1">
|
431 |
+
<h4 class="font-medium text-gray-800 mb-1">Lesson 3: Software and Operating Systems</h4>
|
432 |
+
<p class="text-sm text-gray-600">Understand the role of software and operating systems in making hardware usable.</p>
|
433 |
+
</div>
|
434 |
+
<div class="flex items-center ml-4">
|
435 |
+
<button class="text-gray-400 hover:text-indigo-600 mr-2">
|
436 |
+
<i class="fas fa-edit"></i>
|
437 |
+
</button>
|
438 |
+
<button class="text-gray-400 hover:text-red-500">
|
439 |
+
<i class="fas fa-trash-alt"></i>
|
440 |
+
</button>
|
441 |
+
</div>
|
442 |
+
</div>
|
443 |
+
</div>
|
444 |
+
</div>
|
445 |
+
|
446 |
+
<button class="mt-4 text-sm text-indigo-600 hover:text-indigo-800 flex items-center">
|
447 |
+
<i class="fas fa-plus-circle mr-1"></i> Add Lesson
|
448 |
+
</button>
|
449 |
+
</div>
|
450 |
+
|
451 |
+
<div class="bg-white border border-gray-200 rounded-lg p-6">
|
452 |
+
<h3 class="text-lg font-medium text-gray-800 mb-4">Module Quiz</h3>
|
453 |
+
<div class="flex items-center mb-4">
|
454 |
+
<input id="include-module-quiz-1" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded" checked>
|
455 |
+
<label for="include-module-quiz-1" class="ml-2 block text-sm text-gray-700">Include quiz for this module</label>
|
456 |
+
</div>
|
457 |
+
|
458 |
+
<div class="space-y-4">
|
459 |
+
<div class="quiz-question bg-gray-50 border border-gray-200 rounded-lg p-4">
|
460 |
+
<div class="flex items-start justify-between mb-2">
|
461 |
+
<h4 class="font-medium text-gray-800">Question 1</h4>
|
462 |
+
<div class="flex items-center">
|
463 |
+
<button class="text-gray-400 hover:text-indigo-600 mr-2">
|
464 |
+
<i class="fas fa-edit"></i>
|
465 |
+
</button>
|
466 |
+
<button class="text-gray-400 hover:text-red-500">
|
467 |
+
<i class="fas fa-trash-alt"></i>
|
468 |
+
</button>
|
469 |
+
</div>
|
470 |
+
</div>
|
471 |
+
<p class="text-sm text-gray-700 mb-3">Which of these was the first general-purpose electronic computer?</p>
|
472 |
+
<div class="space-y-2 ml-4">
|
473 |
+
<div class="flex items-center">
|
474 |
+
<input type="radio" name="q1" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300">
|
475 |
+
<label class="ml-2 block text-sm text-gray-700">ENIAC</label>
|
476 |
+
</div>
|
477 |
+
<div class="flex items-center">
|
478 |
+
<input type="radio" name="q1" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300">
|
479 |
+
<label class="ml-2 block text-sm text-gray-700">UNIVAC</label>
|
480 |
+
</div>
|
481 |
+
<div class="flex items-center">
|
482 |
+
<input type="radio" name="q1" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300">
|
483 |
+
<label class="ml-2 block text-sm text-gray-700">IBM 701</label>
|
484 |
+
</div>
|
485 |
+
<div class="flex items-center">
|
486 |
+
<input type="radio" name="q1" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300">
|
487 |
+
<label class="ml-2 block text-sm text-gray-700">Apple I</label>
|
488 |
+
</div>
|
489 |
+
</div>
|
490 |
+
</div>
|
491 |
+
|
492 |
+
<button class="mt-2 text-sm text-indigo-600 hover:text-indigo-800 flex items-center">
|
493 |
+
<i class="fas fa-plus-circle mr-1"></i> Add Question
|
494 |
+
</button>
|
495 |
+
</div>
|
496 |
+
</div>
|
497 |
+
</div>
|
498 |
+
|
499 |
+
<div class="module-content hidden" data-module="2">
|
500 |
+
<!-- Module 2 content would go here -->
|
501 |
+
<div class="text-center py-12 text-gray-500">
|
502 |
+
<i class="fas fa-spinner animate-spin text-3xl mb-3"></i>
|
503 |
+
<p>Generating content for Module 2...</p>
|
504 |
+
</div>
|
505 |
+
</div>
|
506 |
+
|
507 |
+
<div class="module-content hidden" data-module="3">
|
508 |
+
<!-- Module 3 content would go here -->
|
509 |
+
<div class="text-center py-12 text-gray-500">
|
510 |
+
<i class="fas fa-spinner animate-spin text-3xl mb-3"></i>
|
511 |
+
<p>Generating content for Module 3...</p>
|
512 |
+
</div>
|
513 |
+
</div>
|
514 |
+
</div>
|
515 |
+
</div>
|
516 |
+
|
517 |
+
<div class="mt-8 flex justify-between">
|
518 |
+
<button class="text-gray-600 px-6 py-2 rounded-lg border border-gray-300 hover:bg-gray-50 transition-colors duration-200" id="prev-step-4">
|
519 |
+
<i class="fas fa-arrow-left mr-2"></i> Back
|
520 |
+
</button>
|
521 |
+
<button class="bg-indigo-600 text-white px-6 py-2 rounded-lg hover:bg-indigo-700 transition-colors duration-200" id="next-step-4">
|
522 |
+
Finalize Course <i class="fas fa-arrow-right ml-2"></i>
|
523 |
+
</button>
|
524 |
+
</div>
|
525 |
+
</div>
|
526 |
+
|
527 |
+
<!-- Step 5: Finalize Course -->
|
528 |
+
<div id="step-5" class="step-content hidden">
|
529 |
+
<div class="mb-6">
|
530 |
+
<h2 class="text-2xl font-semibold text-gray-800 mb-2">Course Finalization</h2>
|
531 |
+
<p class="text-gray-600">Review and export your completed course materials.</p>
|
532 |
+
</div>
|
533 |
+
|
534 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8">
|
535 |
+
<div class="lg:col-span-2">
|
536 |
+
<div class="bg-white border border-gray-200 rounded-lg p-6 mb-6">
|
537 |
+
<h3 class="text-lg font-medium text-gray-800 mb-4">Course Summary</h3>
|
538 |
+
|
539 |
+
<div class="space-y-6">
|
540 |
+
<div>
|
541 |
+
<h4 class="font-medium text-gray-700 mb-2">Course Title</h4>
|
542 |
+
<p class="text-gray-800" id="final-course-title">Introduction to Computer Science</p>
|
543 |
+
</div>
|
544 |
+
|
545 |
+
<div>
|
546 |
+
<h4 class="font-medium text-gray-700 mb-2">Course Description</h4>
|
547 |
+
<p class="text-gray-800" id="final-course-description">This course provides a comprehensive introduction to the fundamental concepts of computer science, including algorithms, data structures, programming paradigms, and computational thinking.</p>
|
548 |
+
</div>
|
549 |
+
|
550 |
+
<div>
|
551 |
+
<h4 class="font-medium text-gray-700 mb-2">Course Structure</h4>
|
552 |
+
<div class="space-y-4">
|
553 |
+
<div class="module-summary bg-gray-50 border border-gray-200 rounded-lg p-4">
|
554 |
+
<h5 class="font-medium text-gray-800 mb-1">Module 1: Introduction to Computing</h5>
|
555 |
+
<p class="text-sm text-gray-600 mb-2">3 lessons, 1 quiz</p>
|
556 |
+
<ul class="text-sm text-gray-700 space-y-1 ml-4">
|
557 |
+
<li class="flex items-start">
|
558 |
+
<span class="text-indigo-600 mr-2">•</span>
|
559 |
+
<span>Lesson 1: History of Computing</span>
|
560 |
+
</li>
|
561 |
+
<li class="flex items-start">
|
562 |
+
<span class="text-indigo-600 mr-2">•</span>
|
563 |
+
<span>Lesson 2: Computer Hardware Basics</span>
|
564 |
+
</li>
|
565 |
+
<li class="flex items-start">
|
566 |
+
<span class="text-indigo-600 mr-2">•</span>
|
567 |
+
<span>Lesson 3: Software and Operating Systems</span>
|
568 |
+
</li>
|
569 |
+
</ul>
|
570 |
+
</div>
|
571 |
+
|
572 |
+
<div class="module-summary bg-gray-50 border border-gray-200 rounded-lg p-4">
|
573 |
+
<h5 class="font-medium text-gray-800 mb-1">Module 2: Programming Fundamentals</h5>
|
574 |
+
<p class="text-sm text-gray-600 mb-2">3 lessons, 1 quiz</p>
|
575 |
+
<ul class="text-sm text-gray-700 space-y-1 ml-4">
|
576 |
+
<li class="flex items-start">
|
577 |
+
<span class="text-indigo-600 mr-2">•</span>
|
578 |
+
<span>Lesson 1: Variables and Data Types</span>
|
579 |
+
</li>
|
580 |
+
<li class="flex items-start">
|
581 |
+
<span class="text-indigo-600 mr-2">•</span>
|
582 |
+
<span>Lesson 2: Control Structures</span>
|
583 |
+
</li>
|
584 |
+
<li class="flex items-start">
|
585 |
+
<span class="text-indigo-600 mr-2">•</span>
|
586 |
+
<span>Lesson 3: Functions and Modularity</span>
|
587 |
+
</li>
|
588 |
+
</ul>
|
589 |
+
</div>
|
590 |
+
|
591 |
+
<div class="module-summary bg-gray-50 border border-gray-200 rounded-lg p-4">
|
592 |
+
<h5 class="font-medium text-gray-800 mb-1">Module 3: Data Structures</h5>
|
593 |
+
<p class="text-sm text-gray-600 mb-2">3 lessons, 1 quiz</p>
|
594 |
+
<ul class="text-sm text-gray-700 space-y-1 ml-4">
|
595 |
+
<li class="flex items-start">
|
596 |
+
<span class="text-indigo-600 mr-2">•</span>
|
597 |
+
<span>Lesson 1: Arrays and Linked Lists</span>
|
598 |
+
</li>
|
599 |
+
<li class="flex items-start">
|
600 |
+
<span class="text-indigo-600 mr-2">•</span>
|
601 |
+
<span>Lesson 2: Stacks and Queues</span>
|
602 |
+
</li>
|
603 |
+
<li class="flex items-start">
|
604 |
+
<span class="text-indigo-600 mr-2">•</span>
|
605 |
+
<span>Lesson 3: Trees and Graphs</span>
|
606 |
+
</li>
|
607 |
+
</ul>
|
608 |
+
</div>
|
609 |
+
</div>
|
610 |
+
</div>
|
611 |
+
|
612 |
+
<div>
|
613 |
+
<h4 class="font-medium text-gray-700 mb-2">Assessment Summary</h4>
|
614 |
+
<div class="grid grid-cols-3 gap-4">
|
615 |
+
<div class="bg-gray-50 p-3 rounded-lg">
|
616 |
+
<p class="text-xs text-gray-500">Total Questions</p>
|
617 |
+
<p class="font-medium">15</p>
|
618 |
+
</div>
|
619 |
+
<div class="bg-gray-50 p-3 rounded-lg">
|
620 |
+
<p class="text-xs text-gray-500">Multiple Choice</p>
|
621 |
+
<p class="font-medium">12</p>
|
622 |
+
</div>
|
623 |
+
<div class="bg-gray-50 p-3 rounded-lg">
|
624 |
+
<p class="text-xs text-gray-500">Short Answer</p>
|
625 |
+
<p class="font-medium">3</p>
|
626 |
+
</div>
|
627 |
+
</div>
|
628 |
+
</div>
|
629 |
+
</div>
|
630 |
+
</div>
|
631 |
+
|
632 |
+
<div class="bg-white border border-gray-200 rounded-lg p-6">
|
633 |
+
<h3 class="text-lg font-medium text-gray-800 mb-4">Export Options</h3>
|
634 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
635 |
+
<button class="export-option flex flex-col items-center justify-center p-4 border-2 border-gray-200 rounded-lg hover:border-indigo-500 hover:bg-indigo-50 transition-colors duration-200">
|
636 |
+
<i class="fas fa-file-word text-3xl text-blue-600 mb-2"></i>
|
637 |
+
<span class="font-medium">Word Document</span>
|
638 |
+
<span class="text-xs text-gray-500">.docx format</span>
|
639 |
+
</button>
|
640 |
+
<button class="export-option flex flex-col items-center justify-center p-4 border-2 border-gray-200 rounded-lg hover:border-indigo-500 hover:bg-indigo-50 transition-colors duration-200">
|
641 |
+
<i class="fas fa-file-pdf text-3xl text-red-600 mb-2"></i>
|
642 |
+
<span class="font-medium">PDF</span>
|
643 |
+
<span class="text-xs text-gray-500">Portable format</span>
|
644 |
+
</button>
|
645 |
+
<button class="export-option flex flex-col items-center justify-center p-4 border-2 border-gray-200 rounded-lg hover:border-indigo-500 hover:bg-indigo-50 transition-colors duration-200">
|
646 |
+
<i class="fas fa-file-csv text-3xl text-green-600 mb-2"></i>
|
647 |
+
<span class="font-medium">CSV Package</span>
|
648 |
+
<span class="text-xs text-gray-500">For LMS import</span>
|
649 |
+
</button>
|
650 |
+
</div>
|
651 |
+
</div>
|
652 |
+
</div>
|
653 |
+
|
654 |
+
<div class="lg:col-span-1">
|
655 |
+
<div class="bg-white border border-gray-200 rounded-lg p-6 sticky top-4">
|
656 |
+
<h3 class="text-lg font-medium text-gray-800 mb-4">Final Checks</h3>
|
657 |
+
|
658 |
+
<div class="space-y-4 mb-6">
|
659 |
+
<div class="flex items-start">
|
660 |
+
<div class="flex-shrink-0">
|
661 |
+
<div class="flex items-center justify-center h-6 w-6 rounded-full bg-green-100">
|
662 |
+
<i class="fas fa-check text-green-600 text-xs"></i>
|
663 |
+
</div>
|
664 |
+
</div>
|
665 |
+
<div class="ml-3">
|
666 |
+
<p class="text-sm font-medium text-gray-700">Course title and description</p>
|
667 |
+
</div>
|
668 |
+
</div>
|
669 |
+
|
670 |
+
<div class="flex items-start">
|
671 |
+
<div class="flex-shrink-0">
|
672 |
+
<div class="flex items-center justify-center h-6 w-6 rounded-full bg-green-100">
|
673 |
+
<i class="fas fa-check text-green-600 text-xs"></i>
|
674 |
+
</div>
|
675 |
+
</div>
|
676 |
+
<div class="ml-3">
|
677 |
+
<p class="text-sm font-medium text-gray-700">Module structure</p>
|
678 |
+
</div>
|
679 |
+
</div>
|
680 |
+
|
681 |
+
<div class="flex items-start">
|
682 |
+
<div class="flex-shrink-0">
|
683 |
+
<div class="flex items-center justify-center h-6 w-6 rounded-full bg-green-100">
|
684 |
+
<i class="fas fa-check text-green-600 text-xs"></i>
|
685 |
+
</div>
|
686 |
+
</div>
|
687 |
+
<div class="ml-3">
|
688 |
+
<p class="text-sm font-medium text-gray-700">Lesson content</p>
|
689 |
+
</div>
|
690 |
+
</div>
|
691 |
+
|
692 |
+
<div class="flex items-start">
|
693 |
+
<div class="flex-shrink-0">
|
694 |
+
<div class="flex items-center justify-center h-6 w-6 rounded-full bg-indigo-100 animate-pulse">
|
695 |
+
<i class="fas fa-spinner text-indigo-600 text-xs"></i>
|
696 |
+
</div>
|
697 |
+
</div>
|
698 |
+
<div class="ml-3">
|
699 |
+
<p class="text-sm font-medium text-gray-700">Assessment questions</p>
|
700 |
+
<p class="text-xs text-gray-500">Generating final questions...</p>
|
701 |
+
</div>
|
702 |
+
</div>
|
703 |
+
</div>
|
704 |
+
|
705 |
+
<div class="pt-4 border-t border-gray-200">
|
706 |
+
<h4 class="text-sm font-medium text-gray-700 mb-2">Course Settings</h4>
|
707 |
+
<div class="space-y-3">
|
708 |
+
<div class="flex items-center">
|
709 |
+
<input id="include-answer-key" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded" checked>
|
710 |
+
<label for="include-answer-key" class="ml-2 block text-sm text-gray-700">Include answer key</label>
|
711 |
+
</div>
|
712 |
+
<div class="flex items-center">
|
713 |
+
<input id="include-references" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded" checked>
|
714 |
+
<label for="include-references" class="ml-2 block text-sm text-gray-700">Include textbook references</label>
|
715 |
+
</div>
|
716 |
+
<div class="flex items-center">
|
717 |
+
<input id="include-learning-objectives" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded" checked>
|
718 |
+
<label for="include-learning-objectives" class="ml-2 block text-sm text-gray-700">Include learning objectives</label>
|
719 |
+
</div>
|
720 |
+
</div>
|
721 |
+
</div>
|
722 |
+
</div>
|
723 |
+
</div>
|
724 |
+
</div>
|
725 |
+
|
726 |
+
<div class="mt-8 flex justify-between">
|
727 |
+
<button class="text-gray-600 px-6 py-2 rounded-lg border border-gray-300 hover:bg-gray-50 transition-colors duration-200" id="prev-step-5">
|
728 |
+
<i class="fas fa-arrow-left mr-2"></i> Back
|
729 |
+
</button>
|
730 |
+
<button class="bg-green-600 text-white px-6 py-2 rounded-lg hover:bg-green-700 transition-colors duration-200 flex items-center" id="finish-course">
|
731 |
+
<i class="fas fa-check-circle mr-2"></i> Complete Course Creation
|
732 |
+
</button>
|
733 |
+
</div>
|
734 |
+
</div>
|
735 |
+
</div>
|
736 |
+
</div>
|
737 |
+
|
738 |
+
<!-- Footer -->
|
739 |
+
<footer class="text-center text-gray-500 text-sm mt-12">
|
740 |
+
<p>Agentic RAG Course Creator - Transform textbooks into engaging courses with AI</p>
|
741 |
+
<p class="mt-1">© 2023 All Rights Reserved</p>
|
742 |
+
</footer>
|
743 |
+
</div>
|
744 |
+
|
745 |
+
<script>
|
746 |
+
// DOM Elements
|
747 |
+
const stepContents = document.querySelectorAll('.step-content');
|
748 |
+
const steps = document.querySelectorAll('.step');
|
749 |
+
const nextButtons = {
|
750 |
+
step1: document.getElementById('next-step-1'),
|
751 |
+
step2: document.getElementById('next-step-2'),
|
752 |
+
step3: document.getElementById('next-step-3'),
|
753 |
+
step4: document.getElementById('next-step-4')
|
754 |
+
};
|
755 |
+
const prevButtons = {
|
756 |
+
step2: document.getElementById('prev-step-2'),
|
757 |
+
step3: document.getElementById('prev-step-3'),
|
758 |
+
step4: document.getElementById('prev-step-4'),
|
759 |
+
step5: document.getElementById('prev-step-5')
|
760 |
+
};
|
761 |
+
const pdfUpload = document.getElementById('pdf-upload');
|
762 |
+
const browseBtn = document.getElementById('browse-btn');
|
763 |
+
const dropzone = document.getElementById('dropzone');
|
764 |
+
const pdfPreview = document.querySelector('.pdf-preview');
|
765 |
+
const progressBar = document.getElementById('progress-bar');
|
766 |
+
const progressPercent = document.getElementById('progress-percent');
|
767 |
+
const pagesAnalyzed = document.getElementById('pages-analyzed');
|
768 |
+
const keyConcepts = document.getElementById('key-concepts');
|
769 |
+
const topicsIdentified = document.getElementById('topics-identified');
|
770 |
+
const textbookStructure = document.getElementById('textbook-structure');
|
771 |
+
const courseTitle = document.getElementById('course-title');
|
772 |
+
const courseDescription = document.getElementById('course-description');
|
773 |
+
const previewCourseTitle = document.getElementById('preview-course-title');
|
774 |
+
const previewCourseDescription = document.getElementById('preview-course-description');
|
775 |
+
const modulesContainer = document.getElementById('modules-container');
|
776 |
+
const addModuleBtn = document.getElementById('add-module');
|
777 |
+
const previewModulesList = document.getElementById('preview-modules-list');
|
778 |
+
const moduleTabs = document.querySelectorAll('.module-tab');
|
779 |
+
const moduleContents = document.querySelectorAll('.module-content');
|
780 |
+
const finishCourseBtn = document.getElementById('finish-course');
|
781 |
+
|
782 |
+
// Current step
|
783 |
+
let currentStep = 1;
|
784 |
+
|
785 |
+
// Event Listeners
|
786 |
+
browseBtn.addEventListener('click', () => pdfUpload.click());
|
787 |
+
pdfUpload.addEventListener('change', handleFileUpload);
|
788 |
+
|
789 |
+
// Drag and drop for PDF
|
790 |
+
dropzone.addEventListener('dragover', (e) => {
|
791 |
+
e.preventDefault();
|
792 |
+
dropzone.classList.add('border-indigo-500', 'bg-indigo-50');
|
793 |
+
});
|
794 |
+
|
795 |
+
dropzone.addEventListener('dragleave', () => {
|
796 |
+
dropzone.classList.remove('border-indigo-500', 'bg-indigo-50');
|
797 |
+
});
|
798 |
+
|
799 |
+
dropzone.addEventListener('drop', (e) => {
|
800 |
+
e.preventDefault();
|
801 |
+
dropzone.classList.remove('border-indigo-500', 'bg-indigo-50');
|
802 |
+
|
803 |
+
if (e.dataTransfer.files.length) {
|
804 |
+
pdfUpload.files = e.dataTransfer.files;
|
805 |
+
handleFileUpload({ target: pdfUpload });
|
806 |
+
}
|
807 |
+
});
|
808 |
+
|
809 |
+
// Next step buttons
|
810 |
+
nextButtons.step1.addEventListener('click', () => navigateToStep(2));
|
811 |
+
nextButtons.step2.addEventListener('click', () => navigateToStep(3));
|
812 |
+
nextButtons.step3.addEventListener('click', () => navigateToStep(4));
|
813 |
+
nextButtons.step4.addEventListener('click', () => navigateToStep(5));
|
814 |
+
|
815 |
+
// Previous step buttons
|
816 |
+
prevButtons.step2.addEventListener('click', () => navigateToStep(1));
|
817 |
+
prevButtons.step3.addEventListener('click', () => navigateToStep(2));
|
818 |
+
prevButtons.step4.addEventListener('click', () => navigateToStep(3));
|
819 |
+
prevButtons.step5.addEventListener('click', () => navigateToStep(4));
|
820 |
+
|
821 |
+
// Module tabs
|
822 |
+
moduleTabs.forEach(tab => {
|
823 |
+
tab.addEventListener('click', () => {
|
824 |
+
const moduleId = tab.getAttribute('data-module');
|
825 |
+
|
826 |
+
// Update active tab
|
827 |
+
moduleTabs.forEach(t => t.classList.remove('active', 'bg-indigo-50', 'text-indigo-700'));
|
828 |
+
tab.classList.add('active', 'bg-indigo-50', 'text-indigo-700');
|
829 |
+
|
830 |
+
// Show corresponding content
|
831 |
+
moduleContents.forEach(content => {
|
832 |
+
content.classList.add('hidden');
|
833 |
+
if (content.getAttribute('data-module') === moduleId) {
|
834 |
+
content.classList.remove('hidden');
|
835 |
+
}
|
836 |
+
});
|
837 |
+
});
|
838 |
+
});
|
839 |
+
|
840 |
+
// Add module button
|
841 |
+
addModuleBtn.addEventListener('click', () => {
|
842 |
+
const moduleCount = modulesContainer.children.length + 1;
|
843 |
+
const newModule = document.createElement('div');
|
844 |
+
newModule.className = 'module-card bg-gray-50 border border-gray-200 rounded-lg p-4';
|
845 |
+
newModule.innerHTML = `
|
846 |
+
<div class="flex items-start justify-between">
|
847 |
+
<div class="flex-1">
|
848 |
+
<input type="text" class="w-full font-medium text-gray-800 bg-transparent border-b border-transparent focus:border-gray-300 focus:outline-none mb-2" value="Module ${moduleCount}: New Module">
|
849 |
+
<textarea class="w-full text-sm text-gray-600 bg-transparent border-b border-transparent focus:border-gray-300 focus:outline-none" rows="2" placeholder="Module description..."></textarea>
|
850 |
+
</div>
|
851 |
+
<button class="text-gray-400 hover:text-red-500 ml-2 delete-module">
|
852 |
+
<i class="fas fa-trash-alt"></i>
|
853 |
+
</button>
|
854 |
+
</div>
|
855 |
+
`;
|
856 |
+
modulesContainer.appendChild(newModule);
|
857 |
+
|
858 |
+
// Add to preview
|
859 |
+
const newPreviewItem = document.createElement('li');
|
860 |
+
newPreviewItem.className = 'flex items-start';
|
861 |
+
newPreviewItem.innerHTML = `
|
862 |
+
<span class="flex items-center justify-center w-6 h-6 bg-indigo-100 text-indigo-800 rounded-full text-xs font-medium mr-2 mt-0.5">${moduleCount}</span>
|
863 |
+
<span>New Module</span>
|
864 |
+
`;
|
865 |
+
previewModulesList.appendChild(newPreviewItem);
|
866 |
+
|
867 |
+
// Add delete event listener
|
868 |
+
newModule.querySelector('.delete-module').addEventListener('click', () => {
|
869 |
+
newModule.remove();
|
870 |
+
newPreviewItem.remove();
|
871 |
+
// Would need to renumber remaining modules in a real implementation
|
872 |
+
});
|
873 |
+
});
|
874 |
+
|
875 |
+
// Course title/description updates
|
876 |
+
courseTitle.addEventListener('input', () => {
|
877 |
+
previewCourseTitle.textContent = courseTitle.value || 'Untitled Course';
|
878 |
+
});
|
879 |
+
|
880 |
+
courseDescription.addEventListener('input', () => {
|
881 |
+
previewCourseDescription.textContent = courseDescription.value || 'No description provided';
|
882 |
+
});
|
883 |
+
|
884 |
+
// Finish course button
|
885 |
+
finishCourseBtn.addEventListener('click', () => {
|
886 |
+
// In a real app, this would trigger the export/download process
|
887 |
+
alert('Course creation complete! Your materials are ready for export.');
|
888 |
+
});
|
889 |
+
|
890 |
+
// Functions
|
891 |
+
function handleFileUpload(e) {
|
892 |
+
const file = e.target.files[0];
|
893 |
+
if (file && file.type === 'application/pdf') {
|
894 |
+
// Simulate PDF preview (in a real app, you'd use a PDF viewer library)
|
895 |
+
pdfPreview.innerHTML = `
|
896 |
+
<div class="text-center">
|
897 |
+
<i class="fas fa-file-pdf text-4xl text-red-500 mb-3"></i>
|
898 |
+
<p class="font-medium">${file.name}</p>
|
899 |
+
<p class="text-sm text-gray-500 mt-1">${(file.size / (1024 * 1024)).toFixed(2)} MB</p>
|
900 |
+
</div>
|
901 |
+
`;
|
902 |
+
|
903 |
+
// Enable next button
|
904 |
+
nextButtons.step1.disabled = false;
|
905 |
+
nextButtons.step1.classList.remove('opacity-50', 'cursor-not-allowed');
|
906 |
+
|
907 |
+
// Simulate analysis after a delay
|
908 |
+
setTimeout(() => {
|
909 |
+
simulateAnalysis();
|
910 |
+
}, 1000);
|
911 |
+
} else {
|
912 |
+
alert('Please upload a valid PDF file.');
|
913 |
+
}
|
914 |
+
}
|
915 |
+
|
916 |
+
function simulateAnalysis() {
|
917 |
+
let progress = 0;
|
918 |
+
const analysisInterval = setInterval(() => {
|
919 |
+
progress += Math.random() * 5;
|
920 |
+
if (progress > 100) progress = 100;
|
921 |
+
|
922 |
+
progressBar.style.width = `${progress}%`;
|
923 |
+
progressPercent.textContent = `${Math.floor(progress)}%`;
|
924 |
+
|
925 |
+
// Update other metrics
|
926 |
+
pagesAnalyzed.textContent = Math.floor(progress * 2.5);
|
927 |
+
keyConcepts.textContent = Math.floor(progress * 1.8);
|
928 |
+
topicsIdentified.textContent = Math.floor(progress * 0.8);
|
929 |
+
|
930 |
+
// Populate textbook structure (simulated)
|
931 |
+
if (progress > 30 && textbookStructure.children.length === 1) {
|
932 |
+
textbookStructure.innerHTML = `
|
933 |
+
<tr>
|
934 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">1</td>
|
935 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Introduction to Computing</td>
|
936 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">History, Hardware, Software</td>
|
937 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1-25</td>
|
938 |
+
</tr>
|
939 |
+
<tr>
|
940 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">2</td>
|
941 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Programming Fundamentals</td>
|
942 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Variables, Control Structures, Functions</td>
|
943 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">26-58</td>
|
944 |
+
</tr>
|
945 |
+
<tr>
|
946 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">3</td>
|
947 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Data Structures</td>
|
948 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Arrays, Linked Lists, Trees</td>
|
949 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">59-92</td>
|
950 |
+
</tr>
|
951 |
+
<tr>
|
952 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">4</td>
|
953 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Algorithms</td>
|
954 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Sorting, Searching, Complexity</td>
|
955 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">93-132</td>
|
956 |
+
</tr>
|
957 |
+
`;
|
958 |
+
}
|
959 |
+
|
960 |
+
if (progress >= 100) {
|
961 |
+
clearInterval(analysisInterval);
|
962 |
+
}
|
963 |
+
}, 200);
|
964 |
+
}
|
965 |
+
|
966 |
+
function navigateToStep(step) {
|
967 |
+
// Hide current step
|
968 |
+
document.querySelector(`#step-${currentStep}`).classList.add('hidden');
|
969 |
+
document.querySelector(`.step[data-step="${currentStep}"] div`).classList.remove('bg-indigo-600', 'text-white');
|
970 |
+
document.querySelector(`.step[data-step="${currentStep}"] div`).classList.add('bg-gray-300', 'text-gray-600');
|
971 |
+
document.querySelector(`.step[data-step="${currentStep}"] span`).classList.remove('text-gray-700');
|
972 |
+
document.querySelector(`.step[data-step="${currentStep}"] span`).classList.add('text-gray-500');
|
973 |
+
|
974 |
+
// Update current step
|
975 |
+
currentStep = step;
|
976 |
+
|
977 |
+
// Show new step
|
978 |
+
document.querySelector(`#step-${currentStep}`).classList.remove('hidden');
|
979 |
+
document.querySelector(`.step[data-step="${currentStep}"] div`).classList.remove('bg-gray-300', 'text-gray-600');
|
980 |
+
document.querySelector(`.step[data-step="${currentStep}"] div`).classList.add('bg-indigo-600', 'text-white');
|
981 |
+
document.querySelector(`.step[data-step="${currentStep}"] span`).classList.remove('text-gray-500');
|
982 |
+
document.querySelector(`.step[data-step="${currentStep}"] span`).classList.add('text-gray-700');
|
983 |
+
|
984 |
+
// Update progress line
|
985 |
+
if (currentStep > 1) {
|
986 |
+
for (let i = 1; i < currentStep; i++) {
|
987 |
+
const line = document.querySelector(`.step[data-step="${i}"] div:last-child`);
|
988 |
+
if (line) line.classList.remove('bg-gray-300');
|
989 |
+
if (line) line.classList.add('bg-indigo-600');
|
990 |
+
}
|
991 |
+
}
|
992 |
+
|
993 |
+
// Scroll to top
|
994 |
+
window.scrollTo(0, 0);
|
995 |
+
}
|
996 |
+
</script>
|
997 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=MrEzzat/course-creator" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
998 |
+
</html>
|