-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathscorepredictor.html
More file actions
525 lines (464 loc) · 18.5 KB
/
scorepredictor.html
File metadata and controls
525 lines (464 loc) · 18.5 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
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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AP CSP Course Predictor - Open Coding Society</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous">
<!-- Font Awesome -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet">
<style>
/* Base animations and transitions */
* {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Light theme styles */
body[data-bs-theme="light"] {
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
color: #212529;
}
body[data-bs-theme="light"] .card {
background: rgba(255, 255, 255, 0.95);
color: #212529;
border: 1px solid rgba(0, 0, 0, 0.1);
backdrop-filter: blur(10px);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
body[data-bs-theme="light"] .btn-primary {
background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
border: none;
color: #ffffff;
box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}
body[data-bs-theme="light"] .btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 25px rgba(13, 110, 253, 0.4);
background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}
/* Dark theme styles */
body[data-bs-theme="dark"] {
background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
color: #f8f9fa;
}
body[data-bs-theme="dark"] .card {
background: rgba(30, 30, 30, 0.95);
color: #f8f9fa;
border: 1px solid rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
body[data-bs-theme="dark"] .btn-primary {
background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%);
border: none;
color: #ffffff;
box-shadow: 0 4px 15px rgba(77, 171, 247, 0.3);
}
body[data-bs-theme="dark"] .btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 25px rgba(77, 171, 247, 0.4);
background: linear-gradient(135deg, #339af0 0%, #228be6 100%);
}
body[data-bs-theme="dark"] .text-muted {
color: #adb5bd !important;
}
/* Theme toggle button */
#theme-toggle {
position: fixed;
top: 25px;
right: 100px;
height: 50px;
width: 50px;
z-index: 1000;
border-radius: 50%;
border: 2px solid;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
cursor: pointer;
}
body[data-bs-theme="light"] #theme-toggle {
background: rgba(255, 255, 255, 0.9);
border-color: #dee2e6;
color: #495057;
}
body[data-bs-theme="dark"] #theme-toggle {
background: rgba(30, 30, 30, 0.9);
border-color: #495057;
color: #f8f9fa;
}
#theme-toggle:hover {
transform: scale(1.1) rotate(10deg);
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}
/* Hero section */
.hero-section {
padding: 80px 0;
text-align: center;
position: relative;
}
.hero-section h1 {
animation: fadeInUp 1s ease-out;
background: linear-gradient(135deg, #0d6efd, #6f42c1);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
body[data-bs-theme="dark"] .hero-section h1 {
background: linear-gradient(135deg, #4dabf7, #be4bdb);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero-section .lead {
animation: fadeInUp 1s ease-out 0.2s both;
}
.hero-section .text-muted {
animation: fadeInUp 1s ease-out 0.4s both;
}
/* Card animations and hover effects */
.card {
border-radius: 15px;
overflow: hidden;
animation: fadeIn 1s ease-out;
}
.card:hover {
transform: translateY(-8px);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
body[data-bs-theme="dark"] .card:hover {
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}
.predictor-card {
height: 100%;
position: relative;
overflow: hidden;
}
.predictor-card::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
transition: left 0.6s;
}
.predictor-card:hover::before {
left: 100%;
}
/* Feature icons */
.feature-icon {
font-size: 3rem;
margin-bottom: 1rem;
position: relative;
display: inline-block;
}
body[data-bs-theme="light"] .feature-icon {
color: #0d6efd;
}
body[data-bs-theme="dark"] .feature-icon {
color: #4dabf7;
}
.feature-icon:hover {
transform: scale(1.1) rotate(5deg);
}
.feature-icon::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
background: radial-gradient(circle, rgba(13, 110, 253, 0.2), transparent);
border-radius: 50%;
transform: translate(-50%, -50%);
transition: all 0.3s ease;
}
.feature-icon:hover::after {
width: 120px;
height: 120px;
}
/* Button enhancements */
.btn {
border-radius: 25px;
font-weight: 600;
letter-spacing: 0.5px;
position: relative;
overflow: hidden;
}
.btn::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
background: rgba(255, 255, 255, 0.3);
border-radius: 50%;
transform: translate(-50%, -50%);
transition: all 0.3s ease;
}
.btn:hover::before {
width: 300px;
height: 300px;
}
.btn i {
transition: transform 0.3s ease;
}
.btn:hover i {
transform: translateX(5px);
}
/* Footer section */
.footer-section {
margin-top: 80px;
padding: 40px 0;
border-top: 1px solid;
position: relative;
}
body[data-bs-theme="light"] .footer-section {
border-top-color: rgba(0, 0, 0, 0.1);
}
body[data-bs-theme="dark"] .footer-section {
border-top-color: rgba(255, 255, 255, 0.1);
}
/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(40px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Staggered animations for cards */
.predictor-card:nth-child(1) {
animation: fadeIn 1s ease-out 0.6s both;
}
.predictor-card:nth-child(2) {
animation: fadeIn 1s ease-out 0.8s both;
}
/* Responsive improvements */
@media (max-width: 768px) {
#theme-toggle {
top: 15px;
right: 15px;
height: 45px;
width: 45px;
}
.hero-section {
padding: 60px 0;
}
.hero-section h1 {
font-size: 2.5rem;
}
.feature-icon {
font-size: 2.5rem;
}
}
/* Subtle background pattern */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0.03;
background-image: radial-gradient(circle at 25% 25%, #000 2px, transparent 2px),
radial-gradient(circle at 75% 75%, #000 2px, transparent 2px);
background-size: 40px 40px;
pointer-events: none;
z-index: -1;
}
</style>
</head>
<body data-bs-theme="light">
<!-- Theme Toggle Button -->
<button id="theme-toggle" class="btn">🌙</button>
<div class="container">
<!-- Hero Section -->
<section class="hero-section">
<div class="row justify-content-center">
<div class="col-lg-8">
<h1 class="display-4 fw-bold mb-3">AP CSP Course Predictor</h1>
<p class="lead mb-4">Get personalized predictions for your AP Computer Science Principles journey</p>
<p class="text-muted">Created by Open Coding Society</p>
</div>
</div>
</section>
<!-- Overview Section -->
<section class="mb-5">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h2 class="card-title text-center mb-4">What This Tool Does</h2>
<p class="card-text">
Our AP CSP Course Predictor helps you understand your performance potential in the
AP Computer Science Principles course. Based on comprehensive assessments developed
by your AP CSP teacher, this tool provides two key predictions:
</p>
<div class="row mt-4">
<div class="col-md-6">
<h5><i class="fas fa-graduation-cap me-2"></i>Class Grade Prediction</h5>
<p>Evaluate your performance across key classroom areas like attendance, work habits, collaboration, and technical growth.</p>
</div>
<div class="col-md-6">
<h5><i class="fas fa-clipboard-check me-2"></i>AP Exam Score Prediction</h5>
<p>Assess your readiness for the AP exam based on study habits, practice scores, and confidence levels.</p>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Predictor Cards Section -->
<section class="mb-5">
<h2 class="text-center mb-5">Choose Your Predictor</h2>
<div class="row g-4">
<div class="col-md-6">
<div class="card predictor-card">
<div class="card-body text-center">
<div class="feature-icon">
<i class="fas fa-chart-line"></i>
</div>
<h3 class="card-title">Grade in Class Predictor</h3>
<p class="card-text">
Take a comprehensive quiz covering 11 key areas that impact your class performance.
Get insights into your attendance, work habits, behavior, and technical skills.
</p>
<div class="mb-3">
<small class="text-muted">
<strong>Categories include:</strong><br>
Attendance • Work Habits • Behavior • Timeliness<br>
Tech Sense • Tech Talk • Tech Growth • Advocacy<br>
Communication & Collaboration • Integrity • Organization
</small>
</div>
<a href="/grade-predictor" class="btn btn-primary btn-lg">
Start Grade Predictor <i class="fas fa-arrow-right ms-2"></i>
</a>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card predictor-card">
<div class="card-body text-center">
<div class="feature-icon">
<i class="fas fa-medal"></i>
</div>
<h3 class="card-title">AP Exam Predictor</h3>
<p class="card-text">
Evaluate your AP exam readiness through questions about study habits, practice test
performance, and confidence levels. Get a prediction of your potential AP score.
</p>
<div class="mb-3">
<small class="text-muted">
<strong>Assessment areas:</strong><br>
Study Habits • Practice Test Scores<br>
Confidence Levels • Course Understanding<br>
Time Management • Test Preparation
</small>
</div>
<a href="/exam-predictor" class="btn btn-primary btn-lg">
Start Exam Predictor <i class="fas fa-arrow-right ms-2"></i>
</a>
</div>
</div>
</div>
</div>
</section>
<!-- How It Works Section -->
<section class="mb-5">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h2 class="card-title text-center mb-4">How It Works</h2>
<div class="row">
<div class="col-md-4 text-center mb-4">
<div class="feature-icon">
<i class="fas fa-clipboard-list"></i>
</div>
<h5>Take the Quiz</h5>
<p>Answer questions honestly about your habits, skills, and performance in each category.</p>
</div>
<div class="col-md-4 text-center mb-4">
<div class="feature-icon">
<i class="fas fa-calculator"></i>
</div>
<h5>Get Analysis</h5>
<p>Our algorithm processes your responses and calculates weighted scores across all areas.</p>
</div>
<div class="col-md-4 text-center mb-4">
<div class="feature-icon">
<i class="fas fa-chart-bar"></i>
</div>
<h5>View Predictions</h5>
<p>Receive personalized predictions with detailed feedback and improvement suggestions.</p>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Footer Section -->
<footer class="footer-section text-center">
<div class="row">
<div class="col-lg-12">
<h5>Open Coding Society</h5>
<p class="text-muted">
Helping students succeed in AP Computer Science Principles<br>
<small>This tool is designed to provide guidance and should be used alongside teacher feedback and official course materials.</small>
</p>
<div class="mt-3">
<i class="fas fa-code me-2"></i>
<span class="text-muted">Built with Bootstrap & JavaScript</span>
</div>
</div>
</div>
</footer>
</div>
<!-- Bootstrap JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"></script>
<!-- Theme Toggle Logic -->
<script>
const toggleButton = document.getElementById("theme-toggle");
const body = document.body;
function setTheme(theme) {
body.setAttribute("data-bs-theme", theme);
localStorage.setItem("theme", theme);
toggleButton.innerHTML = theme === "dark" ? "☀️" : "🌙";
}
// Load saved theme
const savedTheme = localStorage.getItem("theme") || "light";
setTheme(savedTheme);
// Toggle theme on button click
toggleButton.addEventListener("click", () => {
const newTheme = body.getAttribute("data-bs-theme") === "dark" ? "light" : "dark";
setTheme(newTheme);
});
</script>
</body>
</html>