Spaces:
Running
Running
File size: 11,885 Bytes
8fa070e 066343e 8fa070e 066343e 8fa070e 066343e 8fa070e 066343e 8fa070e 066343e 8fa070e 066343e 8fa070e 066343e 8fa070e 066343e 8fa070e 066343e 8fa070e 066343e 8fa070e 066343e 8fa070e 066343e 8fa070e 066343e 8fa070e 066343e 8fa070e 066343e 8fa070e 066343e 8fa070e 066343e 8fa070e 066343e 8fa070e 066343e 8fa070e 066343e 8fa070e 066343e 8fa070e 066343e 8fa070e 066343e 8fa070e 066343e 8fa070e 066343e 8fa070e 21f471f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BetterMe - แอปสุขภาพ</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Poppins', sans-serif;
background-color: #f8f9fa;
}
.gradient-bg {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.card-shadow {
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.active-tab {
border-bottom: 3px solid #667eea;
}
.progress-ring__circle {
transition: stroke-dashoffset 0.35s;
transform: rotate(-90deg);
transform-origin: 50% 50%;
}
</style>
</head>
<body class="bg-gray-50">
<!-- Header -->
<header class="bg-white shadow-sm sticky top-0 z-10">
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
<div class="flex items-center">
<div class="w-10 h-10 rounded-full bg-gradient-to-r from-purple-500 to-indigo-600 flex items-center justify-center text-white font-bold">BM</div>
<h1 class="ml-3 text-xl font-bold text-gray-800">BetterMe</h1>
</div>
<div class="flex items-center space-x-4">
<button class="p-2 rounded-full bg-gray-100 text-gray-600">
<i data-feather="bell"></i>
</button>
<div class="w-8 h-8 rounded-full bg-gray-200"></div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="container mx-auto px-4 py-6">
<!-- Welcome Section -->
<section class="mb-8">
<div class="gradient-bg rounded-2xl p-6 text-white">
<h2 class="text-2xl font-bold">สวัสดีตอนเช้าค่ะ ซาร่า! ☀️</h2>
<p class="mt-2 opacity-90">พร้อมสำหรับการเดินทางสุขภาพรายวันของคุณแล้วหรือยัง?</p>
<div class="mt-4 flex items-center">
<div class="relative w-16 h-16">
<svg class="w-full h-full" viewBox="0 0 36 36">
<path
d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"
fill="none"
stroke="#eee"
stroke-width="3"></path>
<path
d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"
fill="none"
stroke="#fff"
stroke-width="3"
stroke-dasharray="70, 100"></path>
</svg>
<div class="absolute inset-0 flex items-center justify-center">
<span class="text-sm font-bold">70%</span>
</div>
</div>
<div class="ml-4">
<p class="font-medium">เป้าหมายรายสัปดาห์</p>
<p class="text-sm opacity-90">ทำครบ 3 จาก 5 วัน</p>
</div>
</div>
</div>
</section>
<!-- Quick Actions -->
<section class="mb-8">
<h3 class="text-lg font-semibold text-gray-800 mb-4">การกระทำด่วน</h3>
<div class="grid grid-cols-2 gap-4">
<div class="bg-white rounded-xl p-4 card-shadow">
<div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center text-blue-500 mb-3">
<i data-feather="heart"></i>
</div>
<h4 class="font-medium text-gray-800">สมาธิ</h4>
<p class="text-sm text-gray-500 mt-1">เซสชัน 5 นาที</p>
</div>
<div class="bg-white rounded-xl p-4 card-shadow">
<div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center text-green-500 mb-3">
<i data-feather="activity"></i>
</div>
<h4 class="font-medium text-gray-800">ออกกำลังกาย</h4>
<p class="text-sm text-gray-500 mt-1">กิจวัตร 15 นาที</p>
</div>
<div class="bg-white rounded-xl p-4 card-shadow">
<div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center text-purple-500 mb-3">
<i data-feather="book"></i>
</div>
<h4 class="font-medium text-gray-800">ไดอารี่</h4>
<p class="text-sm text-gray-500 mt-1">สะท้อนความคิดรายวัน</p>
</div>
<div class="bg-white rounded-xl p-4 card-shadow">
<div class="w-12 h-12 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-500 mb-3">
<i data-feather="droplet"></i>
</div>
<h4 class="font-medium text-gray-800">ดื่มน้ำ</h4>
<p class="text-sm text-gray-500 mt-1">บันทึกการดื่มน้ำ</p>
</div>
</div>
</section>
<!-- Today's Progress -->
<section class="mb-8">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-semibold text-gray-800">ความคืบหน้าวันนี้</h3>
<button class="text-indigo-600 text-sm font-medium">ดูทั้งหมด</button>
</div>
<div class="bg-white rounded-xl p-5 card-shadow">
<div class="flex justify-between mb-4">
<div>
<h4 class="font-medium text-gray-800">คะแนนสุขภาพ</h4>
<p class="text-2xl font-bold text-gray-900 mt-1">82</p>
</div>
<div class="text-right">
<p class="text-sm text-gray-500">เมื่อวาน</p>
<p class="text-sm font-medium text-gray-900">78</p>
</div>
</div>
<div class="h-32">
<canvas id="progressChart"></canvas>
</div>
</div>
</section>
<!-- Challenges -->
<section>
<h3 class="text-lg font-semibold text-gray-800 mb-4">กิจกรรมที่กำลังทำ</h3>
<div class="bg-white rounded-xl p-5 card-shadow">
<div class="flex items-center">
<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">
<i data-feather="target"></i>
</div>
<div class="ml-4 flex-1">
<h4 class="font-medium text-gray-800">สมาธิ 7 วัน</h4>
<p class="text-sm text-gray-500 mt-1">วันที่ 3 จาก 7</p>
<div class="mt-2 w-full bg-gray-200 rounded-full h-2">
<div class="bg-gradient-to-r from-green-400 to-blue-500 h-2 rounded-full" style="width: 43%"></div>
</div>
</div>
</div>
<div class="mt-4 pt-4 border-t border-gray-100">
<button class="w-full py-3 bg-gradient-to-r from-purple-500 to-indigo-600 text-white rounded-lg font-medium">ดำเนินการต่อ</button>
</div>
</div>
</section>
</main>
<!-- Bottom Navigation -->
<nav class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200">
<div class="container mx-auto px-4">
<div class="flex justify-around">
<a href="#" class="flex flex-col items-center py-3 text-indigo-600 active-tab">
<i data-feather="home" class="w-5 h-5 mb-1"></i>
<span class="text-xs">หน้าหลัก</span>
</a>
<a href="progress.html" class="flex flex-col items-center py-3 text-gray-500">
<i data-feather="bar-chart-2" class="w-5 h-5 mb-1"></i>
<span class="text-xs">ความคืบหน้า</span>
</a>
<a href="challenges.html" class="flex flex-col items-center py-3 text-gray-500">
<i data-feather="calendar" class="w-5 h-5 mb-1"></i>
<span class="text-xs">กิจกรรม</span>
</a>
<a href="profile.html" class="flex flex-col items-center py-3 text-gray-500">
<i data-feather="user" class="w-5 h-5 mb-1"></i>
<span class="text-xs">โปรไฟล์</span>
</a>
</div>
</div>
</nav>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
// Initialize Feather Icons
feather.replace();
// Chart initialization
const ctx = document.getElementById('progressChart').getContext('2d');
const progressChart = new Chart(ctx, {
type: 'line',
data: {
labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
datasets: [{
label: 'Wellness Score',
data: [72, 75, 78, 80, 82, 81, 82],
borderColor: '#667eea',
backgroundColor: 'rgba(102, 126, 234, 0.1)',
borderWidth: 3,
pointBackgroundColor: '#fff',
pointBorderWidth: 3,
pointRadius: 5,
pointHoverRadius: 7,
fill: true,
tension: 0.4
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
display: false
}
},
scales: {
y: {
beginAtZero: false,
min: 70,
max: 90,
grid: {
display: false
},
ticks: {
display: false
}
},
x: {
grid: {
display: false
},
ticks: {
color: '#9ca3af'
}
}
}
}
});
</script>
</body>
</html>
|