-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
280 lines (268 loc) · 14.4 KB
/
Copy pathindex.html
File metadata and controls
280 lines (268 loc) · 14.4 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
267
268
269
270
271
272
273
274
275
276
277
278
279
280
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Typeगर - Master Your Typing Skills with Fun Practice</title>
<meta name="description" content="Improve your typing speed and accuracy with Typeगर, the ultimate typing practice tool. Features timed tests, multiple content types, and real-time feedback. Perfect for students, professionals, and typing enthusiasts.">
<meta name="keywords" content="typing practice, typing test, typing speed, typing accuracy, wpm, words per minute, keyboard skills, typing tutor, typing game, learn typing">
<meta name="author" content="Hitesh Nayak">
<meta name="robots" content="index, follow">
<meta property="og:title" content="Typeगर - Master Your Typing Skills">
<meta property="og:description" content="Improve your typing speed and accuracy with our interactive typing practice tool.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://typegar.com">
<meta property="og:image" content="https://typegar.com/logo.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Typeगर - Master Your Typing Skills">
<meta name="twitter:description" content="Improve your typing speed and accuracy with our interactive typing practice tool.">
<link rel="canonical" href="https://typegar.com">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="styles.css">
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js/dist/supabase.min.js"></script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "Typeगर",
"description": "Interactive typing practice tool to improve typing speed and accuracy",
"url": "https://typegar.com",
"applicationCategory": "EducationalApplication",
"operatingSystem": "Web Browser",
"author": {
"@type": "Person",
"name": "Hitesh Nayak"
},
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD"
},
"featureList": [
"Timed typing tests",
"Multiple content types (words, numbers, punctuation, quotes)",
"Real-time WPM and accuracy tracking",
"Multiple typing styles",
"Dark/Light theme toggle"
]
}
</script>
</head>
<body>
<div class="container">
<!-- Header -->
<header class="header">
<div class="logo-container">
<svg class="logo-svg" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Typeगर Logo">
<defs>
<linearGradient id="logoGradient" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#a78bfa"/>
<stop offset="50%" style="stop-color:#f472b6"/>
<stop offset="100%" style="stop-color:#22d3ee"/>
</linearGradient>
</defs>
<circle cx="50" cy="50" r="45" fill="url(#logoGradient)" opacity="0.1"/>
<path d="M25 35 L45 25 L45 45 L25 55 Z" fill="url(#logoGradient)"/>
<path d="M55 25 L75 35 L75 55 L55 45 Z" fill="url(#logoGradient)"/>
<circle cx="50" cy="40" r="8" fill="url(#logoGradient)" opacity="0.8"/>
<rect x="45" y="48" width="10" height="4" fill="url(#logoGradient)"/>
</svg>
<h1 class="logo">Typeगर</h1>
</div>
<p class="tagline">Practice typing with style</p>
<div class="hero-text">
<p class="hero-description">Hey there! Welcome to Typeगर, where typing practice meets fun and challenge. Whether you're a student prepping for exams, a professional looking to boost productivity, or just someone who wants to type faster, we've got you covered.</p>
<p class="hero-tip">💡 <strong>Pro tip:</strong> Start with shorter timed tests and gradually work your way up. Consistency beats intensity every time!</p>
</div>
<section id="authPanel" class="auth-panel">
<div class="auth-card">
<h3 id="authTitle">Sign in to save progress</h3>
<div id="userArea" class="hidden">
<p>Signed in as <span id="userEmail"></span></p>
<button id="logoutBtn" class="btn btn-secondary">Logout</button>
</div>
<div id="loginArea">
<input id="emailInput" type="email" placeholder="Email" />
<input id="passwordInput" type="password" placeholder="Password" />
<div class="auth-btns">
<button id="signInBtn" class="btn btn-primary">Sign In</button>
<button id="signUpBtn" class="btn btn-secondary">Sign Up</button>
</div>
<p class="guest-note">Continue as guest anytime. No data will be saved.</p>
</div>
</div>
</section>
<div id="settingsHidden" style="display:none;">
<select id="contentType">
<option value="words">Words</option>
<option value="numbers">Numbers</option>
<option value="punctuation">Punctuation</option>
<option value="quotes">Quotes</option>
<option value="mixed">Mixed</option>
</select>
<select id="testType">
<option value="timed" selected>Timed</option>
<option value="free">Free</option>
</select>
<select id="typingStyle">
<option value="highlight" selected>Highlight</option>
<option value="underline">Underline</option>
<option value="fade">Fade</option>
</select>
</div>
</header>
<!-- Main Content -->
<main class="main-content">
<!-- Top Controls -->
<div class="controls">
<!-- Content Type Selector -->
<div class="selector-group">
<label>Content:</label>
<select id="contentType" class="selector">
<option value="words">Words</option>
<option value="numbers">Numbers</option>
<option value="punctuation">Punctuation</option>
<option value="quotes">Quotes</option>
<option value="mixed">Mixed</option>
</select>
</div>
<!-- Test Type Selector -->
<div class="selector-group">
<label>Mode:</label>
<select id="testType" class="selector">
<option value="timed">Timed</option>
<option value="free">Free</option>
</select>
</div>
<!-- Timed Modes -->
<div id="timedModes" class="test-modes">
<button class="mode-btn active" data-duration="30">30s</button>
<button class="mode-btn" data-duration="60">1min</button>
<button class="mode-btn" data-duration="180">3min</button>
</div>
<!-- Typing Style Selector -->
<div class="selector-group">
<label>Style:</label>
<select id="typingStyle" class="selector">
<option value="highlight">Highlight</option>
<option value="underline">Underline</option>
<option value="fade">Fade</option>
</select>
</div>
<div class="control-buttons">
<button id="resetBtn" class="btn btn-secondary">Reset</button>
<button id="themeBtn" class="btn btn-secondary">🌙</button>
</div>
</div>
<div class="status-bar">
<div class="status-item">WPM: <span id="wpm">0</span></div>
<div class="status-item">ACC: <span id="accuracy">100%</span></div>
<div class="status-item">TIME: <span id="timer">60</span></div>
<div class="status-item">KEY: <span id="keystrokes">0</span></div>
</div>
<div class="typing-area">
<div class="prompt-text" id="promptText" tabindex="0" aria-label="Typing text prompt">
<!-- Words will be inserted here -->
</div>
</div>
<div class="controls">
<div id="timedModes" class="test-modes">
<button class="mode-btn active" data-duration="15">15</button>
<button class="mode-btn" data-duration="30">30</button>
<button class="mode-btn" data-duration="60">60</button>
<button class="mode-btn" data-duration="120">120</button>
</div>
<button id="resetBtn" class="btn btn-secondary">Reset</button>
<button id="themeBtn" class="btn btn-secondary">🌙</button>
</div>
<section id="progressHidden" style="display:none;">
<div class="progress-bar">
<div class="progress-fill" id="progressFill"></div>
</div>
<p><span id="wordsTyped">0</span> / <span id="totalWords">0</span></p>
</section>
<!-- User dashboard (requires login) -->
<section id="userDashboard" class="user-dashboard hidden">
<h2>History & Progress</h2>
<div class="progress-grid">
<div class="progress-card"><strong>Total Sessions</strong><span id="totalSessions">0</span></div>
<div class="progress-card"><strong>Avg WPM</strong><span id="avgWpm">0</span></div>
<div class="progress-card"><strong>Best WPM</strong><span id="bestWpm">0</span></div>
<div class="progress-card"><strong>Accuracy</strong><span id="avgAccuracy">0%</span></div>
</div>
<h3>Contribution Graph (30 days)</h3>
<div id="contributionGraph" class="contribution-graph"></div>
<h3>Recent History</h3>
<div id="historyList" class="history-list"></div>
</section>
<!-- Result Modal -->
<div id="resultModal" class="modal hidden">
<div class="modal-content">
<h2>Test Complete!</h2>
<div class="result-stats">
<div class="result-stat">
<span class="label">WPM</span>
<span class="value" id="resultWpm">0</span>
</div>
<div class="result-stat">
<span class="label">Accuracy</span>
<span class="value" id="resultAccuracy">0%</span>
</div>
<div class="result-stat">
<span class="label">Time</span>
<span class="value" id="resultTime">0s</span>
</div>
<div class="result-stat">
<span class="label">Errors</span>
<span class="value" id="resultErrors">0</span>
</div>
<div class="result-stat char-count">
<span class="label">Correct</span>
<span class="value" id="resultCorrectChars">0</span>
</div>
<div class="result-stat char-count">
<span class="label">Incorrect</span>
<span class="value" id="resultIncorrectChars">0</span>
</div>
<div class="result-stat char-count">
<span class="label">Total Chars</span>
<span class="value" id="resultTotalChars">0</span>
</div>
</div>
<button class="btn btn-primary" onclick="location.reload()">Try Again</button>
</div>
</div>
</main>
<!-- Testimonials Section -->
<section class="testimonials-section">
<h2>What Our Users Say</h2>
<div class="testimonials-grid">
<div class="testimonial-card">
<div class="testimonial-content">
<p>"I was stuck at 40 WPM for months. After using Typeगर daily for just 2 weeks, I'm now consistently hitting 65 WPM. The different practice modes really helped me improve!"</p>
<cite>- Sarah M., College Student</cite>
</div>
</div>
<div class="testimonial-card">
<div class="testimonial-content">
<p>"As a programmer, fast typing is crucial. Typeगर's punctuation and mixed content modes helped me get comfortable with coding syntax. My accuracy went from 85% to 95%!"</p>
<cite>- Alex K., Software Developer</cite>
</div>
</div>
<div class="testimonial-card">
<div class="testimonial-content">
<p>"I started using this during my lunch breaks at work. Small consistent practice really adds up. Went from 35 WPM to 55 WPM in a month. Highly recommend!"</p>
<cite>- Maria L., Administrative Assistant</cite>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="footer">
<p>Practice makes perfect • Keep typing • Made with ❤️ by Hitesh</p>
<div class="author-credit">Hitesh Nayak</div>
</footer>
</div>
<script src="script.js"></script>
</body>
</html>