fit-journey-tracker / index.html
CSNET's picture
ทำต่อให้จบ
f2ca0d6 verified
Raw History Blame Contribute Delete
31.2 kB
<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WP WELLNET – Fit & Firm 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='0.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>
<link href="https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap" rel="stylesheet">
</head>
<body class="bg-gray-50 font-['Prompt']">
<!-- Header -->
<header class="bg-white shadow-sm fixed top-0 w-full z-40">
<div class="container mx-auto px-4 py-3 flex items-center justify-between">
<div class="flex items-center space-x-2">
<div class="w-10 h-10 bg-green-300 rounded-full flex items-center justify-center">
<span class="text-white font-bold text-xl">W</span>
</div>
<span class="font-semibold text-lg">WP WELLNET</span>
</div>
<div class="flex items-center space-x-4">
<button class="relative">
<i data-feather="bell" class="w-6 h-6 text-gray-600"></i>
<span class="absolute -top-1 -right-1 w-3 h-3 bg-red-500 rounded-full"></span>
</button>
<div class="w-10 h-10 bg-gradient-to-r from-green-300 to-green-400 rounded-full flex items-center justify-center">
<span class="text-white font-semibold">ก</span>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="pt-16 pb-20 min-h-screen">
<div class="container mx-auto px-4 py-4">
<!-- Tab Content -->
<div id="tab-content">
<!-- Dashboard Tab -->
<div id="dashboard" class="tab-content">
<div class="bg-gradient-to-r from-green-200 to-green-300 rounded-2xl p-6 mb-6 text-white">
<h2 class="text-2xl font-bold mb-2">ยินดีต้อนรับกลับมา</h2>
<p class="text-lg">คุณมีเป้าหมาย: ลดไขมัน 3% ใน 60 วัน</p>
</div>
<!-- Today's Stats -->
<div class="bg-white rounded-2xl p-4 mb-6 shadow-sm">
<h3 class="font-semibold text-lg mb-4">ข้อมูลวันนี้</h3>
<div class="grid grid-cols-2 gap-4">
<div class="bg-gray-50 p-3 rounded-lg">
<div class="flex items-center justify-between">
<span class="text-gray-600 text-sm">ไขมัน</span>
<i data-feather="trending-down" class="w-4 h-4 text-green-500"></i>
</div>
<p class="text-xl font-bold">28.5%</p>
<p class="text-xs text-gray-500">เป้าหมาย: 25%</p>
</div>
<div class="bg-gray-50 p-3 rounded-lg">
<div class="flex items-center justify-between">
<span class="text-gray-600 text-sm">กล้ามเนื้อ</span>
<i data-feather="check-circle" class="w-4 h-4 text-green-500"></i>
</div>
<p class="text-xl font-bold">31.2 กก.</p>
<p class="text-xs text-green-500">ตามเป้าหมาย</p>
</div>
<div class="bg-gray-50 p-3 rounded-lg">
<span class="text-gray-600 text-sm">น้ำหนัก</span>
<p class="text-xl font-bold">66.4 กก.</p>
</div>
<div class="bg-gray-50 p-3 rounded-lg">
<span class="text-gray-600 text-sm">BMR</span>
<p class="text-xl font-bold">1,540 kcal</p>
</div>
</div>
</div>
<!-- Status Today -->
<div class="bg-white rounded-2xl p-4 shadow-sm">
<h3 class="font-semibold text-lg mb-4">สถานะวันนี้</h3>
<div class="space-y-3">
<div class="flex items-center justify-between p-3 bg-orange-50 rounded-lg">
<div class="flex items-center space-x-3">
<span class="text-2xl">🔋</span>
<div>
<p class="font-medium">เผาผลาญแล้ว</p>
<p class="text-sm text-gray-500">เป้าหมาย 2,000 kcal</p>
</div>
</div>
<span class="font-bold text-orange-600">1,830 kcal</span>
</div>
<div class="flex items-center justify-between p-3 bg-blue-50 rounded-lg">
<div class="flex items-center space-x-3">
<span class="text-2xl">🏃‍♀️</span>
<div>
<p class="font-medium">เดินแล้ว</p>
<p class="text-sm text-gray-500">เป้าหมาย 8,000 ก้าว</p>
</div>
</div>
<span class="font-bold text-blue-600">6,200 ก้าว</span>
</div>
<div class="p-3 bg-green-50 rounded-lg">
<p class="font-medium mb-2">Meal Plan วันนี้</p>
<div class="flex space-x-4">
<span class="flex items-center space-x-1">
<i data-feather="check" class="w-4 h-4 text-green-500"></i>
<span class="text-sm">เช้า</span>
</span>
<span class="flex items-center space-x-1">
<i data-feather="check" class="w-4 h-4 text-green-500"></i>
<span class="text-sm">กลางวัน</span>
</span>
<span class="flex items-center space-x-1">
<i data-feather="x" class="w-4 h-4 text-red-500"></i>
<span class="text-sm">เย็น</span>
</span>
</div>
</div>
</div>
</div>
</div>
<!-- Journey Tab -->
<div id="journey" class="tab-content hidden">
<div class="bg-gradient-to-r from-purple-200 to-purple-300 rounded-2xl p-6 mb-6 text-white">
<h2 class="text-2xl font-bold mb-2">Fit Journey 60 วัน</h2>
<p class="text-lg">วันที่ 18 จาก 60</p>
</div>
<!-- Progress Bar -->
<div class="bg-white rounded-2xl p-4 mb-6 shadow-sm">
<div class="mb-4">
<div class="flex justify-between mb-2">
<span class="text-sm font-medium">ความคืบหน้า</span>
<span class="text-sm font-medium">18/60 วัน</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-3">
<div class="bg-gradient-to-r from-green-400 to-green-500 h-3 rounded-full" style="width: 30%"></div>
</div>
</div>
<div class="text-center">
<p class="text-sm text-gray-600">ทำภารกิจสะสม: 44 / 60 วัน</p>
<p class="font-semibold mt-2">เป้าหมาย: ลดไขมัน 3% ภายใน 60 วัน</p>
</div>
</div>
<!-- Today's Missions -->
<div class="bg-white rounded-2xl p-4 shadow-sm">
<h3 class="font-semibold text-lg mb-4">ภารกิจวันนี้</h3>
<div class="space-y-3">
<div class="flex items-center justify-between p-4 bg-green-50 rounded-lg border border-green-200">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 bg-green-500 rounded-full flex items-center justify-center">
<i data-feather="check" class="w-5 h-5 text-white"></i>
</div>
<div>
<p class="font-medium">กินโปรตีนเช้า 25g</p>
<p class="text-sm text-gray-500">เวลา 07:00-09:00</p>
</div>
</div>
<span class="text-green-600 font-semibold">✅ สำเร็จ</span>
</div>
<div class="flex items-center justify-between p-4 bg-green-50 rounded-lg border border-green-200">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 bg-green-500 rounded-full flex items-center justify-center">
<i data-feather="check" class="w-5 h-5 text-white"></i>
</div>
<div>
<p class="font-medium">เดินเร็ว 30 นาที</p>
<p class="text-sm text-gray-500">เวลา 17:00-19:00</p>
</div>
</div>
<span class="text-green-600 font-semibold">✅ สำเร็จ</span>
</div>
<div class="flex items-center justify-between p-4 bg-red-50 rounded-lg border border-red-200">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 bg-red-500 rounded-full flex items-center justify-center">
<i data-feather="x" class="w-5 h-5 text-white"></i>
</div>
<div>
<p class="font-medium">งดน้ำหวานทั้งวัน</p>
<p class="text-sm text-gray-500">ตลอดทั้งวัน</p>
</div>
</div>
<span class="text-red-600 font-semibold">❌ ไม่สำเร็จ</span>
</div>
</div>
</div>
</div>
<!-- Graph Tab -->
<div id="graph" class="tab-content hidden">
<div class="bg-white rounded-2xl p-4 shadow-sm mb-4">
<h3 class="font-semibold text-lg mb-4">กราฟสุขภาพ</h3>
<!-- Time Range Selector -->
<div class="flex space-x-2 mb-4">
<button onclick="updateGraph(7)" class="px-4 py-2 bg-green-500 text-white rounded-lg text-sm font-medium">7 วัน</button>
<button onclick="updateGraph(30)" class="px-4 py-2 bg-gray-200 text-gray-700 rounded-lg text-sm font-medium">30 วัน</button>
<button onclick="updateGraph(60)" class="px-4 py-2 bg-gray-200 text-gray-700 rounded-lg text-sm font-medium">60 วัน</button>
</div>
<!-- Graph Container -->
<div class="bg-gray-50 p-4 rounded-lg">
<canvas id="healthChart" width="400" height="200"></canvas>
</div>
<!-- Stats Summary -->
<div class="grid grid-cols-3 gap-2 mt-4">
<div class="text-center p-2 bg-blue-50 rounded-lg">
<p class="text-xs text-gray-600">ไขมัน</p>
<p class="text-lg font-bold text-blue-600">28.4%</p>
<p class="text-xs text-green-500">-0.7%</p>
</div>
<div class="text-center p-2 bg-green-50 rounded-lg">
<p class="text-xs text-gray-600">กล้ามเนื้อ</p>
<p class="text-lg font-bold text-green-600">31.2kg</p>
<p class="text-xs text-green-500">+1.0kg</p>
</div>
<div class="text-center p-2 bg-purple-50 rounded-lg">
<p class="text-xs text-gray-600">น้ำหนัก</p>
<p class="text-lg font-bold text-purple-600">66.4kg</p>
<p class="text-xs text-green-500">-0.6kg</p>
</div>
</div>
</div>
</div>
<!-- Products Tab -->
<div id="products" class="tab-content hidden">
<div class="bg-gradient-to-r from-blue-200 to-blue-300 rounded-2xl p-6 mb-6 text-white">
<h2 class="text-xl font-bold mb-2">แนะนำผลิตภัณฑ์</h2>
<p class="text-sm">จากข้อมูลของคุณ เราขอแนะนำแพ็กนี้:</p>
</div>
<!-- Product Cards -->
<div class="space-y-4">
<!-- FIT BURN Pack -->
<div class="bg-white rounded-2xl p-4 shadow-sm">
<div class="flex items-center justify-between mb-3">
<h3 class="font-bold text-lg">📦 แพ็ก FIT BURN</h3>
<span class="bg-orange-100 text-orange-600 px-2 py-1 rounded-full text-sm font-semibold">ยอดนิยม</span>
</div>
<div class="space-y-2 mb-4">
<div class="flex items-center space-x-2">
<i data-feather="check" class="w-4 h-4 text-green-500"></i>
<span class="text-sm">Whey-Fit 900g</span>
</div>
<div class="flex items-center space-x-2">
<i data-feather="check" class="w-4 h-4 text-green-500"></i>
<span class="text-sm">Magnesium Complex</span>
</div>
<div class="flex items-center space-x-2">
<i data-feather="check" class="w-4 h-4 text-green-500"></i>
<span class="text-sm">ADEK Vitamins</span>
</div>
</div>
<div class="flex items-center justify-between mb-4">
<div>
<span class="text-gray-500 line-through text-sm">฿2,290</span>
<p class="text-2xl font-bold text-green-600">฿1,690</p>
<p class="text-xs text-gray-500">ประหยัด 26%</p>
</div>
<img src="http://static.photos/fitness/100x100/123" alt="Product" class="w-20 h-20 rounded-lg object-cover">
</div>
<div class="flex space-x-2">
<button class="flex-1 bg-green-500 text-white py-2 rounded-lg font-medium">เพิ่มลงตะกร้า</button>
<button class="flex-1 bg-blue-500 text-white py-2 rounded-lg font-medium">ซื้อทันที</button>
</div>
</div>
<!-- Build Lean Pack -->
<div class="bg-white rounded-2xl p-4 shadow-sm">
<div class="flex items-center justify-between mb-3">
<h3 class="font-bold text-lg">📦 แพ็ก Build Lean</h3>
<span class="bg-purple-100 text-purple-600 px-2 py-1 rounded-full text-sm font-semibold">เพิ่มกล้าม</span>
</div>
<div class="space-y-2 mb-4">
<div class="flex items-center space-x-2">
<i data-feather="check" class="w-4 h-4 text-green-500"></i>
<span class="text-sm">Creatine + CLA</span>
</div>
<div class="flex items-center space-x-2">
<i data-feather="check" class="w-4 h-4 text-green-500"></i>
<span class="text-sm">Meal Planner</span>
</div>
</div>
<div class="flex items-center justify-between mb-4">
<div>
<span class="text-gray-500 line-through text-sm">฿2,490</span>
<p class="text-2xl font-bold text-green-600">฿1,890</p>
<p class="text-xs text-gray-500">ประหยัด 24%</p>
</div>
<img src="http://static.photos/fitness/100x100/456" alt="Product" class="w-20 h-20 rounded-lg object-cover">
</div>
<div class="flex space-x-2">
<button class="flex-1 bg-green-500 text-white py-2 rounded-lg font-medium">เพิ่มลงตะกร้า</button>
<button class="flex-1 bg-blue-500 text-white py-2 rounded-lg font-medium">ซื้อทันที</button>
</div>
</div>
</div>
<!-- Subscription Section -->
<div class="bg-white rounded-2xl p-4 shadow-sm mt-4">
<h3 class="font-semibold text-lg mb-4">ซื้อซ้ำ / Subscription</h3>
<div class="space-y-3">
<div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
<div>
<p class="font-medium">Whey-Fit</p>
<p class="text-xs text-gray-500">สั่งล่าสุด: 12 ก.ย.</p>
</div>
<button class="bg-green-500 text-white px-4 py-1 rounded-lg text-sm">ซื้อซ้ำ</button>
</div>
<div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
<div>
<p class="font-medium">MAG-5</p>
<p class="text-xs text-gray-500">สั่งล่าสุด: 5 ก.ย.</p>
</div>
<button class="bg-green-500 text-white px-4 py-1 rounded-lg text-sm">ซื้อซ้ำ</button>
</div>
</div>
<div class="mt-4 p-3 bg-blue-50 rounded-lg">
<p class="text-sm font-medium mb-2">ตั้งเตือนซื้ออัตโนมัติ</p>
<div class="flex space-x-2">
<button class="px-3 py-1 bg-white rounded text-sm">30 วัน</button>
<button class="px-3 py-1 bg-green-500 text-white rounded text-sm">45 วัน</button>
<button class="px-3 py-1 bg-white rounded text-sm">60 วัน</button>
</div>
</div>
</div>
</div>
<!-- Profile Tab -->
<div id="profile" class="tab-content hidden">
<!-- User Info -->
<div class="bg-gradient-to-r from-green-200 to-green-300 rounded-2xl p-6 mb-6">
<div class="flex items-center space-x-4">
<div class="w-20 h-20 bg-white rounded-full flex items-center justify-center">
<span class="text-3xl font-bold text-green-500">ก</span>
</div>
<div class="text-white">
<h2 class="text-xl font-bold">กฤติกา ศรีใจดี</h2>
<p class="text-sm opacity-90">อายุ 33 ปี</p>
<div class="flex items-center space-x-2 mt-2">
<span class="bg-white/20 px-2 py-1 rounded-full text-xs">1,150 คะแนน</span>
<span class="bg-white/20 px-2 py-1 rounded-full text-xs">Gold Member</span>
</div>
</div>
</div>
</div>
<!-- Goals -->
<div class="bg-white rounded-2xl p-4 shadow-sm mb-4">
<h3 class="font-semibold text-lg mb-4">เป้าหมายของฉัน</h3>
<div class="space-y-3">
<div class="flex justify-between items-center p-3 bg-gray-50 rounded-lg">
<span class="text-gray-600">น้ำหนักเป้าหมาย</span>
<span class="font-bold">62 กก.</span>
</div>
<div class="flex justify-between items-center p-3 bg-gray-50 rounded-lg">
<span class="text-gray-600">ไขมันเป้าหมาย</span>
<span class="font-bold">&lt;25%</span>
</div>
<div class="flex justify-between items-center p-3 bg-gray-50 rounded-lg">
<span class="text-gray-600">กล้ามเนื้อเป้าหมาย</span>
<span class="font-bold">33 กก.</span>
</div>
</div>
</div>
<!-- Achievements -->
<div class="bg-white rounded-2xl p-4 shadow-sm mb-4">
<h3 class="font-semibold text-lg mb-4">ความสำเร็จและรางวัล</h3>
<div class="space-y-3">
<div class="flex items-center space-x-3 p-3 bg-yellow-50 rounded-lg">
<span class="text-2xl">🏆</span>
<div>
<p class="font-medium">ภารกิจ 7 วันติด</p>
<p class="text-xs text-gray-500">สำเร็จเมื่อ 10 ก.ย.</p>
</div>
</div>
<div class="flex items-center space-x-3 p-3 bg-blue-50 rounded-lg">
<span class="text-2xl">🥈</span>
<div>
<p class="font-medium">ลดน้ำหนัก 1 กก.แรก</p>
<p class="text-xs text-gray-500">สำเร็จเมื่อ 5 ก.ย.</p>
</div>
</div>
<div class="flex items-center space-x-3 p-3 bg-purple-50 rounded-lg">
<span class="text-2xl">🎯</span>
<div>
<p class="font-medium">อันดับ 6 กล้ามเพิ่มเร็วที่สุด</p>
<p class="text-xs text-gray-500">ประจำเดือนกันยายน</p>
</div>
</div>
</div>
</div>
<!-- Order History -->
<div class="bg-white rounded-2xl p-4 shadow-sm mb-4">
<h3 class="font-semibold text-lg mb-4">ประวัติการสั่งซื้อ</h3>
<div class="space-y-2">
<div class="flex justify-between items-center p-2 border-b">
<div>
<p class="font-medium text-sm">Whey-Fit 900g</p>
<p class="text-xs text-gray-500">12 ก.ย. 2567</p>
</div>
<span class="text-green-600 font-semibold">฿690</span>
</div>
<div class="flex justify-between items-center p-2 border-b">
<div>
<p class="font-medium text-sm">MAG-5</p>
<p class="text-xs text-gray-500">5 ก.ย. 2567</p>
</div>
<span class="text-green-600 font-semibold">฿450</span>
</div>
<div class="flex justify-between items-center p-2">
<div>
<p class="font-medium text-sm">CLA 1000mg</p>
<p class="text-xs text-gray-500">20 ส.ค. 2567</p>
</div>
<span class="text-green-600 font-semibold">฿890</span>
</div>
</div>
</div>
<!-- Coach Contact -->
<div class="bg-white rounded-2xl p-4 shadow-sm">
<h3 class="font-semibold text-lg mb-4">ติดต่อโค้ช</h3>
<div class="flex items-center space-x-3 p-4 bg-green-50 rounded-lg">
<div class="w-12 h-12 bg-green-500 rounded-full flex items-center justify-center">
<i data-feather="user" class="w-6 h-6 text-white"></i>
</div>
<div class="flex-1">
<p class="font-medium">โค้ชแนต</p>
<p class="text-xs text-gray-500">WP Certified FitCoach</p>
</div>
<button class="bg-green-500 text-white px-4 py-2 rounded-lg text-sm font-medium">ปรึกษา</button>
</div>
</div>
</div>
</div>
</div>
</main>
<!-- Bottom Navigation -->
<nav class="fixed bottom-0 w-full bg-white border-t z-40">
<div class="container mx-auto px-4">
<div class="flex justify-around items-center py-2">
<button onclick="switchTab('dashboard')" class="tab-btn flex flex-col items-center p-2 text-green-600">
<i data-feather="home" class="w-6 h-6"></i>
<span class="text-xs mt-1">หน้าแรก</span>
</button>
<button onclick="switchTab('journey')" class="tab-btn flex flex-col items-center p-2 text-gray-600">
<i data-feather="calendar" class="w-6 h-6"></i>
<span class="text-xs mt-1">แผน 60 วัน</span>
</button>
<button onclick="switchTab('graph')" class="tab-btn flex flex-col items-center p-2 text-gray-600">
<i data-feather="bar-chart-2" class="w-6 h-6"></i>
<span class="text-xs mt-1">กราฟสุขภาพ</span>
</button>
<button onclick="switchTab('products')" class="tab-btn flex flex-col items-center p-2 text-gray-600">
<i data-feather="shopping-cart" class="w-6 h-6"></i>
<span class="text-xs mt-1">สินค้า</span>
</button>
<button onclick="switchTab('profile')" class="tab-btn flex flex-col items-center p-2 text-gray-600">
<i data-feather="user" class="w-6 h-6"></i>
<span class="text-xs mt-1">โปรไฟล์</span>
</button>
</div>
</div>
</nav>
<script src="script.js"></script>
<script>feather.replace();</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>