-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
65 lines (63 loc) · 1.97 KB
/
index.html
File metadata and controls
65 lines (63 loc) · 1.97 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
/* Adding Inter font from Google Fonts as an example */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");
/* Custom scrollbar for a more modern look (optional) */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
.dark ::-webkit-scrollbar-track {
background: #2d3748; /* dark:bg-slate-700 */
}
::-webkit-scrollbar-thumb {
background: #888;
border-radius: 4px;
}
.dark ::-webkit-scrollbar-thumb {
background: #4a5568; /* dark:bg-slate-600 */
}
::-webkit-scrollbar-thumb:hover {
background: #555;
}
.dark ::-webkit-scrollbar-thumb:hover {
background: #718096; /* dark:bg-slate-500 */
}
body {
font-family: "Inter", sans-serif; /* A common Tailwind-esque font */
}
</style>
<title>PDF Thumbnail API</title>
<script>
// Apply theme immediately to prevent FOUC
(function () {
try {
const theme = localStorage.getItem("theme");
const prefersDark = window.matchMedia(
"(prefers-color-scheme: dark)",
).matches;
if (theme === "dark" || (!theme && prefersDark)) {
document.documentElement.classList.add("dark");
} else {
document.documentElement.classList.remove("dark");
}
} catch (e) {
// Ignore errors in case localStorage is not available
}
})();
</script>
<link rel="stylesheet" href="/src/style.css" />
</head>
<body
class="bg-slate-50 text-slate-800 dark:bg-slate-900 dark:text-slate-200 antialiased"
>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>