commit 7ca923234bfe75e8b6eeb4af4ee246e115afdd8a
Author: root <root@hub.scroll.pub> Date: 2024-12-28 05:18:04 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..382f961 --- /dev/null +++ b/body.html @@ -0,0 +1,25 @@ +<header class="header"> + <h1>Play Mario Games Online</h1> + <p>Relive the classic adventures of Mario in your browser!</p> +</header> +<main class="main-content"> + <section class="game-section"> + <h2>Choose Your Game</h2> + <div class="game-grid"> + <div class="game-card" onclick="loadGame('mario1')"> + <img src="/images/mario1.png" alt="Super Mario Bros"> + <h3>Super Mario Bros</h3> + </div> + <div class="game-card" onclick="loadGame('mario3')"> + <img src="/images/mario3.png" alt="Super Mario Bros 3"> + <h3>Super Mario Bros 3</h3> + </div> + </div> + </section> + <section class="game-container" id="game-container"> + <iframe id="game-frame" class="game-frame" src="" frameborder="0" allowfullscreen></iframe> + </section> +</main> +<footer class="footer"> + <p>Enjoy the classic Mario experience right in your browser!</p> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..6569aaf --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://playmario.scroll.pub +metaTags +editButton /edit.html +title Play Mario Games Online +style.css +body.html +script.js \ No newline at end of file diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..a46e872 --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "77c33bfc-7bc3-45ca-90a9-93e4b05e2cb4", + "object": "chat.completion", + "created": 1735363073, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\nplaymario.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://playmario.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Play Mario Games Online\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header class=\"header\">\n <h1>Play Mario Games Online</h1>\n <p>Relive the classic adventures of Mario in your browser!</p>\n</header>\n<main class=\"main-content\">\n <section class=\"game-section\">\n <h2>Choose Your Game</h2>\n <div class=\"game-grid\">\n <div class=\"game-card\" onclick=\"loadGame('mario1')\">\n <img src=\"/images/mario1.png\" alt=\"Super Mario Bros\">\n <h3>Super Mario Bros</h3>\n </div>\n <div class=\"game-card\" onclick=\"loadGame('mario3')\">\n <img src=\"/images/mario3.png\" alt=\"Super Mario Bros 3\">\n <h3>Super Mario Bros 3</h3>\n </div>\n </div>\n </section>\n <section class=\"game-container\" id=\"game-container\">\n <iframe id=\"game-frame\" class=\"game-frame\" src=\"\" frameborder=\"0\" allowfullscreen></iframe>\n </section>\n</main>\n<footer class=\"footer\">\n <p>Enjoy the classic Mario experience right in your browser!</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #e60012;\n --secondary-color: #f8d347;\n --background-color: #f5f5f5;\n --text-color: #333;\n}\n\nbody {\n font-family: 'Arial', sans-serif;\n margin: 0;\n padding: 0;\n background-color: var(--background-color);\n color: var(--text-color);\n}\n\n.header {\n background-color: var(--primary-color);\n color: white;\n padding: 2rem;\n text-align: center;\n}\n\n.main-content {\n padding: 2rem;\n}\n\n.game-section {\n margin-bottom: 2rem;\n}\n\n.game-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n gap: 1rem;\n}\n\n.game-card {\n background-color: white;\n border-radius: 8px;\n padding: 1rem;\n text-align: center;\n cursor: pointer;\n transition: transform 0.2s;\n}\n\n.game-card:hover {\n transform: scale(1.05);\n}\n\n.game-card img {\n width: 100%;\n border-radius: 8px;\n}\n\n.game-container {\n display: none;\n margin-top: 2rem;\n}\n\n.game-frame {\n width: 100%;\n height: 500px;\n border-radius: 8px;\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);\n}\n\n.footer {\n background-color: var(--primary-color);\n color: white;\n text-align: center;\n padding: 1rem;\n margin-top: 2rem;\n}\n\n@media (max-width: 768px) {\n .game-frame {\n height: 300px;\n }\n}\n---script.js---\nfunction loadGame(game) {\n const gameContainer = document.getElementById('game-container');\n const gameFrame = document.getElementById('game-frame');\n\n if (game === 'mario1') {\n gameFrame.src = '/games/mario1/index.html';\n } else if (game === 'mario3') {\n gameFrame.src = '/games/mario3/index.html';\n }\n\n gameContainer.style.display = 'block';\n window.scrollTo({\n top: gameContainer.offsetTop,\n behavior: 'smooth'\n });\n}\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 246, + "completion_tokens": 834, + "total_tokens": 1080, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 246 + }, + "system_fingerprint": "fp_f1afce2943" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..789a83d --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# playmario.scroll.pub +Website generated by DeepSeek from prompt: create a website that I can play games like super mario \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..e7bf1e1 --- /dev/null +++ b/script.js @@ -0,0 +1,16 @@ +function loadGame(game) { + const gameContainer = document.getElementById('game-container'); + const gameFrame = document.getElementById('game-frame'); + + if (game === 'mario1') { + gameFrame.src = '/games/mario1/index.html'; + } else if (game === 'mario3') { + gameFrame.src = '/games/mario3/index.html'; + } + + gameContainer.style.display = 'block'; + window.scrollTo({ + top: gameContainer.offsetTop, + behavior: 'smooth' + }); +} \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..d5f6cf8 --- /dev/null +++ b/style.css @@ -0,0 +1,79 @@ +:root { + --primary-color: #e60012; + --secondary-color: #f8d347; + --background-color: #f5f5f5; + --text-color: #333; +} + +body { + font-family: 'Arial', sans-serif; + margin: 0; + padding: 0; + background-color: var(--background-color); + color: var(--text-color); +} + +.header { + background-color: var(--primary-color); + color: white; + padding: 2rem; + text-align: center; +} + +.main-content { + padding: 2rem; +} + +.game-section { + margin-bottom: 2rem; +} + +.game-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: 1rem; +} + +.game-card { + background-color: white; + border-radius: 8px; + padding: 1rem; + text-align: center; + cursor: pointer; + transition: transform 0.2s; +} + +.game-card:hover { + transform: scale(1.05); +} + +.game-card img { + width: 100%; + border-radius: 8px; +} + +.game-container { + display: none; + margin-top: 2rem; +} + +.game-frame { + width: 100%; + height: 500px; + border-radius: 8px; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); +} + +.footer { + background-color: var(--primary-color); + color: white; + text-align: center; + padding: 1rem; + margin-top: 2rem; +} + +@media (max-width: 768px) { + .game-frame { + height: 300px; + } +} \ No newline at end of file