-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
57 lines (54 loc) · 2.45 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<title>Password Lense</title>
<meta name="application-name" content="Password Lense" />
<meta name="apple-mobile-web-app-title" content="Password Lense" />
<meta name="description" content="Reveal character types in a password" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Password Lense" />
<meta property="og:description" content="Reveal character types in a password" />
<meta
property="og:image"
content="https://res.cloudinary.com/dfcj3xczu/image/upload/v1538582926/pwl-social-banner.png"
/>
<meta property="og:image:alt" content="Password Lense" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Password Lense" />
<meta name="twitter:description" content="Reveal character types in a password" />
<meta
name="twitter:image"
content="https://res.cloudinary.com/dfcj3xczu/image/upload/v1538582926/pwl-social-banner.png"
/>
<meta name="twitter:image:alt" content="Password Lense" />
<link rel="icon" sizes="any" href="/favicon.ico" />
<link rel="icon" type="image/png" sizes="32x32" href="/icon-32x32.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<meta name="msapplication-TileColor" content="#1c304a" />
<meta name="theme-color" content="#1c304a" />
</head>
<body class="bg-white font-body text-gray-900 dark:bg-dark dark:text-gray-100">
<script type="text/javascript">
function prefersDark() {
const storedPreference = window.localStorage.getItem('darkMode');
const hasStoredPreference = typeof storedPreference === 'string';
if (hasStoredPreference) return storedPreference === 'true';
const mediaQuery = '(prefers-color-scheme: dark)';
const mql = window.matchMedia(mediaQuery);
const hasSystemPreference = typeof mql.matches === 'boolean';
if (hasSystemPreference) return mql.matches ? true : false;
return false;
}
if (prefersDark()) {
document.documentElement.classList.add('dark');
}
</script>
<noscript>
<p class="p-4">This application requires JavaScript.</p>
</noscript>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>