Spaces:
Running
Running
Download settings.html from CSNET/pulse-thai-health-coach: direct link, hf CLI and curl.
- Browser
- Download file 18 kB
-
https://huggingface.co/spaces/CSNET/pulse-thai-health-coach/resolve/main/settings.html
- Command line
-
hf download hf://spaces/CSNET/pulse-thai-health-coach/settings.html
-
curl -L -o settings.html https://huggingface.co/spaces/CSNET/pulse-thai-health-coach/resolve/main/settings.html
18 kB
| <html lang="th"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>ตั้งค่า - ชีพจร Pulse</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 = { | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: { | |
| 50: '#f0fdf4', | |
| 100: '#dcfce7', | |
| 200: '#bbf7d0', | |
| 300: '#86efac', | |
| 400: '#4ade80', | |
| 500: '#22c55e', | |
| 600: '#16a34a', | |
| 700: '#15803d', | |
| 800: '#166534', | |
| 900: '#14532d', | |
| } | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| </head> | |
| <body class="bg-gray-50 font-sans"> | |
| <!-- Header --> | |
| <div class="bg-white shadow-sm border-b border-gray-200"> | |
| <div class="max-w-4xl mx-auto px-4 py-4"> | |
| <div class="flex items-center justify-between"> | |
| <div class="flex items-center gap-3"> | |
| <button onclick="window.history.back()" class="p-2 hover:bg-gray-100 rounded-lg transition-colors"> | |
| <i data-feather="arrow-left" class="w-5 h-5"></i> | |
| </button> | |
| <h1 class="text-xl font-semibold text-gray-900">ตั้งค่า</h1> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <main class="max-w-4xl mx-auto px-4 py-6 space-y-6"> | |
| <!-- Profile Section --> | |
| <div class="bg-white rounded-xl shadow-sm border border-gray-200"> | |
| <div class="p-6"> | |
| <h2 class="text-lg font-semibold text-gray-900 mb-4 flex items-center gap-2"> | |
| <i data-feather="user" class="w-5 h-5 text-primary-600"></i> | |
| ข้อมูลส่วนตัว | |
| </h2> | |
| <div class="flex items-center gap-4 mb-6"> | |
| <div class="w-20 h-20 bg-primary-100 rounded-full flex items-center justify-center"> | |
| <span class="text-3xl">👤</span> | |
| </div> | |
| <div> | |
| <h3 class="text-lg font-medium text-gray-900">สมชาย ใจดี</h3> | |
| <p class="text-sm text-gray-500">somchai@email.com</p> | |
| </div> | |
| <button class="ml-auto px-4 py-2 text-sm text-primary-600 hover:text-primary-700 font-medium"> | |
| แก้ไขโปรไฟล์ | |
| </button> | |
| </div> | |
| <div class="grid grid-cols-2 gap-4 text-sm"> | |
| <div> | |
| <p class="text-gray-500">เพศ</p> | |
| <p class="font-medium">ชาย</p> | |
| </div> | |
| <div> | |
| <p class="text-gray-500">วันเกิด</p> | |
| <p class="font-medium">15 มกราคม 2535</p> | |
| </div> | |
| <div> | |
| <p class="text-gray-500">ส่วนสูง</p> | |
| <p class="font-medium">170 ซม.</p> | |
| </div> | |
| <div> | |
| <p class="text-gray-500">น้ำหนัก</p> | |
| <p class="font-medium">65 กก.</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Goals Section --> | |
| <div class="bg-white rounded-xl shadow-sm border border-gray-200"> | |
| <div class="p-6"> | |
| <h2 class="text-lg font-semibold text-gray-900 mb-4 flex items-center gap-2"> | |
| <i data-feather="target" class="w-5 h-5 text-primary-600"></i> | |
| เป้าหมายและการกิน | |
| </h2> | |
| <div class="space-y-4"> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-2">เป้าหมายหลัก</label> | |
| <select class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500"> | |
| <option value="weight_loss">ลดน้ำหนัก</option> | |
| <option value="muscle_gain">เพิ่มกล้ามเนื้อ</option> | |
| <option value="endurance">เพิ่มความอึด</option> | |
| <option value="general_health">สุขภาพดีทั่วไป</option> | |
| <option value="stress_management">จัดการความเครียด</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-2">รูปแบบการกิน</label> | |
| <select class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500"> | |
| <option value="regular">ทั่วไป</option> | |
| <option value="intermittent">Intermittent Fasting</option> | |
| <option value="vegetarian">มังสวิรัติ</option> | |
| <option value="vegan">เจ</option> | |
| </select> | |
| </div> | |
| </div> | |
| <button class="mt-4 px-4 py-2 bg-primary-600 text-white rounded-lg hover:bg-primary-700 transition-colors text-sm font-medium"> | |
| บันทึกการเปลี่ยนแปลง | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Addresses Section --> | |
| <div class="bg-white rounded-xl shadow-sm border border-gray-200"> | |
| <div class="p-6"> | |
| <h2 class="text-lg font-semibold text-gray-900 mb-4 flex items-center gap-2"> | |
| <i data-feather="map-pin" class="w-5 h-5 text-primary-600"></i> | |
| ที่อยู่ | |
| </h2> | |
| <div class="space-y-6"> | |
| <div> | |
| <h3 class="font-medium text-gray-900 mb-3">ที่อยู่บ้าน</h3> | |
| <div class="space-y-3"> | |
| <input type="text" placeholder="ที่อยู่" value="123 ถนนสุขุมวิท แขวงคลองตันเหนือ" | |
| class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500"> | |
| <div class="grid grid-cols-2 gap-3"> | |
| <input type="text" placeholder="เขต/อำเภอ" value="เขตวัฒนา" | |
| class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500"> | |
| <input type="text" placeholder="จังหวัด" value="กรุงเทพมหานคร" | |
| class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500"> | |
| </div> | |
| <input type="number" placeholder="รหัสไปรษณีย์" value="10110" | |
| class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500"> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="font-medium text-gray-900 mb-3">ที่อยู่ที่ทำงาน</h3> | |
| <div class="space-y-3"> | |
| <input type="text" placeholder="ที่อยู่" value="456 ถนนรัชดาภิเษก แขวงห้วยขวาง" | |
| class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500"> | |
| <div class="grid grid-cols-2 gap-3"> | |
| <input type="text" placeholder="เขต/อำเภอ" value="เขตห้วยขวาง" | |
| class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500"> | |
| <input type="text" placeholder="จังหวัด" value="กรุงเทพมหานคร" | |
| class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500"> | |
| </div> | |
| <input type="number" placeholder="รหัสไปรษณีย์" value="10310" | |
| class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500"> | |
| </div> | |
| </div> | |
| </div> | |
| <button class="mt-4 px-4 py-2 bg-primary-600 text-white rounded-lg hover:bg-primary-700 transition-colors text-sm font-medium"> | |
| บันทึกที่อยู่ | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Notifications Section --> | |
| <div class="bg-white rounded-xl shadow-sm border border-gray-200"> | |
| <div class="p-6"> | |
| <h2 class="text-lg font-semibold text-gray-900 mb-4 flex items-center gap-2"> | |
| <i data-feather="bell" class="w-5 h-5 text-primary-600"></i> | |
| การแจ้งเตือน | |
| </h2> | |
| <div class="space-y-3"> | |
| <label class="flex items-center justify-between"> | |
| <div> | |
| <p class="font-medium text-gray-900">แจ้งเตือนการนอน</p> | |
| <p class="text-sm text-gray-500">เตือนเวลาเข้านอนและตื่นนอน</p> | |
| </div> | |
| <input type="checkbox" checked class="w-5 h-5 text-primary-600 rounded focus:ring-primary-500"> | |
| </label> | |
| <label class="flex items-center justify-between"> | |
| <div> | |
| <p class="font-medium text-gray-900">แจ้งเตือนออกกำลังกาย</p> | |
| <p class="text-sm text-gray-500">เตือนให้ขยับร่างกาย</p> | |
| </div> | |
| <input type="checkbox" checked class="w-5 h-5 text-primary-600 rounded focus:ring-primary-500"> | |
| </label> | |
| <label class="flex items-center justify-between"> | |
| <div> | |
| <p class="font-medium text-gray-900">แจ้งเตือนบันทึกอาหาร</p> | |
| <p class="text-sm text-gray-500">เตือนให้บันทึกมื้ออาหาร</p> | |
| </div> | |
| <input type="checkbox" class="w-5 h-5 text-primary-600 rounded focus:ring-primary-500"> | |
| </label> | |
| <label class="flex items-center justify-between"> | |
| <div> | |
| <p class="font-medium text-gray-900">แจ้งเตือนคุณภาพอากาศ</p> | |
| <p class="text-sm text-gray-500">เมื่อ AQI สูง</p> | |
| </div> | |
| <input type="checkbox" checked class="w-5 h-5 text-primary-600 rounded focus:ring-primary-500"> | |
| </label> | |
| <label class="flex items-center justify-between"> | |
| <div> | |
| <p class="font-medium text-gray-900">แจ้งเตือนการจราจร</p> | |
| <p class="text-sm text-gray-500">เมื่อรถติดหนัก</p> | |
| </div> | |
| <input type="checkbox" checked class="w-5 h-5 text-primary-600 rounded focus:ring-primary-500"> | |
| </label> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Privacy Section --> | |
| <div class="bg-white rounded-xl shadow-sm border border-gray-200"> | |
| <div class="p-6"> | |
| <h2 class="text-lg font-semibold text-gray-900 mb-4 flex items-center gap-2"> | |
| <i data-feather="shield" class="w-5 h-5 text-primary-600"></i> | |
| ความเป็นส่วนตัว | |
| </h2> | |
| <div class="space-y-3"> | |
| <label class="flex items-center justify-between"> | |
| <div> | |
| <p class="font-medium text-gray-900">แชร์ข้อมูลสุขภาพ</p> | |
| <p class="text-sm text-gray-500">แชร์ข้อมูลกับทีม</p> | |
| </div> | |
| <input type="checkbox" class="w-5 h-5 text-primary-600 rounded focus:ring-primary-500"> | |
| </label> | |
| <label class="flex items-center justify-between"> | |
| <div> | |
| <p class="font-medium text-gray-900">ตำแหน่งที่ตั้ง</p> | |
| <p class="text-sm text-gray-500">ใช้สำหรับ AQI และจราจร</p> | |
| </div> | |
| <input type="checkbox" checked class="w-5 h-5 text-primary-600 rounded focus:ring-primary-500"> | |
| </label> | |
| <label class="flex items-center justify-between"> | |
| <div> | |
| <p class="font-medium text-gray-900">ข้อมูลบริบท</p> | |
| <p class="text-sm text-gray-500">ดึงข้อมูลสิ่งแวดล้อม</p> | |
| </div> | |
| <input type="checkbox" checked class="w-5 h-5 text-primary-600 rounded focus:ring-primary-500"> | |
| </label> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Account Actions --> | |
| <div class="bg-white rounded-xl shadow-sm border border-gray-200"> | |
| <div class="p-6"> | |
| <h2 class="text-lg font-semibold text-gray-900 mb-4 flex items-center gap-2"> | |
| <i data-feather="settings" class="w-5 h-5 text-primary-600"></i> | |
| จัดการบัญชี | |
| </h2> | |
| <div class="space-y-3"> | |
| <button class="w-full text-left px-4 py-3 hover:bg-gray-50 rounded-lg transition-colors flex items-center justify-between"> | |
| <span class="text-gray-900">เปลี่ยนรหัสผ่าน</span> | |
| <i data-feather="chevron-right" class="w-4 h-4 text-gray-400"></i> | |
| </button> | |
| <button class="w-full text-left px-4 py-3 hover:bg-gray-50 rounded-lg transition-colors flex items-center justify-between"> | |
| <span class="text-gray-900">จัดการอุปกรณ์</span> | |
| <i data-feather="chevron-right" class="w-4 h-4 text-gray-400"></i> | |
| </button> | |
| <button class="w-full text-left px-4 py-3 hover:bg-gray-50 rounded-lg transition-colors flex items-center justify-between"> | |
| <span class="text-gray-900">ส่งออกข้อมูล</span> | |
| <i data-feather="chevron-right" class="w-4 h-4 text-gray-400"></i> | |
| </button> | |
| <button class="w-full text-left px-4 py-3 hover:bg-gray-50 rounded-lg transition-colors flex items-center justify-between"> | |
| <span class="text-gray-900">นโยบายความเป็นส่วนตัว</span> | |
| <i data-feather="chevron-right" class="w-4 h-4 text-gray-400"></i> | |
| </button> | |
| <button class="w-full text-left px-4 py-3 hover:bg-gray-50 rounded-lg transition-colors flex items-center justify-between"> | |
| <span class="text-red-600">ออกจากระบบ</span> | |
| <i data-feather="log-out" class="w-4 h-4 text-red-400"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| <script src="auth.js"></script> | |
| <script> | |
| feather.replace(); | |
| </script> | |
| </body> | |
| </html> |