Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
94 lines (79 loc) · 4.48 KB
/
Copy pathindex.html
File metadata and controls
94 lines (79 loc) · 4.48 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AP Prep Studio</title>
<!-- Typography & Icons -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
<!-- Animate.css -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
<!-- KaTeX Math Rendering -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css">
<script src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js"></script>
<!-- Tailwind CSS setup -->
<script>
window.tailwind = { config: { suppressExperimentalWarnings: true } };
</script>
<script src="https://cdn.tailwindcss.com"></script>
<style>
body { font-family: 'Inter', sans-serif; }
</style>
</head>
<body class="bg-slate-900 text-slate-100 min-h-screen p-6">
<div class="max-w-4xl mx-auto space-y-6">
<!-- Header & Navigation -->
<header class="flex flex-col sm:flex-row justify-between items-center bg-slate-800/80 backdrop-blur p-4 rounded-xl border border-slate-700/50 shadow-xl gap-4">
<div class="flex items-center space-x-3">
<i class="fa-solid fa-graduation-cap text-indigo-400 text-2xl"></i>
<h1 class="text-xl font-bold tracking-wide">AP Question Studio</h1>
</div>
<!-- Course & Unit Controls -->
<div class="flex items-center gap-3">
<select id="course-select" class="bg-slate-700 border border-slate-600 text-sm rounded-lg p-2 text-slate-200 focus:outline-none focus:ring-2 focus:ring-indigo-500">
<option value="calc">AP Calculus BC</option>
<option value="phys">AP Physics C</option>
</select>
<select id="unit-select" class="bg-slate-700 border border-slate-600 text-sm rounded-lg p-2 text-slate-200 focus:outline-none focus:ring-2 focus:ring-indigo-500">
<!-- Dynamically populated via app.js -->
</select>
</div>
</header>
<!-- Question Card Box -->
<div class="relative bg-slate-800 border border-slate-700 rounded-2xl p-6 sm:p-8 shadow-2xl transition-all duration-300 min-h-[300px]">
<!-- Difficulty Badge (Corner Component) -->
<div id="difficulty-badge" class="absolute top-4 right-4 flex items-center gap-1.5 px-3 py-1 rounded-full text-xs font-semibold tracking-wider uppercase shadow-lg border transition-all duration-300 opacity-0">
<i id="badge-icon" class="fa-solid fa-circle-dot"></i>
<span id="badge-text">Evaluating...</span>
</div>
<!-- Problem Prompt -->
<div class="mt-4 mb-6">
<h2 class="text-xs font-semibold text-slate-400 tracking-wider uppercase mb-3">Generated Problem</h2>
<div id="question-prompt" class="text-lg text-slate-100 leading-relaxed space-y-2">Select a unit to generate a problem.</div>
</div>
<!-- Solution Section -->
<div id="solution-container" class="hidden mt-6 pt-6 border-t border-slate-700/60 animate__animated animate__fadeIn">
<h2 class="text-xs font-semibold text-emerald-400 tracking-wider uppercase mb-3">Step-by-Step Solution</h2>
<div id="solution-text" class="text-slate-300 space-y-2 leading-relaxed"></div>
</div>
<!-- Controls Footer -->
<div class="mt-8 flex flex-col sm:flex-row justify-between items-center gap-4">
<button id="show-sol-btn" class="w-full sm:w-auto px-5 py-2.5 bg-slate-700 hover:bg-slate-600 text-slate-200 text-sm font-medium rounded-lg transition-all flex items-center justify-center gap-2">
<i class="fa-solid fa-eye"></i> Show Solution
</button>
<button id="next-q-btn" class="w-full sm:w-auto px-6 py-2.5 bg-indigo-600 hover:bg-indigo-500 text-white text-sm font-medium rounded-lg shadow-lg shadow-indigo-600/30 transition-all flex items-center justify-center gap-2">
<i class="fa-solid fa-rotate-right"></i> Next Question
</button>
</div>
</div>
</div>
<!-- Scripts in execution order -->
<script src="js/mlEvaluator.js"></script>
<script src="js/calcEngine.js"></script>
<script src="js/physEngine.js"></script>
<script src="js/app.js"></script>
</body>
</html>