commit 9fb1452f71dcdd780401e8eaac0240587b85ac27
Author: root <root@hub.scroll.pub> Date: 2024-12-29 00:24:44 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..a58b7ce --- /dev/null +++ b/body.html @@ -0,0 +1,5 @@ +<main> + <div class="container"> + <pre id="ascii-art"></pre> + </div> +</main> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..574b388 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://ascii3d.scroll.pub +metaTags +editButton /edit.html +title 3D ASCII Art Rotating +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..5650c32 --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "bebdbeef-bf06-4e22-99e0-7cd690d9c1ec", + "object": "chat.completion", + "created": 1735431878, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\nascii3d.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://ascii3d.scroll.pub\nmetaTags\neditButton /edit.html\ntitle 3D ASCII Art Rotating\nstyle.css\nbody.html\nscript.js\n---body.html---\n<main>\n <div class=\"container\">\n <pre id=\"ascii-art\"></pre>\n </div>\n</main>\n---style.css---\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n background: #1a1a1a;\n color: #00ff00;\n font-family: monospace;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100vh;\n overflow: hidden;\n}\n\n.container {\n perspective: 1000px;\n}\n\npre {\n font-size: 12px;\n line-height: 1;\n transform-style: preserve-3d;\n animation: rotate 10s infinite linear;\n}\n\n@keyframes rotate {\n 0% {\n transform: rotateY(0deg);\n }\n 100% {\n transform: rotateY(360deg);\n }\n}\n\n@media (max-width: 768px) {\n pre {\n font-size: 8px;\n }\n}\n---script.js---\nconst asciiArt = document.getElementById('ascii-art');\nconst cube = `\n +------+\n / /|\n / / |\n+------+ |\n| | |\n| | +\n| | /\n| |/\n+------+\n`;\n\nasciiArt.textContent = cube;\n\nfunction rotateCube() {\n const rotation = Math.sin(Date.now() / 1000) * 360;\n asciiArt.style.transform = `rotateY(${rotation}deg)`;\n}\n\nsetInterval(rotateCube, 16);\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 239, + "completion_tokens": 405, + "total_tokens": 644, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 239 + }, + "system_fingerprint": "fp_f1afce2943" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..7539c42 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# ascii3d.scroll.pub +Website generated by DeepSeek from prompt: 3D ASCII art rotating \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..a77916d --- /dev/null +++ b/script.js @@ -0,0 +1,21 @@ +const asciiArt = document.getElementById('ascii-art'); +const cube = ` + +------+ + / /| + / / | ++------+ | +| | | +| | + +| | / +| |/ ++------+ +`; + +asciiArt.textContent = cube; + +function rotateCube() { + const rotation = Math.sin(Date.now() / 1000) * 360; + asciiArt.style.transform = `rotateY(${rotation}deg)`; +} + +setInterval(rotateCube, 16); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..132d186 --- /dev/null +++ b/style.css @@ -0,0 +1,42 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + background: #1a1a1a; + color: #00ff00; + font-family: monospace; + display: flex; + justify-content: center; + align-items: center; + height: 100vh; + overflow: hidden; +} + +.container { + perspective: 1000px; +} + +pre { + font-size: 12px; + line-height: 1; + transform-style: preserve-3d; + animation: rotate 10s infinite linear; +} + +@keyframes rotate { + 0% { + transform: rotateY(0deg); + } + 100% { + transform: rotateY(360deg); + } +} + +@media (max-width: 768px) { + pre { + font-size: 8px; + } +} \ No newline at end of file