-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget-started.html
More file actions
170 lines (157 loc) · 9.58 KB
/
Copy pathget-started.html
File metadata and controls
170 lines (157 loc) · 9.58 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Getting started — Interactive Primer</title>
<meta
name="description"
content="Find where you sit on the tree — a short adaptive quiz in school maths, physics or computer science."
/>
<link rel="icon" href="/images/icons/favicon.ico" sizes="any" />
<link rel="icon" type="image/png" sizes="32x32" href="/images/icons/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/images/icons/favicon-16x16.png" />
<link rel="apple-touch-icon" href="/images/icons/apple-touch-icon.png" />
<link rel="manifest" href="/site.webmanifest" />
<meta name="theme-color" content="#f8f4ec" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<meta name="apple-mobile-web-app-title" content="InteractivePrimer.com" />
<link rel="canonical" href="https://interactiveprimer.com/get-started" />
<script src="/dist/prepaint.js"></script>
<link rel="stylesheet" href="/dist/assets/stix.css" />
<link rel="stylesheet" href="/css/primer.css" />
<script src="/dist/analytics.js" defer></script>
<link rel="stylesheet" href="/dist/assets/katex.min.css" />
<style>
html:not([lang="en"]) [data-i18n] { visibility: hidden; }
html.l10n-ready [data-i18n] { visibility: visible; }
body { margin: 0; background: var(--primer-bg, #fff); color: var(--primer-ink, #222); }
.dash { max-width: 46rem; margin: 0 auto; padding: 1.4rem 1.1rem 5rem; }
.dash, .dash button, .dash a { font-family: var(--primer-font-ui, sans-serif); }
.dash-title { font-family: var(--primer-font-display, serif); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 0.25rem; }
.dash-sub { color: var(--primer-ink-soft, #667); margin: 0.35rem 0 0; }
.card { background: var(--primer-surface, #fff); border: 1px solid var(--primer-border, #ddd);
border-radius: var(--primer-radius, 0.85rem); box-shadow: var(--primer-shadow-sm);
padding: 1rem 1.15rem; margin-bottom: 1.2rem; }
.muted { color: var(--primer-ink-soft, #778); }
.gs-field { border: 0; margin: 0 0 1.1rem; padding: 0; }
.gs-field legend { font-weight: 650; margin-bottom: 0.45rem; }
.gs-chips, .gs-age-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
/* Subject picker: 3 image panels wide on desktop, stacked 1-wide on narrow screens. */
.gs-subject-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
@media (max-width: 40rem) { .gs-subject-grid { grid-template-columns: 1fr; } }
/* Confidence picker: as many panels per row as comfortably fit, reflowing on narrow screens. */
.gs-conf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.2rem, 1fr)); gap: 0.6rem; }
.gs-subject-card, .gs-conf-card {
display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
padding: 0.8rem 0.6rem; border-radius: var(--primer-radius, 0.85rem);
border: 1px solid var(--primer-border, #ddd); background: var(--primer-surface, #fff);
color: var(--primer-ink, #222); cursor: pointer; font: inherit; text-align: center;
transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}
.gs-subject-card img, .gs-conf-card img {
width: 100%; max-width: 6.5rem; aspect-ratio: 1 / 1; object-fit: contain;
border-radius: 0.5rem;
}
.gs-subject-card span, .gs-conf-card span { font-weight: 600; line-height: 1.2; }
.gs-conf-card span { font-size: 0.85rem; font-weight: 550; }
.gs-subject-card:hover:not(:disabled), .gs-conf-card:hover:not(:disabled) {
box-shadow: var(--primer-shadow-sm); transform: translateY(-1px);
}
.gs-subject-card.is-active, .gs-subject-card[aria-pressed="true"],
.gs-conf-card.is-active, .gs-conf-card[aria-pressed="true"] {
border-color: var(--primer-accent, #6a5cff);
box-shadow: 0 0 0 2px var(--primer-ring, #6a5cff44);
}
@media (prefers-reduced-motion: reduce) {
.gs-subject-card, .gs-conf-card { transition: none; }
.gs-subject-card:hover, .gs-conf-card:hover { transform: none; }
}
.chip.cq-mode { display: inline-flex; align-items: baseline; gap: 0.3rem; padding: 0.4rem 0.85rem;
border: 1px solid var(--primer-border, #ddd); border-radius: 999px; background: var(--primer-surface, #fff);
color: var(--primer-ink, #222); cursor: pointer; font: inherit;
transition: border-color 0.12s, box-shadow 0.12s; }
.chip.cq-mode:hover:not(:disabled) { box-shadow: var(--primer-shadow-sm); }
.chip.cq-mode.is-active, .chip.cq-mode[aria-pressed="true"] {
border-color: var(--primer-accent, #6a5cff);
box-shadow: 0 0 0 2px var(--primer-ring, #6a5cff44);
}
.gs-age-row { display: block; }
.gs-age-label { display: flex; flex-direction: column; gap: 0.4rem; width: 100%; }
.gs-age-slider { display: block; width: 100%; }
.gs-age-slider input[type="range"] { width: 100%; accent-color: var(--primer-accent, #6a5cff); }
.gs-age-ticks { display: flex; justify-content: space-between; font-size: 0.78rem;
color: var(--primer-ink-soft, #778); padding: 0 0.1rem; }
.gs-tick-edge, .gs-tick-mid { font-weight: 650; color: var(--primer-ink, #222); }
/* Ticks thin out as the slider narrows: 14 labels wide, 9 at tablet width, just the two
ends + the midpoint on a phone — the labels stay legible instead of overlapping. The
midpoint is exempted at every tier (not just the phone one) since a later, narrower
media query can only ADD hide rules for elements it targets — it can't resurrect an
element a wider tier already hid, so both tiers must agree to keep it. */
@media (max-width: 46rem) {
.gs-age-ticks span:not(.gs-tick-edge):not(.gs-tick-mid):nth-of-type(even) { display: none; }
}
@media (max-width: 28rem) {
.gs-age-ticks span:not(.gs-tick-edge):not(.gs-tick-mid) { display: none; }
}
.gs-end { margin: 0 0 0.8rem; }
.gs-go { font: inherit; cursor: pointer; padding: 0.5rem 1.2rem; border-radius: 999px;
border: 1px solid var(--primer-accent, #6a5cff); background: var(--primer-accent, #6a5cff);
color: var(--primer-on-accent, #fff); }
.gs-go:disabled { opacity: 0.45; cursor: default; }
.gs-progress { min-height: 1.2rem; margin: 0 0 0.6rem; }
.gs-branches { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0 1rem; }
.gs-branch { font-size: 0.85rem; padding: 0.2rem 0.6rem; border-radius: 999px;
border: 1px solid var(--primer-border, #ddd); }
.gs-branch-solid { background: var(--primer-ok-bg, #e6f6ec); }
.gs-branch-shaky { background: var(--primer-bad-bg, #fdecea); }
.gs-branch-untested { opacity: 0.75; }
.gs-starts { margin: 0.3rem 0 1rem; padding-left: 1.2rem; }
.gs-courses { display: flex; flex-direction: column; gap: 0.65rem; margin: 0.4rem 0 1rem; }
.gs-course-region h4 { margin: 0 0 0.35rem; font-size: 0.82rem; font-weight: 650;
color: var(--primer-ink-soft, #667); letter-spacing: 0.02em; }
.gs-course-region .chip.cq-mode { white-space: normal; text-align: left; line-height: 1.25;
border-radius: 0.7rem; }
.gs-course-focused { margin: 0 0 0.8rem; font-weight: 600; }
.gs-ctas { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 0.8rem 0 0; }
.p-next-cta { display: inline-block; padding: 0.55rem 0.9rem; border-radius: 0.6rem;
background: var(--primer-accent, #6a5cff); color: var(--primer-accent-ink, #fff); text-decoration: none;
font-weight: 600; }
.p-next-cta:hover { box-shadow: var(--primer-shadow-md); }
.gs-ctas a.quiet { color: var(--primer-accent, #5b6ee1); }
</style>
</head>
<body>
<a class="skip-link" href="#main" data-i18n="a11y.skipLink">Skip to main content</a>
<main class="dash" id="main" tabindex="-1">
<div id="app"><p class="muted" role="status" aria-live="polite" style="padding:2rem 0;text-align:center" data-i18n="getstarted.loading">Getting ready…</p></div>
</main>
<script type="module">
const revealL10n = () => document.documentElement.classList.add("l10n-ready");
setTimeout(revealL10n, 2500);
const { app } = await (await fetch("/dist/asset-manifest.json")).json();
const { initTheme, initLocale, loadGraph, runProgressMigration, mountGetStarted, offline, t } =
await import(app);
offline.registerServiceWorker();
initTheme();
initLocale();
document.querySelectorAll("[data-i18n]").forEach((el) => (el.textContent = t(el.getAttribute("data-i18n"))));
document.title = t("getstarted.docTitle");
revealL10n();
document.body.appendChild(document.createElement("primer-menu"));
const root = document.getElementById("app");
try {
await runProgressMigration();
const { byId } = await loadGraph();
await mountGetStarted(root, { byId });
} catch (e) {
console.error(e);
root.innerHTML =
`<p class="muted" style="padding:2rem 0;text-align:center">${t("dash.loadError")} ` +
`<a href="/explore">${t("landing.tileExplore")}</a></p>`;
}
</script>
</body>
</html>