-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
258 lines (213 loc) · 9.14 KB
/
Copy pathindex.html
File metadata and controls
258 lines (213 loc) · 9.14 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
<!doctype html>
<html lang="fa" dir="rtl">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Circle Planner (24h) - Skeleton</title>
<!-- مرحله ۲: CSS رو بعداً اینجا لینک میکنیم -->
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- APP SHELL -->
<header>
<h1>Circle Planner</h1>
<!-- وضعیت روز/هفته + تاریخ -->
<section aria-label="Date and view switch">
<button type="button" id="prevDayBtn" aria-label="روز قبل">◀</button>
<div>
<div id="activeDateText">---</div>
<small id="activeViewText">نمای روزانه</small>
</div>
<button type="button" id="nextDayBtn" aria-label="روز بعد">▶</button>
<div>
<button type="button" id="dayViewBtn">روزانه</button>
<button type="button" id="weekViewBtn">هفتگی</button>
</div>
</section>
</header>
<main>
<!-- LEFT PANEL: TIME DIAL + QUICK CREATE -->
<section aria-label="Time dial and quick create">
<h2>دایره زمان (۲۴ ساعته)</h2>
<!-- Legend (رینگها/دستهها) -->
<section aria-label="Category legend">
<h3>دستهبندیها</h3>
<!-- مرحله ۳: رنگها و استایلش با CSS -->
<ul id="categoryLegend">
<li>
<button type="button" data-category="study" id="catStudyBtn">
<span aria-hidden="true">●</span> درس
</button>
</li>
<li>
<button type="button" data-category="work" id="catWorkBtn">
<span aria-hidden="true">●</span> کار
</button>
</li>
<li>
<button type="button" data-category="sport" id="catSportBtn">
<span aria-hidden="true">●</span> ورزش
</button>
</li>
</ul>
</section>
<!-- Dial container -->
<section aria-label="Dial container">
<!--
نکته: اینجا قرار نیست هنوز کار کنه.
بعداً با JS:
- چند رینگ (هر category یک رینگ)
- drag-to-create روی رینگ
- handles برای بازه انتخابی
-->
<div id="dialContainer">
<svg id="dialSvg" viewBox="0 0 420 420" role="img" aria-label="24h time dial">
<defs>
<!-- gradients later -->
</defs>
<!-- ساعتها/تیکها -->
<g id="dialTicks"></g>
<!-- رینگها (برای هر دسته) -->
<g id="ringsLayer">
<g id="ringStudy" data-category="study"></g>
<g id="ringWork" data-category="work"></g>
<g id="ringSport" data-category="sport"></g>
</g>
<!-- لایهی ساخت سریع با درگ (overlay target) -->
<g id="dragCreateLayer" aria-label="drag to create task"></g>
<!-- Handles انتخاب بازه -->
<g id="handlesLayer">
<g id="startHandle" aria-label="شروع بازه"></g>
<g id="endHandle" aria-label="پایان بازه"></g>
<path id="selectedArc" aria-label="بازه انتخاب شده"></path>
</g>
</svg>
<!-- متن مرکز دایره -->
<div id="dialCenterInfo" aria-live="polite">
<div id="rangeText">--:-- تا --:--</div>
<div id="durationText">مدت: -- دقیقه</div>
<div id="activeCategoryText">دسته فعال: درس</div>
<small id="dialHintText">روی رینگ درگ کن تا تسک سریع ساخته بشه</small>
</div>
</div>
</section>
<!-- Quick task form (برای ساخت دستی) -->
<section aria-label="Quick task form">
<h3>ساخت تسک</h3>
<form id="taskForm">
<label for="taskTitleInput">عنوان</label>
<input id="taskTitleInput" name="title" type="text" placeholder="مثلاً: تمرین ریاضی" />
<label for="taskCategorySelect">دسته</label>
<select id="taskCategorySelect" name="category">
<option value="study">درس</option>
<option value="work">کار</option>
<option value="sport">ورزش</option>
</select>
<label for="taskStartInput">شروع (HH:MM)</label>
<input id="taskStartInput" name="start" type="time" />
<label for="taskEndInput">پایان (HH:MM)</label>
<input id="taskEndInput" name="end" type="time" />
<label for="taskNotesInput">یادداشت</label>
<textarea id="taskNotesInput" name="notes" rows="3" placeholder="اختیاری..."></textarea>
<div>
<button type="submit" id="addTaskBtn">افزودن</button>
<button type="button" id="clearSelectionBtn">پاک کردن انتخاب دایره</button>
</div>
</form>
</section>
<!-- Export / Import -->
<section aria-label="Export and import">
<h3>خروجی / ورود اطلاعات</h3>
<div>
<button type="button" id="exportJsonBtn">Export JSON</button>
<button type="button" id="importJsonBtn">Import JSON</button>
<input id="importFileInput" type="file" accept="application/json" hidden />
</div>
<textarea id="jsonPreview" rows="6" placeholder="اینجا خروجی JSON نمایش داده میشه یا میتونی دستی JSON بچسبونی..."></textarea>
</section>
</section>
<!-- RIGHT PANEL: TASK LIST + STATS + POMODORO -->
<section aria-label="Tasks and analytics">
<h2>تسکها</h2>
<!-- Filters -->
<section aria-label="Task filters">
<label for="statusFilter">فیلتر وضعیت</label>
<select id="statusFilter">
<option value="all">همه</option>
<option value="todo">انجامنشده</option>
<option value="done">انجامشده</option>
</select>
<label for="categoryFilter">فیلتر دسته</label>
<select id="categoryFilter">
<option value="all">همه</option>
<option value="study">درس</option>
<option value="work">کار</option>
<option value="sport">ورزش</option>
</select>
<input id="searchInput" type="search" placeholder="جستجو توی عنوان..." />
</section>
<!-- Progress + stats -->
<section aria-label="Progress stats">
<h3>آمار</h3>
<div id="progressText">۰٪ انجامشده</div>
<ul>
<li>کل: <b id="statTotal">0</b></li>
<li>انجامشده: <b id="statDone">0</b></li>
<li>مجموع زمان برنامهریزی: <b id="statPlannedMins">0</b> دقیقه</li>
</ul>
<!-- Chart -->
<div aria-label="Weekly chart">
<h4>نمودار ۷ روز اخیر</h4>
<canvas id="weeklyChart" width="900" height="260"></canvas>
</div>
</section>
<!-- Task list -->
<section aria-label="Task list">
<h3>لیست</h3>
<div id="taskList" role="list"></div>
</section>
<!-- Pomodoro -->
<section aria-label="Pomodoro timer">
<h3>پومودورو</h3>
<div>
<div>تسک فعال: <b id="activePomodoroTask">هیچ</b></div>
<div>حالت: <b id="pomodoroModeText">Focus</b></div>
<div>زمان: <b id="pomodoroTimeText">25:00</b></div>
</div>
<div>
<button type="button" id="pomodoroStartBtn">Start</button>
<button type="button" id="pomodoroPauseBtn">Pause</button>
<button type="button" id="pomodoroResetBtn">Reset</button>
</div>
<div>
<label for="focusMinutes">Focus (min)</label>
<input id="focusMinutes" type="number" min="5" max="90" value="25" />
<label for="breakMinutes">Break (min)</label>
<input id="breakMinutes" type="number" min="3" max="30" value="5" />
</div>
</section>
<!-- Notifications -->
<section aria-label="Notifications">
<h3>اعلانها</h3>
<button type="button" id="requestNotifBtn">فعال کردن Notification</button>
<small id="notifStatusText">وضعیت: نامشخص</small>
</section>
<!-- Storage mode -->
<section aria-label="Storage mode">
<h3>ذخیرهسازی</h3>
<p>حالت پیشفرض: IndexedDB (آفلاین)</p>
<div>
<button type="button" id="useIndexedDbBtn">IndexedDB</button>
<button type="button" id="useBackendBtn">Backend (بعداً)</button>
</div>
<small id="storageStatusText">Storage: IndexedDB (پیشفرض)</small>
</section>
</section>
</main>
<footer>
<small>v0.1 — HTML Skeleton (مرحله ۱)</small>
</footer>
<!-- مرحله ۳: JS رو بعداً اینجا لینک میکنیم -->
<script src="app.js"></script>
</body>
</html>