-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
284 lines (257 loc) · 12.5 KB
/
Copy pathindex.html
File metadata and controls
284 lines (257 loc) · 12.5 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
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="LifeOS - سیستم گیمیفیکیشن زندگی با هوش مصنوعی">
<meta name="theme-color" content="#020617">
<meta name="author" content="LifeOS Team">
<!-- 📱 PWA Manifest -->
<link rel="manifest" href="./manifest.json">
<!-- 🎨 Theme Color برای موبایل -->
<meta name="theme-color" content="#020617">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="LifeOS">
<!-- 🍎 Apple Touch Icon (برای iOS) -->
<link rel="apple-touch-icon"
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Crect width='180' height='180' rx='30' fill='%23020617'/%3E%3Ctext x='50%25' y='55%25' font-size='110' text-anchor='middle' dominant-baseline='middle'%3E🎮%3C/text%3E%3C/svg%3E">
<!-- 🎨 Vazirmatn Font برای فارسی -->
<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=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap"
rel="stylesheet">
<!-- 🎨 Main Stylesheet -->
<link rel="stylesheet" href="style.css">
<!-- 🎮 SVG Favicon (بدون نیاز به فایل جدا) -->
<link rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🎮</text></svg>">
<title>LifeOS - Metaverse Edition</title>
<!-- 🔗 Import Map برای Three.js و ماژولها -->
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.150.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@0.150.0/examples/jsm/"
}
}
</script>
</head>
<body>
<div class="container">
<!-- 🎯 Header -->
<header class="app-header">
<div class="header-left">
<h1 class="app-title">
LifeOS
<span class="version-badge">v2.5 Metaverse</span>
</h1>
<div class="header-indicators">
<span id="storage-indicator" class="indicator" title="فضای ذخیرهسازی">
💾 <span id="storage-size">0</span>MB
</span>
<span id="cloud-indicator" class="indicator" title="وضعیت Cloud">
☁️ آماده
</span>
</div>
</div>
<div class="header-actions">
<button data-settings class="icon-btn" title="تنظیمات" aria-label="تنظیمات">⚙️</button>
<button data-shortcuts class="icon-btn" title="کلیدهای میانبر" aria-label="راهنمای میانبرها">⌨️</button>
</div>
</header>
<!-- 🎮 Toolbar -->
<div class="toolbar">
<button data-simulator class="toolbar-btn">
🔮 شبیهساز آینده
</button>
<button data-export class="toolbar-btn">
📤 Export Backup
</button>
<button data-import-trigger class="toolbar-btn">
📥 Import Backup
</button>
<input type="file" id="import-file" accept=".json" hidden>
</div>
<!-- 🎯 Action Buttons -->
<div class="action-group" role="group" aria-label="فعالیتهای اصلی">
<button data-action="study" class="action-btn action-study">
<span class="action-icon">📚</span>
<span class="action-label">مطالعه</span>
<small class="action-shortcut">Ctrl+1</small>
</button>
<button data-action="exercise" class="action-btn action-exercise">
<span class="action-icon">💪</span>
<span class="action-label">ورزش</span>
<small class="action-shortcut">Ctrl+2</small>
</button>
<button data-action="work" class="action-btn action-work">
<span class="action-icon">💼</span>
<span class="action-label">کار</span>
<small class="action-shortcut">Ctrl+3</small>
</button>
<button data-action="social" class="action-btn action-social">
<span class="action-icon">🤝</span>
<span class="action-label">ارتباطات</span>
<small class="action-shortcut">Ctrl+4</small>
</button>
<button data-action="meditate" class="action-btn action-meditate">
<span class="action-icon">🧘</span>
<span class="action-label">مراقبه</span>
<small class="action-shortcut">Ctrl+5</small>
</button>
</div>
<!-- 📊 Status Display (Dashboard) -->
<div id="status-display" class="card dashboard-card" role="region" aria-label="وضعیت کاربر">
<div class="loading-state">
<div class="loading-spinner"></div>
<p>در حال بارگذاری...</p>
</div>
</div>
<!-- 💡 Advice Display -->
<div id="advice-display" role="region" aria-label="توصیههای هوش مصنوعی"></div>
<!-- ⏱️ Pomodoro Timer -->
<div class="card pomodoro-card">
<div class="pomodoro-info">
<h3 class="section-title">
<span class="title-icon">⏱️</span>
<span class="title-text">تایمر تمرکز (پومودورو)</span>
</h3>
<p id="timer-text" class="timer-status">آماده برای تمرکز</p>
</div>
<div class="pomodoro-controls">
<button data-pomodoro="study" class="btn btn-primary">
🚀 شروع تمرکز عمیق (۲۵ دقیقه)
</button>
<button id="pomodoro-stop" class="btn btn-danger" hidden>
⏹️ توقف تایمر
</button>
</div>
</div>
<!-- 🛒 Shop & Skills -->
<div class="card shop-skills-card">
<div class="shop-section">
<h3 class="section-title">
<span class="title-icon">🛒</span>
<span class="title-text">فروشگاه</span>
</h3>
<div class="shop-items">
<button data-store-item="1" class="shop-item">
<span class="item-icon">☕</span>
<div class="item-info">
<span class="item-name">قهوه ویژه</span>
<span class="item-desc">انرژی و شادی +۱۰</span>
</div>
<span class="item-price">50 🪙</span>
</button>
<button data-store-item="2" class="shop-item">
<span class="item-icon">📖</span>
<div class="item-info">
<span class="item-name">کتاب نایاب</span>
<span class="item-desc">دانش +۱۵</span>
</div>
<span class="item-price">150 🪙</span>
</button>
</div>
</div>
<div class="skills-section">
<h3 class="section-title">
<span class="title-icon">🌳</span>
<span class="title-text">درخت مهارت</span>
</h3>
<div class="skill-items">
<button data-skill="FastLearner" class="skill-item">
<span class="skill-icon">⚡</span>
<div class="skill-info">
<span class="skill-name">یادگیرنده سریع</span>
<span class="skill-desc">XP مطالعه +۲۰٪</span>
</div>
<span class="skill-cost">1 🌟</span>
</button>
<button data-skill="IronWill" class="skill-item">
<span class="skill-icon">🛡️</span>
<div class="skill-info">
<span class="skill-name">اراده آهنین</span>
<span class="skill-desc">کاهش افت discipline</span>
</div>
<span class="skill-cost">2 🌟</span>
</button>
</div>
</div>
</div>
<!-- ☁️ Cloud Sync -->
<div class="card cloud-card">
<h3 class="section-title">
<span class="title-icon">☁️</span>
<span class="title-text">همگامسازی ابری</span>
</h3>
<p class="section-desc">دادههای شما به صورت خودکار در فضای ابری ذخیره میشوند.</p>
<div id="cloud-status" class="cloud-status">
<span class="status-text">وضعیت: در حال اتصال...</span>
</div>
<div class="cloud-actions">
<button id="cloud-backup-btn" class="btn btn-primary">
💾 Backup Now
</button>
<button id="cloud-restore-btn" class="btn btn-secondary">
📥 Restore Latest
</button>
<button id="cloud-history-btn" class="btn btn-secondary">
📜 History
</button>
</div>
</div>
<!-- 🏙️ 3D World -->
<div class="card world-card">
<h3 class="section-title">
<span class="title-icon">🏙️</span>
<span class="title-text">شهر عادات (نمای زنده سهبعدی)</span>
</h3>
<p class="section-desc">
ساختمانها نمایانگر وضعیت شما و کریستال وسط نشانگر روح (Level) شماست.
با mouse میتوانید بچرخانید و zoom کنید.
</p>
<div id="world-container" class="world-container loading">
<canvas id="world"></canvas>
<div class="world-loading">
<div class="loading-spinner"></div>
<p>در حال ساخت شهر...</p>
</div>
</div>
<div class="world-controls">
<button id="world-focus-knowledge" class="btn btn-sm">📚 تمرکز روی دانش</button>
<button id="world-focus-health" class="btn btn-sm">❤️ تمرکز روی سلامتی</button>
<button id="world-reset-camera" class="btn btn-sm">🎥 بازنشانی دوربین</button>
</div>
</div>
<!-- 🔥 Activity Heatmap -->
<div class="card heatmap-card">
<h3 class="section-title">
<span class="title-icon">🔥</span>
<span class="title-text">نقشه فعالیت (۳۶۵ روز اخیر)</span>
</h3>
<div id="heatmap-container" class="heatmap-container">
<div class="loading-state">
<div class="loading-spinner"></div>
<p>در حال بارگذاری نقشه...</p>
</div>
</div>
</div>
<!-- 📜 Footer -->
<footer class="app-footer">
<p>ساخته شده با ❤️ توسط LifeOS Team</p>
<p class="footer-small">
<kbd>Ctrl</kbd> + <kbd>/</kbd> برای راهنمای کلیدهای میانبر
</p>
</footer>
</div>
<!-- 🚀 Main Application Script -->
<script type="module" src="./app/main.js"></script>
<!-- 🔔 Fallback برای مرورگرهای قدیمی -->
<noscript>
<div class="noscript-warning">
⚠️ این برنامه نیاز به JavaScript دارد. لطفاً آن را فعال کنید.
</div>
</noscript>
</body>
</html>