-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
97 lines (93 loc) · 3.86 KB
/
Copy pathindex.html
File metadata and controls
97 lines (93 loc) · 3.86 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link rel="manifest" href="/manifest.json" />
<title>Open Ham Prep | Amateur Radio License Exam Preparation</title>
<meta name="description" content="Free practice tests for US Amateur Radio License Exams. Technician, General, and Extra class preparation with official question pools." />
<meta name="author" content="Open Ham Prep" />
<!-- PWA Meta Tags
Theme colors match the app's amber primary color.
Light mode uses darker amber (#b86800) for better contrast.
Dark mode uses brighter amber (#d97706) to match the dark theme.
Note: manifest.json uses #b86800 as PWA spec doesn't support media queries. -->
<meta name="theme-color" content="#b86800" media="(prefers-color-scheme: light)" />
<meta name="theme-color" content="#d97706" media="(prefers-color-scheme: dark)" />
<meta name="color-scheme" content="light dark" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="application-name" content="Ham Prep" />
<!-- Apple PWA Meta Tags -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="Ham Prep" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<!-- Open Graph -->
<meta property="og:title" content="Open Ham Prep | Amateur Radio Exam Preparation" />
<meta property="og:description" content="Free practice tests for FCC Amateur Radio License Exams" />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary_large_image" />
<style>
/* Inline critical CSS for immediate FCP */
#root:empty {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
/* Light mode loading state */
#root:empty {
background: #ffffff;
}
#root:empty::before {
content: "";
width: 40px;
height: 40px;
border: 3px solid #e5e5e5;
border-top-color: #b86800;
border-radius: 50%;
animation: spin 1s linear infinite;
}
/* Dark mode loading state */
html.dark #root:empty {
background: #0a0a0a;
}
html.dark #root:empty::before {
border-color: #1a1a1a;
border-top-color: #b86800;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
</style>
<!-- Prevent theme and accessibility flash by setting classes before React loads -->
<script>
(function() {
try {
// Theme
var theme = localStorage.getItem('theme');
if (theme === 'dark' || (!theme && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
document.documentElement.classList.add('dark');
}
// Accessibility: Font family
var font = localStorage.getItem('accessibility-font-family');
if (font === 'dyslexic') document.documentElement.classList.add('font-dyslexic');
if (font === 'arimo') document.documentElement.classList.add('font-arimo');
// Accessibility: Bold text
if (localStorage.getItem('accessibility-bold-text') === 'true') {
document.documentElement.classList.add('font-bold');
}
// Accessibility: Large font
if (localStorage.getItem('accessibility-large-font') === 'true') {
document.documentElement.classList.add('font-xl');
}
} catch (e) {}
})();
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>