Download full-report.html from CSNET/body-composition-comparator: direct link, hf CLI and curl.
- Browser
- Download file 25.5 kB
-
https://huggingface.co/spaces/CSNET/body-composition-comparator/resolve/main/full-report.html
- Command line
-
hf download hf://spaces/CSNET/body-composition-comparator/full-report.html
-
curl -L -o full-report.html https://huggingface.co/spaces/CSNET/body-composition-comparator/resolve/main/full-report.html
25.5 kB
| <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> |