commit f893c2124cec6a3b4d3f06cc9ef9c27e10167c79
Author: root <root@hub.scroll.pub> Date: 2024-12-30 23:00:46 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..1c198d9 --- /dev/null +++ b/body.html @@ -0,0 +1,8 @@ +<main class="container"> + <h1>Make a Choice</h1> + <div class="buttons"> + <button id="yesBtn" class="btn yes">Yes</button> + <button id="noBtn" class="btn no">No</button> + </div> + <p id="result" class="result"></p> +</main> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..becd735 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://yesorno.scroll.pub +metaTags +editButton /edit.html +title Yes or No - Simple Decision Maker +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..eaf18db --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "d2dac29e-6785-41b7-8654-eead9c950560", + "object": "chat.completion", + "created": 1735599635, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\nyesorno.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://yesorno.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Yes or No - Simple Decision Maker\nstyle.css\nbody.html\nscript.js\n---body.html---\n<main class=\"container\">\n <h1>Make a Choice</h1>\n <div class=\"buttons\">\n <button id=\"yesBtn\" class=\"btn yes\">Yes</button>\n <button id=\"noBtn\" class=\"btn no\">No</button>\n </div>\n <p id=\"result\" class=\"result\"></p>\n</main>\n---style.css---\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: 'Arial', sans-serif;\n background: linear-gradient(135deg, #f5f7fa, #c3cfe2);\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100vh;\n color: #333;\n}\n\n.container {\n text-align: center;\n background: rgba(255, 255, 255, 0.9);\n padding: 2rem;\n border-radius: 15px;\n box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);\n max-width: 400px;\n width: 90%;\n}\n\nh1 {\n font-size: 2rem;\n margin-bottom: 1.5rem;\n color: #444;\n}\n\n.buttons {\n display: flex;\n justify-content: space-around;\n margin-bottom: 1.5rem;\n}\n\n.btn {\n padding: 0.75rem 1.5rem;\n border: none;\n border-radius: 25px;\n font-size: 1rem;\n cursor: pointer;\n transition: all 0.3s ease;\n color: white;\n}\n\n.btn.yes {\n background: linear-gradient(135deg, #4caf50, #81c784);\n}\n\n.btn.no {\n background: linear-gradient(135deg, #f44336, #e57373);\n}\n\n.btn:hover {\n transform: translateY(-3px);\n box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);\n}\n\n.btn:active {\n transform: translateY(0);\n}\n\n.result {\n font-size: 1.25rem;\n font-weight: bold;\n margin-top: 1rem;\n color: #555;\n}\n\n@media (max-width: 480px) {\n h1 {\n font-size: 1.75rem;\n }\n\n .btn {\n padding: 0.5rem 1rem;\n font-size: 0.9rem;\n }\n\n .result {\n font-size: 1rem;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n const yesBtn = document.getElementById('yesBtn');\n const noBtn = document.getElementById('noBtn');\n const result = document.getElementById('result');\n\n yesBtn.addEventListener('click', function() {\n result.textContent = 'You chose Yes!';\n });\n\n noBtn.addEventListener('click', function() {\n result.textContent = 'You chose No!';\n });\n});\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 270, + "completion_tokens": 726, + "total_tokens": 996, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 270 + }, + "system_fingerprint": "fp_f1afce2943" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..42c0e96 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# yesorno.scroll.pub +Website generated by DeepSeek from prompt: Create a simple website that has two buttons one says "yes" and one says "no", depending on the button you choose, print the test on the bottom of the web page \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..9c26ad0 --- /dev/null +++ b/script.js @@ -0,0 +1,13 @@ +document.addEventListener('DOMContentLoaded', function() { + const yesBtn = document.getElementById('yesBtn'); + const noBtn = document.getElementById('noBtn'); + const result = document.getElementById('result'); + + yesBtn.addEventListener('click', function() { + result.textContent = 'You chose Yes!'; + }); + + noBtn.addEventListener('click', function() { + result.textContent = 'You chose No!'; + }); +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..617d38b --- /dev/null +++ b/style.css @@ -0,0 +1,86 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: 'Arial', sans-serif; + background: linear-gradient(135deg, #f5f7fa, #c3cfe2); + display: flex; + justify-content: center; + align-items: center; + height: 100vh; + color: #333; +} + +.container { + text-align: center; + background: rgba(255, 255, 255, 0.9); + padding: 2rem; + border-radius: 15px; + box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); + max-width: 400px; + width: 90%; +} + +h1 { + font-size: 2rem; + margin-bottom: 1.5rem; + color: #444; +} + +.buttons { + display: flex; + justify-content: space-around; + margin-bottom: 1.5rem; +} + +.btn { + padding: 0.75rem 1.5rem; + border: none; + border-radius: 25px; + font-size: 1rem; + cursor: pointer; + transition: all 0.3s ease; + color: white; +} + +.btn.yes { + background: linear-gradient(135deg, #4caf50, #81c784); +} + +.btn.no { + background: linear-gradient(135deg, #f44336, #e57373); +} + +.btn:hover { + transform: translateY(-3px); + box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); +} + +.btn:active { + transform: translateY(0); +} + +.result { + font-size: 1.25rem; + font-weight: bold; + margin-top: 1rem; + color: #555; +} + +@media (max-width: 480px) { + h1 { + font-size: 1.75rem; + } + + .btn { + padding: 0.5rem 1rem; + font-size: 0.9rem; + } + + .result { + font-size: 1rem; + } +} \ No newline at end of file