commit 3415a9bbf7254f31f561ee044ad453148f0bcdf6
Author: root <root@hub.scroll.pub> Date: 2024-12-28 05:14:36 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..2cdaa23 --- /dev/null +++ b/body.html @@ -0,0 +1,15 @@ +<header> + <h1>SciTechJunkie's Tweets</h1> +</header> +<main> + <div class="tweet-container"> + <a class="twitter-timeline" href="https://twitter.com/SciTechJunkie" data-tweet-limit="20" data-chrome="noheader nofooter noborders" data-theme="dark">Tweets by SciTechJunkie</a> + </div> +</main> +<footer> + <p>Stay curious. Stay informed.</p> +</footer> +<audio id="background-music" autoplay loop> + <source src="who-are-you.mp3" type="audio/mpeg"> + Your browser does not support the audio element. +</audio> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..a68e8bc --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://scitweets.scroll.pub +metaTags +editButton /edit.html +title SciTechJunkie's Tweets +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..1d05474 --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "945c32a8-f855-448c-804e-b862773d62c4", + "object": "chat.completion", + "created": 1735362863, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\nscitweets.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://scitweets.scroll.pub\nmetaTags\neditButton /edit.html\ntitle SciTechJunkie's Tweets\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>SciTechJunkie's Tweets</h1>\n</header>\n<main>\n <div class=\"tweet-container\">\n <a class=\"twitter-timeline\" href=\"https://twitter.com/SciTechJunkie\" data-tweet-limit=\"20\" data-chrome=\"noheader nofooter noborders\" data-theme=\"dark\">Tweets by SciTechJunkie</a>\n </div>\n</main>\n<footer>\n <p>Stay curious. Stay informed.</p>\n</footer>\n<audio id=\"background-music\" autoplay loop>\n <source src=\"who-are-you.mp3\" type=\"audio/mpeg\">\n Your browser does not support the audio element.\n</audio>\n---style.css---\n:root {\n --primary-color: #1DA1F2;\n --background-color: #15202B;\n --text-color: #FFFFFF;\n --accent-color: #8899A6;\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n background-color: var(--background-color);\n color: var(--text-color);\n font-family: 'Segoe UI', system-ui, sans-serif;\n line-height: 1.6;\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n}\n\nheader {\n background: linear-gradient(135deg, var(--primary-color), #1C94E6);\n padding: 2rem;\n text-align: center;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n}\n\nh1 {\n font-size: 2.5rem;\n font-weight: 700;\n text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);\n}\n\nmain {\n flex: 1;\n padding: 2rem;\n max-width: 800px;\n margin: 0 auto;\n width: 100%;\n}\n\n.tweet-container {\n border-radius: 15px;\n overflow: hidden;\n box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);\n}\n\nfooter {\n background-color: rgba(0, 0, 0, 0.1);\n padding: 1rem;\n text-align: center;\n font-size: 0.9rem;\n color: var(--accent-color);\n}\n\naudio {\n display: none;\n}\n\n@media (max-width: 768px) {\n h1 {\n font-size: 2rem;\n }\n \n main {\n padding: 1rem;\n }\n}\n---script.js---\n// Twitter widget script\nwindow.twttr = (function(d, s, id) {\n var js, fjs = d.getElementsByTagName(s)[0],\n t = window.twttr || {};\n if (d.getElementById(id)) return t;\n js = d.createElement(s);\n js.id = id;\n js.src = \"https://platform.twitter.com/widgets.js\";\n fjs.parentNode.insertBefore(js, fjs);\n\n t._e = [];\n t.ready = function(f) {\n t._e.push(f);\n };\n\n return t;\n}(document, \"script\", \"twitter-wjs\"));\n\n// Ensure music plays automatically\ndocument.addEventListener('DOMContentLoaded', function() {\n const audio = document.getElementById('background-music');\n audio.volume = 0.3; // Set volume to 30%\n audio.play().catch(error => {\n console.log('Autoplay was prevented. Please interact with the page to play music.');\n });\n});\n\n// Enable music playback on user interaction\ndocument.body.addEventListener('click', function() {\n const audio = document.getElementById('background-music');\n if (audio.paused) {\n audio.play();\n }\n});\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 303, + "completion_tokens": 914, + "total_tokens": 1217, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 303 + }, + "system_fingerprint": "fp_f1afce2943" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..2423cc8 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# scitweets1.scroll.pub +Website generated by DeepSeek from prompt: A single page that contains an embedded widget of all @SciTechJunkie's tweets on X.com. Have an invisible music player automatically playing "who are you" by mehro (https://youtu.be/5NKm5LJ-Sc8?si=Xda__tE4hYf_3cXT) \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..cd79eed --- /dev/null +++ b/script.js @@ -0,0 +1,34 @@ +// Twitter widget script +window.twttr = (function(d, s, id) { + var js, fjs = d.getElementsByTagName(s)[0], + t = window.twttr || {}; + if (d.getElementById(id)) return t; + js = d.createElement(s); + js.id = id; + js.src = "https://platform.twitter.com/widgets.js"; + fjs.parentNode.insertBefore(js, fjs); + + t._e = []; + t.ready = function(f) { + t._e.push(f); + }; + + return t; +}(document, "script", "twitter-wjs")); + +// Ensure music plays automatically +document.addEventListener('DOMContentLoaded', function() { + const audio = document.getElementById('background-music'); + audio.volume = 0.3; // Set volume to 30% + audio.play().catch(error => { + console.log('Autoplay was prevented. Please interact with the page to play music.'); + }); +}); + +// Enable music playback on user interaction +document.body.addEventListener('click', function() { + const audio = document.getElementById('background-music'); + if (audio.paused) { + audio.play(); + } +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..07d2ec2 --- /dev/null +++ b/style.css @@ -0,0 +1,71 @@ +:root { + --primary-color: #1DA1F2; + --background-color: #15202B; + --text-color: #FFFFFF; + --accent-color: #8899A6; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + background-color: var(--background-color); + color: var(--text-color); + font-family: 'Segoe UI', system-ui, sans-serif; + line-height: 1.6; + min-height: 100vh; + display: flex; + flex-direction: column; +} + +header { + background: linear-gradient(135deg, var(--primary-color), #1C94E6); + padding: 2rem; + text-align: center; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); +} + +h1 { + font-size: 2.5rem; + font-weight: 700; + text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); +} + +main { + flex: 1; + padding: 2rem; + max-width: 800px; + margin: 0 auto; + width: 100%; +} + +.tweet-container { + border-radius: 15px; + overflow: hidden; + box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); +} + +footer { + background-color: rgba(0, 0, 0, 0.1); + padding: 1rem; + text-align: center; + font-size: 0.9rem; + color: var(--accent-color); +} + +audio { + display: none; +} + +@media (max-width: 768px) { + h1 { + font-size: 2rem; + } + + main { + padding: 1rem; + } +} \ No newline at end of file