-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
392 lines (364 loc) · 17.3 KB
/
Copy pathindex.html
File metadata and controls
392 lines (364 loc) · 17.3 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
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
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/study-icon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>StudyPro - Advanced Study App</title>
<meta name="description" content="Advanced study app with spaced repetition flashcards, note-taking, and progress tracking" />
<!-- Material Design 3 Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
<!-- Material Icons -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- PWA Meta Tags -->
<meta name="theme-color" content="#2e7d32" />
<link rel="manifest" href="/manifest.json" />
<meta name="mobile-web-app-capable" content="yes" />
<!-- Main CSS -->
<link rel="stylesheet" href="src/style.css">
<!-- Apple Touch Icons -->
<link rel="apple-touch-icon" href="/study-icon.svg" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
</head>
<body>
<div id="app">
<!-- Navigation -->
<nav class="navbar">
<div class="nav-brand">
<h1 class="md-headline-medium">
StudyPro
</h1>
</div>
<div class="nav-menu">
<button class="nav-btn active" data-tab="dashboard">
<span class="material-icons">dashboard</span>
Dashboard
</button>
<button class="nav-btn" data-tab="flashcards">
<span class="material-icons">style</span>
Flashcards
</button>
<button class="nav-btn" data-tab="notes">
<span class="material-icons">note</span>
Notes
</button>
<button class="nav-btn" data-tab="timer">
<span class="material-icons">timer</span>
Timer
</button>
</div>
</nav>
<!-- Dashboard Tab -->
<div class="tab-content active" id="dashboard">
<div class="container">
<div class="dashboard-header">
<h2 class="md-headline-large">Dashboard</h2>
<p class="md-body-large">Welcome back! Track your progress and continue your learning journey.</p>
</div>
<div class="dashboard-grid">
<!-- Today's Progress -->
<div class="dashboard-card">
<h3 class="md-headline-small">Today's Progress</h3>
<div class="progress-stat">
<span class="stat-number" id="today-cards">0</span>
<span class="stat-label">Cards reviewed</span>
</div>
</div>
<!-- Study Streak -->
<div class="dashboard-card">
<h3 class="md-headline-small">Study Streak</h3>
<div class="progress-stat">
<span class="stat-number" id="study-streak">0</span>
<span class="stat-label">Days in a row</span>
</div>
</div>
<!-- Total Cards -->
<div class="dashboard-card">
<h3 class="md-headline-small">Total Cards</h3>
<div class="progress-stat">
<span class="stat-number" id="total-cards">0</span>
<span class="stat-label">In your collection</span>
</div>
</div>
<!-- Focus Time -->
<div class="dashboard-card">
<h3 class="md-headline-small">Focus Time</h3>
<div class="progress-stat">
<span class="stat-number" id="focus-time">0</span>
<span class="stat-label">Minutes today</span>
</div>
</div>
</div>
<!-- Quick Actions -->
<div class="quick-actions">
<h3 class="md-headline-small">⚡ Quick Actions</h3>
<div class="action-buttons">
<button class="action-btn primary" id="review-cards">
<span class="material-icons">style</span>
Review Cards
</button>
<button class="action-btn" id="add-card">
<span class="material-icons">add</span>
Add Card
</button>
<button class="action-btn" id="new-note">
<span class="material-icons">note_add</span>
New Note
</button>
<button class="action-btn" id="start-timer">
<span class="material-icons">play_arrow</span>
Start Timer
</button>
</div>
</div>
<!-- Recent Activity -->
<div class="recent-activity">
<h3 class="md-headline-small">📊 Recent Activity</h3>
<div class="activity-list" id="activity-list">
<p class="no-activity">No recent activity. Start studying to see your progress!</p>
</div>
</div>
</div>
</div>
<!-- Flashcards Tab -->
<div class="tab-content" id="flashcards">
<div class="container">
<div class="flashcards-header">
<h2 class="md-headline-large">Flashcards</h2>
<div class="flashcard-controls">
<button class="btn primary" id="add-flashcard">
<span class="material-icons">add</span>
Add Card
</button>
<button class="btn" id="import-cards">
<span class="material-icons">upload_file</span>
Import
</button>
<button class="btn" id="export-cards">
<span class="material-icons">download</span>
Export
</button>
</div>
</div>
<div class="flashcard-filters">
<div class="filter-group">
<label for="subject-filter">Filter by Subject:</label>
<select id="subject-filter">
<option value="">All Subjects</option>
</select>
</div>
<div class="filter-group">
<label for="deck-filter">Deck:</label>
<select id="deck-filter">
<option value="">Default Deck</option>
</select>
<button class="btn-sm" id="new-deck">New Deck</button>
</div>
</div>
<div class="flashcard-stats">
<div class="stat-item">
<span class="stat-label">Total Cards:</span>
<span class="stat-value" id="flashcard-total">0</span>
</div>
<div class="stat-item">
<span class="stat-label">Due for Review:</span>
<span class="stat-value" id="flashcard-due">0</span>
</div>
</div>
<div class="review-section">
<h3 class="md-headline-small">Review by Subject</h3>
<div class="subject-list" id="subject-list">
<p class="no-cards">No cards yet. <a href="#" id="create-first-card">Create your first flashcard!</a></p>
</div>
</div>
<div class="flashcard-list" id="flashcard-list">
<!-- Flashcards will be populated here -->
</div>
</div>
</div>
<!-- Notes Tab -->
<div class="tab-content" id="notes">
<div class="container">
<div class="notes-header">
<h2 class="md-headline-large">Notes</h2>
<button class="btn primary" id="add-note">
<span class="material-icons">add</span>
New Note
</button>
</div>
<div class="notes-grid" id="notes-grid">
<div class="empty-state">
<span class="material-icons">note</span>
<h3>No notes yet</h3>
<p>Create your first note to get started!</p>
</div>
</div>
</div>
</div>
<!-- Timer Tab -->
<div class="tab-content" id="timer">
<div class="container">
<div class="timer-header">
<h2 class="md-headline-large">Pomodoro Timer</h2>
<p class="md-body-large">Stay focused with the Pomodoro Technique</p>
</div>
<div class="timer-container">
<div class="timer-display">
<div class="timer-circle">
<canvas id="timer-canvas" width="300" height="300"></canvas>
<div class="timer-time">
<span id="timer-minutes">25</span>
<span class="timer-colon">:</span>
<span id="timer-seconds">00</span>
</div>
</div>
</div>
<div class="timer-controls">
<button class="btn primary" id="start-pause-timer">
<span class="material-icons">play_arrow</span>
Start
</button>
<button class="btn" id="reset-timer">
<span class="material-icons">refresh</span>
Reset
</button>
</div>
<div class="timer-settings">
<div class="setting-group">
<label for="work-duration">Work Duration (minutes):</label>
<input type="number" id="work-duration" min="1" max="60" value="25">
</div>
<div class="setting-group">
<label for="break-duration">Break Duration (minutes):</label>
<input type="number" id="break-duration" min="1" max="30" value="5">
</div>
</div>
<div class="timer-stats">
<div class="stat-item">
<span class="stat-label">Sessions Today:</span>
<span class="stat-value" id="sessions-today">0</span>
</div>
<div class="stat-item">
<span class="stat-label">Focus Time:</span>
<span class="stat-value" id="focus-time-today">0 min</span>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Modals -->
<div class="modal" id="flashcard-modal">
<div class="modal-content">
<div class="modal-header">
<h3 class="md-headline-small">Add Flashcard</h3>
<button class="modal-close" id="close-flashcard-modal">
<span class="material-icons">close</span>
</button>
</div>
<div class="modal-body">
<div class="form-group">
<label for="card-front">Front (Question):</label>
<textarea id="card-front" placeholder="Enter the question or prompt"></textarea>
</div>
<div class="form-group">
<label for="card-back">Back (Answer):</label>
<textarea id="card-back" placeholder="Enter the answer"></textarea>
</div>
<div class="form-group">
<label for="card-subject">Subject:</label>
<input type="text" id="card-subject" placeholder="e.g., Math, Science, History">
</div>
<div class="form-group">
<label for="card-deck">Deck:</label>
<select id="card-deck">
<option value="default">Default Deck</option>
</select>
</div>
</div>
<div class="modal-footer">
<button class="btn" id="cancel-flashcard">Cancel</button>
<button class="btn primary" id="save-flashcard">Save Card</button>
</div>
</div>
</div>
<div class="modal" id="note-modal">
<div class="modal-content">
<div class="modal-header">
<h3 class="md-headline-small">New Note</h3>
<button class="modal-close" id="close-note-modal">
<span class="material-icons">close</span>
</button>
</div>
<div class="modal-body">
<div class="form-group">
<label for="note-title">Title:</label>
<input type="text" id="note-title" placeholder="Enter note title">
</div>
<div class="form-group">
<label for="note-content">Content:</label>
<textarea id="note-content" placeholder="Enter your note content"></textarea>
</div>
<div class="form-group">
<label for="note-tags">Tags:</label>
<input type="text" id="note-tags" placeholder="Enter tags separated by commas">
</div>
</div>
<div class="modal-footer">
<button class="btn" id="cancel-note">Cancel</button>
<button class="btn primary" id="save-note">Save Note</button>
</div>
</div>
</div>
<div class="modal" id="review-modal">
<div class="modal-content review-content">
<div class="review-header">
<h3 class="md-headline-small">Review Session</h3>
<div class="review-progress">
<span id="review-current">1</span> / <span id="review-total">10</span>
</div>
<button class="modal-close" id="close-review-modal">
<span class="material-icons">close</span>
</button>
</div>
<div class="review-body">
<div class="flashcard-review">
<div class="card-side" id="card-front-review">
<div class="card-content" id="current-card-front">
Click to reveal answer
</div>
</div>
<div class="card-side hidden" id="card-back-review">
<div class="card-content" id="current-card-back">
Answer will appear here
</div>
</div>
</div>
<button class="btn primary flip-btn" id="flip-card">Show Answer</button>
</div>
<div class="review-footer hidden" id="review-buttons">
<button class="btn danger" id="review-again">
<span class="material-icons">thumb_down</span>
Again
</button>
<button class="btn warning" id="review-hard">
<span class="material-icons">sentiment_dissatisfied</span>
Hard
</button>
<button class="btn success" id="review-good">
<span class="material-icons">sentiment_satisfied</span>
Good
</button>
<button class="btn primary" id="review-easy">
<span class="material-icons">sentiment_very_satisfied</span>
Easy
</button>
</div>
</div>
</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>