-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
74 lines (74 loc) · 2.51 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link
rel="alternate icon"
type="image/png"
href="https://docs.rs/-/rustdoc.static/favicon-16x16-8b506e7a72182f1c.png"
/>
<link
rel="alternate icon"
type="image/png"
href="https://docs.rs/-/rustdoc.static/favicon-32x32-422f7d1d52889060.png"
/>
<link
rel="icon"
type="image/svg+xml"
href="https://docs.rs/-/rustdoc.static/favicon-2c020d218678b618.svg"
/>
<title>Redux regex playground</title>
<link
href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,500&display=swap"
rel="stylesheet"
/>
<link href="./src/index.css" rel="stylesheet" />
<script async type="module" src="./src/index.tsx"></script>
</head>
<body>
<div id="root">
<header
class="absolute left-0 top-0 mx-auto flex w-full justify-between border-b border-b-neutral-200 bg-white shadow-md dark:border-b-neutral-600 dark:bg-neutral-800"
>
<div class="relative px-4 py-4">
<h1
class="relative text-base font-medium text-neutral-900 dark:text-white"
>
RUST REGEX
<sub class="absolute left-1/2 top-6 block opacity-50"
>playground</sub
>
</h1>
</div>
<div class="relative px-4 py-4"></div>
</header>
<main class="flex">
<section
class="min-h-screen w-1/6 flex-auto border-r border-r-neutral-300 bg-slate-200 pt-28 dark:border-r-neutral-500 dark:bg-neutral-900"
></section>
<section
class="min-h-screen w-3/6 border-r border-r-neutral-300 bg-slate-100 pt-24 dark:border-r-neutral-500 dark:bg-neutral-800"
></section>
<section
class="min-h-screen w-2/6 flex-auto bg-white pt-24 dark:bg-neutral-700"
></section>
</main>
</div>
<script async>
const isDark = localStorage.getItem('dark')
if (!isDark) {
const darkThemeMq = window.matchMedia('(prefers-color-scheme: dark)')
if (darkThemeMq.matches) {
document.body.parentElement?.classList.add('dark')
localStorage.setItem('dark', 'true')
} else {
localStorage.setItem('dark', 'false')
}
} else if (isDark === 'true') {
document.body.parentElement?.classList.add('dark')
}
</script>
</body>
</html>