Spaces:
Running
Running
File size: 7,859 Bytes
41eab66 | 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 | <!DOCTYPE html>
<html lang="th" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>พลังกายพร้อมรบ - Thai Health Edge</title>
<link rel="icon" type="image/x-icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🌶️</text></svg>">
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
primary: '#f97316',
secondary: '#14b8a6',
darkBg: '#111827',
cardBg: '#1f2937',
textPrimary: '#f9fafb',
textSecondary: '#9ca3af'
}
}
}
}
</script>
</head>
<body class="bg-darkBg text-textPrimary min-h-screen">
<nav-component></nav-component>
<main class="container mx-auto px-4 py-8 max-w-7xl">
<!-- Header Section -->
<header class="mb-8 text-center">
<h1 class="text-4xl font-bold text-primary mb-2">พลังกายพร้อมรบ</h1>
<p class="text-textSecondary">การวิเคราะห์สุขภาพแบบองค์รวมสำหรับคนไทย</p>
<p class="text-sm text-textSecondary mt-2">ข้อมูล 30 วันสุดท้าย | อัพเดทล่าสุด: <span id="lastUpdate"></span></p>
</header>
<!-- Tab Navigation -->
<div class="flex flex-wrap justify-center mb-8 gap-2">
<button onclick="showSection('dashboard')" class="tab-btn active px-6 py-3 rounded-full bg-secondary text-white font-medium transition-all">
<i data-feather="activity" class="inline mr-2"></i>แดชบอร์ด
</button>
<button onclick="showSection('sleep')" class="tab-btn px-6 py-3 rounded-full bg-cardBg text-textPrimary font-medium transition-all hover:bg-secondary">
<i data-feather="moon" class="inline mr-2"></i>การนอนหลับ
</button>
<button onclick="showSection('journal')" class="tab-btn px-6 py-3 rounded-full bg-cardBg text-textPrimary font-medium transition-all hover:bg-secondary">
<i data-feather="edit-3" class="inline mr-2"></i>บันทึกพฤติกรรม
</button>
<button onclick="showSection('trends')" class="tab-btn px-6 py-3 rounded-full bg-cardBg text-textPrimary font-medium transition-all hover:bg-secondary">
<i data-feather="trending-up" class="inline mr-2"></i>แนวโน้ม
</button>
</div>
<!-- Dashboard Section -->
<section id="dashboard-section" class="content-section">
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8">
<!-- Main Score Card -->
<score-card id="main-score" class="lg:col-span-2"></score-card>
<!-- Environmental Alerts -->
<div class="space-y-4">
<div class="bg-cardBg rounded-2xl p-6 border-l-4 border-primary">
<h3 class="text-lg font-semibold mb-3 flex items-center">
<i data-feather="alert-triangle" class="w-5 h-5 mr-2 text-primary"></i>
สภาพแวดล้อมวันนี้
</h3>
<div id="environmental-warnings" class="space-y-3 text-sm text-textSecondary">
<!-- Dynamic content -->
</div>
</div>
<div class="bg-cardBg rounded-2xl p-6">
<h3 class="text-lg font-semibold mb-3 flex items-center">
<i data-feather="target" class="w-5 h-5 mr-2 text-secondary"></i>
คำแนะนำวันนี้
</h3>
<div id="daily-suggestions" class="space-y-3 text-sm text-textSecondary">
<!-- Dynamic content -->
</div>
</div>
</div>
</div>
<!-- HRV & Stress Chart -->
<div class="bg-cardBg rounded-2xl p-6 mb-8">
<h3 class="text-xl font-semibold mb-4">ความผันผวนของหัวใจ vs ความเครียด</h3>
<div class="h-64">
<canvas id="hrvChart"></canvas>
</div>
</div>
</section>
<!-- Sleep Section -->
<section id="sleep-section" class="content-section hidden">
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
<sleep-analytics-card></sleep-analytics-card>
<div class="space-y-6">
<div class="bg-cardBg rounded-2xl p-6">
<h3 class="text-lg font-semibold mb-4">สถานะการหายใจ</h3>
<div id="respiratory-status" class="space-y-4">
<!-- Dynamic content -->
</div>
</div>
<div class="bg-cardBg rounded-2xl p-6">
<h3 class="text-lg font-semibold mb-4">อาหารที่มีผลต่อการนอน</h3>
<div id="food-impact-sleep" class="space-y-4">
<!-- Dynamic content -->
</div>
</div>
</div>
</div>
</section>
<!-- Journal Section -->
<section id="journal-section" class="content-section hidden">
<journal-form></journal-form>
</section>
<!-- Trends Section -->
<section id="trends-section" class="content-section hidden">
<trends-chart></trends-chart>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mt-8">
<div class="bg-cardBg rounded-2xl p-6">
<h3 class="text-lg font-semibold mb-4">ผลกระทบของโภชนาการ</h3>
<div id="nutrition-matrix" class="space-y-4">
<!-- Dynamic content -->
</div>
</div>
<div class="bg-cardBg rounded-2xl p-6">
<h3 class="text-lg font-semibold mb-4">รายงานฤดูกาล</h3>
<div id="seasonal-report" class="space-y-4 text-textSecondary text-sm">
<!-- Dynamic content -->
</div>
</div>
</div>
</section>
</main>
<footer-component></footer-component>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="components/score-card.js"></script>
<script src="components/sleep-chart.js"></script>
<script src="components/journal-form.js"></script>
<script src="components/trends-chart.js"></script>
<script src="script.js"></script>
<script>feather.replace();</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html> |