commit f0de522953957cf8b8286255347b3d66fb19b394
Author: root <root@hub.scroll.pub> Date: 2024-12-27 15:44:24 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..99858a4 --- /dev/null +++ b/body.html @@ -0,0 +1,33 @@ +<header> + <nav> + <div class="question-mark">?</div> + </nav> +</header> + +<main> + <section class="hero"> + <h1>What?</h1> + <div class="floating-questions"> + <span>¿</span> + <span>?</span> + <span>؟</span> + <span>?</span> + <span>?</span> + </div> + </section> + + <section class="interactive"> + <div class="question-input"> + <label for="your-question">Ask anything:</label> + <input type="text" id="your-question" placeholder="Type your question..."> + </div> + <div class="response" aria-live="polite"></div> + </section> +</main> + +<footer> + <nav> + <a href="#about">About</a> + <a href="#contact">Contact</a> + </nav> +</footer> diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..30699ed --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://what.scroll.pub +metaTags +editButton /edit.html +title What? +style.css +body.html +script.js diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..33855d9 --- /dev/null +++ b/prompt.json @@ -0,0 +1,20 @@ +{ + "id": "msg_01KEn8nN6tsL38rocpxZpEfb", + "type": "message", + "role": "assistant", + "model": "claude-3-5-sonnet-20241022", + "content": [ + { + "type": "text", + "text": "For a website about \"what?\", I'll create an enigmatic, question-focused design that plays with curiosity and interactivity.\n\n---domain---\nwhat.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://what.scroll.pub\nmetaTags\neditButton /edit.html\ntitle What?\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<header>\n <nav>\n <div class=\"question-mark\">?</div>\n </nav>\n</header>\n\n<main>\n <section class=\"hero\">\n <h1>What?</h1>\n <div class=\"floating-questions\">\n <span>¿</span>\n <span>?</span>\n <span>؟</span>\n <span>?</span>\n <span>?</span>\n </div>\n </section>\n\n <section class=\"interactive\">\n <div class=\"question-input\">\n <label for=\"your-question\">Ask anything:</label>\n <input type=\"text\" id=\"your-question\" placeholder=\"Type your question...\">\n </div>\n <div class=\"response\" aria-live=\"polite\"></div>\n </section>\n</main>\n\n<footer>\n <nav>\n <a href=\"#about\">About</a>\n <a href=\"#contact\">Contact</a>\n </nav>\n</footer>\n\n---style.css---\n:root {\n --primary: #2a2a2a;\n --accent: #ff3366;\n --bg: #ffffff;\n --text: #333333;\n --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\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, sans-serif;\n background: var(--bg);\n color: var(--text);\n line-height: 1.6;\n overflow-x: hidden;\n}\n\nheader {\n padding: 2rem;\n position: fixed;\n width: 100%;\n top: 0;\n z-index: 100;\n background: rgba(255, 255, 255, 0.9);\n backdrop-filter: blur(10px);\n}\n\n.question-mark {\n font-size: 3rem;\n font-weight: bold;\n color: var(--accent);\n animation: pulse 2s infinite;\n cursor: pointer;\n}\n\n.hero {\n height: 100vh;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n}\n\nh1 {\n font-size: clamp(4rem, 15vw, 12rem);\n color: var(--primary);\n opacity: 0.1;\n position: absolute;\n z-index: 1;\n}\n\n.floating-questions {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n\n.floating-questions span {\n position: absolute;\n font-size: 2rem;\n opacity: 0.2;\n animation: float 10s infinite;\n}\n\n.interactive {\n min-height: 50vh;\n padding: 4rem 2rem;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 2rem;\n}\n\n.question-input {\n width: 100%;\n max-width: 600px;\n}\n\ninput {\n width: 100%;\n padding: 1rem;\n font-size: 1.2rem;\n border: none;\n border-bottom: 2px solid var(--primary);\n background: transparent;\n transition: var(--transition);\n}\n\ninput:focus {\n outline: none;\n border-color: var(--accent);\n}\n\n.response {\n font-size: 1.5rem;\n color: var(--accent);\n height: 3rem;\n text-align: center;\n}\n\nfooter {\n padding: 2rem;\n text-align: center;\n}\n\nfooter a {\n color: var(--text);\n text-decoration: none;\n margin: 0 1rem;\n transition: var(--transition);\n}\n\nfooter a:hover {\n color: var(--accent);\n}\n\n@keyframes pulse {\n 0% { transform: scale(1); }\n 50% { transform: scale(1.1); }\n 100% { transform: scale(1); }\n}\n\n@keyframes float {\n 0%, 100% { transform: translateY(0) rotate(0); }\n 50% { transform: translateY(-20px) rotate(10deg); }\n}\n\n@media (max-width: 768px) {\n .interactive {\n padding: 2rem 1rem;\n }\n \n input {\n font-size: 1rem;\n }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n // Create floating question marks\n const floatingQuestions = document.querySelector('.floating-questions');\n for (let i = 0; i < 20; i++) {\n const span = document.createElement('span');\n span.textContent = '?';\n span.style.left = `${Math.random() * 100}%`;\n span.style.top = `${Math.random() * 100}%`;\n span.style.animationDelay = `${Math.random() * 5}s`;\n floatingQuestions.appendChild(span);\n }\n\n // Handle question input\n const input = document.getElementById('your-question');\n const response = document.querySelector('.response');\n const responses = [\n \"That's a great question!\",\n \"Have you considered why you're asking that?\",\n \"What do you think?\",\n \"Perhaps...\",\n \"The answer lies within.\",\n \"¯\\\\_(ツ)_/¯\"\n ];\n\n input.addEventListener('keypress', (e) => {\n if (e.key === 'Enter' && input.value.trim()) {\n const randomResponse = responses[Math.floor(Math.random() * responses.length)];\n response.textContent = randomResponse;\n response.style.opacity = 0;\n setTimeout(() => {\n response.style.opacity = 1;\n }, 100);\n input.value = '';\n }\n });\n\n // Add parallax effect to floating questions\n document.addEventListener('mousemove', (e) => {\n const moveX = (e.clientX - window.innerWidth / 2) * 0.01;\n const moveY = (e.clientY - window.innerHeight / 2) * 0.01;\n floatingQuestions.style.transform = `translate(${moveX}px, ${moveY}px)`;\n });\n});\n\n---end---\n\nThis creates an engaging, minimalist website centered around the concept of \"what?\" It features:\n\n1. A large, faded \"What?\" title\n2. Floating question marks in different scripts that move with parallax effect\n3. An interactive question input that provides random philosophical responses\n4. Smooth animations and transitions\n5. Fully responsive design\n6. High contrast for accessibility\n7. Clean, semantic HTML structure\n8. Modern CSS with variables and fluid typography\n9. Engaging JavaScript interactions\n10. Minimal yet impactful visual design\n\nThe domain \"what.scroll.pub\" is short, memorable, and directly relates to the content. The design emphasizes curiosity and interaction while maintaining professional aesthetics and functionality." + } + ], + "stop_reason": "end_turn", + "stop_sequence": null, + "usage": { + "input_tokens": 271, + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "output_tokens": 1920 + } +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..eebc9c0 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# what.scroll.pub +Website generated by Claude from prompt: what? \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..f913024 --- /dev/null +++ b/script.js @@ -0,0 +1,43 @@ +document.addEventListener('DOMContentLoaded', () => { + // Create floating question marks + const floatingQuestions = document.querySelector('.floating-questions'); + for (let i = 0; i < 20; i++) { + const span = document.createElement('span'); + span.textContent = '?'; + span.style.left = `${Math.random() * 100}%`; + span.style.top = `${Math.random() * 100}%`; + span.style.animationDelay = `${Math.random() * 5}s`; + floatingQuestions.appendChild(span); + } + + // Handle question input + const input = document.getElementById('your-question'); + const response = document.querySelector('.response'); + const responses = [ + "That's a great question!", + "Have you considered why you're asking that?", + "What do you think?", + "Perhaps...", + "The answer lies within.", + "¯\\_(ツ)_/¯" + ]; + + input.addEventListener('keypress', (e) => { + if (e.key === 'Enter' && input.value.trim()) { + const randomResponse = responses[Math.floor(Math.random() * responses.length)]; + response.textContent = randomResponse; + response.style.opacity = 0; + setTimeout(() => { + response.style.opacity = 1; + }, 100); + input.value = ''; + } + }); + + // Add parallax effect to floating questions + document.addEventListener('mousemove', (e) => { + const moveX = (e.clientX - window.innerWidth / 2) * 0.01; + const moveY = (e.clientY - window.innerHeight / 2) * 0.01; + floatingQuestions.style.transform = `translate(${moveX}px, ${moveY}px)`; + }); +}); diff --git a/style.css b/style.css new file mode 100644 index 0000000..d614015 --- /dev/null +++ b/style.css @@ -0,0 +1,141 @@ +:root { + --primary: #2a2a2a; + --accent: #ff3366; + --bg: #ffffff; + --text: #333333; + --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; + background: var(--bg); + color: var(--text); + line-height: 1.6; + overflow-x: hidden; +} + +header { + padding: 2rem; + position: fixed; + width: 100%; + top: 0; + z-index: 100; + background: rgba(255, 255, 255, 0.9); + backdrop-filter: blur(10px); +} + +.question-mark { + font-size: 3rem; + font-weight: bold; + color: var(--accent); + animation: pulse 2s infinite; + cursor: pointer; +} + +.hero { + height: 100vh; + display: flex; + justify-content: center; + align-items: center; + position: relative; +} + +h1 { + font-size: clamp(4rem, 15vw, 12rem); + color: var(--primary); + opacity: 0.1; + position: absolute; + z-index: 1; +} + +.floating-questions { + position: absolute; + width: 100%; + height: 100%; +} + +.floating-questions span { + position: absolute; + font-size: 2rem; + opacity: 0.2; + animation: float 10s infinite; +} + +.interactive { + min-height: 50vh; + padding: 4rem 2rem; + display: flex; + flex-direction: column; + align-items: center; + gap: 2rem; +} + +.question-input { + width: 100%; + max-width: 600px; +} + +input { + width: 100%; + padding: 1rem; + font-size: 1.2rem; + border: none; + border-bottom: 2px solid var(--primary); + background: transparent; + transition: var(--transition); +} + +input:focus { + outline: none; + border-color: var(--accent); +} + +.response { + font-size: 1.5rem; + color: var(--accent); + height: 3rem; + text-align: center; +} + +footer { + padding: 2rem; + text-align: center; +} + +footer a { + color: var(--text); + text-decoration: none; + margin: 0 1rem; + transition: var(--transition); +} + +footer a:hover { + color: var(--accent); +} + +@keyframes pulse { + 0% { transform: scale(1); } + 50% { transform: scale(1.1); } + 100% { transform: scale(1); } +} + +@keyframes float { + 0%, 100% { transform: translateY(0) rotate(0); } + 50% { transform: translateY(-20px) rotate(10deg); } +} + +@media (max-width: 768px) { + .interactive { + padding: 2rem 1rem; + } + + input { + font-size: 1rem; + } +}