File size: 7,385 Bytes
1ab8749
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>BinGo Challenges</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
    <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
        body {
            font-family: 'Inter', sans-serif;
        }
        .bin-black { background-color: #2D3748; }
        .bin-recycling { background-color: #38B2AC; }
        .bin-food { background-color: #68D391; }
        .bg-eco-green { background-color: #F0FFF4; }
        .text-eco-green { color: #2F855A; }
        .border-eco-green { border-color: #C6F6D5; }
    </style>
</head>
<body class="bg-eco-green min-h-screen pb-16">
    <!-- App Header -->
    <header class="bg-white shadow-sm sticky top-0 z-10">
        <div class="container mx-auto px-4 py-3 flex justify-between items-center">
            <div class="flex items-center space-x-2">
                <a href="index.html" class="p-2 rounded-full hover:bg-gray-100">
                    <i data-feather="chevron-left"></i>
                </a>
                <h1 class="text-xl font-bold text-eco-green">Eco Challenges</h1>
            </div>
            <button class="p-2 rounded-full hover极bg-gray-100">
                <i data-feather="info"></i>
            </button>
        </div>
    </header>

    <!-- Current Challenge -->
    <section class="container mx-auto px-4 py-4">
        <div class="bg-gradient-to-r from-green-400 to-green-600 rounded-xl p-5 text-white">
            <div class="flex justify-between items-start">
                <div>
                    <h2 class="text-xl font-bold mb-1">Weekly Recycling Challenge</h2>
                    <p class="text-sm opacity-90 mb-3">Recycle 5 items this week</p>
                    <div class="w-full bg-white bg-opacity-30 rounded-full h-2 mb-3">
                        <div class="bg-white h-2 rounded-full" style="width: 60%"></div>
                    </div>
                    <p class="text-xs">3/5 completed</p>
                </div>
                <div class="bg-white bg-opacity-20 p-3 rounded-full">
                    <i data-feather="award" class="w-6 h-6"></i>
                </div>
            </div>
        </div>
    </section>

    <!-- Streak Counter -->
    <section class="container mx-auto px-4 py-4">
        <div class="bg-white rounded-xl shadow-sm p-5">
            <div class="text-center">
                <h2 class="text-lg font-semibold text-gray-700 mb-2">Current Streak</h2>
                <div class="text-4xl font-bold text-green-600 mb-2">12 days</div>
                <p class="text-sm text-gray-500">Keep up the good work!</p>
            </div>
        </div>
    </section>

    <!-- Available Challenges -->
    <section class="container mx-auto px-4">
        <h2 class="text-lg font-semibold text-gray-700 mb-3">Available Challenges</h2>
        <div class="space-y-3">
            <div class="bg-white p-4 rounded-xl shadow-sm">
                <div class="flex items-start">
                    <div class="w-12 h-12 bg-green-100 rounded-lg flex items-center justify-center mr-4">
                        <i data-feather="repeat" class="text-green-600"></i>
                    </div>
                    <div class="flex-1">
                        <h3 class="font-medium">Plastic-Free Week</h3>
                        <p class="text-sm text-gray-500 mb-2">Avoid single-use plastics for 7 days</p>
                        <div class="flex items-center">
                            <i data-feather="clock" class="w-4 h-4 text-gray-400 mr-1"></i>
                            <span class="text-xs text-gray-500">7 days remaining</span>
                        </div>
                    </div>
                    <button class="bg-green-600 text-white px-4 py-2 rounded-lg text-sm font-medium">Start</button>
                </div>
            </div>
            <div class="bg-white p-4 rounded-xl shadow-sm">
                <div class="flex items-start">
                    <div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center mr-4">
                        <i data-feather="shopping-bag" class="text-blue-600"></i>
                    </div>
                    <div class="flex-1">
                        <h3 class="font-medium">Zero Waste Shopping</h3>
                        <p class="text-sm text-gray-500 mb-2">Use reusable bags for all shopping</p>
                        <div class="flex items-center">
                            <i data-feather="award" class="w-4 h-4 text-yellow-500 mr-1"></i>
                            <span class="text-xs text-gray-500">50 points reward</span>
                        </div>
                    </div>
                    <button class="bg-green-600 text-white px-4 py-2 rounded-lg text-sm font-medium">Start</button>
                </div>
            </div>
            <div class="bg-white p-4 rounded-xl shadow-sm">
                <div class="flex items-start">
                    <div class="w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center mr-4">
                        <i data-feather="compost" class="text-purple-600"></i>
                    </div>
                    <div class="flex-1">
                        <h3 class="font-medium">Food Waste Reduction</h3>
                        <p class="text-sm text-gray-500 mb-2">Compost all food waste for 2 weeks</p>
                        <div class="flex items-center">
                            <i data-feather="star" class="w-4 h-4 text-green-500 mr-1"></i>
                            <span class="text-xs text-gray-500">Premium challenge</span>
                        </div>
                    </div>
                    <button class="bg-gray-300 text-gray-600 px-4 py-2 rounded-lg text-sm font-medium" disabled>Locked</button>
                </div>
            </div>
        </div>
    </section>

    <!-- Bottom Navigation -->
    <nav class="fixed bottom-0 w-full bg-white border-t border-gray-200">
        <div class="container mx-auto px-4">
            <div class="flex justify-around">
                <a href="index.html" class="py-3 px-4 text-gray-500">
                    <i data-feather="home" class="w-5 h-5 mx-auto"></i>
                </a>
                <a href="calendar.html" class="py-3 px-4 text-gray-500">
                    <i data-feather="calendar" class="w-5 h-5 mx-auto"></>
                </a>
                <a href="guide.html" class="py-3 px-4 text-gray-500">
                    <i data-feather="book" class="w-5 h-5 mx-auto"></i>
                </a>
                <a href="profile.html" class="py-3 px-4 text-gray-500">
                    <i data-feather="user" class="w-5 h-5 mx-auto"></i>
                </a>
            </div>
        </div>
    </nav>

    <script>
        AOS.init();
        feather.replace();
    </script>
</body>
</html>