File size: 17,429 Bytes
e722212
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ToxiTrack - Toxin Index</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>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
        body {
            font-family: 'Poppins', sans-serif;
        }
        .toxin-card {
            transition: all 0.3s ease;
        }
        .toxin-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }
        .category-badge {
            position: absolute;
            top: -12px;
            right: 20px;
            padding: 4px 12px;
            border-radius: 9999px;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.75rem;
        }
    </style>
</head>
<body class="bg-gray-50">
    <div class="container mx-auto px-4 py-12">
        <!-- Header -->
        <div class="text-center mb-16">
            <h1 class="text-4xl font-bold text-gray-800 mb-4">ToxiTrack Toxin Index</h1>
            <p class="text-lg text-gray-600 max-w-3xl mx-auto">
                Comprehensive reference guide to common toxins in food, water, air, and household products
            </p>
        </div>

        <!-- Tabs -->
        <div class="flex justify-center mb-12">
            <div class="inline-flex rounded-lg border border-gray-200 bg-white">
                <button id="allTab" class="px-6 py-3 rounded-l-lg font-medium active-tab">All Toxins</button>
                <button id="foodTab" class="px-6 py-3 font-medium text-gray-600 hover:text-gray-800 border-l border-gray-200">Food & Beverages</button>
                <button id="waterTab" class="px-6 py-3 font-medium text-gray-600 hover:text-gray-800 border-l border-gray-200">Water</button>
                <button id="airTab" class="px-6 py-3 font-medium text-gray-600 hover:text-gray-800 border-l border-gray-200">Air</button>
                <button id="householdTab" class="px-6 py-3 font-medium text-gray-600 hover:text-gray-800 border-l border-gray-200">Household</button>
                <button id="otherTab" class="px-6 py-3 rounded-r-lg font-medium text-gray-600 hover:text-gray-800 border-l border-gray-200">Other Sources</button>
            </div>
        </div>

        <!-- Toxin Grid -->
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8" id="toxinContainer">
            <!-- Toxin cards will be dynamically filtered here -->
        </div>

        <!-- Sources Section -->
        <div class="mt-16 p-8 bg-white rounded-xl shadow-sm">
            <h2 class="text-2xl font-bold text-gray-800 mb-6">Key Sources of Toxin Exposure</h2>
            <div class="grid grid-cols-1 md:grid-cols-2 gap-8">
                <div>
                    <h3 class="text-lg font-semibold text-gray-700 mb-4">Top Food Sources</h3>
                    <div class="space-y-4">
                        <div class="flex items-start">
                            <div class="flex-shrink-0 h-5 w-5 text-emerald-500 mr-3 mt-1">
                                <i data-feather="alert-triangle"></i>
                            </div>
                            <p class="text-gray-600"><span class="font-medium">Tuna/Swordfish:</span> High mercury content</p>
                        </div>
                        <div class="flex items-start">
                            <div class="flex-shrink-0 h-5 w-5 text-emerald-500 mr-3 mt-1">
                                <i data-feather="alert-triangle"></i>
                            </div>
                            <p class="text-gray-600"><span class="font-medium">Rice:</span> Often contains arsenic and cadmium</p>
                        </div>
                        <div class="flex items-start">
                            <div class="flex-shrink-0 h-5 w-5 text-emerald-500 mr-3 mt-1">
                                <i data-feather="alert-triangle"></i>
                            </div>
                            <p class="text-gray-600"><span class="font-medium">Processed Meats:</span> Nitrites/nitrates and PAHs</p>
                        </div>
                        <div class="flex items-start">
                            <div class="flex-shrink-0 h-5 w-5 text-emerald-500 mr-3 mt-1">
                                <i data-feather="alert-triangle"></i>
                            </div>
                            <p class="text-gray-600"><span class="font-medium">Non-organic Produce:</span> Pesticide residues</p>
                        </div>
                    </div>
                </div>
                <div>
                    <h3 class="text-lg font-semibold text-gray-700 mb-4">Top Environmental Sources</h3>
                    <div class="space-y-4">
                        <div class="flex items-start">
                            <div class="flex-shrink-0 h-5 w-5 text-red-500 mr-3 mt-1">
                                <i data-feather="alert-circle"></i>
                            </div>
                            <p class="text-gray-600"><span class="font-medium">Air Pollution:</span> PM2.5, ozone, NOx from traffic</p>
                        </div>
                        <div class="flex items-start">
                            <div class="flex-shrink-0 h-5 w-5 text-red-500 mr-3 mt-1">
                                <i data-feather="alert-circle"></i>
                            </div>
                            <p class="text-gray-600"><span class="font-medium">Tap Water:</span> Lead, chlorine byproducts, PFAS</p>
                        </div>
                        <div class="flex items-start">
                            <div class="flex-shrink-0 h-5 w-5 text-red-500 mr-3 mt-1">
                                <i data-feather="alert-circle"></i>
                            </div>
                            <p class="text-gray-600"><span class="font-medium">Household Products:</span> Cleaning supplies, plastics</p>
                        </div>
                        <div class="flex items-start">
                            <div class="flex-shrink-0 h-5 w-5 text-red-500 mr-3 mt-1">
                                <i data-feather="alert-circle"></i>
                            </div>
                            <p class="text-gray-600"><span class="font-medium">Personal Care Items:</span> Cosmetics with heavy metals</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- Reduction Tips -->
        <div class="mt-12 bg-emerald-50 rounded-xl p-8">
            <h2 class="text-2xl font-bold text-gray-800 mb-4">Reducing Your Toxin Exposure</h2>
            <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                <div class="bg-white p-6 rounded-lg">
                    <div class="text-emerald-500 mb-4">
                        <i data-feather="shopping-bag" class="w-8 h-8"></i>
                    </div>
                    <h3 class="font-semibold text-gray-800 mb-2">Smart Shopping</h3>
                    <p class="text-gray-600 text-sm">Choose organic when possible, especially for the Dirty Dozen. Avoid processed foods and plastic packaging.</p>
                </div>
                <div class="bg-white p-6 rounded-lg">
                    <div class="text-emerald-500 mb-4">
                        <i data-feather="home" class="w-8 h-8"></i>
                    </div>
                    <h3 class="font-semibold text-gray-800 mb-2">Home Improvements</h3>
                    <p class="text-gray-600 text-sm">Use HEPA air filters, water filters, and replace nonstick cookware with ceramic or stainless steel.</p>
                </div>
                <div class="bg-white p-6 rounded-lg">
                    <div class="text-emerald-500 mb-4">
                        <i data-feather="activity" class="w-8 h-8"></i>
                    </div>
                    <h3 class="font-semibold text-gray-800 mb-2">Regular Monitoring</h3>
                    <p class="text-gray-600 text-sm">Track your toxin exposure with ToxiTrack and get personalized recommendations for reduction.</p>
                </div>
            </div>
        </div>
    </div>

    <script>
        feather.replace();
        
        // Toxin data
        const toxins = [
            // Food & Beverages
            {
                name: "Mercury",
                category: "food",
                sources: "Tuna, swordfish, king mackerel, shark, marlin",
                effects: "Neurotoxin, brain/kidney damage",
                severity: "high"
            },
            {
                name: "Cadmium",
                category: "food",
                sources: "Cacao, rice, shellfish, leafy greens from polluted soils",
                effects: "Kidney damage, bone loss, carcinogen",
                severity: "medium"
            },
            {
                name: "Arsenic (inorganic)",
                category: "food",
                sources: "Rice, groundwater, some seafood",
                effects: "Carcinogen, skin lesions, vascular issues",
                severity: "high"
            },
            {
                name: "Lead",
                category: "food",
                sources: "Root vegetables in contaminated soil, spices, old pipes, imported candies",
                effects: "Neurotoxin, developmental delays",
                severity: "high"
            },
            {
                name: "Glyphosate",
                category: "food",
                sources: "Non-organic wheat, oats, soy, corn",
                effects: "Endocrine disruptor, possible carcinogen",
                severity: "medium"
            },
            // Water
            {
                name: "PFAS (forever chemicals)",
                category: "water",
                sources: "Contaminated water",
                effects: "Bioaccumulative, endocrine disruption",
                severity: "high"
            },
            {
                name: "Chlorine byproducts",
                category: "water",
                sources: "Chlorinated tap water",
                effects: "Carcinogenic, liver/kidney toxicity",
                severity: "medium"
            },
            // Air
            {
                name: "PM2.5 & PM10",
                category: "air",
                sources: "Combustion, dust",
                effects: "Cardiovascular, strokes",
                severity: "high"
            },
            {
                name: "VOCs",
                category: "air",
                sources: "Fuels, paints",
                effects: "Carcinogens, neurotoxins",
                severity: "medium"
            },
            // Household
            {
                name: "Bisphenols (BPA, BPS)",
                category: "household",
                sources: "Plastic containers, receipts",
                effects: "Endocrine disruption",
                severity: "medium"
            },
            {
                name: "Phthalates",
                category: "household",
                sources: "Vinyl flooring, plastic products",
                effects: "Hormone disruption",
                severity: "medium"
            },
            // Other
            {
                name: "Endocrine disruptors",
                category: "other",
                sources: "Multiple sources",
                effects: "Fertility issues, metabolic disorders",
                severity: "high"
            }
        ];

        // Render toxin cards
        function renderToxins(filter = 'all') {
            const container = document.getElementById('toxinContainer');
            container.innerHTML = '';

            const filteredToxins = filter === 'all' ? toxins : toxins.filter(t => t.category === filter);

            filteredToxins.forEach(toxin => {
                const card = document.createElement('div');
                card.className = `bg-white rounded-xl p-6 shadow-sm toxin-card relative`;

                // Category badge with color
                let categoryColor = 'bg-gray-200 text-gray-800';
                let categoryName = 'Other';
                
                if (toxin.category === 'food') {
                    categoryColor = 'bg-emerald-100 text-emerald-800';
                    categoryName = 'Food';
                } else if (toxin.category === 'water') {
                    categoryColor = 'bg-blue-100 text-blue-800';
                    categoryName = 'Water';
                } else if (toxin.category === 'air') {
                    categoryColor = 'bg-purple-100 text-purple-800';
                    categoryName = 'Air';
                } else if (toxin.category === 'household') {
                    categoryColor = 'bg-yellow-100 text-yellow-800';
                    categoryName = 'Household';
                }

                // Severity indicator
                let severityColor = 'bg-red-500';
                if (toxin.severity === 'medium') severityColor = 'bg-yellow-500';
                if (toxin.severity === 'low') severityColor = 'bg-green-500';

                card.innerHTML = `
                    <div class="category-badge ${categoryColor}">${categoryName}</div>
                    <h3 class="text-xl font-bold text-gray-800 mb-2">${toxin.name}</h3>
                    <div class="flex items-center mb-4">
                        <div class="text-sm font-medium text-gray-600 mr-2">Severity:</div>
                        <div class="flex space-x-1">
                            <div class="w-3 h-3 rounded-full ${severityColor}"></div>
                            <div class="text-xs font-medium text-gray-500">${toxin.severity}</div>
                        </div>
                    </div>
                    <div class="mb-4">
                        <p class="text-sm font-medium text-gray-600">Common Sources:</p>
                        <p class="text-gray-700">${toxin.sources}</p>
                    </div>
                    <div>
                        <p class="text-sm font-medium text-gray-600">Health Effects:</p>
                        <p class="text-gray-700">${toxin.effects}</p>
                    </div>
                `;

                container.appendChild(card);
            });

            feather.replace();
        }

        // Tab functionality
        document.getElementById('allTab').addEventListener('click', () => {
            document.querySelectorAll('[id$="Tab"]').forEach(tab => {
                tab.classList.remove('active-tab', 'text-emerald-600');
                tab.classList.add('text-gray-600');
            });
            document.getElementById('allTab').classList.add('active-tab', 'text-emerald-600');
            renderToxins('all');
        });

        document.getElementById('foodTab').addEventListener('click', () => {
            document.querySelectorAll('[id$="Tab"]').forEach(tab => {
                tab.classList.remove('active-tab', 'text-emerald-600');
                tab.classList.add('text-gray-600');
            });
            document.getElementById('foodTab').classList.add('active-tab', 'text-emerald-600');
            renderToxins('food');
        });

        document.getElementById('waterTab').addEventListener('click', () => {
            document.querySelectorAll('[id$="Tab"]').forEach(tab => {
                tab.classList.remove('active-tab', 'text-emerald-600');
                tab.classList.add('text-gray-600');
            });
            document.getElementById('waterTab').classList.add('active-tab', 'text-emerald-600');
            renderToxins('water');
        });

        document.getElementById('airTab').addEventListener('click', () => {
            document.querySelectorAll('[id$="Tab"]').forEach(tab => {
                tab.classList.remove('active-tab', 'text-emerald-600');
                tab.classList.add('text-gray-600');
            });
            document.getElementById('airTab').classList.add('active-tab', 'text-emerald-600');
            renderToxins('air');
        });

        document.getElementById('householdTab').addEventListener('click', () => {
            document.querySelectorAll('[id$="Tab"]').forEach(tab => {
                tab.classList.remove('active-tab', 'text-emerald-600');
                tab.classList.add('text-gray-600');
            });
            document.getElementById('householdTab').classList.add('active-tab', 'text-emerald-600');
            renderToxins('household');
        });

        document.getElementById('otherTab').addEventListener('click', () => {
            document.querySelectorAll('[id$="Tab"]').forEach(tab => {
                tab.classList.remove('active-tab', 'text-emerald-600');
                tab.classList.add('text-gray-600');
            });
            document.getElementById('otherTab').classList.add('active-tab', 'text-emerald-600');
            renderToxins('other');
        });

        // Initial render
        document.getElementById('allTab').classList.add('text-emerald-600');
        renderToxins();
    </script>
</body>
</html>