File size: 7,899 Bytes
46925ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>All Tools | Toolsvana Clone</title>
    <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="components/navbar.js"></script>
    <script src="components/footer.js"></script>
    <script src="components/tool-card.js"></script>
    <script src="components/stats-counter.js"></script>
</head>
<body class="bg-gray-50 dark:bg-gray-900">
    <custom-navbar></custom-navbar>

    <main class="container mx-auto px-4 py-8">
        <!-- Header -->
        <section class="text-center py-12">
            <h1 class="text-4xl md:text-5xl font-bold text-gray-900 dark:text-white mb-4">
                Browse All <span class="text-transparent bg-clip-text bg-gradient-to-r from-indigo-600 to-cyan-500">Tools</span>
            </h1>
            <p class="text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto mb-8">
                Explore our collection of 128+ free online tools for every need.
            </p>
            
            <!-- Filter Buttons -->
            <div class="flex flex-wrap justify-center gap-3 mb-10">
                <button class="px-5 py-2 rounded-full bg-indigo-600 text-white font-medium" data-filter="all">
                    All Tools
                </button>
                <button class="px-5 py-2 rounded-full bg-gray-200 dark:bg-gray-800 text-gray-800 dark:text-gray-300 font-medium hover:bg-gray-300 dark:hover:bg-gray-700" data-filter="dev">
                    Developer
                </button>
                <button class="px-5 py-2 rounded-full bg-gray-200 dark:bg-gray-800 text-gray-800 dark:text-gray-300 font-medium hover:bg-gray-300 dark:hover:bg-gray-700" data-filter="design">
                    Design
                </button>
                <button class="px-5 py-2 rounded-full bg-gray-200 dark:bg-gray-800 text-gray-800 dark:text-gray-300 font-medium hover:bg-gray-300 dark:hover:bg-gray-700" data-filter="text">
                    Text
                </button>
                <button class="px-5 py-2 rounded-full bg-gray-200 dark:bg-gray-800 text-gray-800 dark:text-gray-300 font-medium hover:bg-gray-300 dark:hover:bg-gray-700" data-filter="image">
                    Image
                </button>
                <button class="px-5 py-2 rounded-full bg-gray-200 dark:bg-gray-800 text-gray-800 dark:text-gray-300 font-medium hover:bg-gray-300 dark:hover:bg-gray-700" data-filter="security">
                    Security
                </button>
            </div>
        </section>

        <!-- Tools Grid -->
        <section class="py-8">
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-8" id="tools-grid">
                <!-- Tools will be populated by JavaScript -->
            </div>
        </section>

        <!-- Stats Section -->
        <section class="py-12 mt-12 border-t border-gray-200 dark:border-gray-800">
            <h2 class="text-3xl font-bold text-center text-gray-900 dark:text-white mb-12">Why Choose Toolsvana?</h2>
            <div class="grid grid-cols-1 md:grid-cols-3 gap-8 max-w-4xl mx-auto">
                <stats-counter value="100" label="Free Tools" icon="zap" color="blue"></stats-counter>
                <stats-counter value="15,420" label="Monthly Users" icon="users" color="green"></stats-counter>
                <stats-counter value="99.9%" label="Uptime" icon="activity" color="purple"></stats-counter>
            </div>
        </section>
    </main>

    <custom-footer></custom-footer>

    <script>
        // Tools data
        const tools = [
            { title: "JSON Formatter", category: "dev", icon: "code", desc: "Format and validate JSON data" },
            { title: "Base64 Encoder", category: "dev", icon: "hash", desc: "Encode/decode Base64 strings" },
            { title: "HTML Formatter", category: "dev", icon: "code", desc: "Beautify HTML code" },
            { title: "CSS Minifier", category: "dev", icon: "code", desc: "Minify CSS files" },
            { title: "Color Picker", category: "design", icon: "droplet", desc: "Advanced color selection" },
            { title: "CSS Gradient Generator", category: "design", icon: "gradient", desc: "Create CSS gradients" },
            { title: "Font Converter", category: "design", icon: "type", desc: "Convert font formats" },
            { title: "SVG Optimizer", category: "design", icon: "image", desc: "Optimize SVG files" },
            { title: "Text Case Converter", category: "text", icon: "type", desc: "Convert text case" },
            { title: "Markdown Editor", category: "text", icon: "edit", desc: "Live Markdown editing" },
            { title: "Word Counter", category: "text", icon: "file-text", desc: "Count words and characters" },
            { title: "Lorem Ipsum Generator", category: "text", icon: "feather", desc: "Generate placeholder text" },
            { title: "Image Compressor", category: "image", icon: "image", desc: "Compress images" },
            { title: "QR Code Generator", category: "image", icon: "maximize-2", desc: "Create QR codes" },
            { title: "Photo Filter", category: "image", icon: "filter", desc: "Apply filters to images" },
            { title: "Password Generator", category: "security", icon: "lock", desc: "Generate secure passwords" },
            { title: "Encryption Tool", category: "security", icon: "shield", desc: "Encrypt/decrypt text" },
            { title: "Hash Generator", category: "security", icon: "hash", desc: "Generate MD5, SHA hashes" }
        ];

        // Populate tools grid
        const grid = document.getElementById('tools-grid');
        tools.forEach(tool => {
            const card = document.createElement('tool-card');
            card.setAttribute('title', tool.title);
            card.setAttribute('description', tool.desc);
            card.setAttribute('icon', tool.icon);
            card.setAttribute('category', tool.category === 'dev' ? 'Developer' : 
                              tool.category === 'design' ? 'Design' :
                              tool.category === 'text' ? 'Text' :
                              tool.category === 'image' ? 'Image' : 'Security');
            card.setAttribute('link', '#');
            card.setAttribute('data-category', tool.category);
            grid.appendChild(card);
        });

        // Filter functionality
        document.querySelectorAll('[data-filter]').forEach(btn => {
            btn.addEventListener('click', function() {
                const filter = this.getAttribute('data-filter');
                
                // Update active button
                document.querySelectorAll('[data-filter]').forEach(b => {
                    b.classList.remove('bg-indigo-600', 'text-white');
                    b.classList.add('bg-gray-200', 'dark:bg-gray-800', 'text-gray-800', 'dark:text-gray-300');
                });
                this.classList.remove('bg-gray-200', 'dark:bg-gray-800', 'text-gray-800', 'dark:text-gray-300');
                this.classList.add('bg-indigo-600', 'text-white');
                
                // Filter tools
                document.querySelectorAll('tool-card').forEach(card => {
                    if (filter === 'all' || card.getAttribute('data-category') === filter) {
                        card.style.display = 'block';
                        card.classList.add('fade-in');
                    } else {
                        card.style.display = 'none';
                    }
                });
            });
        });

        // Initialize
        feather.replace();
    </script>
    <script src="script.js"></script>
</body>
</html>