-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
33 lines (33 loc) · 1.31 KB
/
index.html
File metadata and controls
33 lines (33 loc) · 1.31 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Password Challenge</title>
<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=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=DM+Sans:wght@300;400;500&display=swap" rel="stylesheet">
</head>
<body>
<script>
(function(){
var t = localStorage.getItem('password-challenge-theme');
var d = window.matchMedia('(prefers-color-scheme: dark)').matches;
document.documentElement.setAttribute('data-theme', (t === 'light' || t === 'dark') ? t : (d ? 'dark' : 'light'));
})();
</script>
<div id="root">
<header class="site-header">
<button type="button" class="theme-toggle" aria-label="Toggle theme">
<span class="theme-icon sun">☀</span>
<span class="theme-icon moon">☽</span>
</button>
</header>
<main id="app"></main>
<footer class="site-footer">
<span class="footer-tagline">craft a calmer password</span>
</footer>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>