File size: 10,609 Bytes
8fa070e
 
 
 
 
066343e
 
8fa070e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
066343e
8fa070e
 
066343e
 
8fa070e
 
 
 
 
 
 
 
 
066343e
 
 
 
8fa070e
 
 
 
 
 
 
 
 
 
 
 
 
066343e
 
8fa070e
066343e
8fa070e
 
066343e
 
8fa070e
066343e
8fa070e
 
 
 
 
 
 
 
066343e
8fa070e
066343e
 
8fa070e
 
 
 
 
 
 
 
 
 
 
066343e
 
8fa070e
066343e
8fa070e
 
066343e
 
8fa070e
066343e
8fa070e
 
 
 
 
 
 
 
066343e
8fa070e
066343e
 
8fa070e
 
 
 
 
 
 
066343e
 
8fa070e
 
 
 
 
066343e
 
8fa070e
066343e
 
8fa070e
 
 
 
 
 
066343e
 
8fa070e
066343e
 
8fa070e
 
 
 
 
 
066343e
 
8fa070e
066343e
 
8fa070e
 
 
 
 
 
 
 
 
 
066343e
8fa070e
 
 
066343e
8fa070e
 
 
066343e
8fa070e
 
 
066343e
8fa070e
066343e
8fa070e
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<!DOCTYPE html>
<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>