generated from kbysiec/vite-vanilla-ts-lib-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
138 lines (133 loc) · 4.4 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="./demo/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hotkeys UI Demo Page</title>
<script type="module" src="./demo/index.ts" defer></script>
<style>
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1000; /* Sit on top */
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto; /* Enable scroll if needed */
background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
display: none;
justify-content: center;
align-items: center;
}
.modal-content {
background-color: #fff;
margin: 15% auto; /* 15% from the top and centered */
padding: 20px;
border: 1px solid #888;
box-shadow:
0 4px 8px 0 rgba(0, 0, 0, 0.2),
0 6px 20px 0 rgba(0, 0, 0, 0.19);
border-radius: 10px;
position: relative;
display: inline-block; /* Wrap content */
max-width: 90%; /* Limit width to 90% of the viewport */
width: auto; /* Allow the content to determine the width */
}
.close {
color: #aaa;
position: absolute;
right: 20px;
top: 10px;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
.form-container {
flex-grow: 0;
flex-shrink: 0;
margin-left: auto;
margin-right: auto;
position: relative;
margin-top: 16px;
}
.config-button {
padding: 10px 20px;
font-size: 16px;
color: white;
background-color: #007bff;
border: none;
border-radius: 5px;
cursor: pointer;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s ease;
}
.config-button:hover {
background-color: #0056b3;
}
#logContainer {
width: 100%;
height: 300px;
overflow-y: auto;
border: 1px solid #ccc;
padding: 10px;
font-family: Arial, sans-serif;
font-size: 14px;
background-color: #f9f9f9;
box-sizing: border-box;
}
.log-entry {
margin-bottom: 5px;
}
.config-form {
display: flex;
flex-direction: column;
gap: 10px;
width: 300px;
padding: 20px;
background-color: #fff;
}
.config-form > li {
display: flex;
justify-content: space-between;
align-items: center;
padding: 5px;
border: 1px solid transparent;
}
.action-name {
flex: 1;
margin-right: 10px;
white-space: pre-wrap;
}
.action-key {
flex: 1;
padding: 5px;
border: 1px solid #ccc;
border-radius: 3px;
white-space: pre-wrap;
}
.config-form > button {
padding: 10px;
border: none;
border-radius: 5px;
background-color: #007bff;
color: #fff;
cursor: pointer;
margin-top: 20px;
}
</style>
</head>
<body>
<h1>Hotkeys UI Demo Page</h1>
<div id="app">
<button id="niceButton" class="config-button">Configure UI</button>
<div id="logContainer"></div>
</div>
</body>
</html>