CSNET commited on
Commit
192b91d
·
verified ·
1 Parent(s): feb7fff

ตรงค่า Sleepscore HRV ความเครียด ไขมัน BMR และ ไขมัน ViseralFat อยากให้มีลูกเล่น background สี ให้เห็นว่าค่านี้คือปลอดภัย ดี หรือไม่ปลอดภัย อันตราย

Browse files
Files changed (2) hide show
  1. index.html +32 -32
  2. style.css +66 -2
index.html CHANGED
@@ -132,56 +132,56 @@
132
 
133
  <!-- Summary Cards -->
134
  <div class="grid grid-cols-2 gap-3 mb-6">
135
- <div class="bg-white rounded-xl p-4 shadow-sm">
136
  <div class="flex items-center justify-between mb-2">
137
- <i data-feather="moon" class="w-5 h-5 text-purple-500"></i>
138
- <span class="text-xs text-gray-500">คืนนี้</span>
139
  </div>
140
- <div class="text-2xl font-bold">85</div>
141
- <div class="text-xs text-gray-500">Sleep Score</div>
142
  </div>
143
- <div class="bg-white rounded-xl p-4 shadow-sm">
144
  <div class="flex items-center justify-between mb-2">
145
- <i data-feather="activity" class="w-5 h-5 text-red-500"></i>
146
- <span class="text-xs text-gray-500">วันนี้</span>
147
  </div>
148
- <div class="text-2xl font-bold">52</div>
149
- <div class="text-xs text-gray-500">HRV (ms)</div>
150
  </div>
151
- <div class="bg-white rounded-xl p-4 shadow-sm">
152
  <div class="flex items-center justify-between mb-2">
153
- <i data-feather="zap" class="w-5 h-5 text-yellow-500"></i>
154
- <span class="text-xs text-gray-500">ปัจจุบัน</span>
155
  </div>
156
- <div class="text-2xl font-bold">35</div>
157
- <div class="text-xs text-gray-500">ความเครียด</div>
158
  </div>
159
- <div class="bg-white rounded-xl p-4 shadow-sm">
160
  <div class="flex items-center justify-between mb-2">
161
- <i data-feather="layers" class="w-5 h-5 text-orange-500"></i>
162
- <span class="text-xs text-gray-500">สัปดาห์นี้</span>
163
  </div>
164
- <div class="text-2xl font-bold">18.5%</div>
165
- <div class="text-xs text-gray-500">ไขมัน (%)</div>
166
  </div>
167
- <div class="bg-white rounded-xl p-4 shadow-sm">
168
  <div class="flex items-center justify-between mb-2">
169
- <i data-feather="thermometer" class="w-5 h-5 text-blue-500"></i>
170
- <span class="text-xs text-gray-500">วันนี้</span>
171
  </div>
172
- <div class="text-2xl font-bold">1,650</div>
173
- <div class="text-xs text-gray-500">BMR (kcal)</div>
174
  </div>
175
- <div class="bg-white rounded-xl p-4 shadow-sm">
176
  <div class="flex items-center justify-between mb-2">
177
- <i data-feather="alert-circle" class="w-5 h-5 text-red-500"></i>
178
- <span class="text-xs text-gray-500">เดือนนี้</span>
179
  </div>
180
- <div class="text-2xl font-bold">8</div>
181
- <div class="text-xs text-gray-500">ไขมันในอวัยวะ</div>
182
  </div>
183
  </div>
184
- </section>
185
 
186
  <!-- AI Analysis Section -->
187
  <section id="ai-analysis" class="container mx-auto px-4 py-6">
@@ -575,6 +575,6 @@
575
 
576
  <script src="script.js"></script>
577
  <script>feather.replace();</script>
578
- <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
579
  </body>
580
  </html>
 
132
 
133
  <!-- Summary Cards -->
134
  <div class="grid grid-cols-2 gap-3 mb-6">
135
+ <div class="bg-green-50 border-2 border-green-200 rounded-xl p-4 shadow-sm">
136
  <div class="flex items-center justify-between mb-2">
137
+ <i data-feather="moon" class="w-5 h-5 text-green-600"></i>
138
+ <span class="text-xs bg-green-100 text-green-700 px-2 py-1 rounded-full font-medium">ดีมาก</span>
139
  </div>
140
+ <div class="text-2xl font-bold text-green-700">85</div>
141
+ <div class="text-xs text-green-600">Sleep Score</div>
142
  </div>
143
+ <div class="bg-yellow-50 border-2 border-yellow-200 rounded-xl p-4 shadow-sm">
144
  <div class="flex items-center justify-between mb-2">
145
+ <i data-feather="activity" class="w-5 h-5 text-yellow-600"></i>
146
+ <span class="text-xs bg-yellow-100 text-yellow-700 px-2 py-1 rounded-full font-medium">ปานกลาง</span>
147
  </div>
148
+ <div class="text-2xl font-bold text-yellow-700">52</div>
149
+ <div class="text-xs text-yellow-600">HRV (ms)</div>
150
  </div>
151
+ <div class="bg-green-50 border-2 border-green-200 rounded-xl p-4 shadow-sm">
152
  <div class="flex items-center justify-between mb-2">
153
+ <i data-feather="zap" class="w-5 h-5 text-green-600"></i>
154
+ <span class="text-xs bg-green-100 text-green-700 px-2 py-1 rounded-full font-medium">ปกติ</span>
155
  </div>
156
+ <div class="text-2xl font-bold text-green-700">35</div>
157
+ <div class="text-xs text-green-600">ความเครียด</div>
158
  </div>
159
+ <div class="bg-orange-50 border-2 border-orange-200 rounded-xl p-4 shadow-sm">
160
  <div class="flex items-center justify-between mb-2">
161
+ <i data-feather="layers" class="w-5 h-5 text-orange-600"></i>
162
+ <span class="text-xs bg-orange-100 text-orange-700 px-2 py-1 rounded-full font-medium">สูงเล็กน้อย</span>
163
  </div>
164
+ <div class="text-2xl font-bold text-orange-700">18.5%</div>
165
+ <div class="text-xs text-orange-600">ไขมัน (%)</div>
166
  </div>
167
+ <div class="bg-green-50 border-2 border-green-200 rounded-xl p-4 shadow-sm">
168
  <div class="flex items-center justify-between mb-2">
169
+ <i data-feather="thermometer" class="w-5 h-5 text-green-600"></i>
170
+ <span class="text-xs bg-green-100 text-green-700 px-2 py-1 rounded-full font-medium">ปกติ</span>
171
  </div>
172
+ <div class="text-2xl font-bold text-green-700">1,650</div>
173
+ <div class="text-xs text-green-600">BMR (kcal)</div>
174
  </div>
175
+ <div class="bg-red-50 border-2 border-red-200 rounded-xl p-4 shadow-sm">
176
  <div class="flex items-center justify-between mb-2">
177
+ <i data-feather="alert-circle" class="w-5 h-5 text-red-600"></i>
178
+ <span class="text-xs bg-red-100 text-red-700 px-2 py-1 rounded-full font-medium">อันตราย</span>
179
  </div>
180
+ <div class="text-2xl font-bold text-red-700">8</div>
181
+ <div class="text-xs text-red-600">ไขมันในอวัยวะ</div>
182
  </div>
183
  </div>
184
+ </section>
185
 
186
  <!-- AI Analysis Section -->
187
  <section id="ai-analysis" class="container mx-auto px-4 py-6">
 
575
 
576
  <script src="script.js"></script>
577
  <script>feather.replace();</script>
578
+
579
  </body>
580
  </html>
style.css CHANGED
@@ -50,7 +50,6 @@
50
  ::-webkit-scrollbar-thumb:hover {
51
  background: #81C784;
52
  }
53
-
54
  /* Touch friendly buttons */
55
  .touch-target {
56
  min-height: 44px;
@@ -64,4 +63,69 @@
64
 
65
  .safe-area-bottom {
66
  padding-bottom: env(safe-area-inset-bottom);
67
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  ::-webkit-scrollbar-thumb:hover {
51
  background: #81C784;
52
  }
 
53
  /* Touch friendly buttons */
54
  .touch-target {
55
  min-height: 44px;
 
63
 
64
  .safe-area-bottom {
65
  padding-bottom: env(safe-area-inset-bottom);
66
+ }
67
+
68
+ /* Health status indicators */
69
+ .health-status-excellent {
70
+ background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
71
+ border-color: #28a745;
72
+ }
73
+
74
+ .health-status-good {
75
+ background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
76
+ border-color: #17a2b8;
77
+ }
78
+
79
+ .health-status-moderate {
80
+ background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
81
+ border-color: #ffc107;
82
+ }
83
+
84
+ .health-status-warning {
85
+ background: linear-gradient(135deg, #fff0cd 0%, #ffd93d 100%);
86
+ border-color: #ff9800;
87
+ }
88
+
89
+ .health-status-danger {
90
+ background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
91
+ border-color: #dc3545;
92
+ }
93
+
94
+ .health-safe-pulse {
95
+ animation: safePulse 2s infinite;
96
+ }
97
+
98
+ @keyframes safePulse {
99
+ 0%, 100% {
100
+ box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
101
+ }
102
+ 50% {
103
+ box-shadow: 0 0 0 8px rgba(40, 167, 69, 0);
104
+ }
105
+ }
106
+
107
+ .health-warning-pulse {
108
+ animation: warningPulse 2s infinite;
109
+ }
110
+
111
+ @keyframes warningPulse {
112
+ 0%, 100% {
113
+ box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
114
+ }
115
+ 50% {
116
+ box-shadow: 0 0 0 8px rgba(255, 193, 7, 0);
117
+ }
118
+ }
119
+
120
+ .health-danger-pulse {
121
+ animation: dangerPulse 1.5s infinite;
122
+ }
123
+
124
+ @keyframes dangerPulse {
125
+ 0%, 100% {
126
+ box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
127
+ }
128
+ 50% {
129
+ box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
130
+ }
131
+ }