CSNET's picture
Design a single-page mobile-first HTML5 web app in Thai language for a health-tech platform under the brand "WP WELLNET – Longevity Platform", combining smart band, MyScale, and AI wellness tracking to extend lifespan.
37c8390 verified
Raw History Blame Contribute Delete
20.5 kB
<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>WP WELLNET – Longevity Platform</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">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<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: '#A5D6A7',
'primary-dark': '#81C784',
'primary-light': '#C8E6C9',
},
fontFamily: {
'thai': ['Prompt', 'sans-serif'],
}
}
}
}
</script>
</head>
<body class="font-thai bg-gray-50 text-gray-800 min-h-screen pb-16">
<!-- Fixed Header -->
<header class="fixed top-0 left-0 right-0 bg-white shadow-sm z-40 px-4 py-3">
<div class="flex items-center justify-between">
<div class="flex items-center space-x-2">
<div class="w-10 h-10 bg-primary rounded-lg flex items-center justify-center">
<span class="text-white font-bold">WP</span>
</div>
<span class="text-sm font-semibold">WELLNET</span>
</div>
<div class="flex items-center space-x-4">
<button class="relative p-2 hover:bg-gray-100 rounded-lg transition-colors">
<i data-feather="bell" class="w-5 h-5"></i>
<span class="absolute top-1 right-1 w-2 h-2 bg-red-500 rounded-full"></span>
</button>
<button class="relative p-2 hover:bg-gray-100 rounded-lg transition-colors">
<i data-feather="user" class="w-5 h-5"></i>
</button>
</div>
</div>
</header>
<!-- Main Content -->
<main class="pt-16 px-4 space-y-6">
<!-- Dashboard Section -->
<section id="dashboard" class="py-6">
<h2 class="text-2xl font-bold mb-4">หน้าหลัก</h2>
<!-- Biological Age Card -->
<div class="bg-gradient-to-br from-primary to-primary-light rounded-2xl p-6 text-white shadow-lg mb-6">
<div class="text-center">
<p class="text-sm opacity-90 mb-2">อายุชีวภาพปัจจุบัน</p>
<div class="flex items-center justify-center space-x-4">
<div>
<p class="text-4xl font-bold">34</p>
<p class="text-xs opacity-75">ปี</p>
</div>
<div class="text-2xl">↓</div>
<div>
<p class="text-2xl font-semibold">38</p>
<p class="text-xs opacity-75">อายุจริง</p>
</div>
</div>
<div class="mt-4 bg-white/20 rounded-full h-3 overflow-hidden">
<div class="bg-white h-full rounded-full" style="width: 65%"></div>
</div>
<p class="text-xs mt-2 opacity-90">ลดลง 65% ของเป้าหมาย</p>
</div>
</div>
<!-- Health Summary Bars -->
<div class="grid grid-cols-2 gap-3 mb-6">
<div class="bg-white rounded-xl p-4 shadow-sm">
<div class="flex items-center justify-between mb-2">
<span class="text-xs text-gray-600">HRV</span>
<span class="text-xs font-semibold text-primary">ดี</span>
</div>
<div class="bg-gray-200 rounded-full h-2">
<div class="bg-primary h-full rounded-full" style="width: 75%"></div>
</div>
</div>
<div class="bg-white rounded-xl p-4 shadow-sm">
<div class="flex items-center justify-between mb-2">
<span class="text-xs text-gray-600">ความเครียด</span>
<span class="text-xs font-semibold text-yellow-500">ปานกลาง</span>
</div>
<div class="bg-gray-200 rounded-full h-2">
<div class="bg-yellow-400 h-full rounded-full" style="width: 45%"></div>
</div>
</div>
<div class="bg-white rounded-xl p-4 shadow-sm">
<div class="flex items-center justify-between mb-2">
<span class="text-xs text-gray-600">การนอนหลับ</span>
<span class="text-xs font-semibold text-primary">ยอดเยี่ยม</span>
</div>
<div class="bg-gray-200 rounded-full h-2">
<div class="bg-primary h-full rounded-full" style="width: 85%"></div>
</div>
</div>
<div class="bg-white rounded-xl p-4 shadow-sm">
<div class="flex items-center justify-between mb-2">
<span class="text-xs text-gray-600">กล้ามเนื้อ</span>
<span class="text-xs font-semibold text-primary">ดี</span>
</div>
<div class="bg-gray-200 rounded-full h-2">
<div class="bg-primary h-full rounded-full" style="width: 70%"></div>
</div>
</div>
</div>
</section>
<!-- AI Analysis Section -->
<section id="ai-analysis" class="py-6 bg-white rounded-2xl p-4 shadow-sm">
<h3 class="text-lg font-bold mb-4">ระบบวิเคราะห์ชีวภาพ</h3>
<button class="w-full bg-primary text-white rounded-xl py-3 font-semibold hover:bg-primary-dark transition-colors mb-4">
<i data-feather="refresh-cw" class="inline w-4 h-4 mr-2"></i>
วิเคราะห์ใหม่
</button>
<div class="space-y-3">
<div class="bg-primary-light/30 rounded-lg p-3">
<p class="text-sm font-medium mb-1">Smart Band ล่าสุด</p>
<p class="text-xs text-gray-600">HRV: 42ms | การนอน: 7.5 ชม. | ก้าว: 8,234</p>
</div>
<div class="bg-primary-light/30 rounded-lg p-3">
<p class="text-sm font-medium mb-1">MyScale ล่าสุด</p>
<p class="text-xs text-gray-600">น้ำหนัก: 68.2kg | ไขมัน: 18.5% | กล้ามเนื้อ: 45.2%</p>
</div>
<div class="bg-yellow-50 rounded-lg p-3">
<p class="text-xs font-semibold text-yellow-800 mb-2">แนะนำจาก AI วันนี้</p>
<p class="text-xs text-gray-700">• นอนเร็วขึ้น 15 นาทีคืนนี้</p>
<p class="text-xs text-gray-700">• เดินเพิ่มอีก 2,000 ก้าว</p>
<p class="text-xs text-gray-700">• ดื่มน้ำมากขึ้น 500ml</p>
</div>
</div>
</section>
<!-- 90-Day Longevity Plan -->
<section id="longevity-plan" class="py-6">
<h3 class="text-lg font-bold mb-4">แผนย้อนวัย 90 วัน</h3>
<div class="bg-white rounded-2xl shadow-sm overflow-hidden">
<div class="bg-gradient-to-r from-primary to-primary-light p-4">
<div class="flex justify-between items-center text-white">
<span class="text-sm">วันที่ 15 ของ 90</span>
<span class="text-sm font-semibold">16.7%</span>
</div>
</div>
<div class="p-4 space-y-3">
<div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
<div>
<p class="text-sm font-medium">วันนี้ (วันที่ 15)</p>
<p class="text-xs text-gray-600">กิน ADEK, เดิน 6,000 ก้าว</p>
</div>
<button class="bg-green-100 text-green-600 px-3 py-1 rounded-full text-xs font-semibold">
สำเร็จ
</button>
</div>
<div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
<div>
<p class="text-sm font-medium">พรุ่งนี้ (วันที่ 16)</p>
<p class="text-xs text-gray-600">หลีกเลี่ยงกาแฟ, โยคะ 15 นาที</p>
</div>
<button class="bg-gray-200 text-gray-600 px-3 py-1 rounded-full text-xs font-semibold">
รอดำเนินการ
</button>
</div>
</div>
</div>
</section>
<!-- Tracking Section -->
<section id="tracking" class="py-6">
<h3 class="text-lg font-bold mb-4">ระบบติดตามร่างกาย</h3>
<div class="bg-white rounded-2xl p-4 shadow-sm">
<div class="flex space-x-2 mb-4">
<button class="px-3 py-1 bg-primary text-white rounded-full text-xs font-semibold">7 วัน</button>
<button class="px-3 py-1 bg-gray-200 text-gray-600 rounded-full text-xs font-semibold">30 วัน</button>
</div>
<div class="space-y-4">
<div>
<div class="flex justify-between items-center mb-1">
<span class="text-xs font-medium">Fat %</span>
<span class="text-xs text-gray-600">18.5% → 17.8%</span>
</div>
<canvas id="fatChart" class="w-full h-20"></canvas>
</div>
<div>
<div class="flex justify-between items-center mb-1">
<span class="text-xs font-medium">คุณภาพการนอน</span>
<span class="text-xs text-gray-600">78%</span>
</div>
<div class="flex space-x-1">
<div class="flex-1 bg-green-400 h-2 rounded"></div>
<div class="flex-1 bg-green-400 h-2 rounded"></div>
<div class="flex-1 bg-yellow-400 h-2 rounded"></div>
<div class="flex-1 bg-green-400 h-2 rounded"></div>
<div class="flex-1 bg-green-400 h-2 rounded"></div>
<div class="flex-1 bg-red-400 h-2 rounded"></div>
<div class="flex-1 bg-green-400 h-2 rounded"></div>
</div>
</div>
<button class="w-full py-2 border border-primary text-primary rounded-lg text-sm font-medium hover:bg-primary-light transition-colors">
<i data-feather="plus" class="inline w-4 h-4 mr-1"></i>
บันทึกเหตุการณ์พิเศษ
</button>
</div>
</div>
</section>
<!-- Product Recommendations -->
<section id="products" class="py-6">
<h3 class="text-lg font-bold mb-4">ร้านค้าแนะนำ</h3>
<div class="space-y-3">
<div class="bg-white rounded-xl p-4 shadow-sm">
<div class="flex items-start space-x-3">
<img src="https://static.photos/health/80x80/1" alt="Product" class="w-20 h-20 rounded-lg object-cover">
<div class="flex-1">
<p class="text-sm font-semibold">Resveratrol Plus</p>
<p class="text-xs text-gray-600 mb-2">คุณควรเพิ่มเพื่อต้านอนุมูลอิสระ</p>
<div class="flex items-center justify-between">
<span class="text-sm font-bold text-primary">฿890</span>
<button class="bg-primary text-white px-3 py-1 rounded-lg text-xs font-semibold">
สั่งซื้อทันที
</button>
</div>
</div>
</div>
</div>
<div class="bg-yellow-50 rounded-xl p-3">
<p class="text-xs font-semibold text-yellow-800 mb-1">🎉 ส่วนลดสมาชิก Longevity Club</p>
<p class="text-xs text-gray-700">รับส่วนลด 15% สำหรับสมาชิก</p>
</div>
</div>
</section>
<!-- Auto-Reorder System -->
<section id="reorder" class="py-6">
<h3 class="text-lg font-bold mb-4">ระบบซื้อซ้ำอัตโนมัติ</h3>
<div class="bg-white rounded-xl p-4 shadow-sm space-y-3">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium">ADEK Complete</p>
<p class="text-xs text-gray-600">ครั้งต่อไป: 5 วัน</p>
</div>
<button class="bg-primary text-white px-4 py-2 rounded-lg text-xs font-semibold">
ซื้อซ้ำ 1 คลิก
</button>
</div>
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium">Sleep Support</p>
<p class="text-xs text-gray-600">ครั้งต่อไป: 12 วัน</p>
</div>
<button class="bg-gray-200 text-gray-700 px-4 py-2 rounded-lg text-xs font-semibold">
ตั้งค่า
</button>
</div>
</div>
</section>
<!-- Mission & Reward -->
<section id="rewards" class="py-6">
<h3 class="text-lg font-bold mb-4">Mission & Reward</h3>
<div class="bg-gradient-to-br from-purple-500 to-pink-500 rounded-2xl p-4 text-white shadow-lg">
<div class="text-center mb-4">
<p class="text-2xl font-bold">750</p>
<p class="text-xs opacity-90">แต้มสะสม</p>
</div>
<div class="bg-white/20 rounded-lg p-3 mb-3">
<p class="text-xs font-semibold mb-1">ภารกิจปัจจุบัน</p>
<p class="text-xs">ทำภารกิจครบ 5 วันต่อเนื่อง → รับ 100 แต้ม</p>
<div class="mt-2 bg-white/30 rounded-full h-2">
<div class="bg-white h-full rounded-full" style="width: 60%"></div>
</div>
</div>
<div class="flex space-x-2">
<div class="flex-1 bg-white/20 rounded-lg p-2 text-center">
<span class="text-lg">🏆</span>
<p class="text-xs mt-1">BioAge Warrior</p>
</div>
<div class="flex-1 bg-white/20 rounded-lg p-2 text-center">
<span class="text-lg">😴</span>
<p class="text-xs mt-1">Sleep Master</p>
</div>
<div class="flex-1 bg-white/20 rounded-lg p-2 text-center">
<span class="text-lg">💪</span>
<p class="text-xs mt-1">Step Champion</p>
</div>
</div>
</div>
</section>
<!-- BioCoach Connection -->
<section id="biocoach" class="py-6">
<h3 class="text-lg font-bold mb-4">เชื่อมต่อ BioCoach</h3>
<div class="bg-white rounded-xl p-4 shadow-sm">
<div class="flex items-center space-x-3 mb-4">
<img src="https://static.photos/people/60x60/2" alt="Coach" class="w-14 h-14 rounded-full object-cover">
<div>
<p class="text-sm font-semibold">คุณสมชาย ใจดี</p>
<p class="text-xs text-gray-600">BioCoach มืออาชีพ | ประสบการณ์ 5 ปี</p>
</div>
</div>
<div class="grid grid-cols-3 gap-2">
<button class="py-2 bg-primary text-white rounded-lg text-xs font-semibold">
<i data-feather="message-circle" class="inline w-3 h-3"></i> แชท
</button>
<button class="py-2 bg-gray-200 text-gray-700 rounded-lg text-xs font-semibold">
<i data-feather="video" class="inline w-3 h-3"></i> วิดีโอคอล
</button>
<button class="py-2 bg-gray-200 text-gray-700 rounded-lg text-xs font-semibold">
<i data-feather="file-text" class="inline w-3 h-3"></i> ถาม
</button>
</div>
</div>
</section>
</main>
<!-- Bottom Navigation -->
<nav class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 z-40">
<div class="grid grid-cols-5 py-2">
<button class="flex flex-col items-center py-2 text-primary">
<i data-feather="home" class="w-5 h-5"></i>
<span class="text-xs mt-1">หน้าหลัก</span>
</button>
<button class="flex flex-col items-center py-2 text-gray-500">
<i data-feather="activity" class="w-5 h-5"></i>
<span class="text-xs mt-1">วิเคราะห์</span>
</button>
<button class="flex flex-col items-center py-2 text-gray-500">
<i data-feather="calendar" class="w-5 h-5"></i>
<span class="text-xs mt-1">แผน</span>
</button>
<button class="flex flex-col items-center py-2 text-gray-500">
<i data-feather="shopping-cart" class="w-5 h-5"></i>
<span class="text-xs mt-1">สินค้า</span>
</button>
<button class="flex flex-col items-center py-2 text-gray-500">
<i data-feather="award" class="w-5 h-5"></i>
<span class="text-xs mt-1">รางวัล</span>
</button>
</div>
</nav>
<script src="script.js"></script>
<script>feather.replace();</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>