commit 8eb265f63c5ef796060c1e60408bd1182dc5cb93
Author: root <root@hub.scroll.pub>
Date: 2025-01-06 02:44:37 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..098ae7f
--- /dev/null
+++ b/body.html
@@ -0,0 +1,12 @@
+<main class="container">
+ <div class="greeting-wrapper">
+ <h1 class="greeting" aria-label="Hello World">Hello World</h1>
+ <div class="floating-particles">
+ <span></span><span></span><span></span>
+ <span></span><span></span><span></span>
+ </div>
+ </div>
+</main>
+<footer>
+ <p>Made with love for the web</p>
+</footer>
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..1b21af4
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,10 @@
+buildHtml
+baseUrl https://hello.scroll.pub
+metaTags
+ description Say hello to the world in style
+ keywords hello, world, greeting, animation
+editButton /edit.html
+title Hello World | An Elegant Greeting
+style.css
+body.html
+script.js
diff --git a/prompt.json b/prompt.json
new file mode 100644
index 0000000..79ed38d
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,20 @@
+{
+ "id": "msg_01A4yyh6RaUPvtAy422oTXEG",
+ "type": "message",
+ "role": "assistant",
+ "model": "claude-3-5-sonnet-20241022",
+ "content": [
+ {
+ "type": "text",
+ "text": "I'll create a simple yet elegant \"Hello World\" website with beautiful animations and styling.\n\n---domain---\nhello.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://hello.scroll.pub\nmetaTags\n description Say hello to the world in style\n keywords hello, world, greeting, animation\neditButton /edit.html\ntitle Hello World | An Elegant Greeting\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<main class=\"container\">\n <div class=\"greeting-wrapper\">\n <h1 class=\"greeting\" aria-label=\"Hello World\">Hello World</h1>\n <div class=\"floating-particles\">\n <span></span><span></span><span></span>\n <span></span><span></span><span></span>\n </div>\n </div>\n</main>\n<footer>\n <p>Made with love for the web</p>\n</footer>\n\n---style.css---\n:root {\n --primary-color: #2c3e50;\n --accent-color: #3498db;\n --background-color: #ecf0f1;\n --text-color: #2c3e50;\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;\n background: var(--background-color);\n color: var(--text-color);\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n}\n\n.container {\n flex: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 2rem;\n}\n\n.greeting-wrapper {\n position: relative;\n padding: 4rem;\n}\n\n.greeting {\n font-size: clamp(2rem, 10vw, 6rem);\n text-align: center;\n background: linear-gradient(45deg, var(--primary-color), var(--accent-color));\n -webkit-background-clip: text;\n background-clip: text;\n color: transparent;\n animation: fadeIn 1.5s ease-out;\n text-shadow: 0 0.1em 0.2em rgba(0,0,0,0.1);\n}\n\n.floating-particles span {\n position: absolute;\n width: 10px;\n height: 10px;\n background: var(--accent-color);\n border-radius: 50%;\n pointer-events: none;\n opacity: 0.6;\n}\n\n.floating-particles span:nth-child(odd) {\n background: var(--primary-color);\n}\n\nfooter {\n text-align: center;\n padding: 1rem;\n font-size: 0.9rem;\n color: var(--text-color);\n opacity: 0.8;\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n transform: translateY(20px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .greeting, .floating-particles span {\n animation: none;\n }\n}\n\n@media (max-width: 768px) {\n .greeting-wrapper {\n padding: 2rem;\n }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n const particles = document.querySelectorAll('.floating-particles span');\n \n function animateParticles() {\n particles.forEach((particle, index) => {\n // Random initial positions\n particle.style.left = `${Math.random() * 100}%`;\n particle.style.top = `${Math.random() * 100}%`;\n \n // Create floating animation\n function float() {\n const xPos = Math.sin(Date.now() * 0.001 + index) * 30;\n const yPos = Math.cos(Date.now() * 0.001 + index) * 30;\n particle.style.transform = `translate(${xPos}px, ${yPos}px)`;\n requestAnimationFrame(float);\n }\n \n float();\n });\n }\n\n // Check if user prefers reduced motion\n const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)');\n if (!prefersReducedMotion.matches) {\n animateParticles();\n }\n});\n\n---end---\n\nThis creates a beautiful, accessible, and responsive \"Hello World\" page with:\n- Smooth gradient text animation\n- Floating particle background effects\n- Responsive design that works on all devices\n- Accessibility features including ARIA labels\n- Reduced motion support\n- Clean, semantic HTML5\n- Modern CSS with variables and clamp()\n- Performance-optimized animations\n- Proper meta tags for SEO\n- No external dependencies\n\nThe particles will gracefully float around the text, creating an elegant and engaging experience while maintaining simplicity and professionalism."
+ }
+ ],
+ "stop_reason": "end_turn",
+ "stop_sequence": null,
+ "usage": {
+ "input_tokens": 280,
+ "cache_creation_input_tokens": 0,
+ "cache_read_input_tokens": 0,
+ "output_tokens": 1293
+ }
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..fbb5f97
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# hello.scroll.pub
+Website generated by Claude from prompt: I want a webpage which will print "hello work"
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..69737a9
--- /dev/null
+++ b/script.js
@@ -0,0 +1,27 @@
+document.addEventListener('DOMContentLoaded', () => {
+ const particles = document.querySelectorAll('.floating-particles span');
+
+ function animateParticles() {
+ particles.forEach((particle, index) => {
+ // Random initial positions
+ particle.style.left = `${Math.random() * 100}%`;
+ particle.style.top = `${Math.random() * 100}%`;
+
+ // Create floating animation
+ function float() {
+ const xPos = Math.sin(Date.now() * 0.001 + index) * 30;
+ const yPos = Math.cos(Date.now() * 0.001 + index) * 30;
+ particle.style.transform = `translate(${xPos}px, ${yPos}px)`;
+ requestAnimationFrame(float);
+ }
+
+ float();
+ });
+ }
+
+ // Check if user prefers reduced motion
+ const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)');
+ if (!prefersReducedMotion.matches) {
+ animateParticles();
+ }
+});
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..9b522b9
--- /dev/null
+++ b/style.css
@@ -0,0 +1,90 @@
+:root {
+ --primary-color: #2c3e50;
+ --accent-color: #3498db;
+ --background-color: #ecf0f1;
+ --text-color: #2c3e50;
+}
+
+* {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}
+
+body {
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
+ background: var(--background-color);
+ color: var(--text-color);
+ min-height: 100vh;
+ display: flex;
+ flex-direction: column;
+}
+
+.container {
+ flex: 1;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ padding: 2rem;
+}
+
+.greeting-wrapper {
+ position: relative;
+ padding: 4rem;
+}
+
+.greeting {
+ font-size: clamp(2rem, 10vw, 6rem);
+ text-align: center;
+ background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
+ -webkit-background-clip: text;
+ background-clip: text;
+ color: transparent;
+ animation: fadeIn 1.5s ease-out;
+ text-shadow: 0 0.1em 0.2em rgba(0,0,0,0.1);
+}
+
+.floating-particles span {
+ position: absolute;
+ width: 10px;
+ height: 10px;
+ background: var(--accent-color);
+ border-radius: 50%;
+ pointer-events: none;
+ opacity: 0.6;
+}
+
+.floating-particles span:nth-child(odd) {
+ background: var(--primary-color);
+}
+
+footer {
+ text-align: center;
+ padding: 1rem;
+ font-size: 0.9rem;
+ color: var(--text-color);
+ opacity: 0.8;
+}
+
+@keyframes fadeIn {
+ from {
+ opacity: 0;
+ transform: translateY(20px);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .greeting, .floating-particles span {
+ animation: none;
+ }
+}
+
+@media (max-width: 768px) {
+ .greeting-wrapper {
+ padding: 2rem;
+ }
+}