-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
266 lines (245 loc) · 11.1 KB
/
index.html
File metadata and controls
266 lines (245 loc) · 11.1 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- SEO Meta Tags -->
<meta name="description"
content="Syntaxed - Professional code typing trainer supporting 25+ programming languages. Improve your coding speed and accuracy with real-time metrics, personal statistics, and Monaco Editor integration.">
<meta name="keywords"
content="code typing, programming practice, typing trainer, coding speed, Monaco Editor, JavaScript, Python, C++, programming languages, developer tools">
<meta name="author" content="Burkifa23, Programmer-233">
<meta name="robots" content="index, follow">
<!-- Open Graph / Social Media Meta Tags -->
<meta property="og:type" content="website">
<meta property="og:title" content="Syntaxed - Professional Code Typing Trainer">
<meta property="og:description"
content="Master your coding speed with our professional typing trainer. Practice with 25+ programming languages, track your progress, and improve your development efficiency.">
<meta property="og:image" content="syntaxed-preview.png">
<meta property="og:url" content="https://burkifa23.github.io/Syntaxed/">
<meta property="og:site_name" content="Syntaxed">
<!-- Twitter Card Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Syntaxed - Professional Code Typing Trainer">
<meta name="twitter:description"
content="Master your coding speed with our professional typing trainer. Practice with 25+ programming languages and track your progress.">
<meta name="twitter:image" content="syntaxed-preview.png">
<meta name="twitter:creator" content="@burkifa23">
<!-- Performance & Technical -->
<meta name="theme-color" content="#4a76a8">
<meta name="color-scheme" content="light dark">
<link rel="preconnect" href="https://cdnjs.cloudflare.com">
<link rel="dns-prefetch" href="https://cdnjs.cloudflare.com">
<!-- Favicon and Icons -->
<link rel="icon" href="Syntaxed_Logo.png" type="image/png">
<link rel="apple-touch-icon" href="Syntaxed_Logo.png">
<link rel="shortcut icon" href="Syntaxed_Logo.png">
<!-- Page Info -->
<title>Syntaxed - Professional Code Typing Trainer | 25+ Programming Languages</title>
<!-- Stylesheets -->
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" data-name="vs/editor/editor.main"
href="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.52.2/min/vs/editor/editor.main.min.css">
<!-- JSON-LD Structured Data -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "Syntaxed",
"description": "Professional code typing trainer supporting 25+ programming languages with real-time metrics and progress tracking.",
"url": "https://burkifa23.github.io/Syntaxed/",
"applicationCategory": "DeveloperApplication",
"operatingSystem": "Web Browser",
"author": [
{
"@type": "Person",
"name": "Burkifa23",
"url": "https://github.com/burkifa23"
},
{
"@type": "Person",
"name": "Programmer-233",
"url": "https://github.com/programmer-233"
}
],
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD"
},
"screenshot": "syntaxed-preview.png"
}
</script>
</head>
<body>
<!-- Header -->
<header class="header">
<div class="header-left">
<a href="#" class="logo">
<svg class="logo-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"/>
</svg>
<span class="logo-text">Syntaxed</span>
</a>
<span class="tagline">Master Your Code Typing</span>
</div>
<div class="header-right">
<button id="vertical-layout-btn" class="icon-btn active" title="Vertical Layout (Alt+V)" aria-label="Vertical Layout">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="3" width="18" height="8" rx="2"/>
<rect x="3" y="13" width="18" height="8" rx="2"/>
</svg>
</button>
<button id="horizontal-layout-btn" class="icon-btn" title="Horizontal Layout (Alt+H)" aria-label="Horizontal Layout">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="3" width="8" height="18" rx="2"/>
<rect x="13" y="3" width="8" height="18" rx="2"/>
</svg>
</button>
<button id="theme-toggle-btn" class="icon-btn" title="Toggle Theme (Alt+T)" aria-label="Toggle Theme">
<!-- Moon icon (shown in light mode) -->
<svg class="theme-icon moon-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>
</svg>
<!-- Sun icon (shown in dark mode) -->
<svg class="theme-icon sun-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="5"/>
<line x1="12" y1="1" x2="12" y2="3"/>
<line x1="12" y1="21" x2="12" y2="23"/>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/>
<line x1="1" y1="12" x2="3" y2="12"/>
<line x1="21" y1="12" x2="23" y2="12"/>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/>
</svg>
</button>
</div>
</header>
<!-- Main Content -->
<main class="main-content" id="main-content">
<div class="content-wrapper">
<!-- Selectors Row -->
<div class="selectors-row">
<div class="selector-group">
<label for="language-select">Language</label>
<select id="language-select" aria-label="Programming Language">
</select>
</div>
<div class="selector-group">
<label for="topic-select">Topic</label>
<select id="topic-select" aria-label="Topic">
</select>
</div>
<div class="selector-group blur-group">
<label for="blur-select">Blur Mode</label>
<select id="blur-select" aria-label="Blur Level">
<option value="0">Off</option>
<option value="10">10%</option>
<option value="30">30%</option>
<option value="50">50%</option>
<option value="70">70%</option>
<option value="90">90%</option>
</select>
</div>
</div>
<!-- Blur Indicator -->
<div id="blur-indicator" style="display: none;">
Blur Level: <span id="blur-level-text">Off</span>
</div>
<!-- Editors Container (affected by layout toggle) -->
<div class="editors-container vertical">
<!-- Code Panel -->
<div class="code-panel">
<div class="panel-header">
<div>
<h2 class="panel-title">Target Code</h2>
<p class="panel-subtitle">Read the code below</p>
</div>
</div>
<div class="code-display">
<pre id="snippet" role="region" aria-label="Code to type" aria-live="polite" tabindex="0"></pre>
</div>
</div>
<!-- Editor Panel -->
<div class="editor-panel">
<div class="panel-header">
<div>
<h2 class="panel-title">Your Code</h2>
<p class="panel-subtitle">Start typing to begin</p>
</div>
<div class="status-indicator">
<span class="status-dot" id="status-dot"></span>
<span id="status-text">Ready</span>
</div>
</div>
<div class="editor-container">
<div id="monaco-editor-container" role="textbox" aria-label="Type the code here"></div>
</div>
</div>
</div>
<!-- Controls -->
<div class="controls">
<button id="reset-button" class="control-btn primary" title="Reset Test (Alt+R)">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/>
<path d="M21 3v5h-5"/>
</svg>
Reset
</button>
<button id="stop-button" class="control-btn secondary" title="Stop Test (Alt+Q)">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="6" y="6" width="12" height="12" rx="2"/>
</svg>
Stop
</button>
<button id="stats-button" class="control-btn secondary" title="View Stats (Alt+S)">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="18" y1="20" x2="18" y2="10"/>
<line x1="12" y1="20" x2="12" y2="4"/>
<line x1="6" y1="20" x2="6" y2="14"/>
</svg>
Stats
</button>
<button id="blur-button" class="control-btn secondary" title="Toggle Blur (Alt+U)" style="display: none;">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/>
<circle cx="12" cy="12" r="3"/>
</svg>
Blur
</button>
<button id="explain-button" class="control-btn secondary" title="Show Explanation (Alt+T)">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="10"/>
<path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/>
<line x1="12" y1="17" x2="12.01" y2="17"/>
</svg>
Explain
</button>
</div>
<!-- Results (old JS injects content here) -->
<div id="results" role="region" aria-label="Typing test results" aria-live="polite"></div>
<!-- Keyboard Shortcuts -->
<div class="shortcuts-info">
<span class="shortcut"><kbd>Alt</kbd>+<kbd>R</kbd> Reset</span>
<span class="shortcut"><kbd>Alt</kbd>+<kbd>Q</kbd> Stop</span>
<span class="shortcut"><kbd>Alt</kbd>+<kbd>S</kbd> Stats</span>
<span class="shortcut"><kbd>Alt</kbd>+<kbd>U</kbd> Blur</span>
<span class="shortcut"><kbd>Alt</kbd>+<kbd>T</kbd> Theme</span>
<span class="shortcut"><kbd>Alt</kbd>+<kbd>E</kbd> Explain</span>
<span class="shortcut"><kbd>Alt</kbd>+<kbd>V</kbd> Vertical</span>
<span class="shortcut"><kbd>Alt</kbd>+<kbd>H</kbd> Horizontal</span>
</div>
</div>
</main>
<!-- Monaco Editor -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.52.2/min/vs/loader.min.js"></script>
<script>
require.config({ paths: { 'vs': 'https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.52.2/min/vs' } });
require(['vs/editor/editor.main'], function () {
// Monaco Editor is loaded
});
</script>
<script src="script.js"></script>
</body>
</html>