Spaces:
Running
Running
Download challenges.html from CSNET/betterme-mobile-clone: direct link, hf CLI and curl.
- Browser
- Download file 10.6 kB
-
https://huggingface.co/spaces/CSNET/betterme-mobile-clone/resolve/main/challenges.html
- Command line
-
hf download hf://spaces/CSNET/betterme-mobile-clone/challenges.html
-
curl -L -o challenges.html https://huggingface.co/spaces/CSNET/betterme-mobile-clone/resolve/main/challenges.html
10.6 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>กิจกรรม - BetterMe</title> | |
| <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet"> | |
| <style> | |
| body { | |
| font-family: 'Poppins', sans-serif; | |
| background-color: #f8f9fa; | |
| } | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| } | |
| .card-shadow { | |
| box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); | |
| } | |
| .active-tab { | |
| border-bottom: 3px solid #667eea; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <!-- Header --> | |
| <header class="bg-white shadow-sm sticky top-0 z-10"> | |
| <div class="container mx-auto px-4 py-4 flex justify-between items-center"> | |
| <div class="flex items-center"> | |
| <button class="p-2 rounded-full text-gray-600" onclick="window.location.href='index.html'"> | |
| <i data-feather="arrow-left"></i> | |
| </button> | |
| <h1 class="ml-2 text-xl font-bold text-gray-800">กิจกรรม</h1> | |
| </div> | |
| <button class="p-2 rounded-full bg-gray-100 text-gray-600"> | |
| <i data-feather="filter"></i> | |
| </button> | |
| </div> | |
| </header> | |
| <!-- Tabs --> | |
| <div class="container mx-auto px-4"> | |
| <div class="flex border-b border-gray-200"> | |
| <button class="py-3 px-4 text-indigo-600 font-medium active-tab">กำลังทำ</button> | |
| <button class="py-3 px-4 text-gray-500 font-medium">พร้อมทำ</button> | |
| <button class="py-3 px-4 text-gray-500 font-medium">เสร็จแล้ว</button> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <main class="container mx-auto px-4 py-6"> | |
| <!-- Active Challenges --> | |
| <section class="mb-8"> | |
| <div class="bg-white rounded-xl p-5 card-shadow mb-6"> | |
| <div class="flex items-start"> | |
| <div class="w-16 h-16 rounded-lg bg-gradient-to-r from-green-400 to-blue-500 flex items-center justify-center text-white flex-shrink-0"> | |
| <i data-feather="target"></i> | |
| </div> | |
| <div class="ml-4 flex-1"> | |
| <div class="flex justify-between"> | |
| <h4 class="font-bold text-gray-800">สมาธิ 7 วัน</h4> | |
| <span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded-full">กำลังทำ</span> | |
| </div> | |
| <p class="text-sm text-gray-500 mt-1">ฝึกสมาธิวันละ 10 นาที</p> | |
| <div class="mt-3"> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span class="text-gray-600">ความคืบหน้า</span> | |
| <span class="font-medium">3/7 วัน</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-gradient-to-r from-green-400 to-blue-500 h-2 rounded-full" style="width: 43%"></div> | |
| </div> | |
| </div> | |
| <div class="mt-4 flex justify-between items-center"> | |
| <div class="flex items-center"> | |
| <div class="w-6 h-6 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-500"> | |
| <i data-feather="star" class="w-3 h-3"></i> | |
| </div> | |
| <span class="ml-1 text-sm text-gray-600">+150 คะแนน</span> | |
| </div> | |
| <button class="px-4 py-2 bg-gradient-to-r from-purple-500 to-indigo-600 text-white rounded-lg text-sm font-medium">ดำเนินการต่อ</button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-xl p-5 card-shadow mb-6"> | |
| <div class="flex items-start"> | |
| <div class="w-16 h-16 rounded-lg bg-gradient-to-r from-purple-400 to-pink-500 flex items-center justify-center text-white flex-shrink-0"> | |
| <i data-feather="droplet"></i> | |
| </div> | |
| <div class="ml-4 flex-1"> | |
| <div class="flex justify-between"> | |
| <h4 class="font-bold text-gray-800">ฮีโร่ดื่มน้ำ</h4> | |
| <span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded-full">กำลังทำ</span> | |
| </div> | |
| <p class="text-sm text-gray-500 mt-1">ดื่มน้ำวันละ 8 แก้ว</p> | |
| <div class="mt-3"> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span class="text-gray-600">ความคืบหน้า</span> | |
| <span class="font-medium">5/7 วัน</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-gradient-to-r from-purple-400 to-pink-500 h-2 rounded-full" style="width: 71%"></div> | |
| </div> | |
| </div> | |
| <div class="mt-4 flex justify-between items-center"> | |
| <div class="flex items-center"> | |
| <div class="w-6 h-6 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-500"> | |
| <i data-feather="star" class="w-3 h-3"></i> | |
| </div> | |
| <span class="ml-1 text-sm text-gray-600">+100 คะแนน</span> | |
| </div> | |
| <button class="px-4 py-2 bg-gradient-to-r from-purple-500 to-indigo-600 text-white rounded-lg text-sm font-medium">บันทึกน้ำ</button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Daily Challenges --> | |
| <section> | |
| <h3 class="text-lg font-semibold text-gray-800 mb-4">กิจกรรมรายวัน</h3> | |
| <div class="bg-white rounded-xl p-5 card-shadow"> | |
| <div class="flex items-center mb-4"> | |
| <div class="w-12 h-12 rounded-lg bg-gradient-to-r from-yellow-400 to-orange-500 flex items-center justify-center text-white"> | |
| <i data-feather="sun"></i> | |
| </div> | |
| <div class="ml-4 flex-1"> | |
| <h4 class="font-medium text-gray-800">กิจวัตรเช้า</h4> | |
| <p class="text-sm text-gray-500">ทำกิจวัตรเช้าให้ครบ</p> | |
| </div> | |
| <button class="px-3 py-1 bg-gray-100 text-gray-800 rounded-lg text-sm font-medium">เริ่ม</button> | |
| </div> | |
| <div class="flex items-center mb-4"> | |
| <div class="w-12 h-12 rounded-lg bg-gradient-to-r from-blue-400 to-cyan-500 flex items-center justify-center text-white"> | |
| <i data-feather="moon"></i> | |
| </div> | |
| <div class="ml-4 flex-1"> | |
| <h4 class="font-medium text-gray-800">สะท้อนความคิดตอนเย็น</h4> | |
| <p class="text-sm text-gray-500">เขียนไดอารี่ก่อนนอน</p> | |
| </div> | |
| <button class="px-3 py-1 bg-gray-100 text-gray-800 rounded-lg text-sm font-medium">เริ่ม</button> | |
| </div> | |
| <div class="flex items-center"> | |
| <div class="w-12 h-12 rounded-lg bg-gradient-to-r from-red-400 to-pink-500 flex items-center justify-center text-white"> | |
| <i data-feather="heart"></i> | |
| </div> | |
| <div class="ml-4 flex-1"> | |
| <h4 class="font-medium text-gray-800">การฝึกขอบคุณ</h4> | |
| <p class="text-sm text-gray-500">เขียนสิ่งที่คุณรู้สึกขอบคุณ 3 อย่าง</p> | |
| </div> | |
| <button class="px-3 py-1 bg-gray-100 text-gray-800 rounded-lg text-sm font-medium">เริ่ม</button> | |
| </div> | |
| </div> | |
| </section> | |
| </main> | |
| <!-- Bottom Navigation --> | |
| <nav class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200"> | |
| <div class="container mx-auto px-4"> | |
| <div class="flex justify-around"> | |
| <a href="index.html" class="flex flex-col items-center py-3 text-gray-500"> | |
| <i data-feather="home" class="w-5 h-5 mb-1"></i> | |
| <span class="text-xs">หน้าหลัก</span> | |
| </a> | |
| <a href="progress.html" class="flex flex-col items-center py-3 text-gray-500"> | |
| <i data-feather="bar-chart-2" class="w-5 h-5 mb-1"></i> | |
| <span class="text-xs">ความคืบหน้า</span> | |
| </a> | |
| <a href="#" class="flex flex-col items-center py-3 text-indigo-600 active-tab"> | |
| <i data-feather="calendar" class="w-5 h-5 mb-1"></i> | |
| <span class="text-xs">กิจกรรม</span> | |
| </a> | |
| <a href="profile.html" class="flex flex-col items-center py-3 text-gray-500"> | |
| <i data-feather="user" class="w-5 h-5 mb-1"></i> | |
| <span class="text-xs">โปรไฟล์</span> | |
| </a> | |
| </div> | |
| </div> | |
| </nav> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script> | |
| // Initialize Feather Icons | |
| feather.replace(); | |
| </script> | |
| </body> | |
| </html> | |