-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
116 lines (87 loc) · 3.67 KB
/
index.html
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
<!doctype html>
<html>
<head lang="en">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-3GR2J9PKWP"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-3GR2J9PKWP');
</script>
<meta charset="UTF-8" />
<meta name="description" content="%VITE_DESCRIPTION%" />
<title>%VITE_TITLE%</title>
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preload" href="/fonts/WorkSans/worksans-bold-webfont.woff2" as="font" crossorigin="anonymous">
<link rel="preload" href="/fonts/WorkSans/worksans-medium-webfont.woff2" as="font" crossorigin="anonymous">
<link rel="preload" href="/fonts/WorkSans/worksans-regular-webfont.woff2" as="font" crossorigin="anonymous">
<link rel="preload" href="/fonts/WorkSans/worksans-semibold-webfont.woff2" as="font" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="/fonts/WorkSans/font.css">
<!-- start favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="/favicon_package/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon_package/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon_package/favicon-16x16.png">
<link rel="manifest" href="/favicon_package/site.webmanifest">
<link rel="mask-icon" href="/favicon_package/safari-pinned-tab.svg" color="#5bbad5">
<!-- end favicon -->
<!-- Meta tags generated by metatags.io -->
<!-- Primary Meta Tags -->
<title>%VITE_TITLE%</title>
<meta name="title" content="%VITE_TITLE%">
<meta name="description" content="%VITE_DESCRIPTION%">
<!-- Facebook Meta Tags -->
<meta property="og:url" content="https://www.keycloakify.dev">
<meta property="og:type" content="website">
<meta property="og:title" content="%VITE_TITLE%">
<meta property="og:description" content="%VITE_DESCRIPTION%">
<meta property="og:image" content="https://www.keycloakify.dev/preview.png">
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="%VITE_TITLE%">
<meta name="twitter:description" content="%VITE_DESCRIPTION%">
<meta name="twitter:image" content="https://www.keycloakify.dev/preview.png">
<script>
/*
This is a way to get the correct background color as soon as possible,
even before the JavaScript bundle is evaluated.
It is to prevent a white flash when the user has dark mode enabled.
This is **very** optional.
*/
(function () {
var isDarkModeEnabled = /true/.test((function () {
var key = "powerhooks_useGlobalState_isDarkModeEnabled";
var value = null;
try {
value = (new URLSearchParams(location.search)).get(key);
} catch (_) { }
if (value !== null) {
return value;
}
try {
value = localStorage.getItem(key);
} catch (_) { }
if (value !== null) {
return value;
}
try {
value = window.matchMedia("(prefers-color-scheme: dark)")
.matches ? "true" : "false";
} catch (_) { }
if (value !== null) {
return value;
}
return "false";
})());
document.documentElement.style.backgroundColor =
// theme.colors.getUseCases({ isDarkModeEnabled: true/false }).surfaces.background
isDarkModeEnabled ? "#2A2A2A" : "#F1F0EB";
})();
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>