CSNET commited on
Commit
f2ca0d6
·
verified ·
1 Parent(s): 73ab158

ทำต่อให้จบ

Browse files
Files changed (4) hide show
  1. README.md +8 -5
  2. index.html +479 -19
  3. script.js +779 -0
  4. style.css +142 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Fit Journey Tracker
3
- emoji: 📊
4
- colorFrom: pink
5
- colorTo: blue
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: Fit Journey Tracker 🏃‍♀️
3
+ colorFrom: red
4
+ colorTo: purple
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://huggingface.co/deepsite).
index.html CHANGED
@@ -1,19 +1,479 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="th">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>WP WELLNET – Fit & Firm Platform</title>
7
+ <link rel="icon" type="image/x-icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='0.9em' font-size='90'>💪</text></svg>">
8
+ <link rel="stylesheet" href="style.css">
9
+ <script src="https://cdn.tailwindcss.com"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <script src="https://unpkg.com/feather-icons"></script>
12
+ <link href="https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap" rel="stylesheet">
13
+ </head>
14
+ <body class="bg-gray-50 font-['Prompt']">
15
+ <!-- Header -->
16
+ <header class="bg-white shadow-sm fixed top-0 w-full z-40">
17
+ <div class="container mx-auto px-4 py-3 flex items-center justify-between">
18
+ <div class="flex items-center space-x-2">
19
+ <div class="w-10 h-10 bg-green-300 rounded-full flex items-center justify-center">
20
+ <span class="text-white font-bold text-xl">W</span>
21
+ </div>
22
+ <span class="font-semibold text-lg">WP WELLNET</span>
23
+ </div>
24
+ <div class="flex items-center space-x-4">
25
+ <button class="relative">
26
+ <i data-feather="bell" class="w-6 h-6 text-gray-600"></i>
27
+ <span class="absolute -top-1 -right-1 w-3 h-3 bg-red-500 rounded-full"></span>
28
+ </button>
29
+ <div class="w-10 h-10 bg-gradient-to-r from-green-300 to-green-400 rounded-full flex items-center justify-center">
30
+ <span class="text-white font-semibold">ก</span>
31
+ </div>
32
+ </div>
33
+ </div>
34
+ </header>
35
+
36
+ <!-- Main Content -->
37
+ <main class="pt-16 pb-20 min-h-screen">
38
+ <div class="container mx-auto px-4 py-4">
39
+ <!-- Tab Content -->
40
+ <div id="tab-content">
41
+ <!-- Dashboard Tab -->
42
+ <div id="dashboard" class="tab-content">
43
+ <div class="bg-gradient-to-r from-green-200 to-green-300 rounded-2xl p-6 mb-6 text-white">
44
+ <h2 class="text-2xl font-bold mb-2">ยินดีต้อนรับกลับมา</h2>
45
+ <p class="text-lg">คุณมีเป้าหมาย: ลดไขมัน 3% ใน 60 วัน</p>
46
+ </div>
47
+
48
+ <!-- Today's Stats -->
49
+ <div class="bg-white rounded-2xl p-4 mb-6 shadow-sm">
50
+ <h3 class="font-semibold text-lg mb-4">ข้อมูลวันนี้</h3>
51
+ <div class="grid grid-cols-2 gap-4">
52
+ <div class="bg-gray-50 p-3 rounded-lg">
53
+ <div class="flex items-center justify-between">
54
+ <span class="text-gray-600 text-sm">ไขมัน</span>
55
+ <i data-feather="trending-down" class="w-4 h-4 text-green-500"></i>
56
+ </div>
57
+ <p class="text-xl font-bold">28.5%</p>
58
+ <p class="text-xs text-gray-500">เป้าหมาย: 25%</p>
59
+ </div>
60
+ <div class="bg-gray-50 p-3 rounded-lg">
61
+ <div class="flex items-center justify-between">
62
+ <span class="text-gray-600 text-sm">กล้ามเนื้อ</span>
63
+ <i data-feather="check-circle" class="w-4 h-4 text-green-500"></i>
64
+ </div>
65
+ <p class="text-xl font-bold">31.2 กก.</p>
66
+ <p class="text-xs text-green-500">ตามเป้าหมาย</p>
67
+ </div>
68
+ <div class="bg-gray-50 p-3 rounded-lg">
69
+ <span class="text-gray-600 text-sm">น้ำหนัก</span>
70
+ <p class="text-xl font-bold">66.4 กก.</p>
71
+ </div>
72
+ <div class="bg-gray-50 p-3 rounded-lg">
73
+ <span class="text-gray-600 text-sm">BMR</span>
74
+ <p class="text-xl font-bold">1,540 kcal</p>
75
+ </div>
76
+ </div>
77
+ </div>
78
+
79
+ <!-- Status Today -->
80
+ <div class="bg-white rounded-2xl p-4 shadow-sm">
81
+ <h3 class="font-semibold text-lg mb-4">สถานะวันนี้</h3>
82
+ <div class="space-y-3">
83
+ <div class="flex items-center justify-between p-3 bg-orange-50 rounded-lg">
84
+ <div class="flex items-center space-x-3">
85
+ <span class="text-2xl">🔋</span>
86
+ <div>
87
+ <p class="font-medium">เผาผลาญแล้ว</p>
88
+ <p class="text-sm text-gray-500">เป้าหมาย 2,000 kcal</p>
89
+ </div>
90
+ </div>
91
+ <span class="font-bold text-orange-600">1,830 kcal</span>
92
+ </div>
93
+ <div class="flex items-center justify-between p-3 bg-blue-50 rounded-lg">
94
+ <div class="flex items-center space-x-3">
95
+ <span class="text-2xl">🏃‍♀️</span>
96
+ <div>
97
+ <p class="font-medium">เดินแล้ว</p>
98
+ <p class="text-sm text-gray-500">เป้าหมาย 8,000 ก้าว</p>
99
+ </div>
100
+ </div>
101
+ <span class="font-bold text-blue-600">6,200 ก้าว</span>
102
+ </div>
103
+ <div class="p-3 bg-green-50 rounded-lg">
104
+ <p class="font-medium mb-2">Meal Plan วันนี้</p>
105
+ <div class="flex space-x-4">
106
+ <span class="flex items-center space-x-1">
107
+ <i data-feather="check" class="w-4 h-4 text-green-500"></i>
108
+ <span class="text-sm">เช้า</span>
109
+ </span>
110
+ <span class="flex items-center space-x-1">
111
+ <i data-feather="check" class="w-4 h-4 text-green-500"></i>
112
+ <span class="text-sm">กลางวัน</span>
113
+ </span>
114
+ <span class="flex items-center space-x-1">
115
+ <i data-feather="x" class="w-4 h-4 text-red-500"></i>
116
+ <span class="text-sm">เย็น</span>
117
+ </span>
118
+ </div>
119
+ </div>
120
+ </div>
121
+ </div>
122
+ </div>
123
+
124
+ <!-- Journey Tab -->
125
+ <div id="journey" class="tab-content hidden">
126
+ <div class="bg-gradient-to-r from-purple-200 to-purple-300 rounded-2xl p-6 mb-6 text-white">
127
+ <h2 class="text-2xl font-bold mb-2">Fit Journey 60 วัน</h2>
128
+ <p class="text-lg">วันที่ 18 จาก 60</p>
129
+ </div>
130
+
131
+ <!-- Progress Bar -->
132
+ <div class="bg-white rounded-2xl p-4 mb-6 shadow-sm">
133
+ <div class="mb-4">
134
+ <div class="flex justify-between mb-2">
135
+ <span class="text-sm font-medium">ความคืบหน้า</span>
136
+ <span class="text-sm font-medium">18/60 วัน</span>
137
+ </div>
138
+ <div class="w-full bg-gray-200 rounded-full h-3">
139
+ <div class="bg-gradient-to-r from-green-400 to-green-500 h-3 rounded-full" style="width: 30%"></div>
140
+ </div>
141
+ </div>
142
+ <div class="text-center">
143
+ <p class="text-sm text-gray-600">ทำภารกิจสะสม: 44 / 60 วัน</p>
144
+ <p class="font-semibold mt-2">เป้าหมาย: ลดไขมัน 3% ภายใน 60 วัน</p>
145
+ </div>
146
+ </div>
147
+
148
+ <!-- Today's Missions -->
149
+ <div class="bg-white rounded-2xl p-4 shadow-sm">
150
+ <h3 class="font-semibold text-lg mb-4">ภารกิจวันนี้</h3>
151
+ <div class="space-y-3">
152
+ <div class="flex items-center justify-between p-4 bg-green-50 rounded-lg border border-green-200">
153
+ <div class="flex items-center space-x-3">
154
+ <div class="w-10 h-10 bg-green-500 rounded-full flex items-center justify-center">
155
+ <i data-feather="check" class="w-5 h-5 text-white"></i>
156
+ </div>
157
+ <div>
158
+ <p class="font-medium">กินโปรตีนเช้า 25g</p>
159
+ <p class="text-sm text-gray-500">เวลา 07:00-09:00</p>
160
+ </div>
161
+ </div>
162
+ <span class="text-green-600 font-semibold">✅ สำเร็จ</span>
163
+ </div>
164
+ <div class="flex items-center justify-between p-4 bg-green-50 rounded-lg border border-green-200">
165
+ <div class="flex items-center space-x-3">
166
+ <div class="w-10 h-10 bg-green-500 rounded-full flex items-center justify-center">
167
+ <i data-feather="check" class="w-5 h-5 text-white"></i>
168
+ </div>
169
+ <div>
170
+ <p class="font-medium">เดินเร็ว 30 นาที</p>
171
+ <p class="text-sm text-gray-500">เวลา 17:00-19:00</p>
172
+ </div>
173
+ </div>
174
+ <span class="text-green-600 font-semibold">✅ สำเร็จ</span>
175
+ </div>
176
+ <div class="flex items-center justify-between p-4 bg-red-50 rounded-lg border border-red-200">
177
+ <div class="flex items-center space-x-3">
178
+ <div class="w-10 h-10 bg-red-500 rounded-full flex items-center justify-center">
179
+ <i data-feather="x" class="w-5 h-5 text-white"></i>
180
+ </div>
181
+ <div>
182
+ <p class="font-medium">งดน้ำหวานทั้งวัน</p>
183
+ <p class="text-sm text-gray-500">ตลอดทั้งวัน</p>
184
+ </div>
185
+ </div>
186
+ <span class="text-red-600 font-semibold">❌ ไม่สำเร็จ</span>
187
+ </div>
188
+ </div>
189
+ </div>
190
+ </div>
191
+
192
+ <!-- Graph Tab -->
193
+ <div id="graph" class="tab-content hidden">
194
+ <div class="bg-white rounded-2xl p-4 shadow-sm mb-4">
195
+ <h3 class="font-semibold text-lg mb-4">กราฟสุขภาพ</h3>
196
+
197
+ <!-- Time Range Selector -->
198
+ <div class="flex space-x-2 mb-4">
199
+ <button onclick="updateGraph(7)" class="px-4 py-2 bg-green-500 text-white rounded-lg text-sm font-medium">7 วัน</button>
200
+ <button onclick="updateGraph(30)" class="px-4 py-2 bg-gray-200 text-gray-700 rounded-lg text-sm font-medium">30 วัน</button>
201
+ <button onclick="updateGraph(60)" class="px-4 py-2 bg-gray-200 text-gray-700 rounded-lg text-sm font-medium">60 วัน</button>
202
+ </div>
203
+
204
+ <!-- Graph Container -->
205
+ <div class="bg-gray-50 p-4 rounded-lg">
206
+ <canvas id="healthChart" width="400" height="200"></canvas>
207
+ </div>
208
+
209
+ <!-- Stats Summary -->
210
+ <div class="grid grid-cols-3 gap-2 mt-4">
211
+ <div class="text-center p-2 bg-blue-50 rounded-lg">
212
+ <p class="text-xs text-gray-600">ไขมัน</p>
213
+ <p class="text-lg font-bold text-blue-600">28.4%</p>
214
+ <p class="text-xs text-green-500">-0.7%</p>
215
+ </div>
216
+ <div class="text-center p-2 bg-green-50 rounded-lg">
217
+ <p class="text-xs text-gray-600">กล้ามเนื้อ</p>
218
+ <p class="text-lg font-bold text-green-600">31.2kg</p>
219
+ <p class="text-xs text-green-500">+1.0kg</p>
220
+ </div>
221
+ <div class="text-center p-2 bg-purple-50 rounded-lg">
222
+ <p class="text-xs text-gray-600">น้ำหนัก</p>
223
+ <p class="text-lg font-bold text-purple-600">66.4kg</p>
224
+ <p class="text-xs text-green-500">-0.6kg</p>
225
+ </div>
226
+ </div>
227
+ </div>
228
+ </div>
229
+
230
+ <!-- Products Tab -->
231
+ <div id="products" class="tab-content hidden">
232
+ <div class="bg-gradient-to-r from-blue-200 to-blue-300 rounded-2xl p-6 mb-6 text-white">
233
+ <h2 class="text-xl font-bold mb-2">แนะนำผลิตภัณฑ์</h2>
234
+ <p class="text-sm">จากข้อมูลของคุณ เราขอแนะนำแพ็กนี้:</p>
235
+ </div>
236
+
237
+ <!-- Product Cards -->
238
+ <div class="space-y-4">
239
+ <!-- FIT BURN Pack -->
240
+ <div class="bg-white rounded-2xl p-4 shadow-sm">
241
+ <div class="flex items-center justify-between mb-3">
242
+ <h3 class="font-bold text-lg">📦 แพ็ก FIT BURN</h3>
243
+ <span class="bg-orange-100 text-orange-600 px-2 py-1 rounded-full text-sm font-semibold">ยอดนิยม</span>
244
+ </div>
245
+ <div class="space-y-2 mb-4">
246
+ <div class="flex items-center space-x-2">
247
+ <i data-feather="check" class="w-4 h-4 text-green-500"></i>
248
+ <span class="text-sm">Whey-Fit 900g</span>
249
+ </div>
250
+ <div class="flex items-center space-x-2">
251
+ <i data-feather="check" class="w-4 h-4 text-green-500"></i>
252
+ <span class="text-sm">Magnesium Complex</span>
253
+ </div>
254
+ <div class="flex items-center space-x-2">
255
+ <i data-feather="check" class="w-4 h-4 text-green-500"></i>
256
+ <span class="text-sm">ADEK Vitamins</span>
257
+ </div>
258
+ </div>
259
+ <div class="flex items-center justify-between mb-4">
260
+ <div>
261
+ <span class="text-gray-500 line-through text-sm">฿2,290</span>
262
+ <p class="text-2xl font-bold text-green-600">฿1,690</p>
263
+ <p class="text-xs text-gray-500">ประหยัด 26%</p>
264
+ </div>
265
+ <img src="http://static.photos/fitness/100x100/123" alt="Product" class="w-20 h-20 rounded-lg object-cover">
266
+ </div>
267
+ <div class="flex space-x-2">
268
+ <button class="flex-1 bg-green-500 text-white py-2 rounded-lg font-medium">เพิ่มลงตะกร้า</button>
269
+ <button class="flex-1 bg-blue-500 text-white py-2 rounded-lg font-medium">ซื้อทันที</button>
270
+ </div>
271
+ </div>
272
+
273
+ <!-- Build Lean Pack -->
274
+ <div class="bg-white rounded-2xl p-4 shadow-sm">
275
+ <div class="flex items-center justify-between mb-3">
276
+ <h3 class="font-bold text-lg">📦 แพ็ก Build Lean</h3>
277
+ <span class="bg-purple-100 text-purple-600 px-2 py-1 rounded-full text-sm font-semibold">เพิ่มกล้าม</span>
278
+ </div>
279
+ <div class="space-y-2 mb-4">
280
+ <div class="flex items-center space-x-2">
281
+ <i data-feather="check" class="w-4 h-4 text-green-500"></i>
282
+ <span class="text-sm">Creatine + CLA</span>
283
+ </div>
284
+ <div class="flex items-center space-x-2">
285
+ <i data-feather="check" class="w-4 h-4 text-green-500"></i>
286
+ <span class="text-sm">Meal Planner</span>
287
+ </div>
288
+ </div>
289
+ <div class="flex items-center justify-between mb-4">
290
+ <div>
291
+ <span class="text-gray-500 line-through text-sm">฿2,490</span>
292
+ <p class="text-2xl font-bold text-green-600">฿1,890</p>
293
+ <p class="text-xs text-gray-500">ประหยัด 24%</p>
294
+ </div>
295
+ <img src="http://static.photos/fitness/100x100/456" alt="Product" class="w-20 h-20 rounded-lg object-cover">
296
+ </div>
297
+ <div class="flex space-x-2">
298
+ <button class="flex-1 bg-green-500 text-white py-2 rounded-lg font-medium">เพิ่มลงตะกร้า</button>
299
+ <button class="flex-1 bg-blue-500 text-white py-2 rounded-lg font-medium">ซื้อทันที</button>
300
+ </div>
301
+ </div>
302
+ </div>
303
+
304
+ <!-- Subscription Section -->
305
+ <div class="bg-white rounded-2xl p-4 shadow-sm mt-4">
306
+ <h3 class="font-semibold text-lg mb-4">ซื้อซ้ำ / Subscription</h3>
307
+ <div class="space-y-3">
308
+ <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
309
+ <div>
310
+ <p class="font-medium">Whey-Fit</p>
311
+ <p class="text-xs text-gray-500">สั่งล่าสุด: 12 ก.ย.</p>
312
+ </div>
313
+ <button class="bg-green-500 text-white px-4 py-1 rounded-lg text-sm">ซื้อซ้ำ</button>
314
+ </div>
315
+ <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
316
+ <div>
317
+ <p class="font-medium">MAG-5</p>
318
+ <p class="text-xs text-gray-500">สั่งล่าสุด: 5 ก.ย.</p>
319
+ </div>
320
+ <button class="bg-green-500 text-white px-4 py-1 rounded-lg text-sm">ซื้อซ้ำ</button>
321
+ </div>
322
+ </div>
323
+ <div class="mt-4 p-3 bg-blue-50 rounded-lg">
324
+ <p class="text-sm font-medium mb-2">ตั้งเตือนซื้ออัตโนมัติ</p>
325
+ <div class="flex space-x-2">
326
+ <button class="px-3 py-1 bg-white rounded text-sm">30 วัน</button>
327
+ <button class="px-3 py-1 bg-green-500 text-white rounded text-sm">45 วัน</button>
328
+ <button class="px-3 py-1 bg-white rounded text-sm">60 วัน</button>
329
+ </div>
330
+ </div>
331
+ </div>
332
+ </div>
333
+
334
+ <!-- Profile Tab -->
335
+ <div id="profile" class="tab-content hidden">
336
+ <!-- User Info -->
337
+ <div class="bg-gradient-to-r from-green-200 to-green-300 rounded-2xl p-6 mb-6">
338
+ <div class="flex items-center space-x-4">
339
+ <div class="w-20 h-20 bg-white rounded-full flex items-center justify-center">
340
+ <span class="text-3xl font-bold text-green-500">ก</span>
341
+ </div>
342
+ <div class="text-white">
343
+ <h2 class="text-xl font-bold">กฤติกา ศรีใจดี</h2>
344
+ <p class="text-sm opacity-90">อายุ 33 ปี</p>
345
+ <div class="flex items-center space-x-2 mt-2">
346
+ <span class="bg-white/20 px-2 py-1 rounded-full text-xs">1,150 คะแนน</span>
347
+ <span class="bg-white/20 px-2 py-1 rounded-full text-xs">Gold Member</span>
348
+ </div>
349
+ </div>
350
+ </div>
351
+ </div>
352
+
353
+ <!-- Goals -->
354
+ <div class="bg-white rounded-2xl p-4 shadow-sm mb-4">
355
+ <h3 class="font-semibold text-lg mb-4">เป้าหมายของฉัน</h3>
356
+ <div class="space-y-3">
357
+ <div class="flex justify-between items-center p-3 bg-gray-50 rounded-lg">
358
+ <span class="text-gray-600">น้ำหนักเป้าหมาย</span>
359
+ <span class="font-bold">62 กก.</span>
360
+ </div>
361
+ <div class="flex justify-between items-center p-3 bg-gray-50 rounded-lg">
362
+ <span class="text-gray-600">ไขมันเป้าหมาย</span>
363
+ <span class="font-bold">&lt;25%</span>
364
+ </div>
365
+ <div class="flex justify-between items-center p-3 bg-gray-50 rounded-lg">
366
+ <span class="text-gray-600">กล้ามเนื้อเป้าหมาย</span>
367
+ <span class="font-bold">33 กก.</span>
368
+ </div>
369
+ </div>
370
+ </div>
371
+
372
+ <!-- Achievements -->
373
+ <div class="bg-white rounded-2xl p-4 shadow-sm mb-4">
374
+ <h3 class="font-semibold text-lg mb-4">ความสำเร็จและรางวัล</h3>
375
+ <div class="space-y-3">
376
+ <div class="flex items-center space-x-3 p-3 bg-yellow-50 rounded-lg">
377
+ <span class="text-2xl">🏆</span>
378
+ <div>
379
+ <p class="font-medium">ภารกิจ 7 วันติด</p>
380
+ <p class="text-xs text-gray-500">สำเร็จเมื่อ 10 ก.ย.</p>
381
+ </div>
382
+ </div>
383
+ <div class="flex items-center space-x-3 p-3 bg-blue-50 rounded-lg">
384
+ <span class="text-2xl">🥈</span>
385
+ <div>
386
+ <p class="font-medium">ลดน้ำหนัก 1 กก.แรก</p>
387
+ <p class="text-xs text-gray-500">สำเร็จเมื่อ 5 ก.ย.</p>
388
+ </div>
389
+ </div>
390
+ <div class="flex items-center space-x-3 p-3 bg-purple-50 rounded-lg">
391
+ <span class="text-2xl">🎯</span>
392
+ <div>
393
+ <p class="font-medium">อันดับ 6 กล้ามเพิ่มเร็วที่สุด</p>
394
+ <p class="text-xs text-gray-500">ประจำเดือนกันยายน</p>
395
+ </div>
396
+ </div>
397
+ </div>
398
+ </div>
399
+
400
+ <!-- Order History -->
401
+ <div class="bg-white rounded-2xl p-4 shadow-sm mb-4">
402
+ <h3 class="font-semibold text-lg mb-4">ประวัติการสั่งซื้อ</h3>
403
+ <div class="space-y-2">
404
+ <div class="flex justify-between items-center p-2 border-b">
405
+ <div>
406
+ <p class="font-medium text-sm">Whey-Fit 900g</p>
407
+ <p class="text-xs text-gray-500">12 ก.ย. 2567</p>
408
+ </div>
409
+ <span class="text-green-600 font-semibold">฿690</span>
410
+ </div>
411
+ <div class="flex justify-between items-center p-2 border-b">
412
+ <div>
413
+ <p class="font-medium text-sm">MAG-5</p>
414
+ <p class="text-xs text-gray-500">5 ก.ย. 2567</p>
415
+ </div>
416
+ <span class="text-green-600 font-semibold">฿450</span>
417
+ </div>
418
+ <div class="flex justify-between items-center p-2">
419
+ <div>
420
+ <p class="font-medium text-sm">CLA 1000mg</p>
421
+ <p class="text-xs text-gray-500">20 ส.ค. 2567</p>
422
+ </div>
423
+ <span class="text-green-600 font-semibold">฿890</span>
424
+ </div>
425
+ </div>
426
+ </div>
427
+
428
+ <!-- Coach Contact -->
429
+ <div class="bg-white rounded-2xl p-4 shadow-sm">
430
+ <h3 class="font-semibold text-lg mb-4">ติดต่อโค้ช</h3>
431
+ <div class="flex items-center space-x-3 p-4 bg-green-50 rounded-lg">
432
+ <div class="w-12 h-12 bg-green-500 rounded-full flex items-center justify-center">
433
+ <i data-feather="user" class="w-6 h-6 text-white"></i>
434
+ </div>
435
+ <div class="flex-1">
436
+ <p class="font-medium">โค้ชแนต</p>
437
+ <p class="text-xs text-gray-500">WP Certified FitCoach</p>
438
+ </div>
439
+ <button class="bg-green-500 text-white px-4 py-2 rounded-lg text-sm font-medium">ปรึกษา</button>
440
+ </div>
441
+ </div>
442
+ </div>
443
+ </div>
444
+ </div>
445
+ </main>
446
+
447
+ <!-- Bottom Navigation -->
448
+ <nav class="fixed bottom-0 w-full bg-white border-t z-40">
449
+ <div class="container mx-auto px-4">
450
+ <div class="flex justify-around items-center py-2">
451
+ <button onclick="switchTab('dashboard')" class="tab-btn flex flex-col items-center p-2 text-green-600">
452
+ <i data-feather="home" class="w-6 h-6"></i>
453
+ <span class="text-xs mt-1">หน้าแรก</span>
454
+ </button>
455
+ <button onclick="switchTab('journey')" class="tab-btn flex flex-col items-center p-2 text-gray-600">
456
+ <i data-feather="calendar" class="w-6 h-6"></i>
457
+ <span class="text-xs mt-1">แผน 60 วัน</span>
458
+ </button>
459
+ <button onclick="switchTab('graph')" class="tab-btn flex flex-col items-center p-2 text-gray-600">
460
+ <i data-feather="bar-chart-2" class="w-6 h-6"></i>
461
+ <span class="text-xs mt-1">กราฟสุขภาพ</span>
462
+ </button>
463
+ <button onclick="switchTab('products')" class="tab-btn flex flex-col items-center p-2 text-gray-600">
464
+ <i data-feather="shopping-cart" class="w-6 h-6"></i>
465
+ <span class="text-xs mt-1">สินค้า</span>
466
+ </button>
467
+ <button onclick="switchTab('profile')" class="tab-btn flex flex-col items-center p-2 text-gray-600">
468
+ <i data-feather="user" class="w-6 h-6"></i>
469
+ <span class="text-xs mt-1">โปรไฟล์</span>
470
+ </button>
471
+ </div>
472
+ </div>
473
+ </nav>
474
+
475
+ <script src="script.js"></script>
476
+ <script>feather.replace();</script>
477
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
478
+ </body>
479
+ </html>
script.js ADDED
@@ -0,0 +1,779 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ // Tab switching functionality
3
+ function switchTab(tabName) {
4
+ // Hide all tab contents
5
+ const tabContents = document.querySelectorAll('.tab-content');
6
+ tabContents.forEach(content => {
7
+ content.classList.add('hidden');
8
+ });
9
+
10
+ // Show selected tab
11
+ const selectedTab = document.getElementById(tabName);
12
+ if (selectedTab) {
13
+ selectedTab.classList.remove('hidden');
14
+ }
15
+
16
+ // Update tab button colors
17
+ const tabButtons = document.querySelectorAll('.tab-btn');
18
+ tabButtons.forEach(btn => {
19
+ btn.classList.remove('text-green-600');
20
+ btn.classList.add('text-gray-600');
21
+ });
22
+
23
+ // Highlight active tab button
24
+ const activeBtn = document.querySelector(`button[onclick="switchTab('${tabName}')"]`);
25
+ if (activeBtn) {
26
+ activeBtn.classList.remove('text-gray-600');
27
+ activeBtn.classList.add('text-green-600');
28
+ }
29
+
30
+ // Re-initialize feather icons
31
+ feather.replace();
32
+
33
+ // Initialize chart if graph tab is selected
34
+ if (tabName === 'graph') {
35
+ setTimeout(() => initChart(), 100);
36
+ }
37
+ }
38
+
39
+ // Chart functionality
40
+ let healthChart = null;
41
+
42
+ function initChart() {
43
+ const canvas = document.getElementById('healthChart');
44
+ if (!canvas) return;
45
+
46
+ const ctx = canvas.getContext('2d');
47
+
48
+ // Sample data for 7 days
49
+ const labels = ['จ.', 'อ.', 'พ.', 'พฤ.', 'ศ.', 'ส.', 'อา.'];
50
+ const fatData = [29.1, 28.9, 28.8, 28.7, 28.6, 28.5, 28.4];
51
+ const muscleData = [30.2, 30.4, 30.5, 30.8, 30.9, 31.0, 31.2];
52
+ const weightData = [67.0, 66.8, 66.7, 66.6, 66.5, 66.4, 66.4];
53
+
54
+ // Simple line chart drawing
55
+ drawLineChart(ctx, canvas.width, canvas.height, labels, [
56
+ { data: fatData, color: '#3B82F6', label: 'ไขมัน %' },
57
+ { data: muscleData, color: '#10B981', label: 'กล้ามเนื้อ kg' },
58
+ { data: weightData, color: '#8B5CF6', label: 'น้ำหนัก kg' }
59
+ ]);
60
+ }
61
+
62
+ function drawLineChart(ctx, width, height, labels, datasets) {
63
+ // Clear canvas
64
+ ctx.clearRect(0, 0, width, height);
65
+
66
+ const padding = 40;
67
+ const graphWidth = width - padding * 2;
68
+ const graphHeight = height - padding * 2;
69
+ const dataPoints = labels.length;
70
+
71
+ // Draw axes
72
+ ctx.strokeStyle = '#E5E7EB';
73
+ ctx.lineWidth = 1;
74
+ ctx.beginPath();
75
+ ctx.moveTo(padding, padding);
76
+ ctx.lineTo(padding, height - padding);
77
+ ctx.lineTo(width - padding, height - padding);
78
+ ctx.stroke();
79
+
80
+ // Draw grid lines
81
+ ctx.strokeStyle = '#F3F4F6';
82
+ for (let i = 0; i <= 5; i++) {
83
+ const y = padding + (graphHeight / 5) * i;
84
+ ctx.beginPath();
85
+ ctx.moveTo(padding, y);
86
+ ctx.lineTo(width - padding, y);
87
+ ctx.stroke();
88
+ }
89
+
90
+ // Draw labels
91
+ ctx.fillStyle = '#6B7280';
92
+ ctx.font = '12px Prompt';
93
+ labels.forEach((label, i) => {
94
+ const x = padding + (graphWidth / (dataPoints - 1)) * i;
95
+ ctx.fillText(label, x - 10, height - padding + 20);
96
+ });
97
+
98
+ // Draw data lines
99
+ datasets.forEach(dataset => {
100
+ ctx.strokeStyle = dataset.color;
101
+ ctx.lineWidth = 2;
102
+ ctx.beginPath();
103
+
104
+ dataset.data.forEach((value, i) => {
105
+ const x = padding + (graphWidth / (dataPoints - 1)) * i;
106
+ const normalizedValue = (value - Math.min(...dataset.data)) / (Math.max(...dataset.data) - Math.min(...dataset.data));
107
+ const y = height - padding - (normalizedValue * graphHeight * 0.8 + graphHeight * 0.1);
108
+
109
+ if (i === 0) {
110
+ ctx.moveTo(x, y);
111
+ } else {
112
+ ctx.lineTo(x, y);
113
+ }
114
+ });
115
+
116
+ ctx.stroke();
117
+
118
+ // Draw data points
119
+ dataset.data.forEach((value, i) => {
120
+ const x = padding + (graphWidth / (dataPoints - 1)) * i;
121
+ const normalizedValue = (value - Math.min(...dataset.data)) / (Math.max(...dataset.data) - Math.min(...dataset.data));
122
+ const y = height - padding - (normalizedValue * graphHeight * 0.8 + graphHeight * 0.1);
123
+
124
+ ctx.fillStyle = dataset.color;
125
+ ctx.beginPath();
126
+ ctx.arc(x, y, 3, 0, Math.PI * 2);
127
+ ctx.fill();
128
+ });
129
+ });
130
+ }
131
+
132
+ // Update graph based on time range
133
+ function updateGraph(days) {
134
+ // Update button styles
135
+ const buttons = document.querySelectorAll('[onclick^="updateGraph"]');
136
+ buttons.forEach(btn => {
137
+ btn.classList.remove('bg-green-500', 'text-white');
138
+ btn.classList.add('bg-gray-200', 'text-gray-700');
139
+ });
140
+
141
+ event.target.classList.remove('bg-gray-200', 'text-gray-700');
142
+ event.target.classList.add('bg-green-500', 'text-white');
143
+
144
+ // Re-initialize chart with new data
145
+ initChart();
146
+ }
147
+
148
+ // Add to cart functionality
149
+ function addToCart(productName, price) {
150
+ // Create notification
151
+ const notification = document.createElement('div');
152
+ notification.className = 'fixed top-20 right-4 bg-green-500 text-white px-4 py-2 rounded-lg shadow-lg z-50';
153
+ notification.textContent = `เพิ่ม ${productName} ลงตะกร้าแล้ว`;
154
+ document.body.appendChild(notification);
155
+
156
+ // Animate in
157
+ notification.style.animation = 'slideIn 0.3s ease-out';
158
+
159
+ // Remove after 2 seconds
160
+ setTimeout(() => {
161
+ notification.style.animation = 'slideOut 0.3s ease-out';
162
+ setTimeout(() => {
163
+ document.body.removeChild(notification);
164
+ }, 300);
165
+ }, 2000);
166
+ }
167
+
168
+ // Buy now functionality
169
+ function buyNow(productName, price) {
170
+ // Create confirmation modal
171
+ const modal = document.createElement('div');
172
+ modal.className = 'fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50';
173
+ modal.innerHTML = `
174
+ <div class="bg-white rounded-2xl p-6 m-4 max-w-sm w-full">
175
+ <h3 class="text-lg font-bold mb-4">ยืนยันการสั่งซื้อ</h3>
176
+ <p class="text-gray-600 mb-4">คุณต้องการสั่งซื้อ ${productName} ในราคา ${price} ใช่หรือไม่?</p>
177
+ <div class="flex space-x-2">
178
+ <button onclick="this.closest('.fixed').remove()" class="flex-1 bg-gray-200 text-gray-700 py-2 rounded-lg font-medium">ยกเลิก</button>
179
+ <button onclick="confirmPurchase('${productName}')" class="flex-1 bg-green-500 text-white py-2 rounded-lg font-medium">ยืนยัน</button>
180
+ </div>
181
+ </div>
182
+ `;
183
+ document.body.appendChild(modal);
184
+ }
185
+
186
+ function confirmPurchase(productName) {
187
+ // Remove modal
188
+ document.querySelector('.fixed.inset-0').remove();
189
+
190
+ // Show success notification
191
+ const notification = document.createElement('div');
192
+ notification.className = 'fixed top-20 right-4 bg-green-500 text-white px-4 py-2 rounded-lg shadow-lg z-50';
193
+ notification.textContent = `สั่งซื้อ ${productName} สำเร็จแล้ว`;
194
+ document.body.appendChild(notification);
195
+
196
+ setTimeout(() => {
197
+ notification.remove();
198
+ }, 3000);
199
+ }
200
+
201
+ // Contact coach functionality
202
+ function contactCoach() {
203
+ const modal = document.createElement('div');
204
+ modal.className = 'fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50';
205
+ modal.innerHTML = `
206
+ <div class="bg-white rounded-2xl p-6 m-4 max-w-sm w-full">
207
+ <h3 class="text-lg font-bold mb-4">ติดต่อโค้ชแนต</h3>
208
+ <p class="text-gray-600 mb-4">คุณสามารถติดต่อโค้ชได้ผ่านช่องทางต่อไปนี้:</p>
209
+ <div class="space-y-2 mb-4">
210
+ <div class="flex items-center space-x-2">
211
+ <i data-feather="message-circle" class="w-5 h-5 text-green-500"></i>
212
+ <span class="text-sm">LINE: @wpcoach</span>
213
+ </div>
214
+ <div class="flex items-center space-x-2">
215
+ <i data-feather="phone" class="w-5 h-5 text-green-500"></i>
216
+ <span class="text-sm">โทร: 099-123-4567</span>
217
+ </div>
218
+ <div class="flex items-center space-x-2">
219
+ <i data-feather="mail" class="w-5 h-5 text-green-500"></i>
220
+ <span class="text-sm">Email: coach@wpwellnet.com</span>
221
+ </div>
222
+ </div>
223
+ <button onclick="this.closest('.fixed').remove()" class="w-full bg-green-500 text-white py-2 rounded-lg font-medium">ตกลง</button>
224
+ </div>
225
+ `;
226
+ document.body.appendChild(modal);
227
+ feather.replace();
228
+ }
229
+
230
+ // Animation styles
231
+ const style = document.createElement('style');
232
+ style.textContent = `
233
+ @keyframes slideIn {
234
+ from {
235
+ transform: translateX(100%);
236
+ opacity: 0;
237
+ }
238
+ to {
239
+ transform: translateX(0);
240
+ opacity: 1;
241
+ }
242
+ }
243
+
244
+ @keyframes slideOut {
245
+ from {
246
+ transform: translateX(0);
247
+ opacity: 1;
248
+ }
249
+ to {
250
+ transform: translateX(100%);
251
+ opacity: 0;
252
+ }
253
+ }
254
+ `;
255
+ document.head.appendChild(style);
256
+
257
+ // Initialize on page load
258
+ document.addEventListener('DOMContentLoaded', function() {
259
+ feather.replace();
260
+
261
+ // Add click handlers to product buttons
262
+ const addButtons = document.querySelectorAll('button:not([onclick])');
263
+ addButtons.forEach(btn => {
264
+ if (btn.textContent.includes('เพิ่มลงตะกร้า')) {
265
+ const card = btn.closest('.bg-white');
266
+ const productName = card.querySelector('h3')?.textContent || 'สินค้า';
267
+ btn.onclick = () => addToCart(productName);
268
+ } else if (btn.textContent.includes('ซื้อทันที')) {
269
+ const card = btn.closest('.bg-white');
270
+ const productName = card.querySelector('h3')?.textContent || 'สินค้า';
271
+ const price = card.querySelector('.text-green-600')?.textContent || '฿0';
272
+ btn.onclick = () => buyNow(productName, price);
273
+ } else if (btn.textContent.includes('ปรึกษา')) {
274
+ btn.onclick = contactCoach;
275
+ } else if (btn.textContent.includes('ซื้อซ้ำ')) {
276
+ const product = btn.closest('.flex').querySelector('p.font-medium')?.textContent || 'สินค้า';
277
+ btn.onclick = () => buyNow(product, 'ราคาพิเศษ');
278
+ }
279
+ });
280
+
281
+ // Mission toggle functionality
282
+ const missionItems = document.querySelectorAll('.flex.items-center.justify-between.p-4');
283
+ missionItems.forEach(item => {
284
+ if (item.textContent.includes('ไม่สำเร็จ')) {
285
+ item.style.cursor = 'pointer';
286
+ item.onclick = function() {
287
+ if (confirm('ต้องการทำภารกิจนี้ใหม่ใช่หรือไม่?')) {
288
+ location.reload();
289
+ }
290
+ };
291
+ }
292
+ });
293
+
294
+ // Subscription reminder buttons
295
+ const reminderButtons = document.querySelectorAll('.bg-blue-50 button');
296
+ reminderButtons.forEach(btn => {
297
+ btn.onclick = function() {
298
+ reminderButtons.forEach(b => {
299
+ b.classList.remove('bg-green-500', 'text-white');
300
+ b.classList.add('bg-white');
301
+ });
302
+ this.classList.remove('bg-white');
303
+ this.classList.add('bg-green-500', 'text-white');
304
+
305
+ const notification = document.createElement('div');
306
+ notification.className = 'fixed top-20 right-4 bg-green-500 text-white px-4 py-2 rounded-lg shadow-lg z-50';
307
+ notification.textContent = `ตั้งเตือน ${this.textContent} แล้ว`;
308
+ document.body.appendChild(notification);
309
+
310
+ setTimeout(() => {
311
+ notification.remove();
312
+ }, 2000);
313
+ };
314
+ });
315
+ });
316
+ <!-- Header -->
317
+ <header class="bg-white shadow-sm fixed top-0 w-full z-40">
318
+ <div class="container mx-auto px-4 py-3 flex items-center justify-between">
319
+ <div class="flex items-center space-x-2">
320
+ <div class="w-10 h-10 bg-green-300 rounded-full flex items-center justify-center">
321
+ <span class="text-white font-bold text-xl">W</span>
322
+ </div>
323
+ <span class="font-semibold text-lg">WP WELLNET</span>
324
+ </div>
325
+ <div class="flex items-center space-x-4">
326
+ <button class="relative">
327
+ <i data-feather="bell" class="w-6 h-6 text-gray-600"></i>
328
+ <span class="absolute -top-1 -right-1 w-3 h-3 bg-red-500 rounded-full"></span>
329
+ </button>
330
+ <div class="w-10 h-10 bg-gradient-to-r from-green-300 to-green-400 rounded-full flex items-center justify-center">
331
+ <span class="text-white font-semibold">ก</span>
332
+ </div>
333
+ </div>
334
+ </div>
335
+ </header>
336
+
337
+ <!-- Main Content -->
338
+ <main class="pt-16 pb-20 min-h-screen">
339
+ <div class="container mx-auto px-4 py-4">
340
+ <!-- Tab Content -->
341
+ <div id="tab-content">
342
+ <!-- Dashboard Tab -->
343
+ <div id="dashboard" class="tab-content">
344
+ <div class="bg-gradient-to-r from-green-200 to-green-300 rounded-2xl p-6 mb-6 text-white">
345
+ <h2 class="text-2xl font-bold mb-2">ยินดีต้อนรับกลับมา</h2>
346
+ <p class="text-lg">คุณมีเป้าหมาย: ลดไขมัน 3% ใน 60 วัน</p>
347
+ </div>
348
+
349
+ <!-- Today's Stats -->
350
+ <div class="bg-white rounded-2xl p-4 mb-6 shadow-sm">
351
+ <h3 class="font-semibold text-lg mb-4">ข้อมูลวันนี้</h3>
352
+ <div class="grid grid-cols-2 gap-4">
353
+ <div class="bg-gray-50 p-3 rounded-lg">
354
+ <div class="flex items-center justify-between">
355
+ <span class="text-gray-600 text-sm">ไขมัน</span>
356
+ <i data-feather="trending-down" class="w-4 h-4 text-green-500"></i>
357
+ </div>
358
+ <p class="text-xl font-bold">28.5%</p>
359
+ <p class="text-xs text-gray-500">เป้าหมาย: 25%</p>
360
+ </div>
361
+ <div class="bg-gray-50 p-3 rounded-lg">
362
+ <div class="flex items-center justify-between">
363
+ <span class="text-gray-600 text-sm">กล้ามเนื้อ</span>
364
+ <i data-feather="check-circle" class="w-4 h-4 text-green-500"></i>
365
+ </div>
366
+ <p class="text-xl font-bold">31.2 กก.</p>
367
+ <p class="text-xs text-green-500">ตามเป้าหมาย</p>
368
+ </div>
369
+ <div class="bg-gray-50 p-3 rounded-lg">
370
+ <span class="text-gray-600 text-sm">น้ำหนัก</span>
371
+ <p class="text-xl font-bold">66.4 กก.</p>
372
+ </div>
373
+ <div class="bg-gray-50 p-3 rounded-lg">
374
+ <span class="text-gray-600 text-sm">BMR</span>
375
+ <p class="text-xl font-bold">1,540 kcal</p>
376
+ </div>
377
+ </div>
378
+ </div>
379
+
380
+ <!-- Status Today -->
381
+ <div class="bg-white rounded-2xl p-4 shadow-sm">
382
+ <h3 class="font-semibold text-lg mb-4">สถานะวันนี้</h3>
383
+ <div class="space-y-3">
384
+ <div class="flex items-center justify-between p-3 bg-orange-50 rounded-lg">
385
+ <div class="flex items-center space-x-3">
386
+ <span class="text-2xl">🔋</span>
387
+ <div>
388
+ <p class="font-medium">เผาผลาญแล้ว</p>
389
+ <p class="text-sm text-gray-500">เป้าหมาย 2,000 kcal</p>
390
+ </div>
391
+ </div>
392
+ <span class="font-bold text-orange-600">1,830 kcal</span>
393
+ </div>
394
+ <div class="flex items-center justify-between p-3 bg-blue-50 rounded-lg">
395
+ <div class="flex items-center space-x-3">
396
+ <span class="text-2xl">🏃‍♀️</span>
397
+ <div>
398
+ <p class="font-medium">เดินแล้ว</p>
399
+ <p class="text-sm text-gray-500">เป้าหมาย 8,000 ก้าว</p>
400
+ </div>
401
+ </div>
402
+ <span class="font-bold text-blue-600">6,200 ก้าว</span>
403
+ </div>
404
+ <div class="p-3 bg-green-50 rounded-lg">
405
+ <p class="font-medium mb-2">Meal Plan วันนี้</p>
406
+ <div class="flex space-x-4">
407
+ <span class="flex items-center space-x-1">
408
+ <i data-feather="check" class="w-4 h-4 text-green-500"></i>
409
+ <span class="text-sm">เช้า</span>
410
+ </span>
411
+ <span class="flex items-center space-x-1">
412
+ <i data-feather="check" class="w-4 h-4 text-green-500"></i>
413
+ <span class="text-sm">กลางวัน</span>
414
+ </span>
415
+ <span class="flex items-center space-x-1">
416
+ <i data-feather="x" class="w-4 h-4 text-red-500"></i>
417
+ <span class="text-sm">เย็น</span>
418
+ </span>
419
+ </div>
420
+ </div>
421
+ </div>
422
+ </div>
423
+ </div>
424
+
425
+ <!-- Journey Tab -->
426
+ <div id="journey" class="tab-content hidden">
427
+ <div class="bg-gradient-to-r from-purple-200 to-purple-300 rounded-2xl p-6 mb-6 text-white">
428
+ <h2 class="text-2xl font-bold mb-2">Fit Journey 60 วัน</h2>
429
+ <p class="text-lg">วันที่ 18 จาก 60</p>
430
+ </div>
431
+
432
+ <!-- Progress Bar -->
433
+ <div class="bg-white rounded-2xl p-4 mb-6 shadow-sm">
434
+ <div class="mb-4">
435
+ <div class="flex justify-between mb-2">
436
+ <span class="text-sm font-medium">ความคืบหน้า</span>
437
+ <span class="text-sm font-medium">18/60 วัน</span>
438
+ </div>
439
+ <div class="w-full bg-gray-200 rounded-full h-3">
440
+ <div class="bg-gradient-to-r from-green-400 to-green-500 h-3 rounded-full" style="width: 30%"></div>
441
+ </div>
442
+ </div>
443
+ <div class="text-center">
444
+ <p class="text-sm text-gray-600">ทำภารกิจสะสม: 44 / 60 วัน</p>
445
+ <p class="font-semibold mt-2">เป้าหมาย: ลดไขมัน 3% ภายใน 60 วัน</p>
446
+ </div>
447
+ </div>
448
+
449
+ <!-- Today's Missions -->
450
+ <div class="bg-white rounded-2xl p-4 shadow-sm">
451
+ <h3 class="font-semibold text-lg mb-4">ภารกิจวันนี้</h3>
452
+ <div class="space-y-3">
453
+ <div class="flex items-center justify-between p-4 bg-green-50 rounded-lg border border-green-200">
454
+ <div class="flex items-center space-x-3">
455
+ <div class="w-10 h-10 bg-green-500 rounded-full flex items-center justify-center">
456
+ <i data-feather="check" class="w-5 h-5 text-white"></i>
457
+ </div>
458
+ <div>
459
+ <p class="font-medium">กินโปรตีนเช้า 25g</p>
460
+ <p class="text-sm text-gray-500">เวลา 07:00-09:00</p>
461
+ </div>
462
+ </div>
463
+ <span class="text-green-600 font-semibold">✅ สำเร็จ</span>
464
+ </div>
465
+ <div class="flex items-center justify-between p-4 bg-green-50 rounded-lg border border-green-200">
466
+ <div class="flex items-center space-x-3">
467
+ <div class="w-10 h-10 bg-green-500 rounded-full flex items-center justify-center">
468
+ <i data-feather="check" class="w-5 h-5 text-white"></i>
469
+ </div>
470
+ <div>
471
+ <p class="font-medium">เดินเร็ว 30 นาที</p>
472
+ <p class="text-sm text-gray-500">เวลา 17:00-19:00</p>
473
+ </div>
474
+ </div>
475
+ <span class="text-green-600 font-semibold">✅ สำเร็จ</span>
476
+ </div>
477
+ <div class="flex items-center justify-between p-4 bg-red-50 rounded-lg border border-red-200">
478
+ <div class="flex items-center space-x-3">
479
+ <div class="w-10 h-10 bg-red-500 rounded-full flex items-center justify-center">
480
+ <i data-feather="x" class="w-5 h-5 text-white"></i>
481
+ </div>
482
+ <div>
483
+ <p class="font-medium">งดน้ำหวานทั้งวัน</p>
484
+ <p class="text-sm text-gray-500">ตลอดทั้งวัน</p>
485
+ </div>
486
+ </div>
487
+ <span class="text-red-600 font-semibold">❌ ไม่สำเร็จ</span>
488
+ </div>
489
+ </div>
490
+ </div>
491
+ </div>
492
+
493
+ <!-- Graph Tab -->
494
+ <div id="graph" class="tab-content hidden">
495
+ <div class="bg-white rounded-2xl p-4 shadow-sm mb-4">
496
+ <h3 class="font-semibold text-lg mb-4">กราฟสุขภาพ</h3>
497
+
498
+ <!-- Time Range Selector -->
499
+ <div class="flex space-x-2 mb-4">
500
+ <button onclick="updateGraph(7)" class="px-4 py-2 bg-green-500 text-white rounded-lg text-sm font-medium">7 วัน</button>
501
+ <button onclick="updateGraph(30)" class="px-4 py-2 bg-gray-200 text-gray-700 rounded-lg text-sm font-medium">30 วัน</button>
502
+ <button onclick="updateGraph(60)" class="px-4 py-2 bg-gray-200 text-gray-700 rounded-lg text-sm font-medium">60 วัน</button>
503
+ </div>
504
+
505
+ <!-- Graph Container -->
506
+ <div class="bg-gray-50 p-4 rounded-lg">
507
+ <canvas id="healthChart" width="400" height="200"></canvas>
508
+ </div>
509
+
510
+ <!-- Stats Summary -->
511
+ <div class="grid grid-cols-3 gap-2 mt-4">
512
+ <div class="text-center p-2 bg-blue-50 rounded-lg">
513
+ <p class="text-xs text-gray-600">ไขมัน</p>
514
+ <p class="text-lg font-bold text-blue-600">28.4%</p>
515
+ <p class="text-xs text-green-500">-0.7%</p>
516
+ </div>
517
+ <div class="text-center p-2 bg-green-50 rounded-lg">
518
+ <p class="text-xs text-gray-600">กล้ามเนื้อ</p>
519
+ <p class="text-lg font-bold text-green-600">31.2kg</p>
520
+ <p class="text-xs text-green-500">+1.0kg</p>
521
+ </div>
522
+ <div class="text-center p-2 bg-purple-50 rounded-lg">
523
+ <p class="text-xs text-gray-600">น้ำหนัก</p>
524
+ <p class="text-lg font-bold text-purple-600">66.4kg</p>
525
+ <p class="text-xs text-green-500">-0.6kg</p>
526
+ </div>
527
+ </div>
528
+ </div>
529
+ </div>
530
+
531
+ <!-- Products Tab -->
532
+ <div id="products" class="tab-content hidden">
533
+ <div class="bg-gradient-to-r from-blue-200 to-blue-300 rounded-2xl p-6 mb-6 text-white">
534
+ <h2 class="text-xl font-bold mb-2">แนะนำผลิตภัณฑ์</h2>
535
+ <p class="text-sm">จากข้อมูลของคุณ เราขอแนะนำแพ็กนี้:</p>
536
+ </div>
537
+
538
+ <!-- Product Cards -->
539
+ <div class="space-y-4">
540
+ <!-- FIT BURN Pack -->
541
+ <div class="bg-white rounded-2xl p-4 shadow-sm">
542
+ <div class="flex items-center justify-between mb-3">
543
+ <h3 class="font-bold text-lg">📦 แพ็ก FIT BURN</h3>
544
+ <span class="bg-orange-100 text-orange-600 px-2 py-1 rounded-full text-sm font-semibold">ยอดนิยม</span>
545
+ </div>
546
+ <div class="space-y-2 mb-4">
547
+ <div class="flex items-center space-x-2">
548
+ <i data-feather="check" class="w-4 h-4 text-green-500"></i>
549
+ <span class="text-sm">Whey-Fit 900g</span>
550
+ </div>
551
+ <div class="flex items-center space-x-2">
552
+ <i data-feather="check" class="w-4 h-4 text-green-500"></i>
553
+ <span class="text-sm">Magnesium Complex</span>
554
+ </div>
555
+ <div class="flex items-center space-x-2">
556
+ <i data-feather="check" class="w-4 h-4 text-green-500"></i>
557
+ <span class="text-sm">ADEK Vitamins</span>
558
+ </div>
559
+ </div>
560
+ <div class="flex items-center justify-between mb-4">
561
+ <div>
562
+ <span class="text-gray-500 line-through text-sm">฿2,290</span>
563
+ <p class="text-2xl font-bold text-green-600">฿1,690</p>
564
+ <p class="text-xs text-gray-500">ประหยัด 26%</p>
565
+ </div>
566
+ <img src="http://static.photos/fitness/100x100/123" alt="Product" class="w-20 h-20 rounded-lg object-cover">
567
+ </div>
568
+ <div class="flex space-x-2">
569
+ <button class="flex-1 bg-green-500 text-white py-2 rounded-lg font-medium">เพิ่มลงตะกร้า</button>
570
+ <button class="flex-1 bg-blue-500 text-white py-2 rounded-lg font-medium">ซื้อทันที</button>
571
+ </div>
572
+ </div>
573
+
574
+ <!-- Build Lean Pack -->
575
+ <div class="bg-white rounded-2xl p-4 shadow-sm">
576
+ <div class="flex items-center justify-between mb-3">
577
+ <h3 class="font-bold text-lg">📦 แพ็ก Build Lean</h3>
578
+ <span class="bg-purple-100 text-purple-600 px-2 py-1 rounded-full text-sm font-semibold">เพิ่มกล้าม</span>
579
+ </div>
580
+ <div class="space-y-2 mb-4">
581
+ <div class="flex items-center space-x-2">
582
+ <i data-feather="check" class="w-4 h-4 text-green-500"></i>
583
+ <span class="text-sm">Creatine + CLA</span>
584
+ </div>
585
+ <div class="flex items-center space-x-2">
586
+ <i data-feather="check" class="w-4 h-4 text-green-500"></i>
587
+ <span class="text-sm">Meal Planner</span>
588
+ </div>
589
+ </div>
590
+ <div class="flex items-center justify-between mb-4">
591
+ <div>
592
+ <span class="text-gray-500 line-through text-sm">฿2,490</span>
593
+ <p class="text-2xl font-bold text-green-600">฿1,890</p>
594
+ <p class="text-xs text-gray-500">ประหยัด 24%</p>
595
+ </div>
596
+ <img src="http://static.photos/fitness/100x100/456" alt="Product" class="w-20 h-20 rounded-lg object-cover">
597
+ </div>
598
+ <div class="flex space-x-2">
599
+ <button class="flex-1 bg-green-500 text-white py-2 rounded-lg font-medium">เพิ่มลงตะกร้า</button>
600
+ <button class="flex-1 bg-blue-500 text-white py-2 rounded-lg font-medium">ซื้อทันที</button>
601
+ </div>
602
+ </div>
603
+ </div>
604
+
605
+ <!-- Subscription Section -->
606
+ <div class="bg-white rounded-2xl p-4 shadow-sm mt-4">
607
+ <h3 class="font-semibold text-lg mb-4">ซื้อซ้ำ / Subscription</h3>
608
+ <div class="space-y-3">
609
+ <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
610
+ <div>
611
+ <p class="font-medium">Whey-Fit</p>
612
+ <p class="text-xs text-gray-500">สั่งล่าสุด: 12 ก.ย.</p>
613
+ </div>
614
+ <button class="bg-green-500 text-white px-4 py-1 rounded-lg text-sm">ซื้อซ้ำ</button>
615
+ </div>
616
+ <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
617
+ <div>
618
+ <p class="font-medium">MAG-5</p>
619
+ <p class="text-xs text-gray-500">สั่งล่าสุด: 5 ก.ย.</p>
620
+ </div>
621
+ <button class="bg-green-500 text-white px-4 py-1 rounded-lg text-sm">ซื้อซ้ำ</button>
622
+ </div>
623
+ </div>
624
+ <div class="mt-4 p-3 bg-blue-50 rounded-lg">
625
+ <p class="text-sm font-medium mb-2">ตั้งเตือนซื้ออัตโนมัติ</p>
626
+ <div class="flex space-x-2">
627
+ <button class="px-3 py-1 bg-white rounded text-sm">30 วัน</button>
628
+ <button class="px-3 py-1 bg-green-500 text-white rounded text-sm">45 วัน</button>
629
+ <button class="px-3 py-1 bg-white rounded text-sm">60 วัน</button>
630
+ </div>
631
+ </div>
632
+ </div>
633
+ </div>
634
+
635
+ <!-- Profile Tab -->
636
+ <div id="profile" class="tab-content hidden">
637
+ <!-- User Info -->
638
+ <div class="bg-gradient-to-r from-green-200 to-green-300 rounded-2xl p-6 mb-6">
639
+ <div class="flex items-center space-x-4">
640
+ <div class="w-20 h-20 bg-white rounded-full flex items-center justify-center">
641
+ <span class="text-3xl font-bold text-green-500">ก</span>
642
+ </div>
643
+ <div class="text-white">
644
+ <h2 class="text-xl font-bold">กฤติกา ศรีใจดี</h2>
645
+ <p class="text-sm opacity-90">อายุ 33 ปี</p>
646
+ <div class="flex items-center space-x-2 mt-2">
647
+ <span class="bg-white/20 px-2 py-1 rounded-full text-xs">1,150 คะแนน</span>
648
+ <span class="bg-white/20 px-2 py-1 rounded-full text-xs">Gold Member</span>
649
+ </div>
650
+ </div>
651
+ </div>
652
+ </div>
653
+
654
+ <!-- Goals -->
655
+ <div class="bg-white rounded-2xl p-4 shadow-sm mb-4">
656
+ <h3 class="font-semibold text-lg mb-4">เป้าหมายของฉัน</h3>
657
+ <div class="space-y-3">
658
+ <div class="flex justify-between items-center p-3 bg-gray-50 rounded-lg">
659
+ <span class="text-gray-600">น้ำหนักเป้าหมาย</span>
660
+ <span class="font-bold">62 กก.</span>
661
+ </div>
662
+ <div class="flex justify-between items-center p-3 bg-gray-50 rounded-lg">
663
+ <span class="text-gray-600">ไขมันเป้าหมาย</span>
664
+ <span class="font-bold">&lt;25%</span>
665
+ </div>
666
+ <div class="flex justify-between items-center p-3 bg-gray-50 rounded-lg">
667
+ <span class="text-gray-600">กล้ามเนื้อเป้าหมาย</span>
668
+ <span class="font-bold">33 กก.</span>
669
+ </div>
670
+ </div>
671
+ </div>
672
+
673
+ <!-- Achievements -->
674
+ <div class="bg-white rounded-2xl p-4 shadow-sm mb-4">
675
+ <h3 class="font-semibold text-lg mb-4">ความสำเร็จและรางวัล</h3>
676
+ <div class="space-y-3">
677
+ <div class="flex items-center space-x-3 p-3 bg-yellow-50 rounded-lg">
678
+ <span class="text-2xl">🏆</span>
679
+ <div>
680
+ <p class="font-medium">ภารกิจ 7 วันติด</p>
681
+ <p class="text-xs text-gray-500">สำเร็จเมื่อ 10 ก.ย.</p>
682
+ </div>
683
+ </div>
684
+ <div class="flex items-center space-x-3 p-3 bg-blue-50 rounded-lg">
685
+ <span class="text-2xl">🥈</span>
686
+ <div>
687
+ <p class="font-medium">ลดน้ำหนัก 1 กก.แรก</p>
688
+ <p class="text-xs text-gray-500">สำเร็จเมื่อ 5 ก.ย.</p>
689
+ </div>
690
+ </div>
691
+ <div class="flex items-center space-x-3 p-3 bg-purple-50 rounded-lg">
692
+ <span class="text-2xl">🎯</span>
693
+ <div>
694
+ <p class="font-medium">อันดับ 6 กล้ามเพิ่มเร็วที่สุด</p>
695
+ <p class="text-xs text-gray-500">ประจำเดือนกันยายน</p>
696
+ </div>
697
+ </div>
698
+ </div>
699
+ </div>
700
+
701
+ <!-- Order History -->
702
+ <div class="bg-white rounded-2xl p-4 shadow-sm mb-4">
703
+ <h3 class="font-semibold text-lg mb-4">ประวัติการสั่งซื้อ</h3>
704
+ <div class="space-y-2">
705
+ <div class="flex justify-between items-center p-2 border-b">
706
+ <div>
707
+ <p class="font-medium text-sm">Whey-Fit 900g</p>
708
+ <p class="text-xs text-gray-500">12 ก.ย. 2567</p>
709
+ </div>
710
+ <span class="text-green-600 font-semibold">฿690</span>
711
+ </div>
712
+ <div class="flex justify-between items-center p-2 border-b">
713
+ <div>
714
+ <p class="font-medium text-sm">MAG-5</p>
715
+ <p class="text-xs text-gray-500">5 ก.ย. 2567</p>
716
+ </div>
717
+ <span class="text-green-600 font-semibold">฿450</span>
718
+ </div>
719
+ <div class="flex justify-between items-center p-2">
720
+ <div>
721
+ <p class="font-medium text-sm">CLA 1000mg</p>
722
+ <p class="text-xs text-gray-500">20 ส.ค. 2567</p>
723
+ </div>
724
+ <span class="text-green-600 font-semibold">฿890</span>
725
+ </div>
726
+ </div>
727
+ </div>
728
+
729
+ <!-- Coach Contact -->
730
+ <div class="bg-white rounded-2xl p-4 shadow-sm">
731
+ <h3 class="font-semibold text-lg mb-4">ติดต่อโค้ช</h3>
732
+ <div class="flex items-center space-x-3 p-4 bg-green-50 rounded-lg">
733
+ <div class="w-12 h-12 bg-green-500 rounded-full flex items-center justify-center">
734
+ <i data-feather="user" class="w-6 h-6 text-white"></i>
735
+ </div>
736
+ <div class="flex-1">
737
+ <p class="font-medium">โค้ชแนต</p>
738
+ <p class="text-xs text-gray-500">WP Certified FitCoach</p>
739
+ </div>
740
+ <button class="bg-green-500 text-white px-4 py-2 rounded-lg text-sm font-medium">ปรึกษา</button>
741
+ </div>
742
+ </div>
743
+ </div>
744
+ </div>
745
+ </div>
746
+ </main>
747
+
748
+ <!-- Bottom Navigation -->
749
+ <nav class="fixed bottom-0 w-full bg-white border-t z-40">
750
+ <div class="container mx-auto px-4">
751
+ <div class="flex justify-around items-center py-2">
752
+ <button onclick="switchTab('dashboard')" class="tab-btn flex flex-col items-center p-2 text-green-600">
753
+ <i data-feather="home" class="w-6 h-6"></i>
754
+ <span class="text-xs mt-1">หน้าแรก</span>
755
+ </button>
756
+ <button onclick="switchTab('journey')" class="tab-btn flex flex-col items-center p-2 text-gray-600">
757
+ <i data-feather="calendar" class="w-6 h-6"></i>
758
+ <span class="text-xs mt-1">แผน 60 วัน</span>
759
+ </button>
760
+ <button onclick="switchTab('graph')" class="tab-btn flex flex-col items-center p-2 text-gray-600">
761
+ <i data-feather="bar-chart-2" class="w-6 h-6"></i>
762
+ <span class="text-xs mt-1">กราฟสุขภาพ</span>
763
+ </button>
764
+ <button onclick="switchTab('products')" class="tab-btn flex flex-col items-center p-2 text-gray-600">
765
+ <i data-feather="shopping-cart" class="w-6 h-6"></i>
766
+ <span class="text-xs mt-1">สินค้า</span>
767
+ </button>
768
+ <button onclick="switchTab('profile')" class="tab-btn flex flex-col items-center p-2 text-gray-600">
769
+ <i data-feather="user" class="w-6 h-6"></i>
770
+ <span class="text-xs mt-1">โปรไฟล์</span>
771
+ </button>
772
+ </div>
773
+ </div>
774
+ </nav>
775
+
776
+ <script src="script.js"></script>
777
+ <script>feather.replace();</script>
778
+ </body>
779
+ </html>
style.css CHANGED
@@ -1,28 +1,152 @@
 
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
 
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
 
 
 
 
 
 
 
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Custom Tailwind Configuration */
2
+ @import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');
3
+
4
  body {
5
+ font-family: 'Prompt', sans-serif;
6
+ }
7
+
8
+ /* Custom Colors */
9
+ :root {
10
+ --primary-green: #A5D6A7;
11
+ --primary-dark: #4CAF50;
12
+ --bg-light: #F9FAFB;
13
+ }
14
+
15
+ /* Custom scrollbar */
16
+ ::-webkit-scrollbar {
17
+ width: 6px;
18
+ }
19
+
20
+ ::-webkit-scrollbar-track {
21
+ background: #f1f1f1;
22
+ }
23
+
24
+ ::-webkit-scrollbar-thumb {
25
+ background: #A5D6A7;
26
+ border-radius: 3px;
27
+ }
28
+
29
+ ::-webkit-scrollbar-thumb:hover {
30
+ background: #4CAF50;
31
+ }
32
+
33
+ /* Smooth transitions */
34
+ .tab-content {
35
+ animation: fadeIn 0.3s ease-in-out;
36
+ }
37
+
38
+ @keyframes fadeIn {
39
+ from {
40
+ opacity: 0;
41
+ transform: translateY(10px);
42
+ }
43
+ to {
44
+ opacity: 1;
45
+ transform: translateY(0);
46
+ }
47
+ }
48
+
49
+ /* Custom button hover effects */
50
+ button {
51
+ transition: all 0.3s ease;
52
+ }
53
+
54
+ button:hover {
55
+ transform: translateY(-2px);
56
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
57
+ }
58
+
59
+ /* Card hover effects */
60
+ .bg-white {
61
+ transition: all 0.3s ease;
62
+ }
63
+
64
+ .bg-white:hover {
65
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
66
+ }
67
+
68
+ /* Tab button active state */
69
+ .tab-btn.active {
70
+ color: #4CAF50;
71
+ }
72
+
73
+ /* Progress bar animation */
74
+ .progress-bar {
75
+ animation: progressGrow 1s ease-out;
76
  }
77
 
78
+ @keyframes progressGrow {
79
+ from {
80
+ width: 0%;
81
+ }
82
  }
83
 
84
+ /* Chart canvas styling */
85
+ canvas {
86
+ max-width: 100%;
87
+ height: auto;
 
88
  }
89
 
90
+ /* Custom notification badge */
91
+ .notification-badge {
92
+ animation: pulse 2s infinite;
 
 
 
93
  }
94
 
95
+ @keyframes pulse {
96
+ 0% {
97
+ box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
98
+ }
99
+ 70% {
100
+ box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
101
+ }
102
+ 100% {
103
+ box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
104
+ }
105
  }
106
+
107
+ /* Responsive adjustments */
108
+ @media (max-width: 640px) {
109
+ .container {
110
+ padding-left: 1rem;
111
+ padding-right: 1rem;
112
+ }
113
+
114
+ h2 {
115
+ font-size: 1.5rem;
116
+ }
117
+
118
+ h3 {
119
+ font-size: 1.125rem;
120
+ }
121
+ }
122
+
123
+ /* Loading animation */
124
+ .loading {
125
+ animation: spin 1s linear infinite;
126
+ }
127
+
128
+ @keyframes spin {
129
+ from {
130
+ transform: rotate(0deg);
131
+ }
132
+ to {
133
+ transform: rotate(360deg);
134
+ }
135
+ }
136
+
137
+ /* Success checkmark animation */
138
+ .success-check {
139
+ animation: checkmark 0.5s ease-out;
140
+ }
141
+
142
+ @keyframes checkmark {
143
+ 0% {
144
+ transform: scale(0) rotate(45deg);
145
+ }
146
+ 50% {
147
+ transform: scale(1.2) rotate(45deg);
148
+ }
149
+ 100% {
150
+ transform: scale(1) rotate(45deg);
151
+ }
152
+ }