import React, { useState } from 'react'; import { Search, Code, Link2, FileText, Hash, RefreshCw, GitCompare, Type, Edit3, Table } from 'lucide-react'; import ToolCard from '../components/ToolCard'; const Home = () => { console.log('🏠 NEW Home component loaded - Object Editor should be visible!'); const [searchTerm, setSearchTerm] = useState(''); const tools = [ { icon: Edit3, title: 'Object Editor', description: 'Visual editor for JSON and PHP serialized objects with mindmap visualization', path: '/object-editor', tags: ['Visual', 'JSON', 'PHP', 'Objects', 'Editor'] }, { icon: Table, title: 'Table Editor', description: 'Import, edit, and export tabular data from URLs, files, or paste CSV/JSON', path: '/table-editor', tags: ['Table', 'CSV', 'JSON', 'Data', 'Editor'] }, { icon: Link2, title: 'URL Encoder/Decoder', description: 'Encode and decode URLs and query parameters', path: '/url', tags: ['URL', 'Encode', 'Decode'] }, { icon: Hash, title: 'Base64 Encoder/Decoder', description: 'Convert text to Base64 and back with support for files', path: '/base64', tags: ['Base64', 'Encode', 'Binary'] }, { icon: FileText, title: 'Code Beautifier/Minifier', description: 'Format and minify JSON, XML, SQL, CSS, and HTML code', path: '/beautifier', tags: ['Format', 'Minify', 'Beautify'] }, { icon: GitCompare, title: 'Text Diff Checker', description: 'Compare two texts and highlight differences line by line', path: '/diff', tags: ['Diff', 'Compare', 'Text'] }, { icon: Type, title: 'Text Length Checker', description: 'Analyze text length, word count, and other text statistics', path: '/text-length', tags: ['Text', 'Length', 'Statistics'] } ]; const filteredTools = tools.filter(tool => tool.title.toLowerCase().includes(searchTerm.toLowerCase()) || tool.description.toLowerCase().includes(searchTerm.toLowerCase()) || tool.tags.some(tag => tag.toLowerCase().includes(searchTerm.toLowerCase())) ); return (
Essential utilities for web developers - fast, local, and easy to use
{/* Search */}No tools found matching "{searchTerm}"
All processing happens locally in your browser for maximum speed and privacy
Process large text files and data with ease, no size limitations
Clean interface with syntax highlighting and easy copy-paste functionality