-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
81 lines (75 loc) · 1.96 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TypeView - KeyStroke visualizer</title>
<script type="module" src="/src/main.ts" defer></script>
<style>
*,
*::before,
*::after {
user-select: none;
cursor: default;
margin: 0;
box-sizing: border-box;
font-family: monospace;
}
body {
height: 100vh;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
padding: 8px;
}
/* Css Color */
:root {
--color-primary: #000000;
--color-secondary: #333333;
--color-tertiary: #666666;
--color-quaternary: #999999;
--color-quinary: #ffffff8d;
}
/* Dark mode */
@media (prefers-color-scheme: dark) {
:root {
--color-primary: #ffffff;
--color-secondary: #cccccc;
--color-tertiary: #999999;
--color-quaternary: #666666;
--color-quinary: #1e1f268d;
}
}
#content {
overflow: hidden;
padding: 3px;
width: 100%;
height: 100%;
display: flex;
justify-content: flex-end;
align-items: center;
font-size: 1.8rem;
background-color: var(--color-quinary);
border-radius: 5px;
text-align: center;
color: var(--color-secondary);
}
.pressed-key {
border: 1.5px solid var(--color-primary);
padding: 0.2rem 0.4rem 0.2rem 0.4rem;
line-height: 100%;
text-align: center;
border-radius: 5px;
color: var(--color-primary);
font-weight: 600;
margin: 0 0.25rem;
background-color: var(--color-quaternary);
white-space: nowrap;
}
</style>
</head>
<body>
<div data-tauri-drag-region id="content"></div>
</body>
</html>