Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
54 lines (46 loc) · 1.65 KB
/
Copy pathindex.html
File metadata and controls
54 lines (46 loc) · 1.65 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/logo-rounded.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Gradiate</title>
<link rel="manifest" href="/manifest.webmanifest" />
<link rel="apple-touch-icon" href="/logo-rounded.png" />
<meta name="theme-color" content="#103074" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Bree+Serif&family=Lexend:wght@100..900&display=swap"
rel="stylesheet">
<script>
const winNav = navigator;
const vendorName = winNav.vendor;
const isChromium = window.chrome;
const isOpera = typeof window.opr !== "undefined";
const isIEedge = winNav.userAgent.includes("Edg");
const isIOSChrome = winNav.userAgent.includes("CriOS");
const isGoogleChrome =
isChromium &&
vendorName === "Google Inc." &&
!isOpera &&
!isIEedge &&
(!winNav.userAgentData ||
winNav.userAgentData.brands.some(b => b.brand === "Google Chrome"));
if (!isGoogleChrome) {
const style = document.createElement("style");
style.textContent = `
* {
scrollbar-color: var(--primary) transparent;
scrollbar-width: thin;
}
`;
document.head.appendChild(style);
}
</script>
</head>
<body style="background-color: var(--background);">
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>