-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathcurriculum.html
More file actions
166 lines (144 loc) · 4.44 KB
/
Copy pathcurriculum.html
File metadata and controls
166 lines (144 loc) · 4.44 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Curriculum Map – LearnSphere</title>
<meta name="description" content="Visual map of LearnSphere curriculum topics with prerequisites and your completion progress." />
<link rel="stylesheet" href="variables.css" />
<script src="theme.js"></script>
<link rel="stylesheet" href="styles.css" />
<style>
.page-wrap {
max-width: 1120px;
margin: 22px auto;
padding: 0 16px;
}
.header-block {
display: flex;
flex-direction: column;
gap: 8px;
margin-bottom: 16px;
}
.controls {
display: flex;
gap: 12px;
align-items: center;
flex-wrap: wrap;
padding: 12px 14px;
border-radius: 12px;
background: rgba(255,255,255,0.02);
border: 1px solid rgba(255,255,255,0.07);
margin-bottom: 14px;
}
.controls label {
display: flex;
align-items: center;
gap: 10px;
cursor: pointer;
font-weight: 700;
color: rgba(255,255,255,0.85);
}
input[type="checkbox"] {
width: 18px;
height: 18px;
accent-color: var(--accent-color);
}
#curriculumMapContainer {
overflow: auto;
border-radius: 14px;
padding: 10px;
background: rgba(0,0,0,0.12);
border: 1px solid rgba(255,255,255,0.06);
}
#curriculumMapLegend {
color: rgba(255,255,255,0.78);
font-size: 13px;
font-weight: 700;
}
.hint {
color: rgba(255,255,255,0.68);
font-size: 13px;
margin-top: 8px;
}
</style>
</head>
<body>
<header class="navbar" role="banner">
<div class="logo"><a href="index.html" aria-label="LearnSphere Home">LearnSphere</a></div>
<button
class="hamburger"
id="hamburgerBtn"
aria-label="Toggle navigation menu"
aria-expanded="false"
aria-controls="navMenu"
>
<span></span>
<span></span>
<span></span>
</button>
<nav id="navMenu" role="navigation" aria-label="Main navigation">
<ul>
<li><a href="explore.html">Explore</a></li>
<li><a href="courses.html">Courses</a></li>
<li><a href="review.html">Review Queue</a></li>
<li><a href="resources.html">Resources</a></li>
<li><a href="community.html">Community</a></li>
<li><a href="curriculum.html">Curriculum Map</a></li>
</ul>
</nav>
<button id="themeToggleBtn" class="theme-btn" aria-label="Toggle theme"></button>
<!-- Accessibility controls (keyboard accessible, persistent via accessibility.js) -->
<div class="buttons" role="group" aria-label="Accessibility options" style="margin-right:10px;">
<button
type="button"
id="reducedMotionToggle"
class="a11y-btn"
aria-pressed="false"
aria-label="Toggle reduced motion"
>Reduced motion: Off</button>
<button
type="button"
id="fontSizeToggle"
class="a11y-btn"
aria-pressed="true"
aria-label="Toggle larger text"
>Larger text</button>
</div>
<div class="buttons">
<button class="login"><a href="log/login.html">Log in</a></button>
<button class="signup"><a href="log/register.html">Sign up</a></button>
</div>
</header>
<main class="page-wrap">
<section class="header-block">
<h1 style="margin:0;">Curriculum Map</h1>
<div class="hint">
Prerequisites are shown as directed edges. Nodes unlock when you reach the mastery threshold (topic accuracy) for the prerequisite chain.
</div>
</section>
<section class="controls">
<label>
<input id="curriculumMapCompletedOnlyToggle" type="checkbox" />
Show completed only
</label>
<div id="curriculumMapLegend"></div>
</section>
<section>
<div id="curriculumMapContainer" aria-label="Curriculum map visualization">
<!-- SVG injected by curriculumMap.js -->
</div>
</section>
</main>
<script src="progress.js"></script>
<script src="curriculumMapConfig.js"></script>
<script src="curriculumMap.js"></script>
<script src="navbar.js"></script>
<script src="script.js" defer></script>
<script src="accessibility.js" defer></script>
<script>
// Ensure theme + navbar scripts don't break this page.
// (No-op; present for consistency with other pages.)
</script>
</body>
</html>