File size: 25,480 Bytes
76f6988 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 | <!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>รายงานฉบับเต็ม - Body Composition Comparator</title>
<link rel="icon" type="image/x-icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>⚖️</text></svg>">
<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=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#6366f1',
secondary: '#8b5cf6',
accent: '#ec4899',
dark: '#1e293b',
light: '#f8fafc'
}
}
}
}
</script>
<style>
body {
font-family: 'Inter', sans-serif;
background: linear-gradient(135deg, #f0f4ff 0%, #fdf2f8 100%);
}
.report-card {
transition: all 0.3s ease;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.metric-value {
font-weight: 700;
font-size: 1.5rem;
}
.change-indicator {
display: inline-flex;
align-items: center;
padding: 0.25rem 0.5rem;
border-radius: 9999px;
font-size: 0.875rem;
font-weight: 600;
}
.positive {
background-color: #dcfce7;
color: #16a34a;
}
.negative {
background-color: #fee2e2;
color: #dc2626;
}
.neutral {
background-color: #e5e7eb;
color: #4b5563;
}
.print-button {
position: fixed;
bottom: 30px;
right: 30px;
z-index: 100;
}
</style>
</head>
<body class="min-h-screen">
<!-- Header -->
<header class="bg-white shadow-sm">
<div class="container mx-auto px-4 py-6 flex justify-between items-center">
<div class="flex items-center space-x-2">
<div class="bg-primary p-2 rounded-lg">
<i data-feather="file-text" class="text-white"></i>
</div>
<h1 class="text-2xl font-bold text-dark">รายงานฉบับเต็ม</h1>
</div>
<nav class="hidden md:flex space-x-6">
<a href="index.html" class="font-medium text-gray-500 hover:text-gray-700">หน้าหลัก</a>
<a href="#" class="font-medium text-primary hover:text-secondary">รายงาน</a>
<a href="#" class="font-medium text-gray-500 hover:text-gray-700">การวิเคราะห์</a>
<a href="#" class="font-medium text-gray-500 hover:text-gray-700">เกี่ยวกับ</a>
</nav>
</div>
</header>
<!-- Report Header -->
<section class="py-8 bg-gradient-to-r from-primary to-secondary text-white">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row justify-between items-center">
<div>
<h2 class="text-3xl font-bold mb-2">รายงานการเปรียบเทียบองค์ประกอบร่างกาย</h2>
<p class="text-indigo-100">ระหว่างวันที่ 15 มีนาคม 2023 ถึง 20 พฤษภาคม 2023</p>
</div>
<div class="mt-4 md:mt-0 text-center">
<div class="bg-white bg-opacity-20 rounded-xl p-4">
<div class="text-sm opacity-80">ระยะเวลา</div>
<div class="text-xl font-bold">66 วัน</div>
</div>
</div>
</div>
</div>
</section>
<!-- Summary Cards -->
<section class="py-12">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-12">
<!-- Overall Progress -->
<div class="report-card bg-white rounded-2xl p-6 text-center">
<div class="inline-block p-3 bg-blue-100 rounded-full mb-4">
<i data-feather="trending-up" class="text-blue-600 w-8 h-8"></i>
</div>
<h3 class="text-xl font-bold text-dark mb-2">ความคืบหน้าโดยรวม</h3>
<div class="text-3xl font-bold text-primary mb-2">78%</div>
<p class="text-gray-600">ของเป้าหมายที่กำหนด</p>
</div>
<!-- Body Fat Reduction -->
<div class="report-card bg-white rounded-2xl p-6 text-center">
<div class="inline-block p-3 bg-green-100 rounded-full mb-4">
<i data-feather="minus-circle" class="text-green-600 w-8 h-8"></i>
</div>
<h3 class="text-xl font-bold text-dark mb-2">การลดไขมัน</h3>
<div class="text-3xl font-bold text-green-600 mb-2">2.1%</div>
<p class="text-gray-600">ลดลงจากระดับปกติ</p>
</div>
<!-- Muscle Gain -->
<div class="report-card bg-white rounded-2xl p-6 text-center">
<div class="inline-block p-3 bg-purple-100 rounded-full mb-4">
<i data-feather="plus-circle" class="text-purple-600 w-8 h-8"></i>
</div>
<h3 class="text-xl font-bold text-dark mb-2">การเพิ่มกล้ามเนื้อ</h3>
<div class="text-3xl font-bold text-purple-600 mb-2">1.8%</div>
<p class="text-gray-600">เพิ่มขึ้นจากระดับก่อนหน้า</p>
</div>
</div>
<!-- Detailed Metrics -->
<div class="report-card bg-white rounded-2xl shadow-lg p-6 mb-12">
<h3 class="text-2xl font-bold text-dark mb-6">เมตริกโดยละเอียด</h3>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">ตัวชี้วัด</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">การวัดครั้งแรก</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">การวัดครั้งที่สอง</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">การเปลี่ยนแปลง</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">สถานะ</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">น้ำหนัก</td>
<td class="px-6 py-4 whitespace-nowrap">73.7 kg</td>
<td class="px-6 py-4 whitespace-nowrap">72.5 kg</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="change-indicator negative">
<i data-feather="arrow-down" class="w-4 h-4 mr-1"></i>
1.2 kg
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-green-600 font-medium">ดีขึ้น</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">ไขมันในร่างกาย</td>
<td class="px-6 py-4 whitespace-nowrap">20.6%</td>
<td class="px-6 py-4 whitespace-nowrap">18.5%</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="change-indicator positive">
<i data-feather="arrow-down" class="w-4 h-4 mr-1"></i>
2.1%
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-green-600 font-medium">ดีขึ้น</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">มวลกล้ามเนื้อ</td>
<td class="px-6 py-4 whitespace-nowrap">56.4%</td>
<td class="px-6 py-4 whitespace-nowrap">58.2%</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="change-indicator positive">
<i data-feather="arrow-up" class="w-4 h-4 mr-1"></i>
1.8%
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-green-600 font-medium">ดีขึ้น</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">น้ำในร่างกาย</td>
<td class="px-6 py-4 whitespace-nowrap">58.3%</td>
<td class="px-6 py-4 whitespace-nowrap">59.1%</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="change-indicator positive">
<i data-feather="arrow-up" class="w-4 h-4 mr-1"></i>
0.8%
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-green-600 font-medium">ดีขึ้น</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">มวลกระดูก</td>
<td class="px-6 py-4 whitespace-nowrap">3.2 kg</td>
<td class="px-6 py-4 whitespace-nowrap">3.3 kg</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="change-indicator positive">
<i data-feather="arrow-up" class="w-4 h-4 mr-1"></i>
0.1 kg
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-green-600 font-medium">ดีขึ้น</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">โปรตีนในร่างกาย</td>
<td class="px-6 py-4 whitespace-nowrap">18.7%</td>
<td class="px-6 py-4 whitespace-nowrap">19.2%</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="change-indicator positive">
<i data-feather="arrow-up" class="w-4 h-4 mr-1"></i>
0.5%
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-green-600 font-medium">ดีขึ้น</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">ดัชนีมวลกาย (BMI)</td>
<td class="px-6 py-4 whitespace-nowrap">24.5</td>
<td class="px-6 py-4 whitespace-nowrap">24.1</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="change-indicator neutral">
0.4
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-yellow-600 font-medium">คงที่</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Charts Section -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-12">
<!-- Body Composition Chart -->
<div class="report-card bg-white rounded-2xl shadow-lg p-6">
<h3 class="text-xl font-bold text-dark mb-4">ส่วนประกอบร่างกาย</h3>
<canvas id="compositionChart" height="300"></canvas>
</div>
<!-- Progress Over Time -->
<div class="report-card bg-white rounded-2xl shadow-lg p-6">
<h3 class="text-xl font-bold text-dark mb-4">ความคืบหน้าตามช่วงเวลา</h3>
<canvas id="progressChart" height="300"></canvas>
</div>
</div>
<!-- Recommendations -->
<div class="report-card bg-gradient-to-r from-accent to-secondary rounded-2xl shadow-lg p-8 text-white mb-12">
<h3 class="text-2xl font-bold mb-4">คำแนะนำเฉพาะบุคคล</h3>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="bg-white bg-opacity-20 rounded-xl p-5">
<div class="inline-block p-2 bg-white bg-opacity-30 rounded-full mb-3">
<i data-feather="activity" class="w-6 h-6"></i>
</div>
<h4 class="font-bold text-lg mb-2">การออกกำลังกาย</h4>
<p class="opacity-90">แนะนำให้เพิ่มการฝึกความแข็งแรง 2 ครั้งต่อสัปดาห์เพื่อรักษามวลกล้ามเนื้อ</p>
</div>
<div class="bg-white bg-opacity-20 rounded-xl p-5">
<div class="inline-block p-2 bg-white bg-opacity-30 rounded-full mb-3">
<i data-feather="coffee" class="w-6 h-6"></i>
</div>
<h4 class="font-bold text-lg mb-2">โภชนาการ</h4>
<p class="opacity-90">เพิ่มโปรตีนอีก 20 กรัมต่อวันเพื่อสนับสนุนการฟื้นฟูกล้ามเนื้อ</p>
</div>
<div class="bg-white bg-opacity-20 rounded-xl p-5">
<div class="inline-block p-2 bg-white bg-opacity-30 rounded-full mb-3">
<i data-feather="moon" class="w-6 h-6"></i>
</div>
<h4 class="font-bold text-lg mb-2">การพักผ่อน</h4>
<p class="opacity-90">รักษาเวลาการนอนอย่างสม่ำเสมอ 7-8 ชั่วโมงต่อคืน</p>
</div>
</div>
</div>
<!-- Next Goals -->
<div class="report-card bg-white rounded-2xl shadow-lg p-6">
<h3 class="text-2xl font-bold text-dark mb-6">เป้าหมายถัดไป</h3>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div class="border border-gray-200 rounded-xl p-5">
<div class="flex justify-between items-start mb-3">
<h4 class="font-bold text-lg text-dark">ลดไขมันให้ได้อีก 2%</h4>
<span class="bg-blue-100 text-blue-800 text-sm font-medium px-2 py-1 rounded-full">60%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2.5 mb-3">
<div class="bg-blue-600 h-2.5 rounded-full" style="width: 60%"></div>
</div>
<p class="text-gray-600">ประมาณ 8 สัปดาห์หากคงพฤติกรรมเดิม</p>
</div>
<div class="border border-gray-200 rounded-xl p-5">
<div class="flex justify-between items-start mb-3">
<h4 class="font-bold text-lg text-dark">เพิ่มมวลกล้ามเนื้ออีก 1.5%</h4>
<span class="bg-purple-100 text-purple-800 text-sm font-medium px-2 py-1 rounded-full">40%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2.5 mb-3">
<div class="bg-purple-600 h-2.5 rounded-full" style="width: 40%"></div>
</div>
<p class="text-gray-600">แนะนำการฝึกแบบ progressive overload</p>
</div>
</div>
</div>
</div>
</section>
<!-- Print Button -->
<div class="print-button">
<button onclick="window.print()" class="bg-primary hover:bg-secondary text-white font-bold py-3 px-6 rounded-full shadow-lg flex items-center">
<i data-feather="printer" class="mr-2"></i>
พิมพ์รายงาน
</button>
</div>
<!-- Footer -->
<footer class="bg-dark text-light py-12">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h4 class="text-xl font-bold mb-4">Body Composition Comparator</h4>
<p class="text-gray-400">เครื่องมือเปรียบเทียบผลการวิเคราะห์องค์ประกอบร่างกายอย่างแม่นยำ</p>
</div>
<div>
<h5 class="font-bold mb-4">ลิงก์</h5>
<ul class="space-y-2 text-gray-400">
<li><a href="index.html" class="hover:text-white transition">หน้าแรก</a></li>
<li><a href="#" class="hover:text-white transition">เกี่ยวกับเรา</a></li>
<li><a href="#" class="hover:text-white transition">บริการ</a></li>
<li><a href="#" class="hover:text-white transition">ติดต่อ</a></li>
</ul>
</div>
<div>
<h5 class="font-bold mb-4">บริการ</h5>
<ul class="space-y-2 text-gray-400">
<li><a href="#" class="hover:text-white transition">การวิเคราะห์องค์ประกอบร่างกาย</a></li>
<li><a href="#" class="hover:text-white transition">ติดตามความคืบหน้า</a></li>
<li><a href="#" class="hover:text-white transition">วางแผนสุขภาพ</a></li>
<li><a href="#" class="hover:text-white transition">รายงานผล</a></li>
</ul>
</div>
<div>
<h5 class="font-bold mb-4">ติดต่อเรา</h5>
<ul class="space-y-2 text-gray-400">
<li class="flex items-start">
<i data-feather="mail" class="w-5 h-5 mr-2 mt-1"></i>
<span>contact@bodycomp.com</span>
</li>
<li class="flex items-start">
<i data-feather="phone" class="w-5 h-5 mr-2 mt-1"></i>
<span>+66 123 456 789</span>
</li>
<li class="flex items-start">
<i data-feather="map-pin" class="w-5 h-5 mr-2 mt-1"></i>
<span>กรุงเทพฯ, ประเทศไทย</span>
</li>
</ul>
</div>
</div>
<div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-500">
<p>© 2023 Body Composition Comparator. สงวนลิขสิทธิ์.</p>
</div>
</div>
</footer>
<script>
feather.replace();
// Composition Chart
document.addEventListener('DOMContentLoaded', function() {
const compCtx = document.getElementById('compositionChart').getContext('2d');
const compositionChart = new Chart(compCtx, {
type: 'doughnut',
data: {
labels: ['ไขมัน', 'กล้ามเนื้อ', 'น้ำ', 'กระดูก', 'โปรตีน'],
datasets: [{
data: [18.5, 58.2, 59.1, 3.3, 19.2],
backgroundColor: [
'#ef4444',
'#8b5cf6',
'#3b82f6',
'#f59e0b',
'#10b981'
],
borderWidth: 0
}]
},
options: {
responsive: true,
plugins: {
legend: {
position: 'bottom',
}
},
cutout: '60%'
}
});
// Progress Chart
const progressCtx = document.getElementById('progressChart').getContext('2d');
const progressChart = new Chart(progressCtx, {
type: 'line',
data: {
labels: ['มี.ค', 'เม.ย', 'พ.ค'],
datasets: [
{
label: 'ไขมัน (%)',
data: [22.1, 20.6, 18.5],
borderColor: '#ef4444',
backgroundColor: 'rgba(239, 68, 68, 0.1)',
tension: 0.3,
fill: true
},
{
label: 'กล้ามเนื้อ (%)',
data: [55.1, 56.4, 58.2],
borderColor: '#8b5cf6',
backgroundColor: 'rgba(139, 92, 246, 0.1)',
tension: 0.3,
fill: true
}
]
},
options: {
responsive: true,
plugins: {
legend: {
position: 'top',
}
},
scales: {
y: {
beginAtZero: false,
grid: {
color: 'rgba(0, 0, 0, 0.05)'
}
},
x: {
grid: {
display: false
}
}
}
}
});
});
</script>
</body>
</html> |