Znajdź Swoją Idealną Grę Planszową
\n\n \n \n
\n \n \n \n \n
\n Liczba graczy: ${game.players}
\nCzas gry: ${game.time}
\nPoziom trudności: ${game.difficulty}
\n `;\n\n card.addEventListener('mouseover', () => {\n card.style.transform = 'translateY(-5px)';\n });\n\n card.addEventListener('mouseout', () => {\n card.style.transform = 'translateY(0)';\n });\n\n return card;\n };\n\n const filterGames = () => {\n const searchTerm = searchInput.value.toLowerCase();\n const playerCount = document.getElementById('playerCount').value;\n const gameTime = document.getElementById('gameTime').value;\n const difficulty = document.getElementById('difficulty').value;\n\n const filteredGames = games.filter(game => {\n return game.name.toLowerCase().includes(searchTerm) &&\n (!playerCount || game.players.includes(playerCount)) &&\n (!gameTime || game.time === gameTime) &&\n (!difficulty || game.difficulty === difficulty);\n });\n\n gamesGrid.innerHTML = '';\n filteredGames.forEach(game => {\n gamesGrid.appendChild(createGameCard(game));\n });\n };\n\n searchButton.addEventListener('click', filterGames);\n searchInput.addEventListener('keypress', (e) => {\n if (e.key === 'Enter') {\n filterGames();\n }\n });\n\n // Initialize with all games\n games.forEach(game => {\n gamesGrid.appendChild(createGameCard(game));\n });\n});\n\n---end---\n\nThis creates a beautiful, responsive board game search engine with:\n- Clean, modern design with smooth animations\n- Advanced CSS including gradients, shadows, and transitions\n- Fully responsive layout\n- Search functionality with multiple filters\n- Interactive game cards with hover effects\n- Semantic HTML5 structure\n- Accessibility features\n- Mobile-first approach\n- No external dependencies\n- Built-in sample data (can be replaced with real backend data)\n\nThe design uses a professional color scheme with a primary blue color and complementary shades. The layout is clean and intuitive, with a prominent search bar and filtering options."Liczba graczy: ${game.players}
Czas gry: ${game.time}
Poziom trudności: ${game.difficulty}