Spaces:
Running
Running
แปลงทั้งเว็บเป็นภาษาไทย และใส่การเชื่อมต่อกับ smartwatch เพื่ออ่านค่าออกกำลังกาย และค่า health ต่างๆมาแสดงผลที
Browse files- challenges.html +46 -46
- connect-device.html +180 -0
- index.html +43 -43
- profile.html +45 -45
- progress.html +36 -36
challenges.html
CHANGED
|
@@ -3,8 +3,8 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>
|
| 7 |
-
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
|
@@ -29,11 +29,11 @@
|
|
| 29 |
<header class="bg-white shadow-sm sticky top-0 z-10">
|
| 30 |
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
|
| 31 |
<div class="flex items-center">
|
| 32 |
-
<button class="p-2 rounded-full text-gray-600">
|
| 33 |
<i data-feather="arrow-left"></i>
|
| 34 |
</button>
|
| 35 |
-
<h1 class="ml-2 text-xl font-bold text-gray-800">
|
| 36 |
-
|
| 37 |
<button class="p-2 rounded-full bg-gray-100 text-gray-600">
|
| 38 |
<i data-feather="filter"></i>
|
| 39 |
</button>
|
|
@@ -43,10 +43,10 @@
|
|
| 43 |
<!-- Tabs -->
|
| 44 |
<div class="container mx-auto px-4">
|
| 45 |
<div class="flex border-b border-gray-200">
|
| 46 |
-
<button class="py-3 px-4 text-indigo-600 font-medium active-tab">
|
| 47 |
-
<button class="py-3 px-4 text-gray-500 font-medium">
|
| 48 |
-
<button class="py-3 px-4 text-gray-500 font-medium">
|
| 49 |
-
|
| 50 |
</div>
|
| 51 |
|
| 52 |
<!-- Main Content -->
|
|
@@ -60,16 +60,16 @@
|
|
| 60 |
</div>
|
| 61 |
<div class="ml-4 flex-1">
|
| 62 |
<div class="flex justify-between">
|
| 63 |
-
<h4 class="font-bold text-gray-800">7
|
| 64 |
-
<span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded-full">
|
| 65 |
</div>
|
| 66 |
-
<p class="text-sm text-gray-500 mt-1">
|
| 67 |
<div class="mt-3">
|
| 68 |
<div class="flex justify-between text-sm mb-1">
|
| 69 |
-
<span class="text-gray-600">
|
| 70 |
-
<span class="font-medium">3/7
|
| 71 |
</div>
|
| 72 |
-
|
| 73 |
<div class="bg-gradient-to-r from-green-400 to-blue-500 h-2 rounded-full" style="width: 43%"></div>
|
| 74 |
</div>
|
| 75 |
</div>
|
|
@@ -78,10 +78,10 @@
|
|
| 78 |
<div class="w-6 h-6 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-500">
|
| 79 |
<i data-feather="star" class="w-3 h-3"></i>
|
| 80 |
</div>
|
| 81 |
-
<span class="ml-1 text-sm text-gray-600">+150
|
| 82 |
</div>
|
| 83 |
-
<button class="px-4 py-2 bg-gradient-to-r from-purple-500 to-indigo-600 text-white rounded-lg text-sm font-medium">
|
| 84 |
-
|
| 85 |
</div>
|
| 86 |
</div>
|
| 87 |
</div>
|
|
@@ -93,16 +93,16 @@
|
|
| 93 |
</div>
|
| 94 |
<div class="ml-4 flex-1">
|
| 95 |
<div class="flex justify-between">
|
| 96 |
-
<h4 class="font-bold text-gray-800">
|
| 97 |
-
<span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded-full">
|
| 98 |
</div>
|
| 99 |
-
<p class="text-sm text-gray-500 mt-1">
|
| 100 |
<div class="mt-3">
|
| 101 |
<div class="flex justify-between text-sm mb-1">
|
| 102 |
-
<span class="text-gray-600">
|
| 103 |
-
<span class="font-medium">5/7
|
| 104 |
</div>
|
| 105 |
-
|
| 106 |
<div class="bg-gradient-to-r from-purple-400 to-pink-500 h-2 rounded-full" style="width: 71%"></div>
|
| 107 |
</div>
|
| 108 |
</div>
|
|
@@ -111,10 +111,10 @@
|
|
| 111 |
<div class="w-6 h-6 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-500">
|
| 112 |
<i data-feather="star" class="w-3 h-3"></i>
|
| 113 |
</div>
|
| 114 |
-
<span class="ml-1 text-sm text-gray-600">+100
|
| 115 |
</div>
|
| 116 |
-
<button class="px-4 py-2 bg-gradient-to-r from-purple-500 to-indigo-600 text-white rounded-lg text-sm font-medium">
|
| 117 |
-
|
| 118 |
</div>
|
| 119 |
</div>
|
| 120 |
</div>
|
|
@@ -122,40 +122,40 @@
|
|
| 122 |
|
| 123 |
<!-- Daily Challenges -->
|
| 124 |
<section>
|
| 125 |
-
<h3 class="text-lg font-semibold text-gray-800 mb-4">
|
| 126 |
-
|
| 127 |
<div class="flex items-center mb-4">
|
| 128 |
<div class="w-12 h-12 rounded-lg bg-gradient-to-r from-yellow-400 to-orange-500 flex items-center justify-center text-white">
|
| 129 |
<i data-feather="sun"></i>
|
| 130 |
</div>
|
| 131 |
<div class="ml-4 flex-1">
|
| 132 |
-
<h4 class="font-medium text-gray-800">
|
| 133 |
-
<p class="text-sm text-gray-500">
|
| 134 |
</div>
|
| 135 |
-
<button class="px-3 py-1 bg-gray-100 text-gray-800 rounded-lg text-sm font-medium">
|
| 136 |
-
|
| 137 |
|
| 138 |
<div class="flex items-center mb-4">
|
| 139 |
<div class="w-12 h-12 rounded-lg bg-gradient-to-r from-blue-400 to-cyan-500 flex items-center justify-center text-white">
|
| 140 |
<i data-feather="moon"></i>
|
| 141 |
</div>
|
| 142 |
<div class="ml-4 flex-1">
|
| 143 |
-
<h4 class="font-medium text-gray-800">
|
| 144 |
-
<p class="text-sm text-gray-500">
|
| 145 |
</div>
|
| 146 |
-
<button class="px-3 py-1 bg-gray-100 text-gray-800 rounded-lg text-sm font-medium">
|
| 147 |
-
|
| 148 |
|
| 149 |
<div class="flex items-center">
|
| 150 |
<div class="w-12 h-12 rounded-lg bg-gradient-to-r from-red-400 to-pink-500 flex items-center justify-center text-white">
|
| 151 |
<i data-feather="heart"></i>
|
| 152 |
</div>
|
| 153 |
<div class="ml-4 flex-1">
|
| 154 |
-
<h4 class="font-medium text-gray-800">
|
| 155 |
-
<p class="text-sm text-gray-500">
|
| 156 |
</div>
|
| 157 |
-
<button class="px-3 py-1 bg-gray-100 text-gray-800 rounded-lg text-sm font-medium">
|
| 158 |
-
|
| 159 |
</div>
|
| 160 |
</section>
|
| 161 |
</main>
|
|
@@ -166,21 +166,21 @@
|
|
| 166 |
<div class="flex justify-around">
|
| 167 |
<a href="index.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 168 |
<i data-feather="home" class="w-5 h-5 mb-1"></i>
|
| 169 |
-
<span class="text-xs">
|
| 170 |
</a>
|
| 171 |
<a href="progress.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 172 |
<i data-feather="bar-chart-2" class="w-5 h-5 mb-1"></i>
|
| 173 |
-
<span class="text-xs">
|
| 174 |
</a>
|
| 175 |
<a href="#" class="flex flex-col items-center py-3 text-indigo-600 active-tab">
|
| 176 |
<i data-feather="calendar" class="w-5 h-5 mb-1"></i>
|
| 177 |
-
<span class="text-xs">
|
| 178 |
</a>
|
| 179 |
<a href="profile.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 180 |
<i data-feather="user" class="w-5 h-5 mb-1"></i>
|
| 181 |
-
<span class="text-xs">
|
| 182 |
</a>
|
| 183 |
-
|
| 184 |
</div>
|
| 185 |
</nav>
|
| 186 |
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>กิจกรรม - BetterMe</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
|
|
|
| 29 |
<header class="bg-white shadow-sm sticky top-0 z-10">
|
| 30 |
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
|
| 31 |
<div class="flex items-center">
|
| 32 |
+
<button class="p-2 rounded-full text-gray-600" onclick="window.location.href='index.html'">
|
| 33 |
<i data-feather="arrow-left"></i>
|
| 34 |
</button>
|
| 35 |
+
<h1 class="ml-2 text-xl font-bold text-gray-800">กิจกรรม</h1>
|
| 36 |
+
</div>
|
| 37 |
<button class="p-2 rounded-full bg-gray-100 text-gray-600">
|
| 38 |
<i data-feather="filter"></i>
|
| 39 |
</button>
|
|
|
|
| 43 |
<!-- Tabs -->
|
| 44 |
<div class="container mx-auto px-4">
|
| 45 |
<div class="flex border-b border-gray-200">
|
| 46 |
+
<button class="py-3 px-4 text-indigo-600 font-medium active-tab">กำลังทำ</button>
|
| 47 |
+
<button class="py-3 px-4 text-gray-500 font-medium">พร้อมทำ</button>
|
| 48 |
+
<button class="py-3 px-4 text-gray-500 font-medium">เสร็จแล้ว</button>
|
| 49 |
+
</div>
|
| 50 |
</div>
|
| 51 |
|
| 52 |
<!-- Main Content -->
|
|
|
|
| 60 |
</div>
|
| 61 |
<div class="ml-4 flex-1">
|
| 62 |
<div class="flex justify-between">
|
| 63 |
+
<h4 class="font-bold text-gray-800">สมาธิ 7 วัน</h4>
|
| 64 |
+
<span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded-full">กำลังทำ</span>
|
| 65 |
</div>
|
| 66 |
+
<p class="text-sm text-gray-500 mt-1">ฝึกสมาธิวันละ 10 นาที</p>
|
| 67 |
<div class="mt-3">
|
| 68 |
<div class="flex justify-between text-sm mb-1">
|
| 69 |
+
<span class="text-gray-600">ความคืบหน้า</span>
|
| 70 |
+
<span class="font-medium">3/7 วัน</span>
|
| 71 |
</div>
|
| 72 |
+
<div class="w-full bg-gray-200 rounded-full h-2">
|
| 73 |
<div class="bg-gradient-to-r from-green-400 to-blue-500 h-2 rounded-full" style="width: 43%"></div>
|
| 74 |
</div>
|
| 75 |
</div>
|
|
|
|
| 78 |
<div class="w-6 h-6 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-500">
|
| 79 |
<i data-feather="star" class="w-3 h-3"></i>
|
| 80 |
</div>
|
| 81 |
+
<span class="ml-1 text-sm text-gray-600">+150 คะแนน</span>
|
| 82 |
</div>
|
| 83 |
+
<button class="px-4 py-2 bg-gradient-to-r from-purple-500 to-indigo-600 text-white rounded-lg text-sm font-medium">ดำเนินการต่อ</button>
|
| 84 |
+
</div>
|
| 85 |
</div>
|
| 86 |
</div>
|
| 87 |
</div>
|
|
|
|
| 93 |
</div>
|
| 94 |
<div class="ml-4 flex-1">
|
| 95 |
<div class="flex justify-between">
|
| 96 |
+
<h4 class="font-bold text-gray-800">ฮีโร่ดื่มน้ำ</h4>
|
| 97 |
+
<span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded-full">กำลังทำ</span>
|
| 98 |
</div>
|
| 99 |
+
<p class="text-sm text-gray-500 mt-1">ดื่มน้ำวันละ 8 แก้ว</p>
|
| 100 |
<div class="mt-3">
|
| 101 |
<div class="flex justify-between text-sm mb-1">
|
| 102 |
+
<span class="text-gray-600">ความคืบหน้า</span>
|
| 103 |
+
<span class="font-medium">5/7 วัน</span>
|
| 104 |
</div>
|
| 105 |
+
<div class="w-full bg-gray-200 rounded-full h-2">
|
| 106 |
<div class="bg-gradient-to-r from-purple-400 to-pink-500 h-2 rounded-full" style="width: 71%"></div>
|
| 107 |
</div>
|
| 108 |
</div>
|
|
|
|
| 111 |
<div class="w-6 h-6 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-500">
|
| 112 |
<i data-feather="star" class="w-3 h-3"></i>
|
| 113 |
</div>
|
| 114 |
+
<span class="ml-1 text-sm text-gray-600">+100 คะแนน</span>
|
| 115 |
</div>
|
| 116 |
+
<button class="px-4 py-2 bg-gradient-to-r from-purple-500 to-indigo-600 text-white rounded-lg text-sm font-medium">บันทึกน้ำ</button>
|
| 117 |
+
</div>
|
| 118 |
</div>
|
| 119 |
</div>
|
| 120 |
</div>
|
|
|
|
| 122 |
|
| 123 |
<!-- Daily Challenges -->
|
| 124 |
<section>
|
| 125 |
+
<h3 class="text-lg font-semibold text-gray-800 mb-4">กิจกรรมรายวัน</h3>
|
| 126 |
+
<div class="bg-white rounded-xl p-5 card-shadow">
|
| 127 |
<div class="flex items-center mb-4">
|
| 128 |
<div class="w-12 h-12 rounded-lg bg-gradient-to-r from-yellow-400 to-orange-500 flex items-center justify-center text-white">
|
| 129 |
<i data-feather="sun"></i>
|
| 130 |
</div>
|
| 131 |
<div class="ml-4 flex-1">
|
| 132 |
+
<h4 class="font-medium text-gray-800">กิจวัตรเช้า</h4>
|
| 133 |
+
<p class="text-sm text-gray-500">ทำกิจวัตรเช้าให้ครบ</p>
|
| 134 |
</div>
|
| 135 |
+
<button class="px-3 py-1 bg-gray-100 text-gray-800 rounded-lg text-sm font-medium">เริ่ม</button>
|
| 136 |
+
</div>
|
| 137 |
|
| 138 |
<div class="flex items-center mb-4">
|
| 139 |
<div class="w-12 h-12 rounded-lg bg-gradient-to-r from-blue-400 to-cyan-500 flex items-center justify-center text-white">
|
| 140 |
<i data-feather="moon"></i>
|
| 141 |
</div>
|
| 142 |
<div class="ml-4 flex-1">
|
| 143 |
+
<h4 class="font-medium text-gray-800">สะท้อนความคิดตอนเย็น</h4>
|
| 144 |
+
<p class="text-sm text-gray-500">เขียนไดอารี่ก่อนนอน</p>
|
| 145 |
</div>
|
| 146 |
+
<button class="px-3 py-1 bg-gray-100 text-gray-800 rounded-lg text-sm font-medium">เริ่ม</button>
|
| 147 |
+
</div>
|
| 148 |
|
| 149 |
<div class="flex items-center">
|
| 150 |
<div class="w-12 h-12 rounded-lg bg-gradient-to-r from-red-400 to-pink-500 flex items-center justify-center text-white">
|
| 151 |
<i data-feather="heart"></i>
|
| 152 |
</div>
|
| 153 |
<div class="ml-4 flex-1">
|
| 154 |
+
<h4 class="font-medium text-gray-800">การฝึกขอบคุณ</h4>
|
| 155 |
+
<p class="text-sm text-gray-500">เขียนสิ่งที่คุณรู้สึกขอบคุณ 3 อย่าง</p>
|
| 156 |
</div>
|
| 157 |
+
<button class="px-3 py-1 bg-gray-100 text-gray-800 rounded-lg text-sm font-medium">เริ่ม</button>
|
| 158 |
+
</div>
|
| 159 |
</div>
|
| 160 |
</section>
|
| 161 |
</main>
|
|
|
|
| 166 |
<div class="flex justify-around">
|
| 167 |
<a href="index.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 168 |
<i data-feather="home" class="w-5 h-5 mb-1"></i>
|
| 169 |
+
<span class="text-xs">หน้าหลัก</span>
|
| 170 |
</a>
|
| 171 |
<a href="progress.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 172 |
<i data-feather="bar-chart-2" class="w-5 h-5 mb-1"></i>
|
| 173 |
+
<span class="text-xs">ความคืบหน้า</span>
|
| 174 |
</a>
|
| 175 |
<a href="#" class="flex flex-col items-center py-3 text-indigo-600 active-tab">
|
| 176 |
<i data-feather="calendar" class="w-5 h-5 mb-1"></i>
|
| 177 |
+
<span class="text-xs">กิจกรรม</span>
|
| 178 |
</a>
|
| 179 |
<a href="profile.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 180 |
<i data-feather="user" class="w-5 h-5 mb-1"></i>
|
| 181 |
+
<span class="text-xs">โปรไฟล์</span>
|
| 182 |
</a>
|
| 183 |
+
</div>
|
| 184 |
</div>
|
| 185 |
</nav>
|
| 186 |
|
connect-device.html
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>เชื่อมต่ออุปกรณ์ - BetterMe</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
+
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
| 11 |
+
<style>
|
| 12 |
+
body {
|
| 13 |
+
font-family: 'Poppins', sans-serif;
|
| 14 |
+
background-color: #f8f9fa;
|
| 15 |
+
}
|
| 16 |
+
.gradient-bg {
|
| 17 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 18 |
+
}
|
| 19 |
+
.card-shadow {
|
| 20 |
+
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
| 21 |
+
}
|
| 22 |
+
.active-tab {
|
| 23 |
+
border-bottom: 3px solid #667eea;
|
| 24 |
+
}
|
| 25 |
+
</style>
|
| 26 |
+
</head>
|
| 27 |
+
<body class="bg-gray-50">
|
| 28 |
+
<!-- Header -->
|
| 29 |
+
<header class="bg-white shadow-sm sticky top-0 z-10">
|
| 30 |
+
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
|
| 31 |
+
<div class="flex items-center">
|
| 32 |
+
<button class="p-2 rounded-full text-gray-600" onclick="window.location.href='index.html'">
|
| 33 |
+
<i data-feather="arrow-left"></i>
|
| 34 |
+
</button>
|
| 35 |
+
<h1 class="ml-2 text-xl font-bold text-gray-800">เชื่อมต่ออุปกรณ์</h1>
|
| 36 |
+
</div>
|
| 37 |
+
</div>
|
| 38 |
+
</header>
|
| 39 |
+
|
| 40 |
+
<!-- Main Content -->
|
| 41 |
+
<main class="container mx-auto px-4 py-6">
|
| 42 |
+
<!-- Connection Status -->
|
| 43 |
+
<section class="mb-8">
|
| 44 |
+
<div class="bg-white rounded-xl p-6 card-shadow text-center">
|
| 45 |
+
<div class="w-20 h-20 rounded-full bg-gray-100 flex items-center justify-center mx-auto mb-4">
|
| 46 |
+
<i data-feather="watch" class="w-10 h-10 text-gray-400"></i>
|
| 47 |
+
</div>
|
| 48 |
+
<h2 class="text-xl font-bold text-gray-800 mb-2">เชื่อมต่อกับสมาร์ทวอทช์</h2>
|
| 49 |
+
<p class="text-gray-500 mb-6">เชื่อมต่ออุปกรณ์ของคุณเพื่อติดตามสุขภาพและกิจกรรมได้อย่างแม่นยำ</p>
|
| 50 |
+
<button id="connectBtn" class="w-full py-3 bg-gradient-to-r from-purple-500 to-indigo-600 text-white rounded-lg font-medium mb-4">ค้นหาอุปกรณ์</button>
|
| 51 |
+
<p class="text-sm text-gray-400">รองรับ Apple Watch, Fitbit, Garmin และอื่นๆ</p>
|
| 52 |
+
</div>
|
| 53 |
+
</section>
|
| 54 |
+
|
| 55 |
+
<!-- Device Info -->
|
| 56 |
+
<section class="mb-8">
|
| 57 |
+
<h3 class="text-lg font-semibold text-gray-800 mb-4">ข้อมูลที่ได้รับจากอุปกรณ์</h3>
|
| 58 |
+
<div class="bg-white rounded-xl p-5 card-shadow">
|
| 59 |
+
<div class="space-y-4">
|
| 60 |
+
<div class="flex items-center pb-3 border-b border-gray-100">
|
| 61 |
+
<div class="w-10 h-10 rounded-full bg-red-100 flex items-center justify-center text-red-500">
|
| 62 |
+
<i data-feather="heart"></i>
|
| 63 |
+
</div>
|
| 64 |
+
<div class="ml-4 flex-1">
|
| 65 |
+
<h4 class="font-medium text-gray-800">อัตราการเต้นของหัวใจ</h4>
|
| 66 |
+
<p class="text-sm text-gray-500">ติดตามอัตราการเต้นหัวใจแบบเรียลไทม์</p>
|
| 67 |
+
</div>
|
| 68 |
+
</div>
|
| 69 |
+
|
| 70 |
+
<div class="flex items-center pb-3 border-b border-gray-100">
|
| 71 |
+
<div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-500">
|
| 72 |
+
<i data-feather="activity"></i>
|
| 73 |
+
</div>
|
| 74 |
+
<div class="ml-4 flex-1">
|
| 75 |
+
<h4 class="font-medium text-gray-800">กิจกรรมการเคลื่อนไหว</h4>
|
| 76 |
+
<p class="text-sm text-gray-500">นับก้าว แคลอรี่ และระยะทาง</p>
|
| 77 |
+
</div>
|
| 78 |
+
</div>
|
| 79 |
+
|
| 80 |
+
<div class="flex items-center pb-3 border-b border-gray-100">
|
| 81 |
+
<div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center text-green-500">
|
| 82 |
+
<i data-feather="moon"></i>
|
| 83 |
+
</div>
|
| 84 |
+
<div class="ml-4 flex-1">
|
| 85 |
+
<h4 class="font-medium text-gray-800">การนอนหลับ</h4>
|
| 86 |
+
<p class="text-sm text-gray-500">วิเคราะห์คุณภาพ��ารนอน</p>
|
| 87 |
+
</div>
|
| 88 |
+
</div>
|
| 89 |
+
|
| 90 |
+
<div class="flex items-center">
|
| 91 |
+
<div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center text-purple-500">
|
| 92 |
+
<i data-feather="droplet"></i>
|
| 93 |
+
</div>
|
| 94 |
+
<div class="ml-4 flex-1">
|
| 95 |
+
<h4 class="font-medium text-gray-800">ระดับออกซิเจนในเลือด</h4>
|
| 96 |
+
<p class="text-sm text-gray-500">ตรวจสอบ SpO2</p>
|
| 97 |
+
</div>
|
| 98 |
+
</div>
|
| 99 |
+
</div>
|
| 100 |
+
</div>
|
| 101 |
+
</section>
|
| 102 |
+
|
| 103 |
+
<!-- How It Works -->
|
| 104 |
+
<section>
|
| 105 |
+
<h3 class="text-lg font-semibold text-gray-800 mb-4">วิธีการเชื่อมต่อ</h3>
|
| 106 |
+
<div class="bg-white rounded-xl p-5 card-shadow">
|
| 107 |
+
<div class="flex items-start mb-6">
|
| 108 |
+
<div class="w-8 h-8 rounded-full bg-indigo-100 text-indigo-600 flex items-center justify-center font-bold text-sm flex-shrink-0">1</div>
|
| 109 |
+
<div class="ml-4">
|
| 110 |
+
<h4 class="font-medium text-gray-800">เปิดบลูทูธ</h4>
|
| 111 |
+
<p class="text-sm text-gray-500 mt-1">เปิดการตั้งค่าบลูทูธบนสมาร์ทโฟนของคุณ</p>
|
| 112 |
+
</div>
|
| 113 |
+
</div>
|
| 114 |
+
|
| 115 |
+
<div class="flex items-start mb-6">
|
| 116 |
+
<div class="w-8 h-8 rounded-full bg-indigo-100 text-indigo-600 flex items-center justify-center font-bold text-sm flex-shrink-0">2</div>
|
| 117 |
+
<div class="ml-4">
|
| 118 |
+
<h4 class="font-medium text-gray-800">กดปุ่มค้นหาอุปกรณ์</h4>
|
| 119 |
+
<p class="text-sm text-gray-500 mt-1">เลือกอุปกรณ์ที่ต้องการเชื่อมต่อจากรายการ</p>
|
| 120 |
+
</div>
|
| 121 |
+
</div>
|
| 122 |
+
|
| 123 |
+
<div class="flex items-start">
|
| 124 |
+
<div class="w-8 h-8 rounded-full bg-indigo-100 text-indigo-600 flex items-center justify-center font-bold text-sm flex-shrink-0">3</div>
|
| 125 |
+
<div class="ml-4">
|
| 126 |
+
<h4 class="font-medium text-gray-800">ยืนยันการเชื่อมต่อ</h4>
|
| 127 |
+
<p class="text-sm text-gray-500 mt-1">ทำตามขั้นตอนบนหน้าจอเพื่อเชื่อมต่ออุปกรณ์</p>
|
| 128 |
+
</div>
|
| 129 |
+
</div>
|
| 130 |
+
</div>
|
| 131 |
+
</section>
|
| 132 |
+
</main>
|
| 133 |
+
|
| 134 |
+
<!-- Bottom Navigation -->
|
| 135 |
+
<nav class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200">
|
| 136 |
+
<div class="container mx-auto px-4">
|
| 137 |
+
<div class="flex justify-around">
|
| 138 |
+
<a href="index.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 139 |
+
<i data-feather="home" class="w-5 h-5 mb-1"></i>
|
| 140 |
+
<span class="text-xs">หน้าหลัก</span>
|
| 141 |
+
</a>
|
| 142 |
+
<a href="progress.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 143 |
+
<i data-feather="bar-chart-2" class="w-5 h-5 mb-1"></i>
|
| 144 |
+
<span class="text-xs">ความคืบหน้า</span>
|
| 145 |
+
</a>
|
| 146 |
+
<a href="challenges.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 147 |
+
<i data-feather="calendar" class="w-5 h-5 mb-1"></i>
|
| 148 |
+
<span class="text-xs">กิจกรรม</span>
|
| 149 |
+
</a>
|
| 150 |
+
<a href="profile.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 151 |
+
<i data-feather="user" class="w-5 h-5 mb-1"></i>
|
| 152 |
+
<span class="text-xs">โปรไฟล์</span>
|
| 153 |
+
</a>
|
| 154 |
+
</div>
|
| 155 |
+
</div>
|
| 156 |
+
</nav>
|
| 157 |
+
|
| 158 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 159 |
+
<script>
|
| 160 |
+
// Initialize Feather Icons
|
| 161 |
+
feather.replace();
|
| 162 |
+
|
| 163 |
+
// Simulate device connection
|
| 164 |
+
document.getElementById('connectBtn').addEventListener('click', function() {
|
| 165 |
+
this.innerHTML = '<span class="flex items-center justify-center"><i data-feather="loader" class="animate-spin mr-2"></i> กำลังค้นหาอุปกรณ์...</span>';
|
| 166 |
+
feather.replace();
|
| 167 |
+
|
| 168 |
+
setTimeout(() => {
|
| 169 |
+
this.innerHTML = '<i data-feather="check" class="mr-2"></i> เชื่อมต่อสำเร็จ!';
|
| 170 |
+
feather.replace();
|
| 171 |
+
this.classList.remove('bg-gradient-to-r', 'from-purple-500', 'to-indigo-600');
|
| 172 |
+
this.classList.add('bg-green-500');
|
| 173 |
+
|
| 174 |
+
// Show success message
|
| 175 |
+
alert('เชื่อมต่ออุปกรณ์สำเร็จ! ข้อมูลสุขภาพจะถูกซิงค์อัตโนมัติ');
|
| 176 |
+
}, 3000);
|
| 177 |
+
});
|
| 178 |
+
</script>
|
| 179 |
+
</body>
|
| 180 |
+
</html>
|
index.html
CHANGED
|
@@ -3,8 +3,8 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>BetterMe -
|
| 7 |
-
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
|
@@ -52,9 +52,9 @@
|
|
| 52 |
<!-- Welcome Section -->
|
| 53 |
<section class="mb-8">
|
| 54 |
<div class="gradient-bg rounded-2xl p-6 text-white">
|
| 55 |
-
<h2 class="text-2xl font-bold">
|
| 56 |
-
<p class="mt-2 opacity-90">
|
| 57 |
-
|
| 58 |
<div class="relative w-16 h-16">
|
| 59 |
<svg class="w-full h-full" viewBox="0 0 36 36">
|
| 60 |
<path
|
|
@@ -78,65 +78,65 @@
|
|
| 78 |
</div>
|
| 79 |
</div>
|
| 80 |
<div class="ml-4">
|
| 81 |
-
<p class="font-medium">
|
| 82 |
-
<p class="text-sm opacity-90">3
|
| 83 |
</div>
|
| 84 |
-
|
| 85 |
</div>
|
| 86 |
</section>
|
| 87 |
|
| 88 |
<!-- Quick Actions -->
|
| 89 |
<section class="mb-8">
|
| 90 |
-
<h3 class="text-lg font-semibold text-gray-800 mb-4">
|
| 91 |
-
|
| 92 |
<div class="bg-white rounded-xl p-4 card-shadow">
|
| 93 |
<div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center text-blue-500 mb-3">
|
| 94 |
<i data-feather="heart"></i>
|
| 95 |
</div>
|
| 96 |
-
<h4 class="font-medium text-gray-800">
|
| 97 |
-
<p class="text-sm text-gray-500 mt-1">5
|
| 98 |
-
|
| 99 |
<div class="bg-white rounded-xl p-4 card-shadow">
|
| 100 |
<div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center text-green-500 mb-3">
|
| 101 |
<i data-feather="activity"></i>
|
| 102 |
</div>
|
| 103 |
-
<h4 class="font-medium text-gray-800">
|
| 104 |
-
<p class="text-sm text-gray-500 mt-1">15
|
| 105 |
-
|
| 106 |
<div class="bg-white rounded-xl p-4 card-shadow">
|
| 107 |
<div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center text-purple-500 mb-3">
|
| 108 |
<i data-feather="book"></i>
|
| 109 |
</div>
|
| 110 |
-
<h4 class="font-medium text-gray-800">
|
| 111 |
-
<p class="text-sm text-gray-500 mt-1">
|
| 112 |
-
|
| 113 |
<div class="bg-white rounded-xl p-4 card-shadow">
|
| 114 |
<div class="w-12 h-12 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-500 mb-3">
|
| 115 |
<i data-feather="droplet"></i>
|
| 116 |
</div>
|
| 117 |
-
<h4 class="font-medium text-gray-800">
|
| 118 |
-
<p class="text-sm text-gray-500 mt-1">
|
| 119 |
-
|
| 120 |
</div>
|
| 121 |
</section>
|
| 122 |
|
| 123 |
<!-- Today's Progress -->
|
| 124 |
<section class="mb-8">
|
| 125 |
<div class="flex justify-between items-center mb-4">
|
| 126 |
-
<h3 class="text-lg font-semibold text-gray-800">
|
| 127 |
-
<button class="text-indigo-600 text-sm font-medium">
|
| 128 |
-
|
| 129 |
<div class="bg-white rounded-xl p-5 card-shadow">
|
| 130 |
<div class="flex justify-between mb-4">
|
| 131 |
<div>
|
| 132 |
-
<h4 class="font-medium text-gray-800">
|
| 133 |
<p class="text-2xl font-bold text-gray-900 mt-1">82</p>
|
| 134 |
</div>
|
| 135 |
<div class="text-right">
|
| 136 |
-
<p class="text-sm text-gray-500">
|
| 137 |
<p class="text-sm font-medium text-gray-900">78</p>
|
| 138 |
</div>
|
| 139 |
-
|
| 140 |
<div class="h-32">
|
| 141 |
<canvas id="progressChart"></canvas>
|
| 142 |
</div>
|
|
@@ -145,24 +145,24 @@
|
|
| 145 |
|
| 146 |
<!-- Challenges -->
|
| 147 |
<section>
|
| 148 |
-
<h3 class="text-lg font-semibold text-gray-800 mb-4">
|
| 149 |
-
|
| 150 |
<div class="flex items-center">
|
| 151 |
<div class="w-16 h-16 rounded-lg bg-gradient-to-r from-green-400 to-blue-500 flex items-center justify-center text-white">
|
| 152 |
<i data-feather="target"></i>
|
| 153 |
</div>
|
| 154 |
<div class="ml-4 flex-1">
|
| 155 |
-
<h4 class="font-medium text-gray-800">7
|
| 156 |
-
<p class="text-sm text-gray-500 mt-1">
|
| 157 |
-
|
| 158 |
<div class="bg-gradient-to-r from-green-400 to-blue-500 h-2 rounded-full" style="width: 43%"></div>
|
| 159 |
</div>
|
| 160 |
</div>
|
| 161 |
</div>
|
| 162 |
<div class="mt-4 pt-4 border-t border-gray-100">
|
| 163 |
-
<button class="w-full py-3 bg-gradient-to-r from-purple-500 to-indigo-600 text-white rounded-lg font-medium">
|
| 164 |
</div>
|
| 165 |
-
|
| 166 |
</section>
|
| 167 |
</main>
|
| 168 |
|
|
@@ -172,21 +172,21 @@
|
|
| 172 |
<div class="flex justify-around">
|
| 173 |
<a href="#" class="flex flex-col items-center py-3 text-indigo-600 active-tab">
|
| 174 |
<i data-feather="home" class="w-5 h-5 mb-1"></i>
|
| 175 |
-
<span class="text-xs">
|
| 176 |
</a>
|
| 177 |
-
<a href="
|
| 178 |
<i data-feather="bar-chart-2" class="w-5 h-5 mb-1"></i>
|
| 179 |
-
<span class="text-xs">
|
| 180 |
</a>
|
| 181 |
-
<a href="
|
| 182 |
<i data-feather="calendar" class="w-5 h-5 mb-1"></i>
|
| 183 |
-
<span class="text-xs">
|
| 184 |
</a>
|
| 185 |
-
<a href="
|
| 186 |
<i data-feather="user" class="w-5 h-5 mb-1"></i>
|
| 187 |
-
<span class="text-xs">
|
| 188 |
</a>
|
| 189 |
-
|
| 190 |
</div>
|
| 191 |
</nav>
|
| 192 |
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>BetterMe - แอปสุขภาพ</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
|
|
|
| 52 |
<!-- Welcome Section -->
|
| 53 |
<section class="mb-8">
|
| 54 |
<div class="gradient-bg rounded-2xl p-6 text-white">
|
| 55 |
+
<h2 class="text-2xl font-bold">สวัสดีตอนเช้าค่ะ ซาร่า! ☀️</h2>
|
| 56 |
+
<p class="mt-2 opacity-90">พร้อมสำหรับการเดินทางสุขภาพรายวันของคุณแล้วหรือยัง?</p>
|
| 57 |
+
<div class="mt-4 flex items-center">
|
| 58 |
<div class="relative w-16 h-16">
|
| 59 |
<svg class="w-full h-full" viewBox="0 0 36 36">
|
| 60 |
<path
|
|
|
|
| 78 |
</div>
|
| 79 |
</div>
|
| 80 |
<div class="ml-4">
|
| 81 |
+
<p class="font-medium">เป้าหมายรายสัปดาห์</p>
|
| 82 |
+
<p class="text-sm opacity-90">ทำครบ 3 จาก 5 วัน</p>
|
| 83 |
</div>
|
| 84 |
+
</div>
|
| 85 |
</div>
|
| 86 |
</section>
|
| 87 |
|
| 88 |
<!-- Quick Actions -->
|
| 89 |
<section class="mb-8">
|
| 90 |
+
<h3 class="text-lg font-semibold text-gray-800 mb-4">การกระทำด่วน</h3>
|
| 91 |
+
<div class="grid grid-cols-2 gap-4">
|
| 92 |
<div class="bg-white rounded-xl p-4 card-shadow">
|
| 93 |
<div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center text-blue-500 mb-3">
|
| 94 |
<i data-feather="heart"></i>
|
| 95 |
</div>
|
| 96 |
+
<h4 class="font-medium text-gray-800">สมาธิ</h4>
|
| 97 |
+
<p class="text-sm text-gray-500 mt-1">เซสชัน 5 นาที</p>
|
| 98 |
+
</div>
|
| 99 |
<div class="bg-white rounded-xl p-4 card-shadow">
|
| 100 |
<div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center text-green-500 mb-3">
|
| 101 |
<i data-feather="activity"></i>
|
| 102 |
</div>
|
| 103 |
+
<h4 class="font-medium text-gray-800">ออกกำลังกาย</h4>
|
| 104 |
+
<p class="text-sm text-gray-500 mt-1">กิจวัตร 15 นาที</p>
|
| 105 |
+
</div>
|
| 106 |
<div class="bg-white rounded-xl p-4 card-shadow">
|
| 107 |
<div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center text-purple-500 mb-3">
|
| 108 |
<i data-feather="book"></i>
|
| 109 |
</div>
|
| 110 |
+
<h4 class="font-medium text-gray-800">ไดอารี่</h4>
|
| 111 |
+
<p class="text-sm text-gray-500 mt-1">สะท้อนความคิดรายวัน</p>
|
| 112 |
+
</div>
|
| 113 |
<div class="bg-white rounded-xl p-4 card-shadow">
|
| 114 |
<div class="w-12 h-12 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-500 mb-3">
|
| 115 |
<i data-feather="droplet"></i>
|
| 116 |
</div>
|
| 117 |
+
<h4 class="font-medium text-gray-800">ดื่มน้ำ</h4>
|
| 118 |
+
<p class="text-sm text-gray-500 mt-1">บันทึกการดื่มน้ำ</p>
|
| 119 |
+
</div>
|
| 120 |
</div>
|
| 121 |
</section>
|
| 122 |
|
| 123 |
<!-- Today's Progress -->
|
| 124 |
<section class="mb-8">
|
| 125 |
<div class="flex justify-between items-center mb-4">
|
| 126 |
+
<h3 class="text-lg font-semibold text-gray-800">ความคืบหน้าวันนี้</h3>
|
| 127 |
+
<button class="text-indigo-600 text-sm font-medium">ดูทั้งหมด</button>
|
| 128 |
+
</div>
|
| 129 |
<div class="bg-white rounded-xl p-5 card-shadow">
|
| 130 |
<div class="flex justify-between mb-4">
|
| 131 |
<div>
|
| 132 |
+
<h4 class="font-medium text-gray-800">คะแนนสุขภาพ</h4>
|
| 133 |
<p class="text-2xl font-bold text-gray-900 mt-1">82</p>
|
| 134 |
</div>
|
| 135 |
<div class="text-right">
|
| 136 |
+
<p class="text-sm text-gray-500">เมื่อวาน</p>
|
| 137 |
<p class="text-sm font-medium text-gray-900">78</p>
|
| 138 |
</div>
|
| 139 |
+
</div>
|
| 140 |
<div class="h-32">
|
| 141 |
<canvas id="progressChart"></canvas>
|
| 142 |
</div>
|
|
|
|
| 145 |
|
| 146 |
<!-- Challenges -->
|
| 147 |
<section>
|
| 148 |
+
<h3 class="text-lg font-semibold text-gray-800 mb-4">กิจกรรมที่กำลังทำ</h3>
|
| 149 |
+
<div class="bg-white rounded-xl p-5 card-shadow">
|
| 150 |
<div class="flex items-center">
|
| 151 |
<div class="w-16 h-16 rounded-lg bg-gradient-to-r from-green-400 to-blue-500 flex items-center justify-center text-white">
|
| 152 |
<i data-feather="target"></i>
|
| 153 |
</div>
|
| 154 |
<div class="ml-4 flex-1">
|
| 155 |
+
<h4 class="font-medium text-gray-800">สมาธิ 7 วัน</h4>
|
| 156 |
+
<p class="text-sm text-gray-500 mt-1">วันที่ 3 จาก 7</p>
|
| 157 |
+
<div class="mt-2 w-full bg-gray-200 rounded-full h-2">
|
| 158 |
<div class="bg-gradient-to-r from-green-400 to-blue-500 h-2 rounded-full" style="width: 43%"></div>
|
| 159 |
</div>
|
| 160 |
</div>
|
| 161 |
</div>
|
| 162 |
<div class="mt-4 pt-4 border-t border-gray-100">
|
| 163 |
+
<button class="w-full py-3 bg-gradient-to-r from-purple-500 to-indigo-600 text-white rounded-lg font-medium">ดำเนินการต่อ</button>
|
| 164 |
</div>
|
| 165 |
+
</div>
|
| 166 |
</section>
|
| 167 |
</main>
|
| 168 |
|
|
|
|
| 172 |
<div class="flex justify-around">
|
| 173 |
<a href="#" class="flex flex-col items-center py-3 text-indigo-600 active-tab">
|
| 174 |
<i data-feather="home" class="w-5 h-5 mb-1"></i>
|
| 175 |
+
<span class="text-xs">หน้าหลัก</span>
|
| 176 |
</a>
|
| 177 |
+
<a href="progress.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 178 |
<i data-feather="bar-chart-2" class="w-5 h-5 mb-1"></i>
|
| 179 |
+
<span class="text-xs">ความคืบหน้า</span>
|
| 180 |
</a>
|
| 181 |
+
<a href="challenges.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 182 |
<i data-feather="calendar" class="w-5 h-5 mb-1"></i>
|
| 183 |
+
<span class="text-xs">กิจกรรม</span>
|
| 184 |
</a>
|
| 185 |
+
<a href="profile.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 186 |
<i data-feather="user" class="w-5 h-5 mb-1"></i>
|
| 187 |
+
<span class="text-xs">โปรไฟล์</span>
|
| 188 |
</a>
|
| 189 |
+
</div>
|
| 190 |
</div>
|
| 191 |
</nav>
|
| 192 |
|
profile.html
CHANGED
|
@@ -3,8 +3,8 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>
|
| 7 |
-
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
|
@@ -29,11 +29,11 @@
|
|
| 29 |
<header class="bg-white shadow-sm sticky top-0 z-10">
|
| 30 |
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
|
| 31 |
<div class="flex items-center">
|
| 32 |
-
<button class="p-2 rounded-full text-gray-600">
|
| 33 |
<i data-feather="arrow-left"></i>
|
| 34 |
</button>
|
| 35 |
-
<h1 class="ml-2 text-xl font-bold text-gray-800">
|
| 36 |
-
|
| 37 |
<button class="p-2 rounded-full bg-gray-100 text-gray-600">
|
| 38 |
<i data-feather="settings"></i>
|
| 39 |
</button>
|
|
@@ -46,18 +46,18 @@
|
|
| 46 |
<div class="flex items-center">
|
| 47 |
<div class="w-20 h-20 rounded-full bg-gradient-to-r from-purple-500 to-indigo-600 flex items-center justify-center text-white text-2xl font-bold">S</div>
|
| 48 |
<div class="ml-6">
|
| 49 |
-
<h2 class="text-2xl font-bold text-gray-800">
|
| 50 |
-
<p class="text-gray-500 mt-1">
|
| 51 |
-
|
| 52 |
<div class="flex items-center">
|
| 53 |
<i data-feather="star" class="w-4 h-4 text-yellow-400"></i>
|
| 54 |
-
<span class="ml-1 text-sm font-medium text-gray-700">1,240
|
| 55 |
</div>
|
| 56 |
<div class="flex items-center ml-4">
|
| 57 |
<i data-feather="award" class="w-4 h-4 text-blue-500"></i>
|
| 58 |
-
<span class="ml-1 text-sm font-medium text-gray-700">12
|
| 59 |
</div>
|
| 60 |
-
|
| 61 |
</div>
|
| 62 |
</div>
|
| 63 |
</div>
|
|
@@ -68,34 +68,34 @@
|
|
| 68 |
<div class="grid grid-cols-3 gap-4">
|
| 69 |
<div class="bg-white rounded-xl p-4 card-shadow text-center">
|
| 70 |
<p class="text-2xl font-bold text-gray-800">7</p>
|
| 71 |
-
<p class="text-sm text-gray-500 mt-1">
|
| 72 |
</div>
|
| 73 |
<div class="bg-white rounded-xl p-4 card-shadow text-center">
|
| 74 |
<p class="text-2xl font-bold text-gray-800">24</p>
|
| 75 |
-
<p class="text-sm text-gray-500 mt-1">
|
| 76 |
</div>
|
| 77 |
<div class="bg-white rounded-xl p-4 card-shadow text-center">
|
| 78 |
<p class="text-2xl font-bold text-gray-800">82</p>
|
| 79 |
-
<p class="text-sm text-gray-500 mt-1">
|
| 80 |
</div>
|
| 81 |
-
|
| 82 |
</section>
|
| 83 |
|
| 84 |
<!-- Preferences -->
|
| 85 |
<section class="container mx-auto px-4 mb-6">
|
| 86 |
<div class="bg-white rounded-xl p-5 card-shadow">
|
| 87 |
-
<h3 class="font-semibold text-gray-800 mb-4">
|
| 88 |
-
|
| 89 |
<div class="flex justify-between items-center pb-3 border-b border-gray-100">
|
| 90 |
<div class="flex items-center">
|
| 91 |
<div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-500">
|
| 92 |
<i data-feather="bell"></i>
|
| 93 |
</div>
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
</div>
|
| 98 |
</div>
|
|
|
|
| 99 |
<div class="relative inline-block w-10 mr-2 align-middle select-none">
|
| 100 |
<input type="checkbox" name="toggle" id="notifications" class="checked:bg-blue-500 outline-none focus:ring-0 rounded-full" checked>
|
| 101 |
<label for="notifications" class="block h-6 w-10 cursor-pointer rounded-full bg-gray-300"></label>
|
|
@@ -107,11 +107,11 @@
|
|
| 107 |
<div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center text-green-500">
|
| 108 |
<i data-feather="moon"></i>
|
| 109 |
</div>
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
</div>
|
| 114 |
</div>
|
|
|
|
| 115 |
<div class="relative inline-block w-10 mr-2 align-middle select-none">
|
| 116 |
<input type="checkbox" name="toggle" id="darkmode" class="checked:bg-blue-500 outline-none focus:ring-0 rounded-full">
|
| 117 |
<label for="darkmode" class="block h-6 w-10 cursor-pointer rounded-full bg-gray-300"></label>
|
|
@@ -123,11 +123,11 @@
|
|
| 123 |
<div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center text-purple-500">
|
| 124 |
<i data-feather="globe"></i>
|
| 125 |
</div>
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
</div>
|
| 130 |
</div>
|
|
|
|
| 131 |
<i data-feather="chevron-right" class="text-gray-400"></i>
|
| 132 |
</div>
|
| 133 |
</div>
|
|
@@ -137,17 +137,17 @@
|
|
| 137 |
<!-- Account -->
|
| 138 |
<section class="container mx-auto px-4 mb-6">
|
| 139 |
<div class="bg-white rounded-xl p-5 card-shadow">
|
| 140 |
-
<h3 class="font-semibold text-gray-800 mb-4">
|
| 141 |
-
|
| 142 |
<div class="flex items-center pb-3 border-b border-gray-100">
|
| 143 |
<div class="w-10 h-10 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-500">
|
| 144 |
<i data-feather="user"></i>
|
| 145 |
</div>
|
| 146 |
<div class="ml-4 flex-1">
|
| 147 |
-
<h4 class="font-medium text-gray-800">
|
| 148 |
-
<p class="text-sm text-gray-500">
|
| 149 |
</div>
|
| 150 |
-
|
| 151 |
</div>
|
| 152 |
|
| 153 |
<div class="flex items-center pb-3 border-b border-gray-100">
|
|
@@ -155,10 +155,10 @@
|
|
| 155 |
<i data-feather="lock"></i>
|
| 156 |
</div>
|
| 157 |
<div class="ml-4 flex-1">
|
| 158 |
-
<h4 class="font-medium text-gray-800">
|
| 159 |
-
<p class="text-sm text-gray-500">
|
| 160 |
</div>
|
| 161 |
-
|
| 162 |
</div>
|
| 163 |
|
| 164 |
<div class="flex items-center">
|
|
@@ -166,10 +166,10 @@
|
|
| 166 |
<i data-feather="log-out"></i>
|
| 167 |
</div>
|
| 168 |
<div class="ml-4 flex-1">
|
| 169 |
-
<h4 class="font-medium text-red-500">
|
| 170 |
-
<p class="text-sm text-gray-500">
|
| 171 |
</div>
|
| 172 |
-
|
| 173 |
</div>
|
| 174 |
</div>
|
| 175 |
</div>
|
|
@@ -181,21 +181,21 @@
|
|
| 181 |
<div class="flex justify-around">
|
| 182 |
<a href="index.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 183 |
<i data-feather="home" class="w-5 h-5 mb-1"></i>
|
| 184 |
-
<span class="text-xs">
|
| 185 |
</a>
|
| 186 |
<a href="progress.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 187 |
<i data-feather="bar-chart-2" class="w-5 h-5 mb-1"></i>
|
| 188 |
-
<span class="text-xs">
|
| 189 |
</a>
|
| 190 |
<a href="challenges.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 191 |
<i data-feather="calendar" class="w-5 h-5 mb-1"></i>
|
| 192 |
-
<span class="text-xs">
|
| 193 |
</a>
|
| 194 |
<a href="#" class="flex flex-col items-center py-3 text-indigo-600 active-tab">
|
| 195 |
<i data-feather="user" class="w-5 h-5 mb-1"></i>
|
| 196 |
-
<span class="text-xs">
|
| 197 |
</a>
|
| 198 |
-
|
| 199 |
</div>
|
| 200 |
</nav>
|
| 201 |
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>โปรไฟล์ - BetterMe</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
|
|
|
| 29 |
<header class="bg-white shadow-sm sticky top-0 z-10">
|
| 30 |
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
|
| 31 |
<div class="flex items-center">
|
| 32 |
+
<button class="p-2 rounded-full text-gray-600" onclick="window.location.href='index.html'">
|
| 33 |
<i data-feather="arrow-left"></i>
|
| 34 |
</button>
|
| 35 |
+
<h1 class="ml-2 text-xl font-bold text-gray-800">โปรไฟล์ของฉัน</h1>
|
| 36 |
+
</div>
|
| 37 |
<button class="p-2 rounded-full bg-gray-100 text-gray-600">
|
| 38 |
<i data-feather="settings"></i>
|
| 39 |
</button>
|
|
|
|
| 46 |
<div class="flex items-center">
|
| 47 |
<div class="w-20 h-20 rounded-full bg-gradient-to-r from-purple-500 to-indigo-600 flex items-center justify-center text-white text-2xl font-bold">S</div>
|
| 48 |
<div class="ml-6">
|
| 49 |
+
<h2 class="text-2xl font-bold text-gray-800">ซาร่า จอห์นสัน</h2>
|
| 50 |
+
<p class="text-gray-500 mt-1">เป็นสมาชิกตั้งแต่ ม.ค. 2023</p>
|
| 51 |
+
<div class="flex items-center mt-2">
|
| 52 |
<div class="flex items-center">
|
| 53 |
<i data-feather="star" class="w-4 h-4 text-yellow-400"></i>
|
| 54 |
+
<span class="ml-1 text-sm font-medium text-gray-700">1,240 คะแนน</span>
|
| 55 |
</div>
|
| 56 |
<div class="flex items-center ml-4">
|
| 57 |
<i data-feather="award" class="w-4 h-4 text-blue-500"></i>
|
| 58 |
+
<span class="ml-1 text-sm font-medium text-gray-700">12 เหรียญรางวัล</span>
|
| 59 |
</div>
|
| 60 |
+
</div>
|
| 61 |
</div>
|
| 62 |
</div>
|
| 63 |
</div>
|
|
|
|
| 68 |
<div class="grid grid-cols-3 gap-4">
|
| 69 |
<div class="bg-white rounded-xl p-4 card-shadow text-center">
|
| 70 |
<p class="text-2xl font-bold text-gray-800">7</p>
|
| 71 |
+
<p class="text-sm text-gray-500 mt-1">วันติดต่อกัน</p>
|
| 72 |
</div>
|
| 73 |
<div class="bg-white rounded-xl p-4 card-shadow text-center">
|
| 74 |
<p class="text-2xl font-bold text-gray-800">24</p>
|
| 75 |
+
<p class="text-sm text-gray-500 mt-1">ทำสำเร็จ</p>
|
| 76 |
</div>
|
| 77 |
<div class="bg-white rounded-xl p-4 card-shadow text-center">
|
| 78 |
<p class="text-2xl font-bold text-gray-800">82</p>
|
| 79 |
+
<p class="text-sm text-gray-500 mt-1">คะแนนสุขภาพ</p>
|
| 80 |
</div>
|
| 81 |
+
</div>
|
| 82 |
</section>
|
| 83 |
|
| 84 |
<!-- Preferences -->
|
| 85 |
<section class="container mx-auto px-4 mb-6">
|
| 86 |
<div class="bg-white rounded-xl p-5 card-shadow">
|
| 87 |
+
<h3 class="font-semibold text-gray-800 mb-4">การตั้งค่า</h3>
|
| 88 |
+
<div class="space-y-4">
|
| 89 |
<div class="flex justify-between items-center pb-3 border-b border-gray-100">
|
| 90 |
<div class="flex items-center">
|
| 91 |
<div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-500">
|
| 92 |
<i data-feather="bell"></i>
|
| 93 |
</div>
|
| 94 |
+
<div class="ml-4">
|
| 95 |
+
<h4 class="font-medium text-gray-800">การแจ้งเตือน</h4>
|
| 96 |
+
<p class="text-sm text-gray-500">การเตือนความจำและการแจ้งเตือน</p>
|
|
|
|
| 97 |
</div>
|
| 98 |
+
</div>
|
| 99 |
<div class="relative inline-block w-10 mr-2 align-middle select-none">
|
| 100 |
<input type="checkbox" name="toggle" id="notifications" class="checked:bg-blue-500 outline-none focus:ring-0 rounded-full" checked>
|
| 101 |
<label for="notifications" class="block h-6 w-10 cursor-pointer rounded-full bg-gray-300"></label>
|
|
|
|
| 107 |
<div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center text-green-500">
|
| 108 |
<i data-feather="moon"></i>
|
| 109 |
</div>
|
| 110 |
+
<div class="ml-4">
|
| 111 |
+
<h4 class="font-medium text-gray-800">โหมดกลางคืน</h4>
|
| 112 |
+
<p class="text-sm text-gray-500">เปลี่ยนเป็นธีมสีเข้ม</p>
|
|
|
|
| 113 |
</div>
|
| 114 |
+
</div>
|
| 115 |
<div class="relative inline-block w-10 mr-2 align-middle select-none">
|
| 116 |
<input type="checkbox" name="toggle" id="darkmode" class="checked:bg-blue-500 outline-none focus:ring-0 rounded-full">
|
| 117 |
<label for="darkmode" class="block h-6 w-10 cursor-pointer rounded-full bg-gray-300"></label>
|
|
|
|
| 123 |
<div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center text-purple-500">
|
| 124 |
<i data-feather="globe"></i>
|
| 125 |
</div>
|
| 126 |
+
<div class="ml-4">
|
| 127 |
+
<h4 class="font-medium text-gray-800">ภาษา</h4>
|
| 128 |
+
<p class="text-sm text-gray-500">ไทย</p>
|
|
|
|
| 129 |
</div>
|
| 130 |
+
</div>
|
| 131 |
<i data-feather="chevron-right" class="text-gray-400"></i>
|
| 132 |
</div>
|
| 133 |
</div>
|
|
|
|
| 137 |
<!-- Account -->
|
| 138 |
<section class="container mx-auto px-4 mb-6">
|
| 139 |
<div class="bg-white rounded-xl p-5 card-shadow">
|
| 140 |
+
<h3 class="font-semibold text-gray-800 mb-4">บัญชี</h3>
|
| 141 |
+
<div class="space-y-4">
|
| 142 |
<div class="flex items-center pb-3 border-b border-gray-100">
|
| 143 |
<div class="w-10 h-10 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-500">
|
| 144 |
<i data-feather="user"></i>
|
| 145 |
</div>
|
| 146 |
<div class="ml-4 flex-1">
|
| 147 |
+
<h4 class="font-medium text-gray-800">แก้ไขโปรไฟล์</h4>
|
| 148 |
+
<p class="text-sm text-gray-500">อัปเดตข้อมูลส่วนตัวของคุณ</p>
|
| 149 |
</div>
|
| 150 |
+
<i data-feather="chevron-right" class="text-gray-400"></i>
|
| 151 |
</div>
|
| 152 |
|
| 153 |
<div class="flex items-center pb-3 border-b border-gray-100">
|
|
|
|
| 155 |
<i data-feather="lock"></i>
|
| 156 |
</div>
|
| 157 |
<div class="ml-4 flex-1">
|
| 158 |
+
<h4 class="font-medium text-gray-800">ความปลอดภัย</h4>
|
| 159 |
+
<p class="text-sm text-gray-500">รหัสผ่านและการยืนยันตัวตน</p>
|
| 160 |
</div>
|
| 161 |
+
<i data-feather="chevron-right" class="text-gray-400"></i>
|
| 162 |
</div>
|
| 163 |
|
| 164 |
<div class="flex items-center">
|
|
|
|
| 166 |
<i data-feather="log-out"></i>
|
| 167 |
</div>
|
| 168 |
<div class="ml-4 flex-1">
|
| 169 |
+
<h4 class="font-medium text-red-500">ออกจากระบบ</h4>
|
| 170 |
+
<p class="text-sm text-gray-500">ลงชื่อออกจากบัญชีของคุณ</p>
|
| 171 |
</div>
|
| 172 |
+
<i data-feather="chevron-right" class="text-gray-400"></i>
|
| 173 |
</div>
|
| 174 |
</div>
|
| 175 |
</div>
|
|
|
|
| 181 |
<div class="flex justify-around">
|
| 182 |
<a href="index.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 183 |
<i data-feather="home" class="w-5 h-5 mb-1"></i>
|
| 184 |
+
<span class="text-xs">หน้าหลัก</span>
|
| 185 |
</a>
|
| 186 |
<a href="progress.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 187 |
<i data-feather="bar-chart-2" class="w-5 h-5 mb-1"></i>
|
| 188 |
+
<span class="text-xs">ความคืบหน้า</span>
|
| 189 |
</a>
|
| 190 |
<a href="challenges.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 191 |
<i data-feather="calendar" class="w-5 h-5 mb-1"></i>
|
| 192 |
+
<span class="text-xs">กิจกรรม</span>
|
| 193 |
</a>
|
| 194 |
<a href="#" class="flex flex-col items-center py-3 text-indigo-600 active-tab">
|
| 195 |
<i data-feather="user" class="w-5 h-5 mb-1"></i>
|
| 196 |
+
<span class="text-xs">โปรไฟล์</span>
|
| 197 |
</a>
|
| 198 |
+
</div>
|
| 199 |
</div>
|
| 200 |
</nav>
|
| 201 |
|
progress.html
CHANGED
|
@@ -3,8 +3,8 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>
|
| 7 |
-
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
|
@@ -30,11 +30,11 @@
|
|
| 30 |
<header class="bg-white shadow-sm sticky top-0 z-10">
|
| 31 |
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
|
| 32 |
<div class="flex items-center">
|
| 33 |
-
<button class="p-2 rounded-full text-gray-600">
|
| 34 |
<i data-feather="arrow-left"></i>
|
| 35 |
</button>
|
| 36 |
-
<h1 class="ml-2 text-xl font-bold text-gray-800">
|
| 37 |
-
|
| 38 |
<button class="p-2 rounded-full bg-gray-100 text-gray-600">
|
| 39 |
<i data-feather="more-vertical"></i>
|
| 40 |
</button>
|
|
@@ -51,40 +51,40 @@
|
|
| 51 |
<div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center text-blue-500">
|
| 52 |
<i data-feather="heart"></i>
|
| 53 |
</div>
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
</div>
|
| 58 |
</div>
|
|
|
|
| 59 |
</div>
|
| 60 |
<div class="bg-white rounded-xl p-5 card-shadow">
|
| 61 |
<div class="flex items-center">
|
| 62 |
<div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center text-green-500">
|
| 63 |
<i data-feather="award"></i>
|
| 64 |
</div>
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
</div>
|
| 69 |
</div>
|
|
|
|
| 70 |
</div>
|
| 71 |
</div>
|
| 72 |
</section>
|
| 73 |
|
| 74 |
<!-- Weekly Overview -->
|
| 75 |
<section class="mb-8">
|
| 76 |
-
<h3 class="text-lg font-semibold text-gray-800 mb-4">
|
| 77 |
-
|
| 78 |
<div class="flex justify-between mb-6">
|
| 79 |
<div>
|
| 80 |
-
<p class="text-sm text-gray-500">
|
| 81 |
<p class="text-2xl font-bold text-gray-900 mt-1">82</p>
|
| 82 |
</div>
|
| 83 |
<div class="text-right">
|
| 84 |
-
<p class="text-sm text-gray-500">
|
| 85 |
<p class="text-2xl font-bold text-gray-900 mt-1">78</p>
|
| 86 |
</div>
|
| 87 |
-
|
| 88 |
<div class="h-64">
|
| 89 |
<canvas id="weeklyChart"></canvas>
|
| 90 |
</div>
|
|
@@ -93,18 +93,18 @@
|
|
| 93 |
|
| 94 |
<!-- Monthly Progress -->
|
| 95 |
<section class="mb-8">
|
| 96 |
-
<h3 class="text-lg font-semibold text-gray-800 mb-4">
|
| 97 |
-
|
| 98 |
<div class="flex justify-between mb-4">
|
| 99 |
<div>
|
| 100 |
-
<p class="text-sm text-gray-500">
|
| 101 |
<p class="text-2xl font-bold text-gray-900 mt-1">76%</p>
|
| 102 |
</div>
|
| 103 |
<div class="text-right">
|
| 104 |
-
<p class="text-sm text-gray-500">
|
| 105 |
<p class="text-2xl font-bold text-gray-900 mt-1">80%</p>
|
| 106 |
</div>
|
| 107 |
-
|
| 108 |
<div class="h-64">
|
| 109 |
<canvas id="monthlyChart"></canvas>
|
| 110 |
</div>
|
|
@@ -113,26 +113,26 @@
|
|
| 113 |
|
| 114 |
<!-- Achievements -->
|
| 115 |
<section>
|
| 116 |
-
<h3 class="text-lg font-semibold text-gray-800 mb-4">
|
| 117 |
-
|
| 118 |
<div class="flex items-center mb-4">
|
| 119 |
<div class="w-12 h-12 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-500">
|
| 120 |
<i data-feather="star"></i>
|
| 121 |
</div>
|
| 122 |
<div class="ml-4">
|
| 123 |
-
<h4 class="font-medium text-gray-800">7
|
| 124 |
-
<p class="text-sm text-gray-500">
|
| 125 |
</div>
|
| 126 |
-
|
| 127 |
<div class="flex items-center">
|
| 128 |
<div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center text-purple-500">
|
| 129 |
<i data-feather="target"></i>
|
| 130 |
</div>
|
| 131 |
<div class="ml-4">
|
| 132 |
-
<h4 class="font-medium text-gray-800">
|
| 133 |
-
<p class="text-sm text-gray-500">
|
| 134 |
</div>
|
| 135 |
-
|
| 136 |
</div>
|
| 137 |
</section>
|
| 138 |
</main>
|
|
@@ -143,21 +143,21 @@
|
|
| 143 |
<div class="flex justify-around">
|
| 144 |
<a href="index.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 145 |
<i data-feather="home" class="w-5 h-5 mb-1"></i>
|
| 146 |
-
<span class="text-xs">
|
| 147 |
</a>
|
| 148 |
<a href="#" class="flex flex-col items-center py-3 text-indigo-600 active-tab">
|
| 149 |
<i data-feather="bar-chart-2" class="w-5 h-5 mb-1"></i>
|
| 150 |
-
<span class="text-xs">
|
| 151 |
</a>
|
| 152 |
<a href="challenges.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 153 |
<i data-feather="calendar" class="w-5 h-5 mb-1"></i>
|
| 154 |
-
<span class="text-xs">
|
| 155 |
</a>
|
| 156 |
<a href="profile.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 157 |
<i data-feather="user" class="w-5 h-5 mb-1"></i>
|
| 158 |
-
<span class="text-xs">
|
| 159 |
</a>
|
| 160 |
-
|
| 161 |
</div>
|
| 162 |
</nav>
|
| 163 |
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>ความคืบหน้า - BetterMe</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
|
|
|
| 30 |
<header class="bg-white shadow-sm sticky top-0 z-10">
|
| 31 |
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
|
| 32 |
<div class="flex items-center">
|
| 33 |
+
<button class="p-2 rounded-full text-gray-600" onclick="window.location.href='index.html'">
|
| 34 |
<i data-feather="arrow-left"></i>
|
| 35 |
</button>
|
| 36 |
+
<h1 class="ml-2 text-xl font-bold text-gray-800">ความคืบหน้าของฉัน</h1>
|
| 37 |
+
</div>
|
| 38 |
<button class="p-2 rounded-full bg-gray-100 text-gray-600">
|
| 39 |
<i data-feather="more-vertical"></i>
|
| 40 |
</button>
|
|
|
|
| 51 |
<div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center text-blue-500">
|
| 52 |
<i data-feather="heart"></i>
|
| 53 |
</div>
|
| 54 |
+
<div class="ml-4">
|
| 55 |
+
<p class="text-sm text-gray-500">วันติดต่อกัน</p>
|
| 56 |
+
<p class="text-2xl font-bold text-gray-900">7 วัน</p>
|
|
|
|
| 57 |
</div>
|
| 58 |
+
</div>
|
| 59 |
</div>
|
| 60 |
<div class="bg-white rounded-xl p-5 card-shadow">
|
| 61 |
<div class="flex items-center">
|
| 62 |
<div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center text-green-500">
|
| 63 |
<i data-feather="award"></i>
|
| 64 |
</div>
|
| 65 |
+
<div class="ml-4">
|
| 66 |
+
<p class="text-sm text-gray-500">คะแนนรวม</p>
|
| 67 |
+
<p class="text-2xl font-bold text-gray-900">1,240</p>
|
|
|
|
| 68 |
</div>
|
| 69 |
+
</div>
|
| 70 |
</div>
|
| 71 |
</div>
|
| 72 |
</section>
|
| 73 |
|
| 74 |
<!-- Weekly Overview -->
|
| 75 |
<section class="mb-8">
|
| 76 |
+
<h3 class="text-lg font-semibold text-gray-800 mb-4">สัปดาห์นี้</h3>
|
| 77 |
+
<div class="bg-white rounded-xl p-5 card-shadow">
|
| 78 |
<div class="flex justify-between mb-6">
|
| 79 |
<div>
|
| 80 |
+
<p class="text-sm text-gray-500">คะแนนสุขภาพ</p>
|
| 81 |
<p class="text-2xl font-bold text-gray-900 mt-1">82</p>
|
| 82 |
</div>
|
| 83 |
<div class="text-right">
|
| 84 |
+
<p class="text-sm text-gray-500">สัปดาห์ที่แล้ว</p>
|
| 85 |
<p class="text-2xl font-bold text-gray-900 mt-1">78</p>
|
| 86 |
</div>
|
| 87 |
+
</div>
|
| 88 |
<div class="h-64">
|
| 89 |
<canvas id="weeklyChart"></canvas>
|
| 90 |
</div>
|
|
|
|
| 93 |
|
| 94 |
<!-- Monthly Progress -->
|
| 95 |
<section class="mb-8">
|
| 96 |
+
<h3 class="text-lg font-semibold text-gray-800 mb-4">ภาพรวมรายเดือน</h3>
|
| 97 |
+
<div class="bg-white rounded-xl p-5 card-shadow">
|
| 98 |
<div class="flex justify-between mb-4">
|
| 99 |
<div>
|
| 100 |
+
<p class="text-sm text-gray-500">อัตราการทำสำเร็จ</p>
|
| 101 |
<p class="text-2xl font-bold text-gray-900 mt-1">76%</p>
|
| 102 |
</div>
|
| 103 |
<div class="text-right">
|
| 104 |
+
<p class="text-sm text-gray-500">เป้าหมาย</p>
|
| 105 |
<p class="text-2xl font-bold text-gray-900 mt-1">80%</p>
|
| 106 |
</div>
|
| 107 |
+
</div>
|
| 108 |
<div class="h-64">
|
| 109 |
<canvas id="monthlyChart"></canvas>
|
| 110 |
</div>
|
|
|
|
| 113 |
|
| 114 |
<!-- Achievements -->
|
| 115 |
<section>
|
| 116 |
+
<h3 class="text-lg font-semibold text-gray-800 mb-4">รางวัลล่าสุด</h3>
|
| 117 |
+
<div class="bg-white rounded-xl p-5 card-shadow">
|
| 118 |
<div class="flex items-center mb-4">
|
| 119 |
<div class="w-12 h-12 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-500">
|
| 120 |
<i data-feather="star"></i>
|
| 121 |
</div>
|
| 122 |
<div class="ml-4">
|
| 123 |
+
<h4 class="font-medium text-gray-800">7 วันติดต่อกัน</h4>
|
| 124 |
+
<p class="text-sm text-gray-500">ทำสมาธิทุกวันเป็นเวลา 7 วัน</p>
|
| 125 |
</div>
|
| 126 |
+
</div>
|
| 127 |
<div class="flex items-center">
|
| 128 |
<div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center text-purple-500">
|
| 129 |
<i data-feather="target"></i>
|
| 130 |
</div>
|
| 131 |
<div class="ml-4">
|
| 132 |
+
<h4 class="font-medium text-gray-800">นกตื่นเช้า</h4>
|
| 133 |
+
<p class="text-sm text-gray-500">ทำกิจวัตรเช้าครบ 5 วันติดต่อกัน</p>
|
| 134 |
</div>
|
| 135 |
+
</div>
|
| 136 |
</div>
|
| 137 |
</section>
|
| 138 |
</main>
|
|
|
|
| 143 |
<div class="flex justify-around">
|
| 144 |
<a href="index.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 145 |
<i data-feather="home" class="w-5 h-5 mb-1"></i>
|
| 146 |
+
<span class="text-xs">หน้าหลัก</span>
|
| 147 |
</a>
|
| 148 |
<a href="#" class="flex flex-col items-center py-3 text-indigo-600 active-tab">
|
| 149 |
<i data-feather="bar-chart-2" class="w-5 h-5 mb-1"></i>
|
| 150 |
+
<span class="text-xs">ความคืบหน้า</span>
|
| 151 |
</a>
|
| 152 |
<a href="challenges.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 153 |
<i data-feather="calendar" class="w-5 h-5 mb-1"></i>
|
| 154 |
+
<span class="text-xs">กิจกรรม</span>
|
| 155 |
</a>
|
| 156 |
<a href="profile.html" class="flex flex-col items-center py-3 text-gray-500">
|
| 157 |
<i data-feather="user" class="w-5 h-5 mb-1"></i>
|
| 158 |
+
<span class="text-xs">โปรไฟล์</span>
|
| 159 |
</a>
|
| 160 |
+
</div>
|
| 161 |
</div>
|
| 162 |
</nav>
|
| 163 |
|