-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AI-Hotkeys.html
329 lines (297 loc) · 9.65 KB
/
AI-Hotkeys.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
<!DOCTYPE html>
<html>
<head>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
margin: 0;
background: #fff;
padding: 2rem;
}
.keyboard {
background: #fff;
padding: 2rem;
border-radius: 0.5rem;
width: fit-content;
margin: 0 auto;
}
.keyboard-content {
border: 2px solid #ccc;
border-radius: 1rem;
padding: 0.5rem 2rem 2rem 2rem;
margin-bottom: 2rem;
}
.title {
text-align: center;
color: #1a1a1a;
margin-bottom: 2rem;
font-size: 2rem;
}
.keyboard-row {
display: flex;
justify-content: flex-start;
gap: 0.5rem;
margin-bottom: 0.5rem;
position: relative;
}
.keyboard-row:nth-child(1) {
margin-left: 4rem;
}
.keyboard-row:nth-child(2) {
padding-left: 6rem;
}
.row-with-capslock {
margin-left: 2.25rem;
padding-left: 10rem;
}
.row-y {
margin-left: -2.25rem;
padding-left: 14.5rem;
}
.key {
position: relative;
background: linear-gradient(to bottom, #ffffff 0%, #f5f5f5 100%);
border: 2px solid #000;
border-radius: 0.5rem;
padding: 0.5rem;
width: 6.5rem;
height: 6.5rem;
display: grid;
grid-template-rows: 2.5rem auto;
align-items: center;
text-align: center;
justify-content: center;
box-shadow:
0 4px 6px rgba(0,0,0,0.1),
0 1px 3px rgba(0,0,0,0.08),
inset 0 1px 0 rgba(255,255,255,0.5);
transform: translateY(0);
transition: all 0.2s ease;
}
.key:active {
transform: translateY(2px);
box-shadow:
0 2px 4px rgba(0,0,0,0.1),
0 1px 2px rgba(0,0,0,0.08),
inset 0 1px 0 rgba(255,255,255,0.5);
}
.key::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border-radius: 0.4rem;
background: linear-gradient(to bottom,
rgba(255,255,255,0.8) 0%,
rgba(255,255,255,0) 50%,
rgba(0,0,0,0.05) 100%);
pointer-events: none;
}
.key-letter {
font-size: 1.75rem;
font-weight: bold;
color: #d32f2f;
text-shadow: 0 1px 1px rgba(0,0,0,0.1);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 0;
}
.key-action {
font-size: 0.95rem;
line-height: 1.3;
font-weight: 500;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
.caps-lock {
width: 7rem;
background: linear-gradient(to bottom, #fff5f5 0%, #ffe8e8 100%);
border-color: #d32f2f;
position: absolute;
left: -2.75rem;
font-weight: bold;
z-index: 1;
}
.legend {
margin-top: 2rem;
text-align: center;
font-size: 1.1rem;
line-height: 1.6;
}
.main-instruction {
font-weight: bold;
margin-bottom: 0.5rem;
}
.help-instruction {
color: #d32f2f;
}
[data-lang] {
display: none;
}
.controls {
display: flex;
justify-content: center;
gap: 1rem;
margin-top: 2rem;
}
.control-button {
background: none;
border: none;
font-size: 2rem;
cursor: pointer;
transition: transform 0.2s;
padding: 0.5rem;
}
.control-button:hover {
transform: scale(1.1);
}
@media print {
body {
padding: 0;
}
.keyboard {
box-shadow: none;
}
.key {
border: 2px solid #000 !important;
print-color-adjust: exact;
-webkit-print-color-adjust: exact;
}
}
.keyboard-rows {
position: relative;
margin-left: auto;
margin-right: auto;
width: fit-content;
}
</style>
</head>
<body>
<div class="keyboard">
<div class="keyboard-content">
<h1 class="title">AI-Hotkeys</h1>
<div class="keyboard-rows">
<div class="keyboard-row">
<div class="key">
<div class="key-letter">Q</div>
<div class="key-action" data-lang="de">Perplexity…</div>
<div class="key-action" data-lang="en">Query Perplexity…</div>
</div>
<div class="key">
<div class="key-letter">W</div>
<div class="key-action" data-lang="de">Was<br>ist</div>
<div class="key-action" data-lang="en">What<br>is</div>
</div>
<div class="key">
<div class="key-letter">E</div>
<div class="key-action" data-lang="de">Erkläre<br>einfach</div>
<div class="key-action" data-lang="en">Explain<br>simply</div>
</div>
<div class="key">
<div class="key-letter">R</div>
<div class="key-action" data-lang="de">Recherchiere</div>
<div class="key-action" data-lang="en">Research</div>
</div>
<div class="key">
<div class="key-letter">T</div>
<div class="key-action" data-lang="de">Übersetze</div>
<div class="key-action" data-lang="en">Translate</div>
</div>
</div>
<div class="keyboard-row row-with-capslock">
<div class="key caps-lock">
<div class="key-letter">⇪</div>
<div class="key-action">CapsLock</div>
</div>
<div class="key">
<div class="key-letter">A</div>
<div class="key-action" data-lang="de">Verfasse Antwort</div>
<div class="key-action" data-lang="en">Answer</div>
</div>
<div class="key">
<div class="key-letter">S</div>
<div class="key-action" data-lang="de">Fasse zusammen</div>
<div class="key-action" data-lang="en">Summarize</div>
</div>
<div class="key">
<div class="key-letter">D</div>
<div class="key-action" data-lang="de">Definiere</div>
<div class="key-action" data-lang="en">Define</div>
</div>
<div class="key">
<div class="key-letter">F</div>
<div class="key-action" data-lang="de">Formuliere besser</div>
<div class="key-action" data-lang="en">Formulate better</div>
</div>
<div class="key">
<div class="key-letter">G</div>
<div class="key-action" data-lang="de">Prüfe Grammatik usw.</div>
<div class="key-action" data-lang="en">Check grammar<br>etc.</div>
</div>
</div>
<div class="keyboard-row row-y">
<div class="key">
<div class="key-letter" data-lang="de">Y</div>
<div class="key-letter" data-lang="en">Z</div>
<div class="key-action" data-lang="de">Verfasse Zusage</div>
<div class="key-action" data-lang="en">Accept</div>
</div>
<div class="key">
<div class="key-letter">X</div>
<div class="key-action" data-lang="de">Verfasse Absage</div>
<div class="key-action" data-lang="en">Reject</div>
</div>
<div class="key">
<div class="key-letter">C</div>
<div class="key-action" data-lang="de">Prüfe Richtigkeit</div>
<div class="key-action" data-lang="en">Check correctness</div>
</div>
<div class="key">
<div class="key-letter">V</div>
<div class="key-action" data-lang="de">Verdeutliche/<br>Vereinfache</div>
<div class="key-action" data-lang="en">Clarify/<br>Simplify</div>
</div>
<div class="key">
<div class="key-letter">B</div>
<div class="key-action" data-lang="de">Berechne/<br>Konvertiere</div>
<div class="key-action" data-lang="en">Calculate/<br>Convert</div>
</div>
</div>
</div>
<div class="legend">
<div class="main-instruction" data-lang="de">Alle Befehle werden mit <span style="color: #d32f2f">CapsLock+Taste</span> ausgeführt</div>
<div class="main-instruction" data-lang="en">All commands are executed with <span style="color: #d32f2f">CapsLock+Key</span></div>
<div class="help-instruction" data-lang="de"><span style="color: #d32f2f; font-weight: bold">CapsLock+F1</span> für vollständige Tastenkürzel-Übersicht</div>
<div class="help-instruction" data-lang="en"><span style="color: #d32f2f; font-weight: bold">CapsLock+F1</span> for complete keyboard shortcut overview</div>
<div class="help-instruction" data-lang="de">✨ <span style="color: #d32f2f; font-weight: bold">Win+Alt</span> öffnet den <span style="color: #000000; font-weight: bold">Query Editor</span> ✨</div>
<div class="help-instruction" data-lang="en">✨ <span style="color: #d32f2f; font-weight: bold">Win+Alt</span> opens the <span style="color: #000000; font-weight: bold">Query Editor</span> ✨</div>
</div>
</div>
<div class="controls">
<button class="control-button" onclick="toggleLanguage('en')">🇺🇸</button>
<button class="control-button" onclick="window.print()">🖨️</button>
<button class="control-button" onclick="toggleLanguage('de')">🇩🇪</button>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
toggleLanguage('en');
});
function toggleLanguage(lang) {
document.querySelectorAll('[data-lang]').forEach(el => {
el.style.display = el.dataset.lang === lang ? 'block' : 'none';
});
}
</script>
</body>
</html>