commit 416a46b15b8431da11d1de34b925eb5b9af3278f
Author: root <root@hub.scroll.pub> Date: 2024-12-28 21:28:56 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..dd8942b --- /dev/null +++ b/body.html @@ -0,0 +1,54 @@ +<header> + <nav> + <div class="logo">BoardFinder</div> + <div class="nav-links"> + <a href="#search">Szukaj</a> + <a href="#categories">Kategorie</a> + <a href="#about">O nas</a> + </div> + </nav> +</header> + +<main> + <section class="hero"> + <h1>Znajdź Swoją Idealną Grę Planszową</h1> + <div class="search-container"> + <input type="text" id="searchInput" placeholder="Wpisz nazwę gry..." aria-label="Wyszukaj grę"> + <button id="searchButton">Szukaj</button> + </div> + <div class="filters"> + <select id="playerCount" aria-label="Liczba graczy"> + <option value="">Liczba graczy</option> + <option value="2">2 graczy</option> + <option value="3-4">3-4 graczy</option> + <option value="5+">5+ graczy</option> + </select> + <select id="gameTime" aria-label="Czas rozgrywki"> + <option value="">Czas rozgrywki</option> + <option value="short">Do 30 min</option> + <option value="medium">30-60 min</option> + <option value="long">60+ min</option> + </select> + <select id="difficulty" aria-label="Poziom trudności"> + <option value="">Poziom trudności</option> + <option value="easy">Łatwy</option> + <option value="medium">Średni</option> + <option value="hard">Trudny</option> + </select> + </div> + </section> + + <section id="results" class="results"> + <div class="games-grid"></div> + </section> +</main> + +<footer> + <div class="footer-content"> + <p>BoardFinder - Twoja wyszukiwarka gier planszowych</p> + <nav class="footer-links"> + <a href="#privacy">Polityka Prywatności</a> + <a href="#contact">Kontakt</a> + </nav> + </div> +</footer> diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..d6d4baa --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://boardfinder.scroll.pub +metaTags +editButton /edit.html +title BoardFinder - Wyszukiwarka Gier Planszowych +style.css +body.html +script.js diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..d3d1a9f --- /dev/null +++ b/prompt.json @@ -0,0 +1,20 @@ +{ + "id": "msg_019a68kqVH4t4FAK89b1VFcx", + "type": "message", + "role": "assistant", + "model": "claude-3-5-sonnet-20241022", + "content": [ + { + "type": "text", + "text": "Let me create a board game search engine website with a clean, modern design.\n\n---domain---\nboardfinder.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://boardfinder.scroll.pub\nmetaTags\neditButton /edit.html\ntitle BoardFinder - Wyszukiwarka Gier Planszowych\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<header>\n <nav>\n <div class=\"logo\">BoardFinder</div>\n <div class=\"nav-links\">\n <a href=\"#search\">Szukaj</a>\n <a href=\"#categories\">Kategorie</a>\n <a href=\"#about\">O nas</a>\n </div>\n </nav>\n</header>\n\n<main>\n <section class=\"hero\">\n <h1>Znajdź Swoją Idealną Grę Planszową</h1>\n <div class=\"search-container\">\n <input type=\"text\" id=\"searchInput\" placeholder=\"Wpisz nazwę gry...\" aria-label=\"Wyszukaj grę\">\n <button id=\"searchButton\">Szukaj</button>\n </div>\n <div class=\"filters\">\n <select id=\"playerCount\" aria-label=\"Liczba graczy\">\n <option value=\"\">Liczba graczy</option>\n <option value=\"2\">2 graczy</option>\n <option value=\"3-4\">3-4 graczy</option>\n <option value=\"5+\">5+ graczy</option>\n </select>\n <select id=\"gameTime\" aria-label=\"Czas rozgrywki\">\n <option value=\"\">Czas rozgrywki</option>\n <option value=\"short\">Do 30 min</option>\n <option value=\"medium\">30-60 min</option>\n <option value=\"long\">60+ min</option>\n </select>\n <select id=\"difficulty\" aria-label=\"Poziom trudności\">\n <option value=\"\">Poziom trudności</option>\n <option value=\"easy\">Łatwy</option>\n <option value=\"medium\">Średni</option>\n <option value=\"hard\">Trudny</option>\n </select>\n </div>\n </section>\n\n <section id=\"results\" class=\"results\">\n <div class=\"games-grid\"></div>\n </section>\n</main>\n\n<footer>\n <div class=\"footer-content\">\n <p>BoardFinder - Twoja wyszukiwarka gier planszowych</p>\n <nav class=\"footer-links\">\n <a href=\"#privacy\">Polityka Prywatności</a>\n <a href=\"#contact\">Kontakt</a>\n </nav>\n </div>\n</footer>\n\n---style.css---\n:root {\n --primary-color: #2a6b9c;\n --secondary-color: #3498db;\n --background-color: #f5f7fa;\n --text-color: #2c3e50;\n --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: 'Segoe UI', system-ui, sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n background-color: var(--background-color);\n}\n\nheader {\n background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));\n padding: 1rem;\n box-shadow: var(--shadow);\n}\n\nnav {\n max-width: 1200px;\n margin: 0 auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.logo {\n font-size: 1.5rem;\n font-weight: bold;\n color: white;\n}\n\n.nav-links a {\n color: white;\n text-decoration: none;\n margin-left: 2rem;\n transition: opacity 0.3s;\n}\n\n.nav-links a:hover {\n opacity: 0.8;\n}\n\n.hero {\n text-align: center;\n padding: 4rem 1rem;\n background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),\n url('data:image/svg+xml,<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"20\" height=\"20\" fill=\"%23f5f7fa\"/><circle cx=\"10\" cy=\"10\" r=\"2\" fill=\"%23e1e8f0\"/></svg>');\n}\n\nh1 {\n font-size: 2.5rem;\n margin-bottom: 2rem;\n color: var(--primary-color);\n}\n\n.search-container {\n max-width: 600px;\n margin: 0 auto 2rem;\n}\n\ninput[type=\"text\"] {\n width: 70%;\n padding: 1rem;\n border: 2px solid var(--primary-color);\n border-radius: 4px;\n font-size: 1rem;\n}\n\nbutton {\n padding: 1rem 2rem;\n background-color: var(--primary-color);\n color: white;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n transition: background-color 0.3s;\n}\n\nbutton:hover {\n background-color: var(--secondary-color);\n}\n\n.filters {\n display: flex;\n gap: 1rem;\n justify-content: center;\n flex-wrap: wrap;\n}\n\nselect {\n padding: 0.5rem;\n border: 1px solid var(--primary-color);\n border-radius: 4px;\n background-color: white;\n}\n\n.results {\n max-width: 1200px;\n margin: 2rem auto;\n padding: 0 1rem;\n}\n\n.games-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));\n gap: 2rem;\n padding: 2rem 0;\n}\n\nfooter {\n background-color: var(--primary-color);\n color: white;\n padding: 2rem;\n margin-top: 4rem;\n}\n\n.footer-content {\n max-width: 1200px;\n margin: 0 auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.footer-links a {\n color: white;\n text-decoration: none;\n margin-left: 1rem;\n}\n\n@media (max-width: 768px) {\n .nav-links {\n display: none;\n }\n \n input[type=\"text\"] {\n width: 100%;\n margin-bottom: 1rem;\n }\n \n button {\n width: 100%;\n }\n \n .footer-content {\n flex-direction: column;\n text-align: center;\n gap: 1rem;\n }\n \n .footer-links a {\n display: block;\n margin: 0.5rem 0;\n }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n const searchInput = document.getElementById('searchInput');\n const searchButton = document.getElementById('searchButton');\n const gamesGrid = document.querySelector('.games-grid');\n \n // Sample game data (in production, this would come from a backend)\n const games = [\n { name: 'Catan', players: '3-4', time: 'medium', difficulty: 'medium' },\n { name: 'Monopoly', players: '2-8', time: 'long', difficulty: 'easy' },\n { name: 'Pandemic', players: '2-4', time: 'medium', difficulty: 'hard' }\n ];\n\n const createGameCard = (game) => {\n const card = document.createElement('div');\n card.className = 'game-card';\n card.style.backgroundColor = 'white';\n card.style.padding = '1.5rem';\n card.style.borderRadius = '8px';\n card.style.boxShadow = 'var(--shadow)';\n card.style.transition = 'transform 0.3s';\n \n card.innerHTML = `\n <h3>${game.name}</h3>\n <p>Liczba graczy: ${game.players}</p>\n <p>Czas gry: ${game.time}</p>\n <p>Poziom trudności: ${game.difficulty}</p>\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." + } + ], + "stop_reason": "end_turn", + "stop_sequence": null, + "usage": { + "input_tokens": 286, + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "output_tokens": 2754 + } +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..d90f4af --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# boardfinder.scroll.pub +Website generated by Claude from prompt: Stwórz wyszukiwarkę gier planszowych \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..14fd2e5 --- /dev/null +++ b/script.js @@ -0,0 +1,70 @@ +document.addEventListener('DOMContentLoaded', () => { + const searchInput = document.getElementById('searchInput'); + const searchButton = document.getElementById('searchButton'); + const gamesGrid = document.querySelector('.games-grid'); + + // Sample game data (in production, this would come from a backend) + const games = [ + { name: 'Catan', players: '3-4', time: 'medium', difficulty: 'medium' }, + { name: 'Monopoly', players: '2-8', time: 'long', difficulty: 'easy' }, + { name: 'Pandemic', players: '2-4', time: 'medium', difficulty: 'hard' } + ]; + + const createGameCard = (game) => { + const card = document.createElement('div'); + card.className = 'game-card'; + card.style.backgroundColor = 'white'; + card.style.padding = '1.5rem'; + card.style.borderRadius = '8px'; + card.style.boxShadow = 'var(--shadow)'; + card.style.transition = 'transform 0.3s'; + + card.innerHTML = ` + <h3>${game.name}</h3> + <p>Liczba graczy: ${game.players}</p> + <p>Czas gry: ${game.time}</p> + <p>Poziom trudności: ${game.difficulty}</p> + `; + + card.addEventListener('mouseover', () => { + card.style.transform = 'translateY(-5px)'; + }); + + card.addEventListener('mouseout', () => { + card.style.transform = 'translateY(0)'; + }); + + return card; + }; + + const filterGames = () => { + const searchTerm = searchInput.value.toLowerCase(); + const playerCount = document.getElementById('playerCount').value; + const gameTime = document.getElementById('gameTime').value; + const difficulty = document.getElementById('difficulty').value; + + const filteredGames = games.filter(game => { + return game.name.toLowerCase().includes(searchTerm) && + (!playerCount || game.players.includes(playerCount)) && + (!gameTime || game.time === gameTime) && + (!difficulty || game.difficulty === difficulty); + }); + + gamesGrid.innerHTML = ''; + filteredGames.forEach(game => { + gamesGrid.appendChild(createGameCard(game)); + }); + }; + + searchButton.addEventListener('click', filterGames); + searchInput.addEventListener('keypress', (e) => { + if (e.key === 'Enter') { + filterGames(); + } + }); + + // Initialize with all games + games.forEach(game => { + gamesGrid.appendChild(createGameCard(game)); + }); +}); diff --git a/style.css b/style.css new file mode 100644 index 0000000..bbeb709 --- /dev/null +++ b/style.css @@ -0,0 +1,165 @@ +:root { + --primary-color: #2a6b9c; + --secondary-color: #3498db; + --background-color: #f5f7fa; + --text-color: #2c3e50; + --shadow: 0 4px 6px rgba(0, 0, 0, 0.1); +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: 'Segoe UI', system-ui, sans-serif; + line-height: 1.6; + color: var(--text-color); + background-color: var(--background-color); +} + +header { + background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); + padding: 1rem; + box-shadow: var(--shadow); +} + +nav { + max-width: 1200px; + margin: 0 auto; + display: flex; + justify-content: space-between; + align-items: center; +} + +.logo { + font-size: 1.5rem; + font-weight: bold; + color: white; +} + +.nav-links a { + color: white; + text-decoration: none; + margin-left: 2rem; + transition: opacity 0.3s; +} + +.nav-links a:hover { + opacity: 0.8; +} + +.hero { + text-align: center; + padding: 4rem 1rem; + background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), + url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="20" height="20" fill="%23f5f7fa"/><circle cx="10" cy="10" r="2" fill="%23e1e8f0"/></svg>'); +} + +h1 { + font-size: 2.5rem; + margin-bottom: 2rem; + color: var(--primary-color); +} + +.search-container { + max-width: 600px; + margin: 0 auto 2rem; +} + +input[type="text"] { + width: 70%; + padding: 1rem; + border: 2px solid var(--primary-color); + border-radius: 4px; + font-size: 1rem; +} + +button { + padding: 1rem 2rem; + background-color: var(--primary-color); + color: white; + border: none; + border-radius: 4px; + cursor: pointer; + transition: background-color 0.3s; +} + +button:hover { + background-color: var(--secondary-color); +} + +.filters { + display: flex; + gap: 1rem; + justify-content: center; + flex-wrap: wrap; +} + +select { + padding: 0.5rem; + border: 1px solid var(--primary-color); + border-radius: 4px; + background-color: white; +} + +.results { + max-width: 1200px; + margin: 2rem auto; + padding: 0 1rem; +} + +.games-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); + gap: 2rem; + padding: 2rem 0; +} + +footer { + background-color: var(--primary-color); + color: white; + padding: 2rem; + margin-top: 4rem; +} + +.footer-content { + max-width: 1200px; + margin: 0 auto; + display: flex; + justify-content: space-between; + align-items: center; +} + +.footer-links a { + color: white; + text-decoration: none; + margin-left: 1rem; +} + +@media (max-width: 768px) { + .nav-links { + display: none; + } + + input[type="text"] { + width: 100%; + margin-bottom: 1rem; + } + + button { + width: 100%; + } + + .footer-content { + flex-direction: column; + text-align: center; + gap: 1rem; + } + + .footer-links a { + display: block; + margin: 0.5rem 0; + } +}