Spaces:
Running
Running
ทำต่อให้เสร็จ
Browse files- README.md +8 -5
- index.html +507 -19
- script.js +338 -0
- style.css +158 -18
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: WELLNET BioAge 🔄
|
| 3 |
+
colorFrom: purple
|
| 4 |
+
colorTo: green
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://huggingface.co/deepsite).
|
index.html
CHANGED
|
@@ -1,19 +1,507 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="th">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
| 6 |
+
<title>WP WELLNET - แพลตฟอร์มอายุสุขภาพ</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
+
<link rel="stylesheet" href="style.css">
|
| 9 |
+
<link href="https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
| 10 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 11 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 12 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 13 |
+
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
| 14 |
+
</head>
|
| 15 |
+
<body class="font-prompt bg-gray-50 min-h-screen">
|
| 16 |
+
<!-- Header -->
|
| 17 |
+
<header class="bg-white shadow-sm fixed top-0 left-0 right-0 z-50">
|
| 18 |
+
<div class="flex items-center justify-between px-4 py-3">
|
| 19 |
+
<div class="flex items-center space-x-2">
|
| 20 |
+
<div class="w-8 h-8 bg-green-400 rounded-lg flex items-center justify-center">
|
| 21 |
+
<span class="text-white font-bold text-sm">WP</span>
|
| 22 |
+
</div>
|
| 23 |
+
<span class="font-semibold text-gray-800">WELLNET</span>
|
| 24 |
+
</div>
|
| 25 |
+
<div class="flex items-center space-x-4">
|
| 26 |
+
<button class="relative">
|
| 27 |
+
<i data-feather="bell" class="w-5 h-5 text-gray-600"></i>
|
| 28 |
+
<span class="absolute -top-1 -right-1 w-2 h-2 bg-red-500 rounded-full"></span>
|
| 29 |
+
</button>
|
| 30 |
+
<button class="w-8 h-8 bg-gray-200 rounded-full flex items-center justify-center">
|
| 31 |
+
<i data-feather="user" class="w-4 h-4 text-gray-600"></i>
|
| 32 |
+
</button>
|
| 33 |
+
</div>
|
| 34 |
+
</div>
|
| 35 |
+
</header>
|
| 36 |
+
|
| 37 |
+
<!-- Main Content -->
|
| 38 |
+
<main class="pt-14 pb-20 px-4">
|
| 39 |
+
<!-- Dashboard View -->
|
| 40 |
+
<div id="dashboard-view" class="view">
|
| 41 |
+
<!-- Age Display -->
|
| 42 |
+
<div class="bg-gradient-to-r from-green-400 to-green-500 rounded-2xl p-6 mt-4 text-white shadow-lg">
|
| 43 |
+
<h2 class="text-lg font-semibold mb-2">อายุจริงของคุณ</h2>
|
| 44 |
+
<div class="flex items-baseline space-x-3">
|
| 45 |
+
<span class="text-3xl font-bold">42</span>
|
| 46 |
+
<span class="text-lg">ปี</span>
|
| 47 |
+
</div>
|
| 48 |
+
<div class="mt-3 flex items-center space-x-2">
|
| 49 |
+
<i data-feather="trending-down" class="w-4 h-4"></i>
|
| 50 |
+
<span class="text-sm">อายุสุขภาพ: 46 ปี</span>
|
| 51 |
+
</div>
|
| 52 |
+
</div>
|
| 53 |
+
|
| 54 |
+
<!-- Progress Circle -->
|
| 55 |
+
<div class="bg-white rounded-2xl p-6 mt-4 shadow-md">
|
| 56 |
+
<div class="flex items-center justify-between">
|
| 57 |
+
<div class="relative w-32 h-32">
|
| 58 |
+
<svg class="transform -rotate-90 w-32 h-32">
|
| 59 |
+
<circle cx="64" cy="64" r="56" stroke="#E5E7EB" stroke-width="12" fill="none"></circle>
|
| 60 |
+
<circle cx="64" cy="64" r="56" stroke="#A5D6A7" stroke-width="12" fill="none"
|
| 61 |
+
stroke-dasharray="351.86" stroke-dashoffset="88" stroke-linecap="round"></circle>
|
| 62 |
+
</svg>
|
| 63 |
+
<div class="absolute inset-0 flex flex-col items-center justify-center">
|
| 64 |
+
<span class="text-2xl font-bold text-gray-800">75%</span>
|
| 65 |
+
<span class="text-xs text-gray-500">ความสำเร็จ</span>
|
| 66 |
+
</div>
|
| 67 |
+
</div>
|
| 68 |
+
<div>
|
| 69 |
+
<h3 class="font-semibold text-gray-800">เป้าหมาย</h3>
|
| 70 |
+
<p class="text-sm text-gray-600 mt-1">อายุสุขภาพ 38 ปี</p>
|
| 71 |
+
<p class="text-xs text-green-500 mt-1">สำเร็จ 8 ปีแล้ว</p>
|
| 72 |
+
</div>
|
| 73 |
+
</div>
|
| 74 |
+
</div>
|
| 75 |
+
|
| 76 |
+
<!-- Health Metrics Cards -->
|
| 77 |
+
<div class="grid grid-cols-2 gap-3 mt-4">
|
| 78 |
+
<div class="bg-white rounded-xl p-4 shadow-sm">
|
| 79 |
+
<div class="flex items-center justify-between mb-2">
|
| 80 |
+
<span class="text-xs text-gray-500">HRV</span>
|
| 81 |
+
<i data-feather="activity" class="w-4 h-4 text-green-500"></i>
|
| 82 |
+
</div>
|
| 83 |
+
<span class="text-xl font-semibold text-gray-800">47</span>
|
| 84 |
+
<span class="text-xs text-gray-500 ml-1">ms</span>
|
| 85 |
+
</div>
|
| 86 |
+
<div class="bg-white rounded-xl p-4 shadow-sm">
|
| 87 |
+
<div class="flex items-center justify-between mb-2">
|
| 88 |
+
<span class="text-xs text-gray-500">คุณภาพการนอน</span>
|
| 89 |
+
<i data-feather="moon" class="w-4 h-4 text-blue-500"></i>
|
| 90 |
+
</div>
|
| 91 |
+
<span class="text-xl font-semibold text-gray-800">78</span>
|
| 92 |
+
<span class="text-xs text-gray-500 ml-1">%</span>
|
| 93 |
+
</div>
|
| 94 |
+
<div class="bg-white rounded-xl p-4 shadow-sm">
|
| 95 |
+
<div class="flex items-center justify-between mb-2">
|
| 96 |
+
<span class="text-xs text-gray-500">ความเครียด</span>
|
| 97 |
+
<i data-feather="alert-circle" class="w-4 h-4 text-yellow-500"></i>
|
| 98 |
+
</div>
|
| 99 |
+
<span class="text-lg font-semibold text-gray-800">ปานกลาง</span>
|
| 100 |
+
</div>
|
| 101 |
+
<div class="bg-white rounded-xl p-4 shadow-sm">
|
| 102 |
+
<div class="flex items-center justify-between mb-2">
|
| 103 |
+
<span class="text-xs text-gray-500">% ไขมัน</span>
|
| 104 |
+
<i data-feather="trending-down" class="w-4 h-4 text-green-500"></i>
|
| 105 |
+
</div>
|
| 106 |
+
<span class="text-xl font-semibold text-gray-800">27</span>
|
| 107 |
+
<span class="text-xs text-gray-500 ml-1">%</span>
|
| 108 |
+
</div>
|
| 109 |
+
<div class="bg-white rounded-xl p-4 shadow-sm">
|
| 110 |
+
<div class="flex items-center justify-between mb-2">
|
| 111 |
+
<span class="text-xs text-gray-500">กล้ามเนื้อ</span>
|
| 112 |
+
<i data-feather="zap" class="w-4 h-4 text-orange-500"></i>
|
| 113 |
+
</div>
|
| 114 |
+
<span class="text-xl font-semibold text-gray-800">32.5</span>
|
| 115 |
+
<span class="text-xs text-gray-500 ml-1">กก.</span>
|
| 116 |
+
</div>
|
| 117 |
+
<div class="bg-white rounded-xl p-4 shadow-sm">
|
| 118 |
+
<div class="flex items-center justify-between mb-2">
|
| 119 |
+
<span class="text-xs text-gray-500">น้ำหนัก</span>
|
| 120 |
+
<i data-feather="monitor" class="w-4 h-4 text-purple-500"></i>
|
| 121 |
+
</div>
|
| 122 |
+
<span class="text-xl font-semibold text-gray-800">72.3</span>
|
| 123 |
+
<span class="text-xs text-gray-500 ml-1">กก.</span>
|
| 124 |
+
</div>
|
| 125 |
+
<div class="bg-white rounded-xl p-4 shadow-sm col-span-2">
|
| 126 |
+
<div class="flex items-center justify-between mb-2">
|
| 127 |
+
<span class="text-xs text-gray-500">BMR</span>
|
| 128 |
+
<i data-feather="flame" class="w-4 h-4 text-red-500"></i>
|
| 129 |
+
</div>
|
| 130 |
+
<span class="text-xl font-semibold text-gray-800">1,520</span>
|
| 131 |
+
<span class="text-xs text-gray-500 ml-1">kcal/วัน</span>
|
| 132 |
+
</div>
|
| 133 |
+
</div>
|
| 134 |
+
|
| 135 |
+
<!-- Analyze Button -->
|
| 136 |
+
<button class="w-full bg-green-500 text-white rounded-xl py-4 mt-6 font-semibold shadow-lg hover:bg-green-600 transition">
|
| 137 |
+
วิเคราะห์สุขภาพอัตโนมัติใหม่
|
| 138 |
+
</button>
|
| 139 |
+
</div>
|
| 140 |
+
|
| 141 |
+
<!-- Plan View -->
|
| 142 |
+
<div id="plan-view" class="view hidden">
|
| 143 |
+
<h2 class="text-xl font-bold text-gray-800 mt-4 mb-4">แผนย้อนวัย 90 วัน</h2>
|
| 144 |
+
|
| 145 |
+
<!-- Progress Bar -->
|
| 146 |
+
<div class="bg-white rounded-xl p-4 shadow-sm mb-4">
|
| 147 |
+
<div class="flex justify-between text-sm mb-2">
|
| 148 |
+
<span class="text-gray-600">ความคืบหน้า</span>
|
| 149 |
+
<span class="font-semibold text-green-600">23/90 วัน</span>
|
| 150 |
+
</div>
|
| 151 |
+
<div class="w-full bg-gray-200 rounded-full h-3">
|
| 152 |
+
<div class="bg-gradient-to-r from-green-400 to-green-500 h-3 rounded-full" style="width: 25.6%"></div>
|
| 153 |
+
</div>
|
| 154 |
+
</div>
|
| 155 |
+
|
| 156 |
+
<!-- Calendar Tasks -->
|
| 157 |
+
<div class="space-y-3">
|
| 158 |
+
<div class="bg-white rounded-xl p-4 shadow-sm">
|
| 159 |
+
<div class="flex items-center justify-between mb-3">
|
| 160 |
+
<h3 class="font-semibold text-gray-800">จันทร์ที่ผ่านมา</h3>
|
| 161 |
+
<span class="text-xs bg-green-100 text-green-600 px-2 py-1 rounded-full">เสร็จสิ้น</span>
|
| 162 |
+
</div>
|
| 163 |
+
<div class="space-y-2">
|
| 164 |
+
<div class="flex items-center space-x-2">
|
| 165 |
+
<input type="checkbox" checked class="w-4 h-4 text-green-500">
|
| 166 |
+
<span class="text-sm text-gray-600 line-through">ADEK เช้า</span>
|
| 167 |
+
</div>
|
| 168 |
+
<div class="flex items-center space-x-2">
|
| 169 |
+
<input type="checkbox" checked class="w-4 h-4 text-green-500">
|
| 170 |
+
<span class="text-sm text-gray-600 line-through">งดกาแฟ</span>
|
| 171 |
+
</div>
|
| 172 |
+
<div class="flex items-center space-x-2">
|
| 173 |
+
<input type="checkbox" checked class="w-4 h-4 text-green-500">
|
| 174 |
+
<span class="text-sm text-gray-600 line-through">6,000 ก้าว ✅</span>
|
| 175 |
+
</div>
|
| 176 |
+
</div>
|
| 177 |
+
</div>
|
| 178 |
+
|
| 179 |
+
<div class="bg-white rounded-xl p-4 shadow-sm">
|
| 180 |
+
<div class="flex items-center justify-between mb-3">
|
| 181 |
+
<h3 class="font-semibold text-gray-800">อังคารที่ผ่านมา</h3>
|
| 182 |
+
<span class="text-xs bg-green-100 text-green-600 px-2 py-1 rounded-full">เสร็จสิ้น</span>
|
| 183 |
+
</div>
|
| 184 |
+
<div class="space-y-2">
|
| 185 |
+
<div class="flex items-center space-x-2">
|
| 186 |
+
<input type="checkbox" checked class="w-4 h-4 text-green-500">
|
| 187 |
+
<span class="text-sm text-gray-600 line-through">NMN ครึ่งเช้า</span>
|
| 188 |
+
</div>
|
| 189 |
+
<div class="flex items-center space-x-2">
|
| 190 |
+
<input type="checkbox" checked class="w-4 h-4 text-green-500">
|
| 191 |
+
<span class="text-sm text-gray-600 line-through">นอน 7 ชม.</span>
|
| 192 |
+
</div>
|
| 193 |
+
</div>
|
| 194 |
+
</div>
|
| 195 |
+
|
| 196 |
+
<div class="bg-white rounded-xl p-4 shadow-sm">
|
| 197 |
+
<div class="flex items-center justify-between mb-3">
|
| 198 |
+
<h3 class="font-semibold text-gray-800">วันนี้ - พุธ</h3>
|
| 199 |
+
<span class="text-xs bg-yellow-100 text-yellow-600 px-2 py-1 rounded-full">กำลังทำ</span>
|
| 200 |
+
</div>
|
| 201 |
+
<div class="space-y-2">
|
| 202 |
+
<div class="flex items-center space-x-2">
|
| 203 |
+
<input type="checkbox" class="w-4 h-4 text-green-500">
|
| 204 |
+
<span class="text-sm text-gray-600">เดินเร็ว 20 นาที</span>
|
| 205 |
+
</div>
|
| 206 |
+
<div class="flex items-center space-x-2">
|
| 207 |
+
<input type="checkbox" class="w-4 h-4 text-green-500">
|
| 208 |
+
<span class="text-sm text-gray-600">Magnesium เย็น</span>
|
| 209 |
+
</div>
|
| 210 |
+
<div class="flex items-center space-x-2">
|
| 211 |
+
<input type="checkbox" class="w-4 h-4 text-green-500">
|
| 212 |
+
<span class="text-sm text-gray-600">อ่านหนังสือ 30 นาที</span>
|
| 213 |
+
</div>
|
| 214 |
+
</div>
|
| 215 |
+
<button class="w-full bg-green-500 text-white rounded-lg py-2 mt-3 text-sm font-medium">
|
| 216 |
+
ทำภารกิจแล้ว
|
| 217 |
+
</button>
|
| 218 |
+
</div>
|
| 219 |
+
</div>
|
| 220 |
+
</div>
|
| 221 |
+
|
| 222 |
+
<!-- Graph View -->
|
| 223 |
+
<div id="graph-view" class="view hidden">
|
| 224 |
+
<h2 class="text-xl font-bold text-gray-800 mt-4 mb-4">กราฟสุขภาพ</h2>
|
| 225 |
+
|
| 226 |
+
<!-- Time Period Selector -->
|
| 227 |
+
<div class="flex space-x-2 mb-4">
|
| 228 |
+
<button class="flex-1 bg-green-500 text-white py-2 rounded-lg text-sm font-medium">7 วัน</button>
|
| 229 |
+
<button class="flex-1 bg-white text-gray-600 py-2 rounded-lg text-sm font-medium border">30 วัน</button>
|
| 230 |
+
<button class="flex-1 bg-white text-gray-600 py-2 rounded-lg text-sm font-medium border">90 วัน</button>
|
| 231 |
+
</div>
|
| 232 |
+
|
| 233 |
+
<!-- HRV Graph -->
|
| 234 |
+
<div class="bg-white rounded-xl p-4 shadow-sm mb-4">
|
| 235 |
+
<h3 class="font-semibold text-gray-800 mb-3 flex items-center">
|
| 236 |
+
<i data-feather="activity" class="w-4 h-4 mr-2 text-green-500"></i>
|
| 237 |
+
HRV (ms)
|
| 238 |
+
</h3>
|
| 239 |
+
<canvas id="hrvChart" width="300" height="150"></canvas>
|
| 240 |
+
</div>
|
| 241 |
+
|
| 242 |
+
<!-- Sleep Quality Graph -->
|
| 243 |
+
<div class="bg-white rounded-xl p-4 shadow-sm mb-4">
|
| 244 |
+
<h3 class="font-semibold text-gray-800 mb-3 flex items-center">
|
| 245 |
+
<i data-feather="moon" class="w-4 h-4 mr-2 text-blue-500"></i>
|
| 246 |
+
คุณภาพการนอน (%)
|
| 247 |
+
</h3>
|
| 248 |
+
<canvas id="sleepChart" width="300" height="150"></canvas>
|
| 249 |
+
</div>
|
| 250 |
+
|
| 251 |
+
<!-- Weight Graph -->
|
| 252 |
+
<div class="bg-white rounded-xl p-4 shadow-sm mb-4">
|
| 253 |
+
<h3 class="font-semibold text-gray-800 mb-3 flex items-center">
|
| 254 |
+
<i data-feather="monitor" class="w-4 h-4 mr-2 text-purple-500"></i>
|
| 255 |
+
น้ำหนัก (กก.)
|
| 256 |
+
</h3>
|
| 257 |
+
<canvas id="weightChart" width="300" height="150"></canvas>
|
| 258 |
+
</div>
|
| 259 |
+
|
| 260 |
+
<!-- Body Fat Graph -->
|
| 261 |
+
<div class="bg-white rounded-xl p-4 shadow-sm">
|
| 262 |
+
<h3 class="font-semibold text-gray-800 mb-3 flex items-center">
|
| 263 |
+
<i data-feather="trending-down" class="w-4 h-4 mr-2 text-orange-500"></i>
|
| 264 |
+
% ไขมัน
|
| 265 |
+
</h3>
|
| 266 |
+
<canvas id="fatChart" width="300" height="150"></canvas>
|
| 267 |
+
</div>
|
| 268 |
+
</div>
|
| 269 |
+
|
| 270 |
+
<!-- Products View -->
|
| 271 |
+
<div id="products-view" class="view hidden">
|
| 272 |
+
<h2 class="text-xl font-bold text-gray-800 mt-4 mb-4">แนะนำสินค้าเฉพาะบุคคล</h2>
|
| 273 |
+
|
| 274 |
+
<!-- Recommendation -->
|
| 275 |
+
<div class="bg-gradient-to-r from-green-50 to-blue-50 rounded-xl p-4 mb-4">
|
| 276 |
+
<p class="text-sm text-gray-700">จากข้อมูลสุขภาพของคุณ เราขอแนะนำแพ็กเสริม</p>
|
| 277 |
+
</div>
|
| 278 |
+
|
| 279 |
+
<!-- Product Cards -->
|
| 280 |
+
<div class="space-y-4">
|
| 281 |
+
<div class="bg-white rounded-xl shadow-sm overflow-hidden">
|
| 282 |
+
<div class="p-4">
|
| 283 |
+
<div class="flex justify-between items-start mb-2">
|
| 284 |
+
<h3 class="font-semibold text-gray-800">แพ็ก BioAge+</h3>
|
| 285 |
+
<span class="text-lg font-bold text-green-600">฿1,590</span>
|
| 286 |
+
</div>
|
| 287 |
+
<div class="space-y-1 mb-3">
|
| 288 |
+
<p class="text-sm text-gray-600">• NMN - ย้อนวัยระดับเซลล์</p>
|
| 289 |
+
<p class="text-sm text-gray-600">• ADEK - วิตามินหลัก</p>
|
| 290 |
+
<p class="text-sm text-gray-600">• MAG-5 - ผ่อนคลายประสาท</p>
|
| 291 |
+
</div>
|
| 292 |
+
<div class="flex space-x-2">
|
| 293 |
+
<button class="flex-1 bg-gray-100 text-gray-700 py-2 rounded-lg text-sm font-medium">
|
| 294 |
+
ดูรายละเอียด
|
| 295 |
+
</button>
|
| 296 |
+
<button class="flex-1 bg-green-500 text-white py-2 rounded-lg text-sm font-medium">
|
| 297 |
+
เพิ่มลงตะกร้า
|
| 298 |
+
</button>
|
| 299 |
+
</div>
|
| 300 |
+
</div>
|
| 301 |
+
</div>
|
| 302 |
+
|
| 303 |
+
<div class="bg-white rounded-xl shadow-sm overflow-hidden">
|
| 304 |
+
<div class="p-4">
|
| 305 |
+
<div class="flex justify-between items-start mb-2">
|
| 306 |
+
<h3 class="font-semibold text-gray-800">แพ็ก Sleep Deep</h3>
|
| 307 |
+
<span class="text-lg font-bold text-green-600">฿990</span>
|
| 308 |
+
</div>
|
| 309 |
+
<div class="space-y-1 mb-3">
|
| 310 |
+
<p class="text-sm text-gray-600">• Magnesium - ผ่อนคลายกล้ามเนื้อ</p>
|
| 311 |
+
<p class="text-sm text-gray-600">• GABA - สารหลับ</p>
|
| 312 |
+
<p class="text-sm text-gray-600">• Reishi - ลดความเครียด</p>
|
| 313 |
+
</div>
|
| 314 |
+
<div class="flex space-x-2">
|
| 315 |
+
<button class="flex-1 bg-gray-100 text-gray-700 py-2 rounded-lg text-sm font-medium">
|
| 316 |
+
ดูรายละเอียด
|
| 317 |
+
</button>
|
| 318 |
+
<button class="flex-1 bg-green-500 text-white py-2 rounded-lg text-sm font-medium">
|
| 319 |
+
เพิ่มลงตะกร้า
|
| 320 |
+
</button>
|
| 321 |
+
</div>
|
| 322 |
+
</div>
|
| 323 |
+
</div>
|
| 324 |
+
</div>
|
| 325 |
+
|
| 326 |
+
<!-- Auto-purchase Section -->
|
| 327 |
+
<div class="mt-6">
|
| 328 |
+
<h3 class="font-semibold text-gray-800 mb-3">ระบบซื้อซ้ำอัตโนมัติ</h3>
|
| 329 |
+
<div class="bg-white rounded-xl p-4 shadow-sm">
|
| 330 |
+
<p class="text-sm text-gray-600 mb-3">คุณสั่ง NMN 30 เม็ด ครั้งล่าสุด: 15 วันก่อน</p>
|
| 331 |
+
<button class="w-full bg-blue-500 text-white rounded-lg py-2 mb-3 text-sm font-medium">
|
| 332 |
+
ซื้อซ้ำ��น 1 คลิก
|
| 333 |
+
</button>
|
| 334 |
+
<div class="flex items-center justify-between">
|
| 335 |
+
<span class="text-sm text-gray-600">ตั้งเตือนซื้อใหม่</span>
|
| 336 |
+
<select class="bg-gray-100 rounded-lg px-3 py-1 text-sm">
|
| 337 |
+
<option>30 วัน</option>
|
| 338 |
+
<option>45 วัน</option>
|
| 339 |
+
<option>60 วัน</option>
|
| 340 |
+
<option>ปิด</option>
|
| 341 |
+
</select>
|
| 342 |
+
</div>
|
| 343 |
+
</div>
|
| 344 |
+
</div>
|
| 345 |
+
</div>
|
| 346 |
+
|
| 347 |
+
<!-- Profile View -->
|
| 348 |
+
<div id="profile-view" class="view hidden">
|
| 349 |
+
<h2 class="text-xl font-bold text-gray-800 mt-4 mb-4">โปรไฟล์ของฉัน</h2>
|
| 350 |
+
|
| 351 |
+
<!-- User Info -->
|
| 352 |
+
<div class="bg-white rounded-xl p-4 shadow-sm mb-4">
|
| 353 |
+
<div class="flex items-center space-x-4 mb-4">
|
| 354 |
+
<div class="w-16 h-16 bg-gradient-to-r from-green-400 to-green-500 rounded-full flex items-center justify-center">
|
| 355 |
+
<span class="text-white font-bold text-xl">ส</span>
|
| 356 |
+
</div>
|
| 357 |
+
<div>
|
| 358 |
+
<h3 class="font-semibold text-gray-800">สุภาพร</h3>
|
| 359 |
+
<p class="text-sm text-gray-600">อายุ 42 ปี</p>
|
| 360 |
+
<p class="text-xs text-green-600">คะแนนสะสม: 1,250 แต้ม</p>
|
| 361 |
+
</div>
|
| 362 |
+
</div>
|
| 363 |
+
<div class="space-y-2">
|
| 364 |
+
<div class="flex justify-between py-2 border-b">
|
| 365 |
+
<span class="text-sm text-gray-600">เป้าหมาย</span>
|
| 366 |
+
<span class="text-sm font-medium">อายุสุขภาพ <40 ปี</span>
|
| 367 |
+
</div>
|
| 368 |
+
<div class="flex justify-between py-2 border-b">
|
| 369 |
+
<span class="text-sm text-gray-600">น้ำหนักเป้าหมาย</span>
|
| 370 |
+
<span class="text-sm font-medium">68 กก.</span>
|
| 371 |
+
</div>
|
| 372 |
+
<div class="flex justify-between py-2">
|
| 373 |
+
<span class="text-sm text-gray-600">สถานะ</span>
|
| 374 |
+
<span class="text-sm font-medium text-green-600">Bio-Warrior 🎖️</span>
|
| 375 |
+
</div>
|
| 376 |
+
</div>
|
| 377 |
+
</div>
|
| 378 |
+
|
| 379 |
+
<!-- Leaderboard -->
|
| 380 |
+
<div class="bg-white rounded-xl p-4 shadow-sm mb-4">
|
| 381 |
+
<h3 class="font-semibold text-gray-800 mb-3">อันดับเดือนนี้</h3>
|
| 382 |
+
<div class="text-center mb-3">
|
| 383 |
+
<span class="text-2xl font-bold text-green-600">12</span>
|
| 384 |
+
<p class="text-xs text-gray-600">ของทั้งหมด</p>
|
| 385 |
+
</div>
|
| 386 |
+
<div class="space-y-2">
|
| 387 |
+
<div class="flex items-center space-x-3">
|
| 388 |
+
<span class="text-sm font-bold text-gray-400 w-4">1</span>
|
| 389 |
+
<div class="flex-1">
|
| 390 |
+
<p class="text-sm font-medium">คุณ A</p>
|
| 391 |
+
<p class="text-xs text-gray-500">ลดอายุสุขภาพ 5 ปี</p>
|
| 392 |
+
</div>
|
| 393 |
+
<span class="text-xs bg-yellow-100 text-yellow-600 px-2 py-1 rounded">🏆</span>
|
| 394 |
+
</div>
|
| 395 |
+
<div class="flex items-center space-x-3">
|
| 396 |
+
<span class="text-sm font-bold text-gray-400 w-4">2</span>
|
| 397 |
+
<div class="flex-1">
|
| 398 |
+
<p class="text-sm font-medium">คุณ B</p>
|
| 399 |
+
<p class="text-xs text-gray-500">ลด % ไขมัน 3.4%</p>
|
| 400 |
+
</div>
|
| 401 |
+
<span class="text-xs bg-gray-100 text-gray-600 px-2 py-1 rounded">🥈</span>
|
| 402 |
+
</div>
|
| 403 |
+
<div class="flex items-center space-x-3">
|
| 404 |
+
<span class="text-sm font-bold text-gray-400 w-4">3</span>
|
| 405 |
+
<div class="flex-1">
|
| 406 |
+
<p class="text-sm font-medium">คุณ C</p>
|
| 407 |
+
<p class="text-xs text-gray-500">นอนครบ 7 ชม. 28 วัน</p>
|
| 408 |
+
</div>
|
| 409 |
+
<span class="text-xs bg-orange-100 text-orange-600 px-2 py-1 rounded">🥉</span>
|
| 410 |
+
</div>
|
| 411 |
+
</div>
|
| 412 |
+
</div>
|
| 413 |
+
|
| 414 |
+
<!-- Badges -->
|
| 415 |
+
<div class="bg-white rounded-xl p-4 shadow-sm mb-4">
|
| 416 |
+
<h3 class="font-semibold text-gray-800 mb-3">เหรียญรางวัล</h3>
|
| 417 |
+
<div class="flex flex-wrap gap-2">
|
| 418 |
+
<span class="bg-yellow-100 text-yellow-700 px-3 py-1 rounded-full text-xs font-medium">🎖️ Bio-Warrior</span>
|
| 419 |
+
<span class="bg-blue-100 text-blue-700 px-3 py-1 rounded-full text-xs font-medium">🌙 Sleep Master</span>
|
| 420 |
+
<span class="bg-red-100 text-red-700 px-3 py-1 rounded-full text-xs font-medium">🔥 Fat Burner</span>
|
| 421 |
+
<span class="bg-purple-100 text-purple-700 px-3 py-1 rounded-full text-xs font-medium">💪 Strong 30</span>
|
| 422 |
+
<span class="bg-green-100 text-green-700 px-3 py-1 rounded-full text-xs font-medium">🥗 Healthy Eater</span>
|
| 423 |
+
</div>
|
| 424 |
+
</div>
|
| 425 |
+
|
| 426 |
+
<!-- BioCoach -->
|
| 427 |
+
<div class="bg-gradient-to-r from-green-500 to-green-600 rounded-xl p-4 text-white">
|
| 428 |
+
<h3 class="font-semibold mb-2">ติดต่อ BioCoach</h3>
|
| 429 |
+
<div class="flex items-center space-x-3 mb-3">
|
| 430 |
+
<div class="w-12 h-12 bg-white/20 rounded-full flex items-center justify-center">
|
| 431 |
+
<i data-feather="user" class="w-6 h-6"></i>
|
| 432 |
+
</div>
|
| 433 |
+
<div>
|
| 434 |
+
<p class="font-medium">โค้ชจูน</p>
|
| 435 |
+
<p class="text-xs opacity-90">Certified BioCoach (WP L2)</p>
|
| 436 |
+
</div>
|
| 437 |
+
</div>
|
| 438 |
+
<div class="flex space-x-2">
|
| 439 |
+
<button class="flex-1 bg-white/20 backdrop-blur rounded-lg py-2 text-sm font-medium">
|
| 440 |
+
<i data-feather="message-circle" class="w-4 h-4 inline mr-1"></i>
|
| 441 |
+
แชท
|
| 442 |
+
</button>
|
| 443 |
+
<button class="flex-1 bg-white text-green-600 rounded-lg py-2 text-sm font-medium">
|
| 444 |
+
<i data-feather="video" class="w-4 h-4 inline mr-1"></i>
|
| 445 |
+
นัดคอล
|
| 446 |
+
</button>
|
| 447 |
+
</div>
|
| 448 |
+
</div>
|
| 449 |
+
|
| 450 |
+
<!-- Purchase History -->
|
| 451 |
+
<div class="mt-4">
|
| 452 |
+
<h3 class="font-semibold text-gray-800 mb-3">ประวัติการสั่งซื้อ</h3>
|
| 453 |
+
<div class="space-y-2">
|
| 454 |
+
<div class="bg-white rounded-lg p-3 shadow-sm">
|
| 455 |
+
<div class="flex justify-between items-center">
|
| 456 |
+
<div>
|
| 457 |
+
<p class="text-sm font-medium">ADEK</p>
|
| 458 |
+
<p class="text-xs text-gray-500">30 เม็ด • 3 กล่อง</p>
|
| 459 |
+
</div>
|
| 460 |
+
<span class="text-xs text-gray-500">15 ก.ย.</span>
|
| 461 |
+
</div>
|
| 462 |
+
</div>
|
| 463 |
+
<div class="bg-white rounded-lg p-3 shadow-sm">
|
| 464 |
+
<div class="flex justify-between items-center">
|
| 465 |
+
<div>
|
| 466 |
+
<p class="text-sm font-medium">MAG-5</p>
|
| 467 |
+
<p class="text-xs text-gray-500">2 กล่อง</p>
|
| 468 |
+
</div>
|
| 469 |
+
<span class="text-xs text-gray-500">10 ส.ค.</span>
|
| 470 |
+
</div>
|
| 471 |
+
</div>
|
| 472 |
+
</div>
|
| 473 |
+
</div>
|
| 474 |
+
</div>
|
| 475 |
+
</main>
|
| 476 |
+
|
| 477 |
+
<!-- Bottom Navigation -->
|
| 478 |
+
<nav class="fixed bottom-0 left-0 right-0 bg-white border-t z-50">
|
| 479 |
+
<div class="flex justify-around items-center py-2">
|
| 480 |
+
<button class="nav-item flex flex-col items-center p-2 text-green-600" data-view="dashboard-view">
|
| 481 |
+
<i data-feather="home" class="w-5 h-5 mb-1"></i>
|
| 482 |
+
<span class="text-xs">หน้าหลัก</span>
|
| 483 |
+
</button>
|
| 484 |
+
<button class="nav-item flex flex-col items-center p-2 text-gray-400" data-view="plan-view">
|
| 485 |
+
<i data-feather="calendar" class="w-5 h-5 mb-1"></i>
|
| 486 |
+
<span class="text-xs">แผนย้อนวัย</span>
|
| 487 |
+
</button>
|
| 488 |
+
<button class="nav-item flex flex-col items-center p-2 text-gray-400" data-view="graph-view">
|
| 489 |
+
<i data-feather="trending-up" class="w-5 h-5 mb-1"></i>
|
| 490 |
+
<span class="text-xs">กราฟสุขภาพ</span>
|
| 491 |
+
</button>
|
| 492 |
+
<button class="nav-item flex flex-col items-center p-2 text-gray-400" data-view="products-view">
|
| 493 |
+
<i data-feather="shopping-bag" class="w-5 h-5 mb-1"></i>
|
| 494 |
+
<span class="text-xs">สินค้า</span>
|
| 495 |
+
</button>
|
| 496 |
+
<button class="nav-item flex flex-col items-center p-2 text-gray-400" data-view="profile-view">
|
| 497 |
+
<i data-feather="user" class="w-5 h-5 mb-1"></i>
|
| 498 |
+
<span class="text-xs">โปรไฟล์</span>
|
| 499 |
+
</button>
|
| 500 |
+
</div>
|
| 501 |
+
</nav>
|
| 502 |
+
|
| 503 |
+
<script src="script.js"></script>
|
| 504 |
+
<script>feather.replace();</script>
|
| 505 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 506 |
+
</body>
|
| 507 |
+
</html>
|
script.js
ADDED
|
@@ -0,0 +1,338 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
// Navigation functionality
|
| 3 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 4 |
+
// Initialize navigation
|
| 5 |
+
const navItems = document.querySelectorAll('.nav-item');
|
| 6 |
+
const views = document.querySelectorAll('.view');
|
| 7 |
+
|
| 8 |
+
// Add click listeners to navigation items
|
| 9 |
+
navItems.forEach(item => {
|
| 10 |
+
item.addEventListener('click', function() {
|
| 11 |
+
const targetView = this.getAttribute('data-view');
|
| 12 |
+
|
| 13 |
+
// Hide all views
|
| 14 |
+
views.forEach(view => {
|
| 15 |
+
view.classList.add('hidden');
|
| 16 |
+
view.classList.remove('active');
|
| 17 |
+
});
|
| 18 |
+
|
| 19 |
+
// Show target view
|
| 20 |
+
const targetViewElement = document.getElementById(targetView);
|
| 21 |
+
if (targetViewElement) {
|
| 22 |
+
targetViewElement.classList.remove('hidden');
|
| 23 |
+
targetViewElement.classList.add('active');
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
// Update navigation active states
|
| 27 |
+
navItems.forEach(navItem => {
|
| 28 |
+
navItem.classList.remove('text-green-600');
|
| 29 |
+
navItem.classList.add('text-gray-400');
|
| 30 |
+
});
|
| 31 |
+
this.classList.remove('text-gray-400');
|
| 32 |
+
this.classList.add('text-green-600');
|
| 33 |
+
|
| 34 |
+
// Re-initialize feather icons for the new view
|
| 35 |
+
feather.replace();
|
| 36 |
+
});
|
| 37 |
+
});
|
| 38 |
+
|
| 39 |
+
// Initialize charts for graph view
|
| 40 |
+
initializeCharts();
|
| 41 |
+
|
| 42 |
+
// Handle checkbox functionality in plan view
|
| 43 |
+
handleTaskCheckboxes();
|
| 44 |
+
|
| 45 |
+
// Handle analyze button
|
| 46 |
+
handleAnalyzeButton();
|
| 47 |
+
|
| 48 |
+
// Handle product buttons
|
| 49 |
+
handleProductButtons();
|
| 50 |
+
|
| 51 |
+
// Handle BioCoach buttons
|
| 52 |
+
handleBioCoachButtons();
|
| 53 |
+
});
|
| 54 |
+
|
| 55 |
+
// Chart initialization
|
| 56 |
+
function initializeCharts() {
|
| 57 |
+
// HRV Chart
|
| 58 |
+
const hrvCtx = document.getElementById('hrvChart');
|
| 59 |
+
if (hrvCtx) {
|
| 60 |
+
new Chart(hrvCtx, {
|
| 61 |
+
type: 'line',
|
| 62 |
+
data: {
|
| 63 |
+
labels: ['จ', 'อ', 'พ', 'พฤ', 'ศ', 'ส', 'อา'],
|
| 64 |
+
datasets: [{
|
| 65 |
+
label: 'HRV',
|
| 66 |
+
data: [45, 47, 46, 48, 47, 49, 47],
|
| 67 |
+
borderColor: '#10B981',
|
| 68 |
+
backgroundColor: 'rgba(16, 185, 129, 0.1)',
|
| 69 |
+
tension: 0.4
|
| 70 |
+
}]
|
| 71 |
+
},
|
| 72 |
+
options: {
|
| 73 |
+
responsive: true,
|
| 74 |
+
maintainAspectRatio: false,
|
| 75 |
+
plugins: {
|
| 76 |
+
legend: {
|
| 77 |
+
display: false
|
| 78 |
+
}
|
| 79 |
+
},
|
| 80 |
+
scales: {
|
| 81 |
+
y: {
|
| 82 |
+
beginAtZero: false,
|
| 83 |
+
min: 40,
|
| 84 |
+
max: 55
|
| 85 |
+
}
|
| 86 |
+
}
|
| 87 |
+
}
|
| 88 |
+
});
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
// Sleep Chart
|
| 92 |
+
const sleepCtx = document.getElementById('sleepChart');
|
| 93 |
+
if (sleepCtx) {
|
| 94 |
+
new Chart(sleepCtx, {
|
| 95 |
+
type: 'line',
|
| 96 |
+
data: {
|
| 97 |
+
labels: ['จ', 'อ', 'พ', 'พฤ', 'ศ', 'ส', 'อา'],
|
| 98 |
+
datasets: [{
|
| 99 |
+
label: 'คุณภาพการนอน',
|
| 100 |
+
data: [75, 78, 72, 80, 76, 79, 78],
|
| 101 |
+
borderColor: '#3B82F6',
|
| 102 |
+
backgroundColor: 'rgba(59, 130, 246, 0.1)',
|
| 103 |
+
tension: 0.4
|
| 104 |
+
}]
|
| 105 |
+
},
|
| 106 |
+
options: {
|
| 107 |
+
responsive: true,
|
| 108 |
+
maintainAspectRatio: false,
|
| 109 |
+
plugins: {
|
| 110 |
+
legend: {
|
| 111 |
+
display: false
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
scales: {
|
| 115 |
+
y: {
|
| 116 |
+
beginAtZero: false,
|
| 117 |
+
min: 60,
|
| 118 |
+
max: 100
|
| 119 |
+
}
|
| 120 |
+
}
|
| 121 |
+
}
|
| 122 |
+
});
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
// Weight Chart
|
| 126 |
+
const weightCtx = document.getElementById('weightChart');
|
| 127 |
+
if (weightCtx) {
|
| 128 |
+
new Chart(weightCtx, {
|
| 129 |
+
type: 'line',
|
| 130 |
+
data: {
|
| 131 |
+
labels: ['จ', 'อ', 'พ', 'พฤ', 'ศ', 'ส', 'อา'],
|
| 132 |
+
datasets: [{
|
| 133 |
+
label: 'น้ำหนัก',
|
| 134 |
+
data: [72.8, 72.5, 72.6, 72.3, 72.4, 72.2, 72.3],
|
| 135 |
+
borderColor: '#8B5CF6',
|
| 136 |
+
backgroundColor: 'rgba(139, 92, 246, 0.1)',
|
| 137 |
+
tension: 0.4
|
| 138 |
+
}]
|
| 139 |
+
},
|
| 140 |
+
options: {
|
| 141 |
+
responsive: true,
|
| 142 |
+
maintainAspectRatio: false,
|
| 143 |
+
plugins: {
|
| 144 |
+
legend: {
|
| 145 |
+
display: false
|
| 146 |
+
}
|
| 147 |
+
},
|
| 148 |
+
scales: {
|
| 149 |
+
y: {
|
| 150 |
+
beginAtZero: false,
|
| 151 |
+
min: 71,
|
| 152 |
+
max: 74
|
| 153 |
+
}
|
| 154 |
+
}
|
| 155 |
+
}
|
| 156 |
+
});
|
| 157 |
+
}
|
| 158 |
+
|
| 159 |
+
// Body Fat Chart
|
| 160 |
+
const fatCtx = document.getElementById('fatChart');
|
| 161 |
+
if (fatCtx) {
|
| 162 |
+
new Chart(fatCtx, {
|
| 163 |
+
type: 'line',
|
| 164 |
+
data: {
|
| 165 |
+
labels: ['จ', 'อ', 'พ', 'พฤ', 'ศ', 'ส', 'อา'],
|
| 166 |
+
datasets: [{
|
| 167 |
+
label: '% ไขมัน',
|
| 168 |
+
data: [27.5, 27.3, 27.4, 27.1, 27.2, 27.0, 27.0],
|
| 169 |
+
borderColor: '#F97316',
|
| 170 |
+
backgroundColor: 'rgba(249, 115, 22, 0.1)',
|
| 171 |
+
tension: 0.4
|
| 172 |
+
}]
|
| 173 |
+
},
|
| 174 |
+
options: {
|
| 175 |
+
responsive: true,
|
| 176 |
+
maintainAspectRatio: false,
|
| 177 |
+
plugins: {
|
| 178 |
+
legend: {
|
| 179 |
+
display: false
|
| 180 |
+
}
|
| 181 |
+
},
|
| 182 |
+
scales: {
|
| 183 |
+
y: {
|
| 184 |
+
beginAtZero: false,
|
| 185 |
+
min: 26,
|
| 186 |
+
max: 28
|
| 187 |
+
}
|
| 188 |
+
}
|
| 189 |
+
}
|
| 190 |
+
});
|
| 191 |
+
}
|
| 192 |
+
}
|
| 193 |
+
|
| 194 |
+
// Handle task checkboxes in plan view
|
| 195 |
+
function handleTaskCheckboxes() {
|
| 196 |
+
const checkboxes = document.querySelectorAll('#plan-view input[type="checkbox"]');
|
| 197 |
+
checkboxes.forEach(checkbox => {
|
| 198 |
+
checkbox.addEventListener('change', function() {
|
| 199 |
+
const label = this.nextElementSibling;
|
| 200 |
+
if (this.checked) {
|
| 201 |
+
label.classList.add('line-through');
|
| 202 |
+
} else {
|
| 203 |
+
label.classList.remove('line-through');
|
| 204 |
+
}
|
| 205 |
+
|
| 206 |
+
// Check if all tasks for today are completed
|
| 207 |
+
const todayTasks = this.closest('.bg-white').querySelectorAll('input[type="checkbox"]');
|
| 208 |
+
const allChecked = Array.from(todayTasks).every(cb => cb.checked);
|
| 209 |
+
const statusBadge = this.closest('.bg-white').querySelector('.bg-yellow-100');
|
| 210 |
+
|
| 211 |
+
if (statusBadge && allChecked) {
|
| 212 |
+
statusBadge.classList.remove('bg-yellow-100', 'text-yellow-600');
|
| 213 |
+
statusBadge.classList.add('bg-green-100', 'text-green-600');
|
| 214 |
+
statusBadge.textContent = 'เสร็จสิ้น';
|
| 215 |
+
}
|
| 216 |
+
});
|
| 217 |
+
});
|
| 218 |
+
}
|
| 219 |
+
|
| 220 |
+
// Handle analyze button
|
| 221 |
+
function handleAnalyzeButton() {
|
| 222 |
+
const analyzeBtn = document.querySelector('.bg-green-500.text-white.rounded-xl.py-4');
|
| 223 |
+
if (analyzeBtn) {
|
| 224 |
+
analyzeBtn.addEventListener('click', function() {
|
| 225 |
+
this.innerHTML = '<span class="spinner inline-block w-4 h-4 border-2 border-white border-t-transparent rounded-full mr-2"></span>กำลังวิเคราะห์...';
|
| 226 |
+
this.disabled = true;
|
| 227 |
+
|
| 228 |
+
setTimeout(() => {
|
| 229 |
+
this.innerHTML = '✅ วิเคราะห์เสร็จสิ้น';
|
| 230 |
+
this.classList.remove('bg-green-500');
|
| 231 |
+
this.classList.add('bg-green-600');
|
| 232 |
+
|
| 233 |
+
// Simulate data update
|
| 234 |
+
updateHealthMetrics();
|
| 235 |
+
|
| 236 |
+
setTimeout(() => {
|
| 237 |
+
this.innerHTML = 'วิเคราะห์สุขภาพอัตโนมัติใหม่';
|
| 238 |
+
this.classList.remove('bg-green-600');
|
| 239 |
+
this.classList.add('bg-green-500');
|
| 240 |
+
this.disabled = false;
|
| 241 |
+
}, 2000);
|
| 242 |
+
}, 3000);
|
| 243 |
+
});
|
| 244 |
+
}
|
| 245 |
+
}
|
| 246 |
+
|
| 247 |
+
// Update health metrics with animation
|
| 248 |
+
function updateHealthMetrics() {
|
| 249 |
+
const metrics = {
|
| 250 |
+
hrv: { element: null, value: 47, newValue: 48 },
|
| 251 |
+
sleep: { element: null, value: 78, newValue: 80 },
|
| 252 |
+
fat: { element: null, value: 27, newValue: 26.8 }
|
| 253 |
+
};
|
| 254 |
+
|
| 255 |
+
// Find metric elements
|
| 256 |
+
document.querySelectorAll('.text-xl.font-semibold').forEach(el => {
|
| 257 |
+
const parent = el.parentElement;
|
| 258 |
+
if (parent.textContent.includes('HRV')) {
|
| 259 |
+
metrics.hrv.element = el;
|
| 260 |
+
} else if (parent.textContent.includes('คุณภาพการนอน')) {
|
| 261 |
+
metrics.sleep.element = el;
|
| 262 |
+
} else if (parent.textContent.includes('% ไขมัน')) {
|
| 263 |
+
metrics.fat.element = el;
|
| 264 |
+
}
|
| 265 |
+
});
|
| 266 |
+
|
| 267 |
+
// Animate updates
|
| 268 |
+
Object.values(metrics).forEach(metric => {
|
| 269 |
+
if (metric.element) {
|
| 270 |
+
animateValue(metric.element, metric.value, metric.newValue, 1000);
|
| 271 |
+
}
|
| 272 |
+
});
|
| 273 |
+
}
|
| 274 |
+
|
| 275 |
+
// Animate number changes
|
| 276 |
+
function animateValue(element, start, end, duration) {
|
| 277 |
+
const range = end - start;
|
| 278 |
+
const startTime = performance.now();
|
| 279 |
+
|
| 280 |
+
function update(currentTime) {
|
| 281 |
+
const elapsed = currentTime - startTime;
|
| 282 |
+
const progress = Math.min(elapsed / duration, 1);
|
| 283 |
+
const current = start + (range * progress);
|
| 284 |
+
|
| 285 |
+
element.textContent = current.toFixed(1);
|
| 286 |
+
|
| 287 |
+
if (progress < 1) {
|
| 288 |
+
requestAnimationFrame(update);
|
| 289 |
+
}
|
| 290 |
+
}
|
| 291 |
+
|
| 292 |
+
requestAnimationFrame(update);
|
| 293 |
+
}
|
| 294 |
+
|
| 295 |
+
// Handle product buttons
|
| 296 |
+
function handleProductButtons() {
|
| 297 |
+
const detailButtons = document.querySelectorAll('button:contains("ดูรายละเอียด")');
|
| 298 |
+
const cartButtons = document.querySelectorAll('button:contains("เพิ่มลงตะกร้า")');
|
| 299 |
+
|
| 300 |
+
detailButtons.forEach(button => {
|
| 301 |
+
button.addEventListener('click', function() {
|
| 302 |
+
alert('แสดงรายละเอียดสินค้า...');
|
| 303 |
+
});
|
| 304 |
+
});
|
| 305 |
+
|
| 306 |
+
cartButtons.forEach(button => {
|
| 307 |
+
button.addEventListener('click', function() {
|
| 308 |
+
const originalText = this.innerHTML;
|
| 309 |
+
this.innerHTML = '✅ เพิ่มแล้ว';
|
| 310 |
+
this.classList.remove('bg-green-500');
|
| 311 |
+
this.classList.add('bg-green-600');
|
| 312 |
+
|
| 313 |
+
setTimeout(() => {
|
| 314 |
+
this.innerHTML = originalText;
|
| 315 |
+
this.classList.remove('bg-green-600');
|
| 316 |
+
this.classList.add('bg-green-500');
|
| 317 |
+
}, 2000);
|
| 318 |
+
});
|
| 319 |
+
});
|
| 320 |
+
}
|
| 321 |
+
|
| 322 |
+
// Handle BioCoach buttons
|
| 323 |
+
function handleBioCoachButtons() {
|
| 324 |
+
const chatBtn = document.querySelector('button:contains("แชท")');
|
| 325 |
+
const callBtn = document.querySelector('button:contains("นัดคอล")');
|
| 326 |
+
|
| 327 |
+
if (chatBtn) {
|
| 328 |
+
chatBtn.addEventListener('click', function() {
|
| 329 |
+
alert('เปิดหน้าต่างแชทกับ BioCoach...');
|
| 330 |
+
});
|
| 331 |
+
}
|
| 332 |
+
|
| 333 |
+
if (callBtn) {
|
| 334 |
+
callBtn.addEventListener('click', function() {
|
| 335 |
+
alert('เปิดหน้าจอนัดหมายวิดีโอคอล...');
|
| 336 |
+
});
|
| 337 |
+
}
|
| 338 |
+
}
|
style.css
CHANGED
|
@@ -1,28 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
body {
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
margin-top: 0;
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
}
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
padding: 16px;
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* Custom Styles for WP WELLNET */
|
| 2 |
+
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');
|
| 3 |
+
|
| 4 |
body {
|
| 5 |
+
font-family: 'Prompt', sans-serif;
|
| 6 |
+
-webkit-font-smoothing: antialiased;
|
| 7 |
+
-moz-osx-font-smoothing: grayscale;
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
/* Hide all views by default except dashboard */
|
| 11 |
+
.view {
|
| 12 |
+
display: none;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
.view:first-child {
|
| 16 |
+
display: block;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
/* Custom animations */
|
| 20 |
+
@keyframes fadeIn {
|
| 21 |
+
from {
|
| 22 |
+
opacity: 0;
|
| 23 |
+
transform: translateY(10px);
|
| 24 |
+
}
|
| 25 |
+
to {
|
| 26 |
+
opacity: 1;
|
| 27 |
+
transform: translateY(0);
|
| 28 |
+
}
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
.view.active {
|
| 32 |
+
display: block;
|
| 33 |
+
animation: fadeIn 0.3s ease-out;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
/* Custom scrollbar */
|
| 37 |
+
::-webkit-scrollbar {
|
| 38 |
+
width: 6px;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
::-webkit-scrollbar-track {
|
| 42 |
+
background: #f1f1f1;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
::-webkit-scrollbar-thumb {
|
| 46 |
+
background: #A5D6A7;
|
| 47 |
+
border-radius: 3px;
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
::-webkit-scrollbar-thumb:hover {
|
| 51 |
+
background: #81C784;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
/* Smooth transitions */
|
| 55 |
+
.nav-item {
|
| 56 |
+
transition: all 0.2s ease;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
.nav-item.active {
|
| 60 |
+
color: #10B981;
|
| 61 |
}
|
| 62 |
|
| 63 |
+
.nav-item:hover {
|
| 64 |
+
transform: translateY(-1px);
|
|
|
|
| 65 |
}
|
| 66 |
|
| 67 |
+
/* Card hover effects */
|
| 68 |
+
.bg-white:hover {
|
| 69 |
+
transform: translateY(-2px);
|
| 70 |
+
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
|
| 71 |
+
transition: all 0.2s ease;
|
| 72 |
}
|
| 73 |
|
| 74 |
+
/* Button animations */
|
| 75 |
+
button {
|
| 76 |
+
transition: all 0.2s ease;
|
|
|
|
|
|
|
|
|
|
| 77 |
}
|
| 78 |
|
| 79 |
+
button:active {
|
| 80 |
+
transform: scale(0.98);
|
| 81 |
}
|
| 82 |
+
|
| 83 |
+
/* Progress circle animation */
|
| 84 |
+
circle {
|
| 85 |
+
transition: stroke-dashoffset 0.5s ease-in-out;
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
/* Checkbox custom styling */
|
| 89 |
+
input[type="checkbox"] {
|
| 90 |
+
appearance: none;
|
| 91 |
+
width: 18px;
|
| 92 |
+
height: 18px;
|
| 93 |
+
border: 2px solid #D1D5DB;
|
| 94 |
+
border-radius: 4px;
|
| 95 |
+
cursor: pointer;
|
| 96 |
+
position: relative;
|
| 97 |
+
transition: all 0.2s ease;
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
input[type="checkbox"]:checked {
|
| 101 |
+
background-color: #10B981;
|
| 102 |
+
border-color: #10B981;
|
| 103 |
+
}
|
| 104 |
+
|
| 105 |
+
input[type="checkbox"]:checked::after {
|
| 106 |
+
content: '✓';
|
| 107 |
+
position: absolute;
|
| 108 |
+
color: white;
|
| 109 |
+
font-size: 12px;
|
| 110 |
+
top: 50%;
|
| 111 |
+
left: 50%;
|
| 112 |
+
transform: translate(-50%, -50%);
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
/* Chart container responsiveness */
|
| 116 |
+
canvas {
|
| 117 |
+
max-width: 100%;
|
| 118 |
+
height: auto !important;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
/* Floating animation for badges */
|
| 122 |
+
@keyframes float {
|
| 123 |
+
0%, 100% {
|
| 124 |
+
transform: translateY(0px);
|
| 125 |
+
}
|
| 126 |
+
50% {
|
| 127 |
+
transform: translateY(-5px);
|
| 128 |
+
}
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
.badge-float {
|
| 132 |
+
animation: float 3s ease-in-out infinite;
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
/* Mobile optimizations */
|
| 136 |
+
@media (max-width: 640px) {
|
| 137 |
+
.px-4 {
|
| 138 |
+
padding-left: 1rem;
|
| 139 |
+
padding-right: 1rem;
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
.text-3xl {
|
| 143 |
+
font-size: 1.875rem;
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
.text-2xl {
|
| 147 |
+
font-size: 1.5rem;
|
| 148 |
+
}
|
| 149 |
+
}
|
| 150 |
+
|
| 151 |
+
/* Focus states for accessibility */
|
| 152 |
+
button:focus,
|
| 153 |
+
input:focus,
|
| 154 |
+
select:focus {
|
| 155 |
+
outline: 2px solid #10B981;
|
| 156 |
+
outline-offset: 2px;
|
| 157 |
+
}
|
| 158 |
+
|
| 159 |
+
/* Loading spinner */
|
| 160 |
+
@keyframes spin {
|
| 161 |
+
to {
|
| 162 |
+
transform: rotate(360deg);
|
| 163 |
+
}
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
.spinner {
|
| 167 |
+
animation: spin 1s linear infinite;
|
| 168 |
+
}
|